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

.profile-account-page {
  background:
    radial-gradient(circle at top right, rgba(138, 43, 226, 0.14), transparent 38%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.04), transparent 34%),
    #0f0f10;
}

.profile-account-main {
  padding: 8.5rem 1.5rem 4rem;
}

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

.profile-loading,
.profile-error {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  background: rgba(26, 26, 27, 0.88);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

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

.profile-hero,
.profile-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  background: rgba(26, 26, 27, 0.88);
  box-shadow: 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: 2rem;
  overflow: hidden;
  position: relative;
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, transparent 0%, rgba(255, 255, 255, 0.04) 44%, transparent 68%),
    radial-gradient(circle at top right, var(--profile-accent-soft), transparent 42%);
  pointer-events: none;
}

.profile-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
  gap: 1.5rem;
}

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

.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: rgba(255, 255, 255, 0.04);
  color: #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;
}

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

.profile-tagline,
.profile-bio {
  margin: 0;
  color: #d4d4da;
  line-height: 1.75;
}

.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: #fff;
  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: #f4f4f8;
  border-color: rgba(255, 255, 255, 0.14);
  background: 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 rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #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 rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
}

.profile-status {
  display: inline-flex;
  width: fit-content;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: var(--profile-accent-soft);
  color: #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 rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

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

.profile-kpi-value {
  color: #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: #9f9fac;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-meta-value,
.profile-stat-value {
  color: #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: 1.5rem;
}

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

.profile-subsection-label {
  margin: 0;
  color: #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: #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 rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #d6d6dd;
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-section-link {
  color: #b88eff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.profile-section-link:hover {
  color: #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 rgba(255, 255, 255, 0.07);
  background: 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: #ffffff;
}

.profile-list-body,
.profile-work-copy {
  margin: 0.5rem 0 0;
  color: #d0d0d8;
  line-height: 1.7;
}

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

.profile-contact-value {
  margin-top: 0.4rem;
  color: #f3f3f7;
  font-weight: 600;
}

.profile-contact-link,
.profile-work-link {
  color: #b88eff;
  text-decoration: none;
}

.profile-contact-link:hover,
.profile-work-link:hover {
  color: #cfb2ff;
}

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

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

.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-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(240px, 1fr));
  align-items: start;
}

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

.profile-content-date {
  margin: 0;
  color: #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 rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #dbdbe2;
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-empty-state {
  margin: 0;
  color: #9f9fac;
  line-height: 1.7;
}

.profile-account-footer {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

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

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

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

  .profile-hero,
  .profile-panel {
    padding: 1.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-section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

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