.profile-page {
  --profile-accent: #a78bfa;
  --card-opacity: 0.58;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.profile-wall {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.profile-wall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.profile-wall-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(var(--wall-blur, 28px));
}

.profile-wall-shade {
  position: absolute;
  inset: 0;
  background: var(--wall-overlay, linear-gradient(180deg, rgba(109, 92, 255, 0.5), rgba(8, 5, 15, 0.92)));
}

.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.profile-enter {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #7c6cff 0%, #120a1f 100%);
  transition: opacity 0.45s ease, visibility 0.45s;
}

.profile-enter.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.profile-enter-inner {
  text-align: center;
}

.profile-enter-inner p.brand {
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.profile-enter-inner button {
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 600;
  cursor: pointer;
  animation: pulse-glow 2.2s ease-in-out infinite;
}

.profile-stage {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4.5rem 1rem 6rem;
}

.profile-card-v2 {
  width: min(420px, 100%);
  padding: 0 1.25rem 1.5rem;
  border-radius: 20px;
  background: rgba(22, 18, 34, var(--card-opacity));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
}

.profile-banner-v2 {
  height: 96px;
  margin: 0 -1.25rem;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(120deg, #8b5cf6, #ec4899, #6366f1);
  background-size: cover;
  background-position: center;
}

.profile-name.glow {
  text-shadow: 0 0 32px var(--profile-accent);
}

.profile-bio.typewriter::after {
  content: "|";
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  color: var(--profile-accent);
}

.profile-bio.typewriter.done::after {
  display: none;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.link-stack.glow a:hover {
  box-shadow: 0 0 20px color-mix(in srgb, var(--profile-accent) 45%, transparent);
  border-color: color-mix(in srgb, var(--profile-accent) 55%, transparent);
}

.discord-card-v2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(88, 101, 242, 0.18);
  border: 1px solid rgba(88, 101, 242, 0.35);
}

.discord-card-v2 strong {
  display: block;
  font-size: 0.9rem;
}

.discord-card-v2 small {
  color: var(--muted);
  font-size: 0.75rem;
}

.audio-dock-v2 {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  max-width: min(340px, calc(100vw - 2rem));
  border-radius: 999px;
  background: rgba(12, 10, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.audio-dock-v2 .cover-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.audio-dock-v2 .cover-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-dock-v2 .meta {
  min-width: 0;
  line-height: 1.25;
  font-size: 0.78rem;
}

.audio-dock-v2 .meta strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-dock-v2 input[type="range"] {
  width: 64px;
  accent-color: var(--profile-accent);
}

.cursor-dot-v2 {
  position: fixed;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--profile-accent);
  box-shadow: 0 0 16px var(--profile-accent);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}

body.profile-custom-cursor {
  cursor: none;
}

body.profile-custom-cursor a,
body.profile-custom-cursor button {
  cursor: none;
}

body.profile-custom-cursor .cursor-dot-v2 {
  opacity: 1;
}

.top-edit-link {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 30;
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(12, 10, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

.top-share-link {
  right: 7.2rem;
}

.audio-dock-v2.is-playing .cover-btn {
  box-shadow: 0 0 0 2px var(--profile-accent);
}
