/* Experience-native public profile visual parity with the approved BMP profile mockups. */
.profile-x {
  --px-glass: color-mix(in srgb, var(--px-panel) 66%, transparent);
  --px-glass-strong: color-mix(in srgb, var(--px-panel) 80%, transparent);
  --px-line-soft: color-mix(in srgb, var(--px-line) 52%, transparent);
  --px-shadow-lg: 0 26px 74px rgb(0 0 0 / 34%);
  --px-shadow-md: 0 16px 42px rgb(0 0 0 / 24%);
  min-height: 100vh !important;
  padding-bottom: 48px !important;
  background: var(--px-bg) !important;
}

.profile-x::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 12%, color-mix(in srgb, var(--px-accent) 12%, transparent), transparent 34rem),
    linear-gradient(180deg, rgb(0 0 0 / 3%), rgb(0 0 0 / 24%) 60%, rgb(0 0 0 / 48%));
}

.profile-x .profile-x__background-art {
  position: fixed !important;
  inset: 0 !important;
  opacity: .72 !important;
  background-position: center top !important;
  background-size: cover !important;
  transform: scale(1.025);
}

.profile-x .profile-x__cover {
  z-index: 2 !important;
  width: min(1420px, calc(100% - 40px));
  height: clamp(290px, 34vw, 510px) !important;
  margin: 14px auto 0;
  padding: 22px 28px !important;
  overflow: hidden;
  border: 1px solid var(--px-line-soft);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgb(0 0 0 / 30%);
}

.profile-x .profile-x__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 34%, rgb(0 0 0 / 10%) 64%, rgb(0 0 0 / 48%));
}

.profile-x .profile-x__cover-mark {
  position: relative;
  z-index: 2;
  padding: 8px 12px !important;
  border: 1px solid rgb(255 255 255 / 18%) !important;
  border-radius: 999px !important;
  background: rgb(0 0 0 / 30%) !important;
  box-shadow: 0 8px 30px rgb(0 0 0 / 20%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.profile-x .profile-x__identity {
  z-index: 5 !important;
  width: min(1320px, calc(100% - 88px));
  margin: -84px auto 0 !important;
  padding: 22px 24px !important;
  gap: 20px !important;
  border: 1px solid var(--px-line-soft) !important;
  border-radius: 22px !important;
  background: var(--px-glass-strong) !important;
  box-shadow: var(--px-shadow-lg) !important;
  backdrop-filter: blur(26px) saturate(132%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(132%) !important;
}

.profile-x .profile-x__avatar {
  width: 146px !important;
  height: 146px !important;
  border: 3px solid color-mix(in srgb, var(--px-accent) 76%, white 10%) !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--px-panel) 86%, transparent) !important;
  box-shadow: 0 16px 44px rgb(0 0 0 / 38%), 0 0 0 6px rgb(255 255 255 / 5%) !important;
}

.profile-x .profile-x__avatar img {
  border-radius: 50%;
}

.profile-x .profile-x__eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 5px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--px-accent) 55%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--px-accent) 14%, transparent);
  letter-spacing: .08em !important;
}

.profile-x .profile-x__identity-copy h1 {
  margin-top: 4px !important;
  font-size: clamp(32px, 3.5vw, 50px) !important;
  line-height: .98 !important;
  letter-spacing: -.045em !important;
}

.profile-x .profile-x__username {
  margin: 7px 0 0 !important;
  font-size: 14px;
}

.profile-x .profile-x__tagline {
  margin-top: 10px !important;
  font-size: clamp(16px, 1.4vw, 19px) !important;
}

.profile-x .profile-x__bio {
  max-width: 760px !important;
  margin-top: 9px !important;
  color: color-mix(in srgb, var(--px-text) 84%, var(--px-muted)) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.profile-x .profile-x__actions {
  align-self: end !important;
  padding-bottom: 4px;
  gap: 9px !important;
}

.profile-x .profile-x__actions :where(a, button) {
  min-height: 42px !important;
  padding: 9px 15px !important;
  border: 1px solid var(--px-line-soft) !important;
  border-radius: 12px !important;
  background: color-mix(in srgb, var(--px-bg) 52%, transparent) !important;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  backdrop-filter: blur(14px);
}

.profile-x .profile-x__interests,
.profile-x .profile-x__stats,
.profile-x .profile-x__modules,
.profile-x .profile-x__banner {
  width: min(1320px, calc(100% - 88px));
  margin-left: auto !important;
  margin-right: auto !important;
}

.profile-x .profile-x__interests {
  margin-top: 14px !important;
  margin-bottom: 10px !important;
  padding: 14px 16px !important;
  border: 1px solid var(--px-line-soft) !important;
  border-radius: 16px !important;
  background: var(--px-glass) !important;
  box-shadow: var(--px-shadow-md);
  backdrop-filter: blur(18px) saturate(124%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(124%) !important;
}

.profile-x .profile-x__interest-chips {
  gap: 8px !important;
}

.profile-x .profile-x__interest-chips span {
  padding: 7px 11px !important;
  border: 1px solid color-mix(in srgb, var(--px-line) 46%, transparent) !important;
  background: color-mix(in srgb, var(--px-bg) 34%, transparent) !important;
  font-size: 11px !important;
  backdrop-filter: blur(10px);
}

.profile-x .profile-x__stats {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--px-line-soft);
  border-radius: 16px;
  background: color-mix(in srgb, var(--px-bg) 48%, transparent);
  box-shadow: 0 14px 38px rgb(0 0 0 / 18%);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.profile-x .profile-x__stats > * {
  min-height: 74px !important;
  padding: 13px 18px !important;
  border: 0 !important;
  border-right: 1px solid var(--px-line-soft) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.profile-x .profile-x__stats > *:last-child {
  border-right: 0 !important;
}

.profile-x .profile-x__stats strong {
  font-size: 20px !important;
}

.profile-x .profile-x__modules {
  position: relative;
  z-index: 3;
  gap: 14px !important;
  padding: 0 !important;
  margin-top: 16px !important;
}

.profile-x .profile-x__module {
  min-height: 172px !important;
  padding: 18px !important;
  border: 1px solid var(--px-line-soft) !important;
  border-radius: 18px !important;
  background: var(--px-glass) !important;
  box-shadow: var(--px-shadow-md) !important;
  backdrop-filter: blur(20px) saturate(126%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(126%) !important;
}

.profile-x .profile-x__module > span {
  margin-bottom: 8px !important;
}

.profile-x .profile-x__module h2,
.profile-x .profile-x__module > strong {
  font-size: clamp(18px, 1.6vw, 23px) !important;
  letter-spacing: -.02em;
}

.profile-x .profile-x__favorites {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px !important;
}

.profile-x .profile-x__favorites > a,
.profile-x .profile-x__favorites > div {
  min-height: 122px;
  align-content: start;
  padding: 13px !important;
  border: 1px solid color-mix(in srgb, var(--px-line) 44%, transparent);
  border-radius: 13px !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--px-bg) 10%, transparent), color-mix(in srgb, var(--px-bg) 62%, transparent)),
    color-mix(in srgb, var(--px-panel2) 54%, transparent) !important;
}

.profile-x .profile-x__stores a {
  min-height: 58px;
  border: 1px solid color-mix(in srgb, var(--px-line) 40%, transparent);
  background: color-mix(in srgb, var(--px-panel2) 58%, transparent) !important;
}

.profile-x .profile-x__banner {
  margin-top: 16px !important;
  padding: 18px 20px !important;
  border: 1px solid var(--px-line-soft) !important;
  border-radius: 16px !important;
  background: var(--px-glass) !important;
  box-shadow: var(--px-shadow-md);
  backdrop-filter: blur(18px);
}

@media (max-width: 900px) {
  .profile-x .profile-x__cover {
    width: calc(100% - 18px);
    height: clamp(230px, 38vw, 360px) !important;
    margin-top: 8px;
    border-radius: 20px;
  }

  .profile-x .profile-x__identity,
  .profile-x .profile-x__interests,
  .profile-x .profile-x__stats,
  .profile-x .profile-x__modules,
  .profile-x .profile-x__banner {
    width: calc(100% - 34px);
  }

  .profile-x .profile-x__identity {
    margin-top: -64px !important;
  }

  .profile-x .profile-x__avatar {
    width: 116px !important;
    height: 116px !important;
  }

  .profile-x .profile-x__favorites {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .profile-x {
    padding-bottom: 24px !important;
  }

  .profile-x .profile-x__cover {
    width: 100%;
    height: 205px !important;
    margin-top: 0;
    padding: 12px !important;
    border-inline: 0;
    border-top: 0;
    border-radius: 0 0 22px 22px;
  }

  .profile-x .profile-x__cover-mark {
    font-size: 9px !important;
  }

  .profile-x .profile-x__identity {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    width: calc(100% - 16px);
    margin-top: -48px !important;
    padding: 12px !important;
    gap: 11px !important;
    border-radius: 18px !important;
  }

  .profile-x .profile-x__avatar {
    width: 88px !important;
    height: 88px !important;
  }

  .profile-x .profile-x__identity-copy h1 {
    font-size: 24px !important;
  }

  .profile-x .profile-x__eyebrow {
    padding: 4px 7px;
    font-size: 8px !important;
  }

  .profile-x .profile-x__username {
    margin-top: 4px !important;
    font-size: 11px;
  }

  .profile-x .profile-x__tagline {
    margin-top: 5px !important;
    font-size: 11px !important;
  }

  .profile-x .profile-x__bio {
    display: -webkit-box;
    max-width: none !important;
    margin-top: 5px !important;
    overflow: hidden;
    font-size: 10px !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .profile-x .profile-x__actions {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px !important;
  }

  .profile-x .profile-x__actions :where(a, button) {
    width: 100%;
    min-height: 38px !important;
    padding: 7px 8px !important;
    overflow: hidden;
    font-size: 10px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-x .profile-x__interests,
  .profile-x .profile-x__stats,
  .profile-x .profile-x__modules,
  .profile-x .profile-x__banner {
    width: calc(100% - 16px);
  }

  .profile-x .profile-x__interests {
    margin-top: 8px !important;
    padding: 10px !important;
  }

  .profile-x .profile-x__interests > div:first-child span {
    display: none;
  }

  .profile-x .profile-x__interest-chips {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .profile-x .profile-x__interest-chips::-webkit-scrollbar {
    display: none;
  }

  .profile-x .profile-x__interest-chips span {
    flex: 0 0 auto;
  }

  .profile-x .profile-x__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .profile-x .profile-x__stats > * {
    min-height: 62px !important;
    padding: 9px !important;
  }

  .profile-x .profile-x__stats strong {
    font-size: 17px !important;
  }

  .profile-x .profile-x__modules {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px !important;
  }

  .profile-x .profile-x__module {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 14px !important;
  }

  .profile-x .profile-x__favorites {
    display: flex;
    grid-template-columns: none;
    gap: 10px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .profile-x .profile-x__favorites::-webkit-scrollbar {
    display: none;
  }

  .profile-x .profile-x__favorites > a,
  .profile-x .profile-x__favorites > div {
    flex: 0 0 min(78vw, 300px);
    min-height: 138px;
    scroll-snap-align: start;
  }
}


/* Approved profile composition: tighten hero, build an editorial featured band,
   and visually unify the public detail deck beneath the profile. */
.profile-x .profile-x__cover {
  height: clamp(230px, 26vw, 350px) !important;
  margin-top: 8px !important;
}

.profile-x .profile-x__identity {
  width: min(1320px, calc(100% - 72px)) !important;
  margin-top: -72px !important;
  padding: 20px 22px !important;
}

.profile-x .profile-x__avatar {
  width: 128px !important;
  height: 128px !important;
}

.profile-x .profile-x__identity-copy h1 {
  font-size: clamp(30px, 3vw, 44px) !important;
}

.profile-x .profile-x__stats {
  margin-top: 12px !important;
}

.profile-x .profile-x__featured {
  position: relative;
  z-index: 3;
  width: min(1320px, calc(100% - 72px));
  margin: 18px auto 0;
}

.profile-x .profile-x__featured-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 24px;
  margin-bottom: 12px;
}

.profile-x .profile-x__featured-heading span {
  color: var(--px-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.profile-x .profile-x__featured-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1;
  letter-spacing: -.035em;
}

.profile-x .profile-x__featured-heading small {
  color: var(--px-muted);
  font-size: 12px;
  line-height: 1.5;
}

.profile-x .profile-x__featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-x .profile-x__featured-card {
  display: grid;
  min-height: 168px;
  align-content: end;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--px-line-soft);
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--px-accent) 4%, transparent), color-mix(in srgb, var(--px-bg) 72%, transparent)),
    var(--px-glass);
  color: var(--px-text);
  text-decoration: none;
  box-shadow: var(--px-shadow-md);
  backdrop-filter: blur(20px) saturate(126%);
  -webkit-backdrop-filter: blur(20px) saturate(126%);
}

.profile-x .profile-x__featured-card span {
  color: var(--px-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.profile-x .profile-x__featured-card strong {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.05;
}

.profile-x .profile-x__featured-card p {
  margin: 0;
  color: var(--px-muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-x .profile-x__featured-card b {
  margin-top: 6px;
  color: var(--px-accent);
  font-size: 11px;
}

.profile-x .profile-x__modules--marketplace {
  width: min(1320px, calc(100% - 72px));
  margin: 16px auto 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px !important;
}

.profile-x .profile-x__modules--marketplace > .profile-x__module {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 220px !important;
  margin: 0 !important;
  padding: 18px !important;
}

.profile-x .profile-x__modules--marketplace > .profile-x__module--posts,
.profile-x .profile-x__modules--marketplace > .profile-x__module--activity {
  display: grid !important;
  align-content: end !important;
}

.profile-x .profile-x__modules--marketplace .profile-x__stores {
  margin-top: 10px;
}

.profile-detail-deck {
  position: relative;
  z-index: 4;
  margin-top: 0 !important;
  padding-top: 24px !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--profile-background, #080808) 72%, transparent), var(--profile-background, #080808) 28%),
    transparent !important;
}

.profile-detail-deck .mc-section-inner {
  width: min(1320px, calc(100% - 72px)) !important;
}

.profile-public-tabs {
  position: sticky;
  top: 82px;
  z-index: 12;
  gap: 0 !important;
  margin: 0 0 18px !important;
  padding: 6px 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--profile-border, #3b3b3b) 58%, transparent);
  background: color-mix(in srgb, var(--profile-background, #080808) 78%, transparent);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.profile-public-tabs .mc-chip {
  min-height: 42px;
  padding: 0 16px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--profile-muted, #9ca3af) !important;
  box-shadow: inset 0 -2px transparent;
}

.profile-public-tabs .mc-chip.is-active {
  color: var(--profile-text, #fff) !important;
  box-shadow: inset 0 -2px var(--profile-accent, #ffb000);
}

.profile-public-about {
  display: grid;
  gap: 14px;
}

.profile-about-card,
.profile-links-card,
.profile-private-tools {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--profile-border, #353535) 68%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--profile-background, #080808) 66%, transparent);
  box-shadow: 0 16px 42px rgb(0 0 0 / 24%);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.profile-about-card {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
}

.profile-about-kicker {
  color: var(--profile-accent, #ffb000);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.profile-about-card h3,
.profile-links-card h3,
.profile-private-tools h3 {
  margin: 6px 0 8px;
  color: var(--profile-text, #fff);
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -.025em;
}

.profile-about-card p,
.profile-private-tools p {
  margin: 0;
  color: var(--profile-muted, #a1a1aa);
  line-height: 1.55;
}

.profile-about-meta {
  display: grid;
  gap: 8px;
}

.profile-about-meta > div {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--profile-border, #353535) 52%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--profile-background, #080808) 34%, transparent);
}

.profile-about-meta span {
  color: var(--profile-muted, #a1a1aa);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-about-meta strong,
.profile-about-meta a {
  color: var(--profile-text, #fff);
  text-decoration: none;
}

.profile-links-row,
.profile-private-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-links-row a,
.profile-private-links a {
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--profile-border, #353535) 62%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--profile-background, #080808) 36%, transparent);
  color: var(--profile-text, #fff);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.profile-private-tools {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

@media (max-width: 900px) {
  .profile-x .profile-x__cover {
    height: clamp(220px, 34vw, 300px) !important;
  }

  .profile-x .profile-x__identity,
  .profile-x .profile-x__featured,
  .profile-x .profile-x__modules--marketplace,
  .profile-detail-deck .mc-section-inner {
    width: calc(100% - 28px) !important;
  }

  .profile-x .profile-x__featured-grid,
  .profile-x .profile-x__modules--marketplace {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .profile-about-card,
  .profile-private-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .profile-x .profile-x__cover {
    height: 178px !important;
  }

  .profile-x .profile-x__identity {
    width: calc(100% - 12px) !important;
    margin-top: -38px !important;
  }

  .profile-x .profile-x__featured,
  .profile-x .profile-x__modules--marketplace,
  .profile-detail-deck .mc-section-inner {
    width: calc(100% - 16px) !important;
  }

  .profile-x .profile-x__featured-heading {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .profile-x .profile-x__featured-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .profile-x .profile-x__featured-grid::-webkit-scrollbar {
    display: none;
  }

  .profile-x .profile-x__featured-card {
    flex: 0 0 min(82vw, 310px);
    min-height: 154px;
    scroll-snap-align: start;
  }

  .profile-x .profile-x__modules--marketplace {
    grid-template-columns: 1fr !important;
  }

  .profile-x .profile-x__modules--marketplace > .profile-x__module {
    min-height: 160px !important;
  }

  .profile-public-tabs {
    top: 64px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .profile-public-tabs::-webkit-scrollbar {
    display: none;
  }

  .profile-public-tabs .mc-chip {
    flex: 0 0 auto;
    padding-inline: 12px;
  }

  .profile-about-card,
  .profile-links-card,
  .profile-private-tools {
    padding: 16px;
    border-radius: 16px;
  }
}


/* Profile readability pass: labels, headings and support copy must never visually run together. */
.profile-x .profile-x__module {
  display: grid !important;
  align-content: start !important;
  row-gap: 8px !important;
}

.profile-x .profile-x__module > span,
.profile-x .profile-x__module > strong,
.profile-x .profile-x__module > small,
.profile-x .profile-x__module > p,
.profile-x .profile-x__module h2 {
  margin: 0 !important;
}

.profile-x .profile-x__module > span {
  line-height: 1.25 !important;
}

.profile-x .profile-x__module > strong,
.profile-x .profile-x__module h2 {
  line-height: 1.14 !important;
}

.profile-x .profile-x__module > small,
.profile-x .profile-x__module > p {
  line-height: 1.52 !important;
}

.profile-x .profile-x__module--posts,
.profile-x .profile-x__module--activity {
  align-content: end !important;
  row-gap: 9px !important;
}

.profile-x .profile-x__module--stores {
  row-gap: 10px !important;
}

@media (max-width: 560px) {
  .profile-x .profile-x__module {
    row-gap: 7px !important;
  }
}


/* Approved profile mockup parity. This is the visual contract, not a loose theme. */
.profile-x {
  --profile-shell-width: min(1380px, calc(100% - 40px));
  --profile-content-width: min(1280px, calc(100% - 80px));
  padding: 18px 0 34px !important;
  background: transparent !important;
}

.profile-x .profile-x__background-art {
  position: fixed !important;
  inset: 0 !important;
  z-index: -2 !important;
  opacity: 1 !important;
  background-position: center center !important;
  background-size: cover !important;
}

.profile-x::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(3 5 8 / 18%), rgb(3 5 8 / 52%) 58%, rgb(3 5 8 / 78%)),
    radial-gradient(circle at 50% 12%, color-mix(in srgb, var(--px-accent) 8%, transparent), transparent 38rem);
}

.profile-x .profile-x__cover {
  width: var(--profile-shell-width) !important;
  height: clamp(250px, 27vw, 360px) !important;
  margin: 0 auto !important;
  padding: 18px 20px !important;
  border: 1px solid color-mix(in srgb, var(--px-line) 52%, transparent) !important;
  border-radius: 20px !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: 0 24px 64px rgb(0 0 0 / 34%) !important;
}

.profile-x .profile-x__identity {
  width: var(--profile-content-width) !important;
  min-height: 178px;
  margin: -58px auto 0 !important;
  padding: 18px 20px !important;
  grid-template-columns: 136px minmax(0, 1fr) minmax(330px, 410px) !important;
  align-items: center !important;
  gap: 22px !important;
  border: 1px solid color-mix(in srgb, var(--px-line) 58%, transparent) !important;
  border-radius: 18px !important;
  background: color-mix(in srgb, var(--px-panel) 72%, transparent) !important;
  box-shadow: 0 24px 68px rgb(0 0 0 / 38%) !important;
  backdrop-filter: blur(24px) saturate(132%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(132%) !important;
}

.profile-x .profile-x__avatar {
  width: 132px !important;
  height: 132px !important;
  border: 3px solid color-mix(in srgb, var(--px-accent) 74%, #fff 12%) !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--px-panel) 88%, transparent) !important;
  box-shadow: 0 16px 42px rgb(0 0 0 / 44%), 0 0 0 5px rgb(255 255 255 / 4%) !important;
}

.profile-x .profile-x__avatar img {
  border-radius: 50% !important;
}

.profile-x .profile-x__identity-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-x .profile-x__identity-copy h1 {
  margin: 0 !important;
  font-size: clamp(30px, 3.1vw, 46px) !important;
  line-height: .98 !important;
  letter-spacing: -.042em !important;
}

.profile-x .profile-x__eyebrow {
  margin: 0 !important;
  padding: 5px 9px !important;
  border: 1px solid color-mix(in srgb, var(--px-accent) 48%, transparent) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--px-accent) 13%, transparent) !important;
  font-size: 9px !important;
  letter-spacing: .09em !important;
}

.profile-x .profile-x__username {
  margin: 6px 0 0 !important;
  color: color-mix(in srgb, var(--px-text) 70%, var(--px-muted)) !important;
  font-size: 14px !important;
}

.profile-x .profile-x__tagline {
  margin: 8px 0 0 !important;
  font-size: 14px !important;
  font-weight: 720 !important;
  line-height: 1.45 !important;
}

.profile-x .profile-x__bio {
  max-width: 720px !important;
  margin: 7px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.52 !important;
}

.profile-x .profile-x__badges {
  margin-top: 8px !important;
}

.profile-x .profile-x__identity-side {
  min-width: 0;
  display: grid;
  align-self: stretch;
  align-content: space-between;
  gap: 18px;
}

.profile-x .profile-x__actions {
  justify-content: flex-end !important;
  align-self: start !important;
  gap: 8px !important;
}

.profile-x .profile-x__actions :where(a, button, .mc-btn) {
  min-height: 40px !important;
  padding: 8px 14px !important;
  border-radius: 11px !important;
  background: color-mix(in srgb, var(--px-bg) 56%, transparent) !important;
  border-color: color-mix(in srgb, var(--px-line) 56%, transparent) !important;
  box-shadow: none !important;
}

.profile-x .profile-x__stats {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)) !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.profile-x .profile-x__stats > * {
  min-height: 52px !important;
  padding: 4px 12px !important;
  display: grid !important;
  place-content: center !important;
  border: 0 !important;
  border-right: 1px solid color-mix(in srgb, var(--px-line) 44%, transparent) !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: center !important;
  box-shadow: none !important;
}

.profile-x .profile-x__stats > *:last-child {
  border-right: 0 !important;
}

.profile-x .profile-x__stats strong {
  font-size: 18px !important;
  line-height: 1 !important;
}

.profile-x .profile-x__stats span {
  margin-top: 5px !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
}

.profile-x .profile-x__stats small {
  display: none !important;
}

.profile-x .profile-x__tabs {
  position: relative;
  z-index: 5;
  width: var(--profile-content-width);
  margin: 0 auto;
  padding: 0 8px;
  border-top: 1px solid color-mix(in srgb, var(--px-line) 38%, transparent);
  background: color-mix(in srgb, var(--px-panel) 56%, transparent);
  backdrop-filter: blur(18px) saturate(126%);
  -webkit-backdrop-filter: blur(18px) saturate(126%);
}

.profile-x .profile-public-tabs--integrated {
  position: static !important;
  top: auto !important;
  display: flex !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-x .profile-public-tabs--integrated::-webkit-scrollbar {
  display: none;
}

.profile-x .profile-public-tabs--integrated .mc-chip {
  min-height: 46px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--px-muted) !important;
  box-shadow: inset 0 -2px transparent !important;
  font-size: 12px !important;
  font-weight: 760 !important;
}

.profile-x .profile-public-tabs--integrated .mc-chip.is-active {
  color: var(--px-text) !important;
  box-shadow: inset 0 -2px var(--px-accent) !important;
}

.profile-x .profile-x__interests {
  width: var(--profile-content-width) !important;
  margin: 12px auto 0 !important;
  padding: 11px 14px !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 18px !important;
  border-radius: 14px !important;
  background: color-mix(in srgb, var(--px-panel) 60%, transparent) !important;
}

.profile-x .profile-x__interests > div:first-child {
  display: grid !important;
  justify-content: start !important;
  gap: 2px !important;
  min-width: 150px;
}

.profile-x .profile-x__interest-chips {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-x .profile-x__interest-chips::-webkit-scrollbar {
  display: none;
}

.profile-x .profile-x__interest-chips span {
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--px-bg) 44%, transparent) !important;
}

.profile-x .profile-x__featured {
  width: var(--profile-content-width) !important;
  margin: 18px auto 0 !important;
}

.profile-x .profile-x__featured-heading {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px) !important;
  margin-bottom: 10px !important;
}

.profile-x .profile-x__featured-heading h2 {
  font-size: clamp(24px, 2vw, 31px) !important;
}

.profile-x .profile-x__featured-grid {
  gap: 12px !important;
}

.profile-x .profile-x__featured-card {
  position: relative;
  min-height: 188px !important;
  overflow: hidden;
  isolation: isolate;
  padding: 18px !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 10%) 18%, rgb(0 0 0 / 76%) 100%),
    var(--px-featured-image, linear-gradient(135deg, color-mix(in srgb, var(--px-panel2) 86%, var(--px-accent) 14%), var(--px-panel))) !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: 0 14px 36px rgb(0 0 0 / 28%) !important;
  transform: translateZ(0);
}

.profile-x .profile-x__featured-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, color-mix(in srgb, var(--px-accent) 8%, transparent), transparent 52%);
}

.profile-x .profile-x__featured-card span {
  text-shadow: 0 2px 12px rgb(0 0 0 / 65%);
}

.profile-x .profile-x__featured-card strong {
  max-width: 24ch;
  color: #fff !important;
  font-size: clamp(20px, 1.65vw, 25px) !important;
  text-shadow: 0 2px 16px rgb(0 0 0 / 70%);
}

.profile-x .profile-x__featured-card p {
  max-width: 40ch;
  color: rgb(255 255 255 / 78%) !important;
  text-shadow: 0 2px 12px rgb(0 0 0 / 70%);
}

.profile-x .profile-x__featured-card b {
  color: color-mix(in srgb, var(--px-accent) 84%, white 16%) !important;
}

.profile-x .profile-x__modules--marketplace {
  width: var(--profile-content-width) !important;
  margin: 14px auto 0 !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
}

.profile-x .profile-x__modules--marketplace > .profile-x__module {
  grid-column: span 6;
  min-height: 170px !important;
  background: color-mix(in srgb, var(--px-panel) 62%, transparent) !important;
}

.profile-detail-deck {
  width: 100%;
  padding: 16px 0 36px !important;
  background: transparent !important;
}

.profile-detail-deck .mc-section-inner {
  width: var(--profile-content-width, min(1280px, calc(100% - 80px))) !important;
}

.profile-detail-deck .mc-card,
.profile-detail-deck article {
  border-color: color-mix(in srgb, var(--profile-border, #72560d) 54%, transparent) !important;
  background: color-mix(in srgb, var(--profile-surface, #171820) 68%, transparent) !important;
  box-shadow: 0 14px 38px rgb(0 0 0 / 24%) !important;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.profile-public-about {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: start;
}

.profile-about-card,
.profile-links-card {
  min-height: 180px;
  background: color-mix(in srgb, var(--profile-surface, #171820) 66%, transparent) !important;
}

.profile-private-tools {
  display: none !important;
}

@media (max-width: 1000px) {
  .profile-x {
    --profile-shell-width: calc(100% - 22px);
    --profile-content-width: calc(100% - 34px);
  }

  .profile-x .profile-x__identity {
    grid-template-columns: 112px minmax(0, 1fr) !important;
  }

  .profile-x .profile-x__identity-side {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    align-items: center;
  }

  .profile-x .profile-x__avatar {
    width: 110px !important;
    height: 110px !important;
  }
}

@media (max-width: 640px) {
  .profile-x {
    --profile-shell-width: 100%;
    --profile-content-width: calc(100% - 16px);
    padding-top: 0 !important;
  }

  .profile-x .profile-x__cover {
    height: 200px !important;
    border-radius: 0 0 20px 20px !important;
    border-inline: 0 !important;
    border-top: 0 !important;
  }

  .profile-x .profile-x__identity {
    min-height: 0;
    margin-top: -42px !important;
    padding: 12px !important;
    grid-template-columns: 84px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .profile-x .profile-x__avatar {
    width: 84px !important;
    height: 84px !important;
  }

  .profile-x .profile-x__identity-copy h1 {
    font-size: 25px !important;
  }

  .profile-x .profile-x__identity-title {
    gap: 6px;
  }

  .profile-x .profile-x__identity-side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .profile-x .profile-x__actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch !important;
  }

  .profile-x .profile-x__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    padding-top: 9px !important;
    border-top: 1px solid color-mix(in srgb, var(--px-line) 38%, transparent) !important;
  }

  .profile-x .profile-x__stats > * {
    padding: 3px 5px !important;
  }

  .profile-x .profile-x__stats strong {
    font-size: 15px !important;
  }

  .profile-x .profile-x__stats span {
    font-size: 8px !important;
  }

  .profile-x .profile-x__tabs {
    padding: 0 !important;
  }

  .profile-x .profile-public-tabs--integrated .mc-chip {
    min-height: 42px !important;
    padding-inline: 11px !important;
    font-size: 10px !important;
  }

  .profile-x .profile-x__interests {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .profile-x .profile-x__featured-heading {
    grid-template-columns: 1fr !important;
  }

  .profile-x .profile-x__featured-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .profile-x .profile-x__featured-card {
    flex: 0 0 min(84vw, 320px);
    min-height: 174px !important;
    scroll-snap-align: start;
  }

  .profile-x .profile-x__modules--marketplace {
    grid-template-columns: 1fr !important;
  }

  .profile-x .profile-x__modules--marketplace > .profile-x__module {
    grid-column: auto;
  }

  .profile-public-about {
    grid-template-columns: 1fr;
  }

  .profile-detail-deck .mc-section-inner {
    width: calc(100% - 16px) !important;
  }
}


/* Mockup parity pass: compact Featured heading and social-style latest feed. */
.profile-x .profile-x__featured-heading {
  display: block !important;
  margin-bottom: 12px !important;
}

.profile-x .profile-x__featured-heading > div {
  display: grid;
  gap: 4px;
}

.profile-x .profile-x__featured-heading small {
  display: none !important;
}

.profile-detail-deck .post-feed--profile {
  width: 100%;
}

.profile-detail-deck .post-feed--profile > div:first-child {
  margin-bottom: 10px !important;
}

.profile-detail-deck .post-feed--profile > div:first-child h3 {
  font-size: 15px !important;
  font-weight: 850 !important;
  letter-spacing: -.015em;
}

.profile-detail-deck .post-feed--profile > div:first-child p:empty {
  display: none !important;
}

.profile-detail-deck .post-feed--profile > .space-y-4 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px !important;
}

.profile-detail-deck .post-feed__card--profile {
  min-width: 0;
  min-height: 0;
  padding: 14px !important;
  border-radius: 16px !important;
  background: color-mix(in srgb, var(--profile-surface, #171820) 66%, transparent) !important;
  box-shadow: 0 14px 34px rgb(0 0 0 / 24%) !important;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.profile-detail-deck .post-feed__card--profile > p {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.profile-detail-deck .post-feed__card--profile .post-feed-media-frame {
  margin-top: 10px !important;
  max-height: 220px !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 12px !important;
}

.profile-detail-deck .post-feed__card--profile .post-feed-media-frame img,
.profile-detail-deck .post-feed__card--profile .post-feed-media-frame video {
  object-fit: cover !important;
}

@media (max-width: 900px) {
  .profile-detail-deck .post-feed--profile > .space-y-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .profile-detail-deck .post-feed--profile > .space-y-4 {
    display: flex !important;
    overflow-x: auto;
    gap: 10px !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .profile-detail-deck .post-feed--profile > .space-y-4::-webkit-scrollbar {
    display: none;
  }

  .profile-detail-deck .post-feed__card--profile {
    flex: 0 0 min(86vw, 330px);
    scroll-snap-align: start;
  }
}


/* Final mockup parity: two real featured picks fill the row; Latest is one lead post. */
.profile-x .profile-x__featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}

.profile-detail-deck .post-feed--profile > .space-y-4 {
  grid-template-columns: minmax(0, 1fr) !important;
}

.profile-detail-deck .post-feed__card--profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
}

.profile-detail-deck .post-feed__card--profile .post-feed-media-frame {
  max-height: 300px !important;
}

@media (max-width: 560px) {
  .profile-detail-deck .post-feed--profile > .space-y-4 {
    display: block !important;
    overflow: visible;
  }

  .profile-detail-deck .post-feed__card--profile {
    width: 100%;
  }
}


/* Desktop marketplace rail from the approved profile mockup. */
.profile-x .profile-x__content-grid {
  width: var(--profile-content-width);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  align-items: start;
  gap: 14px;
}

.profile-x .profile-x__content-main {
  min-width: 0;
}

.profile-x .profile-x__content-main .profile-x__featured,
.profile-x .profile-x__content-main .profile-x__modules--marketplace {
  width: 100% !important;
  margin-inline: 0 !important;
}

.profile-x .profile-x__marketplace-rail {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 88px;
}

.profile-x .profile-x__rail-card {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--px-line) 58%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--px-panel) 66%, transparent);
  box-shadow: 0 14px 34px rgb(0 0 0 / 24%);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.profile-x .profile-x__rail-card > span {
  color: var(--px-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.profile-x .profile-x__snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-x .profile-x__snapshot-grid > div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--px-line) 44%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--px-bg) 32%, transparent);
}

.profile-x .profile-x__snapshot-grid strong {
  font-size: 19px;
  line-height: 1;
}

.profile-x .profile-x__snapshot-grid small,
.profile-x .profile-x__rail-card > small {
  color: var(--px-muted);
  font-size: 10px;
  line-height: 1.4;
}

.profile-x .profile-x__role-value {
  font-size: 17px;
  line-height: 1.15;
}

.profile-x .profile-x__rail-card.profile-x__interests {
  width: auto !important;
  margin: 0 !important;
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
}

.profile-x .profile-x__rail-card.profile-x__interests > div:first-child {
  min-width: 0;
}

.profile-x .profile-x__rail-card.profile-x__interests .profile-x__interest-chips {
  flex-wrap: wrap !important;
  overflow: visible;
}

@media (max-width: 980px) {
  .profile-x .profile-x__content-grid {
    grid-template-columns: 1fr;
  }

  .profile-x .profile-x__marketplace-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-x .profile-x__rail-card.profile-x__interests {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .profile-x .profile-x__content-grid {
    width: calc(100% - 16px);
    margin-top: 12px;
    gap: 10px;
  }

  .profile-x .profile-x__marketplace-rail {
    grid-template-columns: 1fr;
  }

  .profile-x .profile-x__rail-card.profile-x__interests {
    grid-column: auto;
  }
}
