:root {
  --profile-accent: var(--ws-accent, #8a2be2);
  --profile-accent-soft: var(--ws-accent-soft, rgba(138, 43, 226, 0.14));
}

.profile-account-page {
  background:
    radial-gradient(circle at top right, var(--profile-accent-soft), transparent 36%),
    radial-gradient(circle at top left, color-mix(in srgb, var(--profile-accent) 12%, transparent), transparent 30%),
    linear-gradient(
      180deg,
      var(--ws-bg-page, #120f18) 0%,
      var(--ws-bg-shell, #101014) 48%,
      var(--ws-bg-page, #0d0d10) 100%
    );
  color: var(--ws-text-primary, #f3f3f5);
}

.profile-account-main {
  padding:
    clamp(7rem, 9vw, 8.5rem)
    clamp(1rem, 2.8vw, 1.75rem)
    clamp(3rem, 4.8vw, 4rem);
}

.profile-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.profile-loading,
.profile-error {
  padding: 2rem;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 1.5rem;
  background: var(--ws-bg-card, rgba(26, 26, 27, 0.88));
  color: var(--ws-text-secondary, #e5e7eb);
  box-shadow: var(--ws-shadow-card, 0 18px 45px rgba(0, 0, 0, 0.24));
}

.profile-stack {
  display: grid;
  gap: clamp(1.15rem, 2vw, 1.5rem);
}

.profile-hero,
.profile-panel {
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 1.5rem;
  background: var(--ws-bg-card, linear-gradient(180deg, rgba(28, 28, 34, 0.94), rgba(19, 19, 23, 0.92)));
  color: var(--ws-text-primary, #f3f3f5);
  box-shadow: var(--ws-shadow-card, 0 18px 45px rgba(0, 0, 0, 0.24));
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.profile-panel:hover {
  border-color: rgba(138, 43, 226, 0.34);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.26);
}

.profile-hero {
  padding: clamp(1.2rem, 2.4vw, 2rem);
  overflow: hidden;
  position: relative;
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, transparent 0%, rgba(255, 255, 255, 0.03) 38%, transparent 64%),
    radial-gradient(circle at top right, rgba(138, 43, 226, 0.18), transparent 40%),
    radial-gradient(circle at bottom left, rgba(56, 24, 92, 0.2), transparent 34%);
  pointer-events: none;
}

.profile-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.95fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.profile-identity {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}

.profile-avatar {
  width: clamp(84px, 12vw, 112px);
  height: clamp(84px, 12vw, 112px);
  object-fit: cover;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.profile-handle {
  display: inline-flex;
  width: fit-content;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--ws-ui-chip-bg, rgba(255, 255, 255, 0.04));
  color: var(--ws-text-muted, #c5c5d1);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-name {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  font-weight: 800;
  color: var(--ws-text-primary, #f3f3f5);
}

.profile-role {
  margin: 0.35rem 0 0;
  color: var(--ws-accent-text, #b88eff);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
}

.profile-tagline,
.profile-bio {
  margin: 0;
  color: var(--ws-text-secondary, #d4d4da);
  line-height: 1.75;
  word-break: break-word;
}

.profile-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.profile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.profile-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.92rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.profile-action-btn.is-primary {
  color: var(--ws-text-inverse, #ffffff);
  background: linear-gradient(135deg, var(--profile-accent), color-mix(in srgb, var(--profile-accent) 70%, #2d0f49));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--profile-accent) 30%, transparent);
}

.profile-action-btn.is-ghost {
  color: var(--ws-text-primary, #f4f4f8);
  border-color: var(--ws-border-subtle, rgba(255, 255, 255, 0.14));
  background: var(--ws-ui-chip-bg, rgba(255, 255, 255, 0.03));
}

.profile-action-btn:hover {
  transform: translateY(-1px);
}

.profile-action-btn.is-primary:hover {
  filter: brightness(1.06);
}

.profile-action-btn.is-ghost:hover {
  border-color: rgba(138, 43, 226, 0.48);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
  background: var(--ws-ui-chip-bg, rgba(255, 255, 255, 0.03));
  color: var(--ws-text-primary, #f1f1f5);
  font-size: 0.84rem;
  font-weight: 600;
}

.profile-spotlight {
  position: relative;
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
  background: var(--ws-bg-card, rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(12px);
  min-width: 0;
}

.profile-status {
  display: inline-flex;
  width: fit-content;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: var(--profile-accent-soft);
  color: var(--ws-accent-text, #f2e9ff);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-meta {
  display: grid;
  gap: 0.95rem;
}

.profile-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.profile-kpi-card {
  display: grid;
  gap: 0.24rem;
  padding: 0.6rem 0.65rem;
  border-radius: 0.8rem;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
  background: var(--ws-bg-surface-muted, rgba(255, 255, 255, 0.03));
}

.profile-kpi-label {
  color: var(--ws-text-muted, #acacb8);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-kpi-value {
  color: var(--ws-text-primary, #ffffff);
  font-size: 1.12rem;
  line-height: 1;
  font-weight: 800;
}

.profile-meta-item,
.profile-stat {
  display: grid;
  gap: 0.25rem;
}

.profile-meta-label,
.profile-stat-label {
  color: var(--ws-text-muted, #9f9fac);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-meta-value,
.profile-stat-value {
  color: var(--ws-text-primary, #f7f7f9);
  font-size: 0.98rem;
  font-weight: 600;
}

.profile-grid {
  display: grid;
  gap: 1.5rem;
}

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

.profile-panel {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.profile-subsection {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.profile-subsection-label {
  margin: 0;
  color: var(--ws-text-muted, #a7a7b4);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-section-heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ws-text-primary, #ffffff);
}

.profile-section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0 0 1rem;
}

.profile-section-heading-stack {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.profile-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.26rem 0.56rem;
  border-radius: 999px;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.1));
  background: var(--ws-ui-chip-bg, rgba(255, 255, 255, 0.03));
  color: var(--ws-text-muted, #d6d6dd);
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-section-link {
  color: var(--ws-accent-text, #b88eff);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.profile-section-link:hover {
  color: var(--ws-accent-hover, #cfb2ff);
}

.profile-list,
.profile-portfolio-grid {
  display: grid;
  gap: 1rem;
}

.profile-list-card,
.profile-contact-card,
.profile-work-card {
  border-radius: 1.15rem;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.07));
  background: var(--ws-bg-card, rgba(255, 255, 255, 0.025));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-list-card:hover,
.profile-contact-card:hover,
.profile-work-card:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 43, 226, 0.32);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.profile-list-card,
.profile-contact-card {
  padding: 1rem;
}

.profile-list-title,
.profile-work-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ws-text-primary, #ffffff);
}

.profile-list-body,
.profile-work-copy {
  margin: 0.5rem 0 0;
  color: var(--ws-text-secondary, #d0d0d8);
  line-height: 1.7;
}

.profile-contact-label,
.profile-work-meta {
  margin: 0;
  color: var(--ws-text-muted, #9f9fac);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-contact-value {
  margin-top: 0.4rem;
  color: var(--ws-text-primary, #f3f3f7);
  font-weight: 600;
}

.profile-contact-link,
.profile-work-link {
  color: var(--ws-accent-text, #b88eff);
  text-decoration: none;
}

.profile-contact-link:hover,
.profile-work-link:hover {
  color: var(--ws-accent-hover, #cfb2ff);
}

.profile-work-card {
  overflow: hidden;
}

.profile-work-surface {
  cursor: pointer;
}

.profile-work-surface:focus-visible {
  outline: 2px solid rgba(184, 142, 255, 0.85);
  outline-offset: 3px;
}

.profile-portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.profile-works-grid {
  align-items: start;
}

.profile-work-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.18), rgba(255, 255, 255, 0.04));
}

.profile-work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-work-body {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
}

.profile-work-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.15rem;
  font-weight: 700;
}

.profile-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.15rem;
}

.profile-document-list {
  display: grid;
  gap: 0;
}

.profile-document-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 184px);
  gap: 1rem;
  align-items: start;
  padding: 1.05rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-document-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.profile-document-item:last-child {
  padding-bottom: 0;
}

.profile-document-item.is-text-only {
  grid-template-columns: minmax(0, 1fr);
}

.profile-document-copy {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  min-width: 0;
}

.profile-document-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.profile-document-kind {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--ws-glass-border, rgba(184, 142, 255, 0.18));
  background: var(--ws-accent-soft, rgba(184, 142, 255, 0.08));
  color: var(--ws-accent-text, #e7d6ff);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.profile-document-date {
  margin: 0;
  color: var(--ws-text-muted, #b9b9c3);
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-document-title {
  margin: 0;
  font-size: clamp(1.05rem, 0.98rem + 0.24vw, 1.22rem);
  line-height: 1.32;
  font-weight: 800;
  color: var(--ws-text-primary, #ffffff);
}

.profile-document-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.profile-document-title a:hover {
  color: var(--ws-accent-hover, #cfb2ff);
}

.profile-document-title a:focus-visible,
.profile-document-link:focus-visible,
.profile-document-media:focus-visible {
  outline: 2px solid rgba(184, 142, 255, 0.88);
  outline-offset: 3px;
}

.profile-document-summary {
  margin: 0;
  max-width: 68ch;
  color: var(--ws-text-secondary, #d0d0d8);
  line-height: 1.78;
}

.profile-document-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.42rem;
  color: var(--ws-accent-text, #b88eff);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.profile-document-link:hover {
  color: var(--ws-accent-hover, #cfb2ff);
}

.profile-document-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.22), rgba(255, 255, 255, 0.04));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}

.profile-document-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.profile-document-media:hover img {
  transform: scale(1.03);
}

.profile-content-card {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.profile-content-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.24), rgba(255, 255, 255, 0.04));
}

.profile-content-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-content-media.is-placeholder {
  min-height: 140px;
}

.profile-content-body {
  display: grid;
  gap: 0.6rem;
  padding: 0.95rem;
}

.profile-content-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 228px), 1fr));
  align-items: start;
}

.profile-list-body.is-compact {
  min-height: 0;
}

.profile-content-date {
  margin: 0;
  color: var(--ws-text-muted, #b9b9c3);
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.56rem;
  border-radius: 999px;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.1));
  background: var(--ws-ui-chip-bg, rgba(255, 255, 255, 0.03));
  color: var(--ws-text-secondary, #dbdbe2);
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-empty-state {
  margin: 0;
  color: var(--ws-text-muted, #9f9fac);
  line-height: 1.7;
}

.profile-account-footer {
  width: min(1160px, calc(100% - clamp(1.5rem, 4vw, 3rem)));
  margin: 0 auto;
}

.profile-stack--social {
  gap: 1.25rem;
}

.profile-hero--social {
  padding: clamp(1.15rem, 2vw, 1.8rem);
}

.profile-social-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(112px, 184px) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.profile-social-avatar-shell {
  display: grid;
  justify-items: center;
}

.profile-social-avatar-ring {
  display: inline-grid;
  place-items: center;
  width: clamp(110px, 18vw, 176px);
  aspect-ratio: 1;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 142, 255, 0.28);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(145deg, rgba(170, 126, 255, 0.98), rgba(120, 57, 214, 0.96) 44%, rgba(52, 27, 92, 0.96) 76%, rgba(18, 18, 24, 0.98) 100%);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.profile-avatar--social {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 4px solid #121217;
}

.profile-social-main,
.profile-social-bio {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.profile-social-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-social-heading {
  display: grid;
  gap: 0.25rem;
}

.profile-name--social {
  font-size: clamp(2.15rem, 5vw, 3.8rem);
  line-height: 0.96;
}

.profile-role--social {
  margin: 0;
}

.profile-social-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.profile-social-stat {
  display: grid;
  gap: 0.18rem;
  min-width: 84px;
}

.profile-social-stat strong {
  color: var(--ws-text-primary, #ffffff);
  font-size: 1.12rem;
  font-weight: 800;
}

.profile-social-stat span {
  color: var(--ws-text-muted, #b7b7c1);
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-hero--social .profile-action-row {
  margin-top: 0;
}

.profile-hero--social .profile-action-btn {
  min-width: 10rem;
  padding: 0.75rem 1rem;
  border-radius: 0.95rem;
}

.profile-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  min-width: 0;
}

.profile-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
  background: var(--ws-ui-chip-bg, rgba(255, 255, 255, 0.03));
  color: var(--ws-text-primary, #f4f4f8);
  text-decoration: none;
  appearance: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.profile-inline-link:hover {
  border-color: rgba(138, 43, 226, 0.42);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.profile-inline-link.is-copied {
  border-color: rgba(138, 43, 226, 0.6);
  background: rgba(138, 43, 226, 0.14);
}

.profile-inline-link__label {
  color: var(--ws-accent-text, #b88eff);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-inline-link__value {
  font-weight: 700;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.profile-info-card {
  padding: 1rem;
  border-radius: 1.2rem;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.08));
  background: var(--ws-bg-card, rgba(255, 255, 255, 0.03));
  display: grid;
  gap: 0.9rem;
}

.profile-info-card__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.profile-info-card__icon {
  font-size: 1.3rem;
  line-height: 1;
}

.profile-info-card__title {
  margin: 0;
  color: var(--ws-text-primary, #fdfdff);
  font-size: 1.02rem;
  font-weight: 800;
}

.profile-info-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.profile-info-list--list,
.profile-info-list--richtext {
  grid-template-columns: minmax(0, 1fr);
}

.profile-info-entry {
  display: grid;
  gap: 0.25rem;
  color: var(--ws-text-secondary, #d7d7de);
  line-height: 1.65;
}

.profile-info-entry--fact {
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid var(--ws-border-subtle, rgba(255, 255, 255, 0.06));
  background: var(--ws-bg-surface-muted, rgba(255, 255, 255, 0.02));
}

.profile-info-entry--detail strong,
.profile-info-label {
  color: var(--ws-text-primary, #ffffff);
  font-size: 0.85rem;
  font-weight: 700;
}

.profile-info-entry--richtext {
  gap: 0.55rem;
}

.profile-info-paragraph-label {
  color: var(--ws-text-primary, #ffffff);
  font-size: 0.92rem;
  font-weight: 700;
}

.profile-info-paragraph {
  margin: 0;
  color: var(--ws-text-secondary, #d7d7de);
  line-height: 1.72;
}

.profile-info-value {
  color: var(--ws-text-secondary, #ccccd6);
}

.profile-empty-state--inline {
  margin: 0;
}

.profile-panel--compact {
  padding: 1rem 1.1rem;
}

.profile-story-rail {
  display: flex;
  gap: 0.95rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.profile-story {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  width: 88px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ws-text-primary, #ffffff);
  cursor: pointer;
}

.profile-story__thumb {
  display: inline-grid;
  place-items: center;
  width: 78px;
  aspect-ratio: 1;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 142, 255, 0.24);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(145deg, rgba(154, 98, 255, 0.96), rgba(103, 47, 182, 0.94) 52%, rgba(27, 21, 43, 0.98) 100%);
}

.profile-story__thumb img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #151517;
}

.profile-story__title {
  color: var(--ws-text-secondary, #d7d7df);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.profile-panel--feed {
  padding: 0;
  overflow: hidden;
}

.profile-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-feed-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ws-text-primary, #f5f5f8);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-feed-filters {
  padding: 1rem 1.25rem 0.85rem;
}

.profile-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 0.16rem;
  background: rgba(255, 255, 255, 0.06);
}

.profile-preview-tile {
  position: relative;
  padding: 0;
  border: 0;
  background: #141416;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.profile-preview-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.profile-preview-tile:hover img,
.profile-preview-tile:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.profile-preview-tile:focus-visible {
  outline: 2px solid rgba(184, 142, 255, 0.92);
  outline-offset: -2px;
}

.profile-preview-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 0.22rem;
  padding: 0.9rem 0.8rem 0.75rem;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 11, 13, 0.78) 58%, rgba(11, 11, 13, 0.95) 100%);
}

.profile-preview-title {
  color: var(--ws-text-inverse, #ffffff);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: left;
}

.profile-preview-meta {
  color: color-mix(in srgb, var(--ws-text-inverse, #ffffff) 82%, transparent);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: left;
}

.profile-empty-state--panel {
  padding: 1.1rem 1.25rem 1.35rem;
}

@media (max-width: 1180px) {
  .profile-hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(250px, 0.9fr);
  }

  .profile-content-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .profile-hero-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-social-head {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 820px) {
  .profile-social-top,
  .profile-feed-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-inline-links {
    flex-direction: column;
  }

  .profile-inline-link {
    width: 100%;
    justify-content: space-between;
  }

  .profile-document-item {
    grid-template-columns: 1fr;
  }

  .profile-document-media {
    max-width: min(100%, 280px);
  }
}

@media (max-width: 640px) {
  .profile-account-main {
    padding: 6.75rem 1rem 3rem;
  }

  .profile-hero,
  .profile-panel {
    padding: 1rem;
    border-radius: 1.2rem;
  }

  .profile-action-row {
    gap: 0.48rem;
  }

  .profile-action-btn {
    width: 100%;
  }

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

  .profile-content-list,
  .profile-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .profile-document-item {
    gap: 0.85rem;
    padding: 0.95rem 0;
  }

  .profile-document-media {
    max-width: 100%;
  }

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

  .profile-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.1rem;
  }

  .profile-social-stat {
    min-width: 72px;
  }

  .profile-section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .profile-kpi-grid,
  .profile-preview-grid {
    grid-template-columns: 1fr;
  }

  .profile-social-stat {
    min-width: 0;
  }
}

@media (min-width: 1025px) {
  .profile-content-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .profile-info-list--grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Creator profile 2.0 */
.profile-shell {
  width: min(1440px, 100%);
}

.profile-stack--v2 {
  gap: clamp(1rem, 1.7vw, 1.45rem);
}

.profile-hero--v2 {
  border-color: rgba(184, 142, 255, 0.2);
  background:
    radial-gradient(circle at 18% 12%, rgba(184, 142, 255, 0.18), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(91, 141, 255, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(18, 20, 38, 0.94), rgba(20, 15, 31, 0.96) 52%, rgba(10, 11, 18, 0.96));
}

.profile-hero--v2::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 34%),
    radial-gradient(circle at 70% 78%, rgba(138, 43, 226, 0.16), transparent 34%);
}

.profile-hero-v2__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(126px, 180px) minmax(0, 1fr);
  gap: clamp(1.15rem, 2.4vw, 2rem);
  align-items: center;
}

.profile-social-avatar-shell--v2 {
  justify-items: start;
}

.profile-social-main--v2 {
  gap: 1rem;
}

.profile-hero-v2__eyebrow,
.profile-status-chip,
.profile-creator-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.profile-hero-v2__eyebrow {
  gap: 0.65rem;
}

.profile-status-chip,
.profile-creator-badge {
  gap: 0.42rem;
  width: fit-content;
  min-height: 34px;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 142, 255, 0.22);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ws-text-primary, #f7f4ff);
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-status-chip {
  border-color: rgba(125, 232, 174, 0.24);
  background: rgba(125, 232, 174, 0.08);
  color: #d7ffe9;
}

.profile-badge-row--v2 {
  gap: 0.48rem;
}

.profile-social-bio--v2 {
  max-width: 74ch;
}

.profile-hero--v2 .profile-name,
.profile-hero--v2 .profile-role,
.profile-hero--v2 .profile-tagline,
.profile-hero--v2 .profile-bio,
.profile-featured-card-v2,
.profile-sidebar-card,
.profile-activity-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-social-stats--v2 {
  gap: clamp(0.72rem, 1.5vw, 1.25rem);
}

.profile-social-stats--v2 .profile-social-stat {
  min-width: 96px;
  padding: 0.68rem 0.78rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.profile-action-row--v2 {
  align-items: center;
}

.profile-action-row--v2 .profile-action-btn {
  gap: 0.48rem;
  min-height: 44px;
}

.profile-action-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.profile-action-btn.is-disabled:hover {
  transform: none;
}

.profile-share-status {
  min-height: 1.2rem;
  color: var(--ws-accent-text, #d9c4ff);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-tabs-v2 {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.52rem;
  border: 1px solid rgba(184, 142, 255, 0.14);
  border-radius: 1.15rem;
  background: rgba(12, 14, 24, 0.82);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.profile-tab-v2 {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.62rem 0.92rem;
  border: 1px solid transparent;
  border-radius: 0.86rem;
  background: transparent;
  color: var(--ws-text-muted, #b9b8c8);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.profile-tab-v2:hover,
.profile-tab-v2:focus-visible,
.profile-tab-v2.is-active {
  border-color: rgba(184, 142, 255, 0.28);
  background: rgba(184, 142, 255, 0.12);
  color: var(--ws-text-primary, #ffffff);
}

.profile-layout-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(318px, 360px);
  gap: clamp(1rem, 1.7vw, 1.45rem);
  align-items: start;
}

.profile-main-column-v2,
.profile-sidebar-v2 {
  display: grid;
  gap: clamp(1rem, 1.7vw, 1.35rem);
  min-width: 0;
}

.profile-sidebar-v2 {
  position: sticky;
  top: 146px;
}

.profile-panel--featured-v2,
.profile-panel--documents-v2,
.profile-panel--activity-v2,
.profile-panel--about-v2 {
  scroll-margin-top: 150px;
}

.profile-featured-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.profile-featured-card-v2 {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(16, 17, 25, 0.72);
}

.profile-featured-media-v2 {
  aspect-ratio: 16 / 10;
}

.profile-featured-body-v2 {
  align-content: start;
}

.profile-card-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  margin-top: 0.15rem;
  padding: 0.55rem 0.82rem;
  border: 1px solid rgba(184, 142, 255, 0.28);
  border-radius: 0.78rem;
  background: rgba(184, 142, 255, 0.12);
  color: var(--ws-text-primary, #ffffff);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.profile-card-open:hover,
.profile-card-open:focus-visible {
  border-color: rgba(184, 142, 255, 0.48);
  background: rgba(184, 142, 255, 0.18);
}

.profile-panel--about-v2 .profile-info-grid {
  margin-top: 0;
}

.profile-sidebar-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(184, 142, 255, 0.14);
  border-radius: 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(17, 18, 27, 0.82);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.profile-sidebar-title {
  margin: 0;
  color: var(--ws-text-primary, #ffffff);
  font-size: 0.95rem;
  font-weight: 850;
}

.profile-sidebar-status-chip,
.profile-project-status {
  display: inline-flex;
  width: fit-content;
  padding: 0.34rem 0.64rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 232, 174, 0.24);
  background: rgba(125, 232, 174, 0.08);
  color: #d7ffe9;
  font-size: 0.74rem;
  font-weight: 800;
}

.profile-sidebar-facts,
.profile-social-link-list,
.profile-contact-list-v2,
.profile-project-list {
  display: grid;
  gap: 0.7rem;
}

.profile-sidebar-fact {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-sidebar-fact span {
  color: var(--ws-text-muted, #aeadbd);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-sidebar-fact strong {
  color: var(--ws-text-primary, #f6f3ff);
  font-size: 0.92rem;
  line-height: 1.45;
}

.profile-social-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.62rem;
  align-items: center;
  min-height: 44px;
  color: var(--ws-text-primary, #ffffff);
  text-decoration: none;
}

.profile-social-link i {
  display: inline-grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 0.82rem;
  background: rgba(184, 142, 255, 0.12);
  color: var(--ws-accent-text, #d8c4ff);
}

.profile-social-link strong,
.profile-social-link small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-social-link strong {
  font-size: 0.9rem;
}

.profile-social-link small {
  margin-top: 0.08rem;
  color: var(--ws-text-muted, #b9b8c8);
  font-size: 0.76rem;
}

.profile-sidebar-copy {
  width: 100%;
  justify-content: space-between;
}

.profile-chip-row--sidebar {
  gap: 0.42rem;
}

.profile-project-row {
  display: grid;
  gap: 0.42rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-project-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.profile-project-row h3,
.profile-project-row p {
  margin: 0;
}

.profile-project-row h3 {
  color: var(--ws-text-primary, #ffffff);
  font-size: 0.92rem;
  font-weight: 800;
}

.profile-project-row p {
  color: var(--ws-text-secondary, #d2d1dc);
  font-size: 0.84rem;
  line-height: 1.6;
}

.profile-activity-list {
  display: grid;
  gap: 0.78rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.profile-activity-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.78rem;
  align-items: start;
  padding: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
}

.profile-activity-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 0.95rem;
  background: rgba(184, 142, 255, 0.12);
  color: var(--ws-accent-text, #d8c4ff);
}

.profile-activity-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.profile-activity-label,
.profile-activity-date {
  margin: 0;
  color: var(--ws-text-muted, #b9b8c8);
  font-size: 0.78rem;
  font-weight: 700;
}

.profile-activity-title {
  margin: 0;
  color: var(--ws-text-primary, #ffffff);
  font-size: 0.98rem;
  font-weight: 820;
  line-height: 1.35;
}

.profile-activity-title a {
  color: inherit;
  text-decoration: none;
}

.profile-activity-title a:hover,
.profile-social-link:hover {
  color: var(--ws-accent-hover, #cfb2ff);
}

@media (max-width: 1180px) {
  .profile-layout-v2 {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 820px) {
  .profile-hero-v2__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-social-avatar-shell--v2 {
    justify-items: start;
  }

  .profile-tabs-v2 {
    top: 0.5rem;
    margin-inline: -0.15rem;
  }

  .profile-featured-grid-v2,
  .profile-sidebar-v2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .profile-shell {
    width: 100%;
  }

  .profile-hero-v2__inner {
    gap: 1rem;
  }

  .profile-social-stats--v2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
  }

  .profile-social-stats--v2 .profile-social-stat {
    min-width: 0;
  }

  .profile-tabs-v2 {
    border-radius: 1rem;
  }

  .profile-panel--featured-v2,
  .profile-panel--documents-v2,
  .profile-panel--activity-v2,
  .profile-panel--about-v2 {
    scroll-margin-top: 84px;
  }
}

@media (max-width: 430px) {
  .profile-social-stats--v2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-action-row--v2 .profile-action-btn {
    flex: 1 1 100%;
  }
}
