/* =========================================================
   NOVA — public profile page
   ========================================================= */
.profile-page {
  --p-accent: #b39aff;
  --p-accent-2: #ff8bc9;
  --p-text: #f8f6ff;
  --p-muted: #9a95ad;
  --p-card-bg: rgba(12, 10, 18, 0.68);
  --p-card-blur: 22px;
  --p-radius: 28px;
  --p-font: "Space Grotesk", sans-serif;
  --p-dim: 0.6;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: #07070a;
  color: var(--p-text);
  font-family: var(--p-font);
  isolation: isolate;
}

.profile-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.profile-bg::after {
  content: "";
  position: absolute;
  inset: -4%;
  background: inherit;
  background-position: center;
  background-size: cover;
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.5s;
  display: none;
}

.profile-page.has-bg-image .profile-bg::after {
  opacity: 0;
}

.profile-bg-tint {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #030307;
  opacity: var(--p-dim);
}

.profile-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 50% 30%, color-mix(in srgb, var(--p-accent) 12%, transparent), transparent 70%),
    radial-gradient(ellipse 35% 50% at 85% 85%, color-mix(in srgb, var(--p-accent-2) 7%, transparent), transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.38) 100%);
}

.profile-vignette::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  pointer-events: none;
}

#effects-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.profile-topbar {
  position: fixed !important;
  z-index: 30 !important;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  background: linear-gradient(to bottom, rgba(3, 3, 6, 0.45), transparent);
}

.profile-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.profile-brand:hover {
  color: #fff;
}

.profile-brand .brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  box-shadow: none;
}

.profile-brand .brand-mark svg {
  width: 13px;
  height: 13px;
}

.profile-top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.profile-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(10, 9, 14, 0.4);
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-mono);
  font-size: 9px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.profile-views svg {
  width: 12px;
  height: 12px;
}

.profile-icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(10, 9, 14, 0.4);
  color: rgba(255, 255, 255, 0.68);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.profile-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.profile-icon-btn svg {
  width: 14px;
  height: 14px;
}

.profile-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b0810;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.profile-cta-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.profile-cta-btn svg {
  width: 12px;
  height: 12px;
}

.profile-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  margin: auto;
  padding: 104px 18px 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-card {
  position: relative;
  width: 100%;
  padding: 36px 34px 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--p-radius);
  background: var(--p-card-bg);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(var(--p-card-blur)) saturate(1.2);
  backdrop-filter: blur(var(--p-card-blur)) saturate(1.2);
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  animation: profile-in 0.8s var(--ease) both;
}

@keyframes profile-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.profile-page.entrance-rise .profile-card {
  animation-name: profile-rise;
}

@keyframes profile-rise {
  from { opacity: 0; transform: translateY(44px); }
}

.profile-page.entrance-scale .profile-card {
  animation-name: profile-scale;
}

@keyframes profile-scale {
  from { opacity: 0; transform: scale(0.92); filter: blur(10px); }
}

.profile-page.entrance-none .profile-card {
  animation: none;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 40% at 50% 0%, color-mix(in srgb, var(--p-accent) 10%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%);
}

.profile-page.card-solid .profile-card {
  background: #111017;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.profile-page.card-outline .profile-card {
  background: rgba(8, 7, 12, 0.38);
  box-shadow: none;
}

.profile-page.card-none .profile-card {
  padding-inline: 10px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.profile-page.card-none .profile-card::before {
  display: none;
}

.profile-identity {
  position: relative;
  z-index: 1;
}

.profile-avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  transform: translateZ(20px);
}

.profile-avatar-ring {
  width: 100%;
  height: 100%;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 190deg, var(--p-accent), var(--p-accent-2), color-mix(in srgb, var(--p-accent) 45%, #fff), var(--p-accent));
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.035),
    0 16px 36px rgba(0, 0, 0, 0.32),
    0 0 45px color-mix(in srgb, var(--p-accent) 18%, transparent);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.profile-avatar-wrap:hover .profile-avatar-ring {
  transform: scale(1.035) rotate(2deg);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.05),
    0 18px 42px rgba(0, 0, 0, 0.38),
    0 0 65px color-mix(in srgb, var(--p-accent) 26%, transparent);
}

.profile-avatar-ring img {
  width: 100%;
  height: 100%;
  border: 4px solid rgba(9, 8, 13, 0.9);
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(145deg, #2b223f, #111018);
}

.profile-avatar-status {
  position: absolute;
  z-index: 2;
  right: 6px;
  bottom: 7px;
  width: 20px;
  height: 20px;
  border: 4px solid rgba(12, 10, 17, 0.96);
  border-radius: 50%;
  background: #8b879a;
}

.profile-avatar-status.online { background: #67e8a1; box-shadow: 0 0 12px rgba(103, 232, 161, 0.5); }
.profile-avatar-status.idle { background: #ffd166; }
.profile-avatar-status.dnd { background: #ff7b8a; }
.profile-avatar-status.offline { background: #6f6b7c; }

.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-name {
  font-family: var(--p-font);
  font-size: clamp(30px, 7vw, 38px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.profile-verified {
  width: 19px;
  height: 19px;
  color: #78c8ff;
  filter: drop-shadow(0 0 8px rgba(120, 200, 255, 0.3));
}

.profile-pronouns {
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.43);
  font-family: var(--font-mono);
  font-size: 8px;
}

.profile-handle {
  margin-top: 6px;
  color: var(--p-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.01em;
}

.profile-bio {
  max-width: 410px;
  margin: 18px auto 0;
  color: color-mix(in srgb, var(--p-text) 67%, transparent);
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.typing-caret {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.1em;
  background: var(--p-accent);
  animation: caret 0.9s step-end infinite;
}

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

.profile-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 13px;
  color: color-mix(in srgb, var(--p-muted) 82%, transparent);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.profile-meta svg {
  width: 10px;
  height: 10px;
  opacity: 0.8;
}

.profile-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
}

.profile-badge {
  --badge-color: var(--p-accent);
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--badge-color) 28%, rgba(255, 255, 255, 0.08));
  border-radius: 7px;
  background: color-mix(in srgb, var(--badge-color) 9%, rgba(255, 255, 255, 0.025));
  color: var(--badge-color);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, background 0.2s;
}

.profile-badge:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--badge-color) 15%, rgba(255, 255, 255, 0.03));
}

.profile-badge svg {
  width: 13px;
  height: 13px;
}

.profile-badge.custom {
  width: auto;
  min-width: 27px;
  padding: 0 7px;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 700;
}

.profile-badge.custom .emoji {
  font-size: 11px;
  line-height: 1;
}

.profile-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.profile-social {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: color-mix(in srgb, var(--p-text) 63%, transparent);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.profile-social:hover {
  color: var(--p-text);
  border-color: color-mix(in srgb, var(--p-accent) 40%, rgba(255, 255, 255, 0.1));
  background: color-mix(in srgb, var(--p-accent) 10%, rgba(255, 255, 255, 0.04));
  transform: translateY(-2px);
}

.profile-social svg {
  width: 14px;
  height: 14px;
}

/* Discord presence */
.profile-discord {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  text-align: left;
}

.profile-discord::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--p-accent) 7%, transparent), transparent 70%);
  pointer-events: none;
}

.discord-cover {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, #241d3a, #0c0b11);
  color: #a48ee5;
}

.discord-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discord-cover svg {
  width: 19px;
  height: 19px;
}

.discord-cover .eq {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding-bottom: 7px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 70%);
}

.discord-cover .eq i {
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: #fff;
  animation: eq 0.8s ease-in-out infinite alternate;
}

.discord-cover .eq i:nth-child(2) { animation-delay: -0.2s; height: 9px; }
.discord-cover .eq i:nth-child(3) { animation-delay: -0.45s; height: 4px; }
.discord-cover .eq i:nth-child(4) { animation-delay: -0.1s; height: 7px; }

.discord-copy {
  position: relative;
  flex: 1;
  min-width: 0;
}

.discord-copy-top {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}

.discord-copy-top svg {
  width: 10px;
  height: 10px;
  color: #8f7bd1;
}

.discord-copy strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: color-mix(in srgb, var(--p-text) 88%, transparent);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.discord-copy span {
  display: block;
  overflow: hidden;
  color: var(--p-muted);
  font-family: var(--font-body);
  font-size: 8.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.discord-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8b879a;
}

.discord-status-dot.online { background: #67e8a1; box-shadow: 0 0 8px rgba(103, 232, 161, 0.55); }
.discord-status-dot.idle { background: #ffd166; }
.discord-status-dot.dnd { background: #ff7b8a; }
.discord-status-dot.offline { background: #6f6b7c; }

/* Profile links */
.profile-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.profile-link {
  --link-accent: var(--p-accent);
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 9px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--p-text);
  text-align: left;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.profile-page.links-outline .profile-link {
  background: transparent;
}

.profile-page.links-solid .profile-link {
  background: rgba(255, 255, 255, 0.085);
}

.profile-page.links-minimal .profile-link {
  min-height: 50px;
  border-color: transparent;
  background: transparent;
}

.profile-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--link-accent) 13%, transparent), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.profile-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--link-accent) 38%, rgba(255, 255, 255, 0.1));
  background: color-mix(in srgb, var(--link-accent) 7%, rgba(255, 255, 255, 0.055));
  box-shadow: 0 9px 26px rgba(0, 0, 0, 0.18);
}

.profile-page.links-minimal .profile-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.profile-link:hover::before {
  opacity: 1;
}

.profile-link:active {
  transform: translateY(0) scale(0.993);
}

.link-icon {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--link-accent) 22%, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  background: color-mix(in srgb, var(--link-accent) 10%, rgba(255, 255, 255, 0.02));
  color: color-mix(in srgb, var(--link-accent) 84%, #fff);
  transition: transform 0.25s var(--ease), background 0.25s;
}

.profile-link:hover .link-icon {
  transform: rotate(-4deg) scale(1.06);
  background: color-mix(in srgb, var(--link-accent) 17%, rgba(255, 255, 255, 0.03));
}

.link-icon img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.link-icon svg {
  width: 15px;
  height: 15px;
}

.link-copy {
  position: relative;
  flex: 1;
  min-width: 0;
}

.link-title {
  display: block;
  overflow: hidden;
  color: color-mix(in srgb, var(--p-text) 91%, transparent);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.link-desc {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--p-muted);
  font-family: var(--font-body);
  font-size: 8.5px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.link-arrow {
  position: relative;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.profile-link:hover .link-arrow {
  color: var(--p-text);
  background: rgba(255, 255, 255, 0.06);
  transform: translate(1px, -1px);
}

.link-arrow svg {
  width: 12px;
  height: 12px;
}

.profile-link.ripple::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: var(--rx, 50%);
  top: var(--ry, 50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%) scale(0);
  animation: link-ripple 0.55s ease-out forwards;
  pointer-events: none;
}

@keyframes link-ripple {
  to { transform: translate(-50%, -50%) scale(16); opacity: 0; }
}

.profile-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.01em;
}

.profile-card-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.profile-card-footer svg {
  width: 9px;
  height: 9px;
}

.profile-card-footer a {
  color: rgba(255, 255, 255, 0.37);
  transition: color 0.2s;
}

.profile-card-footer a:hover {
  color: var(--p-text);
}

.profile-watermark {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.profile-watermark:hover {
  color: rgba(255, 255, 255, 0.5);
}

.profile-watermark svg {
  width: 10px;
  height: 10px;
}

/* Wide layout */
.profile-page.layout-wide .profile-shell {
  width: min(100%, 760px);
}

.profile-page.layout-wide .profile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-page.layout-wide .profile-link {
  min-height: 58px;
}

.profile-page.layout-wide .profile-discord,
.profile-page.layout-wide .profile-card-footer {
  grid-column: 1 / -1;
}

/* Minimal layout */
.profile-page.layout-minimal .profile-shell {
  width: min(100%, 520px);
}

.profile-page.layout-minimal .profile-card {
  padding: 28px 18px 18px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.profile-page.layout-minimal .profile-card::before {
  display: none;
}

/* Split layout */
.profile-page.layout-split .profile-shell {
  width: min(100%, 900px);
}

.profile-page.layout-split .profile-card {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  column-gap: 38px;
  padding: 38px;
  text-align: left;
}

.profile-page.layout-split .profile-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-page.layout-split .profile-avatar-wrap {
  margin-inline: 0;
  width: 98px;
  height: 98px;
}

.profile-page.layout-split .profile-name-row,
.profile-page.layout-split .profile-meta,
.profile-page.layout-split .profile-badges,
.profile-page.layout-split .profile-socials {
  justify-content: flex-start;
}

.profile-page.layout-split .profile-name {
  font-size: 32px;
}

.profile-page.layout-split .profile-bio {
  margin-inline: 0;
  font-size: 11.5px;
}

.profile-page.layout-split .profile-discord {
  width: 100%;
  margin-top: 20px;
}

.profile-page.layout-split .profile-links {
  margin-top: 0;
  align-self: center;
}

.profile-page.layout-split .profile-card-footer {
  grid-column: 1 / -1;
  width: 100%;
}

/* Background effects visual helpers */
.profile-page.effect-none .profile-bg-tint {
  --p-dim: calc(var(--p-dim) - 0.04);
}

.profile-page .effect-glow {
  position: fixed;
  z-index: -1;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.09;
  background: var(--p-accent);
  top: -20%;
  right: -15%;
  animation: glow-drift 15s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  to { transform: translate(-12vw, 10vh) scale(1.15); opacity: 0.14; }
}

/* Music player */
.profile-music {
  position: fixed !important;
  z-index: 35 !important;
  left: 22px;
  bottom: 22px;
  width: 276px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(10, 9, 14, 0.65);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  transition: transform 0.3s var(--ease), background 0.3s;
}

.profile-music:hover {
  background: rgba(13, 12, 18, 0.78);
}

.music-inner {
  display: flex;
  align-items: center;
  gap: 9px;
}

.music-cover {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--p-accent) 60%, #1a1427), #0a0910);
}

.music-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}

.music-cover .cover-note {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
}

.music-cover .cover-note svg {
  width: 14px;
  height: 14px;
}

.music-copy {
  flex: 1;
  min-width: 0;
}

.music-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.32);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.music-label svg {
  width: 8px;
  height: 8px;
  color: var(--p-accent);
}

.music-title {
  overflow: hidden;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.music-artist {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-body);
  font-size: 7.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.music-play {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}

.music-play:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.04);
}

.music-play svg {
  width: 12px;
  height: 12px;
}

.music-progress {
  height: 2px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.09);
}

.music-progress i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--p-accent), var(--p-accent-2));
  transition: width 0.4s linear;
}

.music-inner.playing .music-cover {
  animation: cover-pulse 3s ease-in-out infinite;
}

@keyframes cover-pulse {
  50% { box-shadow: 0 0 24px color-mix(in srgb, var(--p-accent) 30%, transparent); }
}

/* Custom cursor */
.cursor-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor-layer.active {
  opacity: 1;
}

.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--cursor-color, #ff8bc9);
  box-shadow: 0 0 12px var(--cursor-color, #ff8bc9);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid color-mix(in srgb, var(--cursor-color, #ff8bc9) 75%, transparent);
  border-radius: 50%;
  transition: width 0.2s, height 0.2s, margin 0.2s, border-radius 0.2s, background 0.2s, opacity 0.2s;
}

body.custom-cursor-active,
body.custom-cursor-active * {
  cursor: none !important;
}

body.custom-cursor-active.cursor-style-image,
body.custom-cursor-active.cursor-style-image * {
  cursor: var(--custom-cursor, auto) !important;
}

body.cursor-style-dot .cursor-ring {
  opacity: 0;
}

body.cursor-style-dot .cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
}

body.cursor-style-ring .cursor-dot {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  background: #fff;
}

body.cursor-style-neon .cursor-ring {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-color: color-mix(in srgb, var(--cursor-color, #ff8bc9) 65%, transparent);
  box-shadow:
    0 0 15px color-mix(in srgb, var(--cursor-color, #ff8bc9) 28%, transparent),
    inset 0 0 10px color-mix(in srgb, var(--cursor-color, #ff8bc9) 10%, transparent);
}

body.cursor-style-neon .cursor-dot {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
}

body.cursor-style-crosshair .cursor-ring {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-color: rgba(255, 255, 255, 0.55);
  border-radius: 0;
  transform: rotate(45deg);
}

body.cursor-style-crosshair .cursor-dot {
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  background: #fff;
}

body.cursor-style-star .cursor-ring {
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 0;
  border-radius: 0;
  background: var(--cursor-color, #ff8bc9);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  box-shadow: none;
}

body.cursor-style-star .cursor-dot {
  opacity: 0;
}

.cursor-trail {
  position: fixed;
  z-index: 999;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cursor-color, #ff8bc9);
  pointer-events: none;
  opacity: 0.55;
  animation: trail-fade 0.7s ease-out forwards;
}

@keyframes trail-fade {
  to { transform: translate(var(--tx, 0), var(--ty, 8px)) scale(0); opacity: 0; }
}

body.cursor-hover-link .cursor-ring {
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  background: color-mix(in srgb, var(--cursor-color, #ff8bc9) 10%, transparent);
}

body.cursor-hover-link .cursor-dot {
  transform: scale(1.5);
}

/* Profile top share menu */
.profile-share-pop {
  position: fixed !important;
  z-index: 50 !important;
  top: 64px;
  right: 24px;
  width: 210px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(14, 13, 20, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: pop-in 0.18s var(--ease);
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

.profile-share-pop button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.profile-share-pop button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.profile-share-pop svg {
  width: 13px;
  height: 13px;
}

.profile-share-pop .danger {
  color: #ff9ca7;
}

.profile-share-pop hr {
  height: 1px;
  margin: 5px;
  border: 0;
  background: var(--line);
}

/* Mobile profile adjustments in responsive.css */
