/* ——— Modern scrollbars (global) ——— */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(136, 105, 179, 0.4) transparent;
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(136, 105, 179, 0.38),
    rgba(139, 147, 167, 0.32)
  );
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  min-height: 40px;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(136, 105, 179, 0.7),
    rgba(196, 201, 212, 0.45)
  );
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 12px rgba(136, 105, 179, 0.35);
}

*::-webkit-scrollbar-thumb:active {
  background: rgba(136, 105, 179, 0.88);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 16px rgba(136, 105, 179, 0.45);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

/* While scrolling: animated thumb glow */
.is-scrolling {
  scrollbar-color: rgba(136, 105, 179, 0.85) rgba(136, 105, 179, 0.08);
}
.is-scrolling::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(136, 105, 179, 0.95),
    rgba(167, 139, 250, 0.7)
  );
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 10px rgba(136, 105, 179, 0.55),
    0 0 22px rgba(136, 105, 179, 0.28);
  animation: scrollbar-thumb-pulse 0.9s ease-in-out infinite alternate;
}
.is-scrolling::-webkit-scrollbar-track {
  background: rgba(136, 105, 179, 0.06);
}

@keyframes scrollbar-thumb-pulse {
  from {
    box-shadow:
      0 0 8px rgba(136, 105, 179, 0.4),
      0 0 16px rgba(136, 105, 179, 0.18);
  }
  to {
    box-shadow:
      0 0 14px rgba(136, 105, 179, 0.7),
      0 0 28px rgba(136, 105, 179, 0.35);
  }
}

/* Editor / panel scroll areas — smooth */
.overflow-y-auto,
.overflow-x-auto,
.overflow-auto {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.editor-scroll {
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  .editor-scroll,
  .overflow-y-auto,
  .overflow-x-auto,
  .overflow-auto {
    scroll-behavior: auto;
  }
}

/* ——— Editor chrome (Tailwind Plus–inspired controls) ——— */
.tab-btn {
  white-space: nowrap;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #8b93a7;
  transition: 0.15s;
}
.tab-btn:hover {
  color: #eef0f4;
  background: rgba(255, 255, 255, 0.04);
}
.tab-btn.active {
  color: #8869b3;
  background: rgba(136, 105, 179, 0.1);
  box-shadow: inset 0 0 0 1px rgba(136, 105, 179, 0.25);
}

.section-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #8b93a7;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b93a7;
}
.field-label svg {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.1em;
}

.field-input {
  width: 100%;
  border-radius: 0.625rem;
  background: #12151c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: #eef0f4;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-input::placeholder {
  color: #5a6278;
}
.field-input:focus {
  border-color: rgba(136, 105, 179, 0.45);
  box-shadow: 0 0 0 3px rgba(136, 105, 179, 0.12);
}

.field-color {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2.75rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  background:
    linear-gradient(#12151c, #12151c) padding-box,
    linear-gradient(135deg, rgba(136, 105, 179, 0.45), rgba(255, 255, 255, 0.08)) border-box;
  padding: 0.4rem;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.field-color:hover {
  box-shadow: 0 0 0 3px rgba(136, 105, 179, 0.12);
}
.field-color::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 0.55rem;
}
.field-color::-webkit-color-swatch {
  border: 0;
  border-radius: 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.field-color::-moz-color-swatch {
  border: 0;
  border-radius: 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.field-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1.5rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --range: 50%;
  --range-fill: #8869b3;
  --range-track: rgba(255, 255, 255, 0.12);
}
.field-range:focus {
  outline: none;
}
.field-range:focus-visible {
  outline: 2px solid rgba(136, 105, 179, 0.45);
  outline-offset: 4px;
  border-radius: 999px;
}
.field-range::-webkit-slider-runnable-track {
  height: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--range-fill) 0%,
    var(--range-fill) var(--range),
    var(--range-track) var(--range),
    var(--range-track) 100%
  );
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}
.field-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  margin-top: calc((0.35rem - 1rem) / 2);
  border-radius: 999px;
  background: #fff;
  border: 0;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--range-fill) 35%, transparent),
    0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.field-range:hover::-webkit-slider-thumb {
  transform: scale(1.1);
}
.field-range:active::-webkit-slider-thumb {
  transform: scale(0.96);
  background: var(--range-fill);
}
.field-range::-moz-range-track {
  height: 0.35rem;
  border-radius: 999px;
  background: var(--range-track);
  border: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}
.field-range::-moz-range-progress {
  height: 0.35rem;
  border-radius: 999px;
  background: var(--range-fill);
}
.field-range::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #fff;
  border: 0;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--range-fill) 35%, transparent),
    0 4px 12px rgba(0, 0, 0, 0.35);
}

.range-val {
  color: #8869b3;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.range-hover {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 2.35rem;
  padding: 0;
  border-radius: 0;
  background: none;
  border: 0;
  box-shadow: none;
  transition: none;
}
.range-hover:hover,
.range-hover:focus-within,
.range-hover.is-open {
  background: none;
  border: 0;
  box-shadow: none;
}
.range-hover-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.range-hover-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}
.range-hover:hover .range-hover-icon,
.range-hover:focus-within .range-hover-icon,
.range-hover.is-open .range-hover-icon {
  color: #8869b3;
  background: transparent;
  transform: scale(1.06);
}
.range-hover-panel {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  padding-right: 0;
  transition:
    max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease,
    visibility 0.24s ease,
    padding-right 0.32s ease;
}
.range-hover:hover .range-hover-panel,
.range-hover:focus-within .range-hover-panel,
.range-hover.is-open .range-hover-panel {
  max-width: 18rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding-right: 0.35rem;
}
.range-hover-panel .field-range {
  width: 100%;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.9rem 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.toggle-row:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.toggle {
  appearance: none;
  width: 2.65rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #252b3a;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}
.toggle::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #e8ebf2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}
.toggle:checked {
  background: #8869b3;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(136, 105, 179, 0.15);
}
.toggle:checked::after {
  transform: translateX(1.2rem);
  background: #fff;
}
.toggle:focus-visible {
  outline: 2px solid rgba(136, 105, 179, 0.5);
  outline-offset: 3px;
}

.fx-chip {
  border-radius: 0.625rem;
  background: #12151c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.55rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #8b93a7;
  transition: 0.15s ease;
}
.fx-chip:hover {
  color: #eef0f4;
  border-color: rgba(255, 255, 255, 0.12);
}
.fx-chip.active {
  color: #8869b3;
  border-color: rgba(136, 105, 179, 0.4);
  background: rgba(136, 105, 179, 0.08);
}

.link-card {
  position: relative;
  border-radius: 1rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 45%),
    #12151c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.22);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow: hidden;
}
.link-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent, #8869b3), rgba(136, 105, 179, 0.15));
}

.link-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-left: 0.55rem;
}
.link-card-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.link-card-index {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: color-mix(in srgb, var(--accent, #8869b3) 28%, #1a1f2b);
  border: 1px solid color-mix(in srgb, var(--accent, #8869b3) 35%, transparent);
}
.link-card-heading {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.link-card-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-card-hint {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.38);
}
.link-card-remove {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.55rem;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: 0.15s ease;
}
.link-card-remove:hover {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.1);
  border-color: rgba(251, 113, 133, 0.28);
}
.link-card-preview {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.link-card-preview .preview-link-icon {
  width: 1.7rem;
  height: 1.7rem;
  font-size: 0.72rem;
}
.link-card-preview .preview-link-label {
  font-size: 0.8rem;
}
.link-card-preview .preview-link-arrow {
  font-size: 0.65rem;
}
.link-card-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-left: 0.55rem;
}
.link-card-field > span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.bg-preset {
  aspect-ratio: 1.35;
  border-radius: 0.65rem;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.bg-preset:hover {
  transform: translateY(-1px);
  border-color: rgba(136, 105, 179, 0.45);
  box-shadow: 0 0 0 2px rgba(136, 105, 179, 0.15);
}

.music-player {
  --music-accent: #67e8f9;
  --music-accent-soft: rgba(103, 232, 249, 0.55);
  --music-accent-glow: rgba(103, 232, 249, 0.22);
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.music-player.hidden {
  display: none;
}

.music-btn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: #fff;
  background: none;
  border: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
  transition: color 0.15s ease, transform 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}
.music-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}
.music-btn:hover {
  color: var(--music-accent);
  transform: scale(1.06);
  filter: drop-shadow(0 0 10px var(--music-accent-glow));
}
.music-btn:active {
  transform: scale(0.96);
}
.music-player[data-playing="true"] .music-btn {
  color: var(--music-accent);
  filter: drop-shadow(0 0 12px var(--music-accent-soft));
}

.music-vol-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  background: none;
  border: 0;
  padding: 0;
}

.music-vol-toggle {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: none;
  border: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
  transition: color 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}
.music-vol-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}
.music-vol-toggle:hover,
.music-vol-wrap.is-open .music-vol-toggle,
.music-vol-wrap:hover .music-vol-toggle {
  color: var(--music-accent);
  filter: drop-shadow(0 0 10px var(--music-accent-glow));
}

.music-vol-panel {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    max-width 0.28s ease,
    margin-left 0.28s ease;
}

.music-vol-wrap:hover .music-vol-panel,
.music-vol-wrap:focus-within .music-vol-panel,
.music-vol-wrap.is-open .music-vol-panel {
  max-width: 9rem;
  margin-left: 0.15rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.music-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 88px;
  height: 1.25rem;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.music-vol:focus {
  outline: none;
}
.music-vol:focus-visible {
  outline: 2px solid var(--music-accent-soft, rgba(103, 232, 249, 0.55));
  outline-offset: 2px;
  border-radius: 999px;
}

.music-vol::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--music-accent, #67e8f9) 0%,
    var(--music-accent, #67e8f9) var(--vol, 50%),
    rgba(255, 255, 255, 0.28) var(--vol, 50%),
    rgba(255, 255, 255, 0.28) 100%
  );
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.music-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border-radius: 999px;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 2px var(--music-accent-soft, rgba(103, 232, 249, 0.55)), 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}
.music-vol:hover::-webkit-slider-thumb {
  transform: scale(1.1);
}

.music-vol::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}
.music-vol::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: var(--music-accent, #67e8f9);
}
.music-vol::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 2px var(--music-accent-soft, rgba(103, 232, 249, 0.55));
}

.music-vol-label {
  min-width: 1.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--music-accent, #67e8f9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  text-align: right;
}

.music-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

@media (max-width: 767px) {
  .music-player {
    bottom: 5.5rem;
    left: 1rem;
  }
  .music-vol {
    width: 72px;
  }
}

.yt-host {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  bottom: 0;
  left: 0;
}

/* YouTube as full-bleed background (video + audio) */
.yt-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: #000;
}
.yt-bg.hidden {
  display: none;
}
.yt-bg > div,
.yt-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  border: 0;
  transform: translate(-50%, -50%) scale(1.35);
  pointer-events: none;
}

.spotify-embed {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 30;
  width: min(340px, calc(100% - 2.5rem));
  border-radius: 1.35rem;
  padding: 0.85rem;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.04) 42%,
      rgba(8, 10, 14, 0.5) 100%
    ),
    rgba(12, 14, 18, 0.4);
  backdrop-filter: blur(24px) saturate(1.45);
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  border: none;
}
.spotify-embed.hidden {
  display: none;
}

.spotify-embed::before {
  display: none;
}

.spotify-embed::after {
  content: "";
  position: absolute;
  top: -35%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.sp-player {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.85rem;
  align-items: center;
}

.sp-art-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 0.85rem;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.sp-embed-slot.is-youtube {
  aspect-ratio: 16 / 9;
  background: #000;
}
.sp-embed-slot.is-youtube iframe {
  width: 100%;
  height: 100% !important;
  min-height: 180px;
  display: block;
  border: 0;
}

.spotify-embed.is-youtube {
  width: min(380px, calc(100% - 2.5rem));
}

.spotify-embed.is-youtube .sp-controls {
  display: flex;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  align-items: center;
  gap: 0.4rem;
}

.spotify-embed.is-youtube .sp-play {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  color: #fff;
  background: #ff4444;
  box-shadow: 0 0 16px rgba(255, 68, 68, 0.35);
  transition: transform 0.15s, filter 0.15s;
  flex-shrink: 0;
}
.spotify-embed.is-youtube .sp-play:hover {
  transform: scale(1.06);
  filter: brightness(1.08);
}
.spotify-embed.is-youtube .sp-play svg {
  width: 0.85rem;
  height: 0.85rem;
}
.spotify-embed.is-youtube .sp-bars span {
  background: #ff4444;
}

.spotify-embed.is-youtube:not(:has(.sp-embed-slot)) {
  /* audio-only card — no video embed */
}

.sp-yt-hint {
  position: relative;
  z-index: 1;
  margin: 0.65rem 0 0;
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
}

.spotify-embed.is-youtube {
  width: min(340px, calc(100% - 2.5rem));
}

.sp-yt-audio {
  display: none;
}

.sp-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.06);
}

.sp-art-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(29, 185, 84, 0.35), rgba(12, 14, 18, 0.8));
  color: #1db954;
}
.sp-art-fallback svg {
  width: 1.75rem;
  height: 1.75rem;
}

.sp-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  justify-content: center;
  padding-right: 3.5rem;
  padding-top: 0.15rem;
}

.sp-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.sp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  min-width: 0;
}
.sp-brand svg {
  width: 0.75rem;
  height: 0.75rem;
  color: #1db954;
  flex-shrink: 0;
}

.sp-title {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-artist {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-embed-slot {
  position: relative;
  z-index: 1;
  margin-top: 0.75rem;
  max-height: none;
  opacity: 1;
  overflow: hidden;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: auto;
}
.sp-embed-slot iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0.85rem;
}

.sp-brand.is-youtube svg,
.sp-art-fallback.is-youtube {
  color: #ff4444;
}
.sp-brand.is-youtube svg {
  filter: none;
}

.sp-controls {
  display: none;
}

.sp-play {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  color: #04140a;
  background: #1db954;
  box-shadow: 0 0 16px rgba(29, 185, 84, 0.35);
  transition: transform 0.15s, filter 0.15s;
  flex-shrink: 0;
}
.sp-play:hover {
  transform: scale(1.06);
  filter: brightness(1.08);
}
.sp-play svg {
  width: 0.85rem;
  height: 0.85rem;
}
.sp-play.is-playing {
  background: rgba(255, 255, 255, 0.12);
  color: #1db954;
  box-shadow: 0 0 0 1px rgba(29, 185, 84, 0.35);
}

.sp-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.2s;
}
.sp-bars.on {
  opacity: 1;
}
.sp-bars span {
  width: 3px;
  border-radius: 999px;
  background: #1db954;
  animation: spBar 0.8s ease-in-out infinite;
}
.sp-bars span:nth-child(1) {
  height: 40%;
  animation-delay: 0s;
}
.sp-bars span:nth-child(2) {
  height: 100%;
  animation-delay: 0.15s;
}
.sp-bars span:nth-child(3) {
  height: 65%;
  animation-delay: 0.3s;
}
.sp-bars span:nth-child(4) {
  height: 85%;
  animation-delay: 0.1s;
}

@keyframes spBar {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

.sp-open {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  transition: 0.15s ease;
  margin-left: 0;
}
.sp-open:hover {
  color: #fff;
  border-color: rgba(29, 185, 84, 0.45);
  background: rgba(29, 185, 84, 0.12);
}

.sp-loading {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.profile-views {
  position: absolute;
  left: 0.95rem;
  bottom: 0.85rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  background: none;
  border: none;
  pointer-events: none;
  user-select: none;
}
.profile-views.hidden {
  display: none;
}
.profile-views svg {
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.9;
  flex-shrink: 0;
}
.profile-views-label {
  display: none;
}

/* ——— Card layout variants (guns.lol-inspired) ——— */
.layout-chip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0.55rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8b93a7;
  text-align: left;
  transition: 0.15s ease;
  cursor: pointer;
}
.layout-chip:hover {
  color: #eef0f4;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}
.layout-chip.active {
  color: #8869b3;
  border-color: rgba(136, 105, 179, 0.4);
  background: rgba(136, 105, 179, 0.1);
}
.layout-chip-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.layout-chip-preview {
  position: relative;
  height: 3.1rem;
  border-radius: 0.45rem;
  overflow: hidden;
  background: linear-gradient(160deg, #1a2030, #0a0c10);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.layout-chip-preview::before,
.layout-chip-preview::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.22);
}
/* Default preview: banner + centered avatar */
.layout-preview-default::before {
  top: 0;
  left: 0;
  right: 0;
  height: 42%;
  background: linear-gradient(135deg, rgba(136, 105, 179, 0.35), rgba(255, 255, 255, 0.08));
}
.layout-preview-default::after {
  left: 50%;
  top: 28%;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(10, 12, 16, 0.9);
}
/* Modern: taller banner, bigger avatar */
.layout-preview-modern::before {
  top: 0;
  left: 0;
  right: 0;
  height: 52%;
  background: linear-gradient(135deg, rgba(136, 105, 179, 0.45), rgba(99, 102, 241, 0.25));
}
.layout-preview-modern::after {
  left: 50%;
  top: 34%;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(10, 12, 16, 0.9);
}
/* Simplistic: no banner, avatar top */
.layout-preview-simplistic::before {
  display: none;
}
.layout-preview-simplistic::after {
  left: 50%;
  top: 0.45rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.55);
}
/* Sleek: left-aligned avatar under banner */
.layout-preview-sleek::before {
  top: 0;
  left: 0;
  right: 0;
  height: 38%;
  background: linear-gradient(90deg, rgba(136, 105, 179, 0.4), rgba(255, 255, 255, 0.1));
}
.layout-preview-sleek::after {
  left: 0.45rem;
  top: 22%;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(10, 12, 16, 0.9);
}
/* Open: no card frame, content on bg */
.layout-preview-open {
  background:
    linear-gradient(160deg, rgba(136, 105, 179, 0.25), transparent 55%),
    linear-gradient(20deg, #243044, #0a0c10);
}
.layout-preview-open::before {
  display: none;
}
.layout-preview-open::after {
  left: 50%;
  top: 0.55rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
/* Immersive: full-bleed bg merge */
.layout-preview-immersive {
  background:
    radial-gradient(circle at 50% 20%, rgba(136, 105, 179, 0.35), transparent 50%),
    linear-gradient(160deg, #2a3348, #07080a);
}
.layout-preview-immersive::before {
  display: none;
}
.layout-preview-immersive::after {
  left: 50%;
  top: 0.35rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.15),
    0 6px 14px rgba(0, 0, 0, 0.4);
}

.layout-preview-shell-card {
  background: linear-gradient(160deg, #1a2030, #0a0c10);
}
.layout-preview-shell-card::before {
  top: 0;
  left: 0;
  right: 0;
  height: 38%;
  background: linear-gradient(90deg, rgba(136, 105, 179, 0.45), rgba(255, 255, 255, 0.12));
  border-radius: 0;
}
.layout-preview-shell-card::after {
  left: 0.4rem;
  top: 22%;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.28rem;
  transform: none;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(10, 12, 16, 0.9);
  z-index: 1;
}
.layout-preview-shell-open {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(160deg, #3a3a3a, #1a1a1a);
}
.layout-preview-shell-open::before {
  display: none;
}
.layout-preview-shell-open::after {
  left: 50%;
  top: 0.35rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.8);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Link style picker chips — preview images as-is */
.layout-preview-link-classic,
.layout-preview-link-solid,
.layout-preview-link-glass,
.layout-preview-link-soft {
  padding: 0;
  background-color: #2a2a2c;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.layout-preview-link-classic {
  background-image: url("assets/link-style-classic.png");
}
.layout-preview-link-solid {
  background-image: url("assets/link-style-solid.png");
}
.layout-preview-link-glass {
  background-image: url("assets/link-style-glass.png");
}
.layout-preview-link-soft {
  background-image: url("assets/link-style-soft.png");
}
.layout-preview-link-classic::before,
.layout-preview-link-classic::after,
.layout-preview-link-solid::before,
.layout-preview-link-solid::after,
.layout-preview-link-glass::before,
.layout-preview-link-glass::after,
.layout-preview-link-soft::before,
.layout-preview-link-soft::after {
  display: none !important;
}

.profile-card.layout-modern {
  max-width: 380px;
  border-radius: 2rem;
}
.profile-card.layout-modern .pc-banner {
  height: 148px;
}
.profile-card.layout-modern .pc-avatar {
  width: 108px;
  height: 108px;
  margin-top: -54px;
  border-width: 5px;
}
.profile-card.layout-modern .pc-name {
  font-size: 1.7rem;
}
.profile-card.layout-modern .pc-body {
  padding: 0 1.25rem 2.5rem;
}
.profile-card.layout-modern .pc-badges {
  margin-top: 0.75rem;
  padding: 0.4rem 0.85rem;
}

.profile-card.layout-simplistic {
  max-width: 320px;
  border-radius: 1.35rem;
}
.profile-card.layout-simplistic .pc-banner {
  display: none;
}
.profile-card.layout-simplistic .pc-body {
  padding: 1.5rem 1.1rem 1.75rem;
}
.profile-card.layout-simplistic .pc-avatar {
  width: 84px;
  height: 84px;
  margin-top: 0;
  border-width: 3px;
}
.profile-card.layout-simplistic .pc-name {
  margin-top: 0.85rem;
  font-size: 1.35rem;
}
.profile-card.layout-simplistic .pc-badges {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  gap: 0.55rem;
}
.profile-card.layout-simplistic .pc-activity {
  border-radius: 0.75rem;
}
.profile-card.layout-simplistic .pc-links {
  gap: 0.55rem;
}
.profile-card.layout-simplistic .preview-link,
.profile-card.layout-simplistic .pc-links a {
  border-radius: 999px;
}

.profile-card.layout-sleek {
  max-width: 390px;
  border-radius: 1.25rem;
}
.profile-card.layout-sleek .pc-banner {
  height: 100px;
  border-radius: 0;
}
.profile-card.layout-sleek .pc-body {
  align-items: flex-start;
  text-align: left;
  padding: 0 1.15rem 1.85rem;
}
.profile-card.layout-sleek .avatar-wrap {
  align-self: flex-start;
  margin-left: 0.15rem;
}
.profile-card.layout-sleek .pc-avatar {
  width: 78px;
  height: 78px;
  margin-top: -40px;
  border-radius: 1rem;
  border-width: 3px;
}
.profile-card.layout-sleek .avatar-glow {
  border-radius: 1.15rem;
}
.profile-card.layout-sleek .pc-name {
  margin-top: 0.55rem;
  font-size: 1.4rem;
}
.profile-card.layout-sleek .pc-bio {
  max-width: none;
  text-align: left;
}
.profile-card.layout-sleek .pc-badges,
.profile-card.layout-sleek .pc-socials {
  justify-content: flex-start;
}
.profile-card.layout-sleek .pc-socials-top,
.profile-card.layout-sleek .pc-socials-bottom {
  width: 100%;
}
.profile-card.layout-sleek .profile-views {
  left: auto;
  right: 0.95rem;
}

/* ——— Shell chrome (Card / Open) — layout-* still controls structure ——— */

/* Card: glass frame + ghost pills (layout styles stay intact) */
.profile-card.shell-card {
  overflow: hidden;
}
.profile-card.shell-card .pc-socials .social-btn {
  background: transparent;
  border: 0;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
}
.profile-card.shell-card .profile-views {
  left: auto;
  right: 0.95rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Card + Sleek ≈ left reference (banner + square avatar, left-aligned) */
.profile-card.shell-card.layout-sleek {
  max-width: 340px;
  border-radius: 1.45rem;
}
.profile-card.shell-card.layout-sleek .pc-banner {
  height: 118px;
}
.profile-card.shell-card.layout-sleek .pc-avatar {
  width: 76px;
  height: 76px;
  margin-top: -40px;
  border-radius: 1.05rem;
  border-width: 4px;
  border-color: rgba(12, 14, 18, 0.98);
}
.profile-card.shell-card.layout-sleek .pc-name {
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}
.profile-card.shell-card.layout-sleek .pc-socials {
  justify-content: center;
}
.profile-card.shell-card.layout-sleek .pc-activity {
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.45);
}

/* Open: no glass chrome; sizes come from layout-* variants below */
.profile-card.shell-open {
  max-width: 380px;
  overflow: visible;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-radius: 0;
  border: 0;
}
.profile-card.shell-open .glass-border,
.profile-card.shell-open .glass-shine {
  display: none;
}
.profile-card.shell-open.fx-glow,
.profile-card.shell-open.fx-pulse,
.profile-card.shell-open.fx-shimmer {
  box-shadow: none;
}
.profile-card.shell-open .pc-banner {
  display: none;
}
.profile-card.shell-open .pc-avatar {
  margin-top: 0;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 40px rgba(255, 255, 255, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.55);
}
.profile-card.shell-open .avatar-glow {
  border-radius: 999px;
  inset: -18px;
}
.profile-card.shell-open .avatar-glow.on {
  opacity: 0.9;
}
.profile-card.shell-open .pc-name,
.profile-card.shell-open .pc-handle,
.profile-card.shell-open .pc-bio {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.profile-card.shell-open .pc-handle {
  color: rgba(255, 255, 255, 0.95);
  opacity: 0.9;
}
.profile-card.shell-open .pc-badges {
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.profile-card.shell-open .pc-activity {
  width: 100%;
  margin-top: 1.15rem;
  border-radius: 1.25rem;
  background: rgba(36, 36, 38, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.profile-card.shell-open .pc-links {
  width: 100%;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.profile-card.shell-open .pc-socials .social-btn {
  background: transparent;
  border: 0;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
  overflow: visible;
}
.profile-card.shell-open .pc-socials,
.profile-card.shell-open .pc-links,
.profile-card.shell-open .pc-activity,
.profile-card.shell-open .pc-body {
  overflow: visible;
}
.profile-card.shell-open .pc-socials {
  padding: 0.4rem 0.65rem;
  margin-inline: -0.65rem;
}
.profile-card.shell-open .profile-views {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: 1.25rem;
  justify-content: center;
  width: 100%;
  color: rgba(255, 255, 255, 0.5);
}

/* Open × layout — visible structure differences */
.profile-card.shell-open.layout-default {
  max-width: 360px;
}
.profile-card.shell-open.layout-default .pc-body {
  align-items: center;
  text-align: center;
  padding: 0.35rem 0.5rem 1.4rem;
}
.profile-card.shell-open.layout-default .avatar-wrap {
  align-self: center;
  margin-left: 0;
}
.profile-card.shell-open.layout-default .pc-avatar {
  width: 118px;
  height: 118px;
}
.profile-card.shell-open.layout-default .pc-name {
  margin-top: 1rem;
  font-size: 2.05rem;
  letter-spacing: 0.02em;
  text-align: center;
}
.profile-card.shell-open.layout-default .pc-badges,
.profile-card.shell-open.layout-default .pc-socials {
  justify-content: center;
}

.profile-card.shell-open.layout-modern {
  max-width: 420px;
}
.profile-card.shell-open.layout-modern .pc-body {
  align-items: center;
  text-align: center;
  padding: 0.5rem 0.75rem 1.75rem;
}
.profile-card.shell-open.layout-modern .avatar-wrap {
  align-self: center;
  margin-left: 0;
}
.profile-card.shell-open.layout-modern .pc-avatar {
  width: 148px;
  height: 148px;
  border-width: 3px;
}
.profile-card.shell-open.layout-modern .pc-name {
  margin-top: 1.15rem;
  font-size: 2.35rem;
  text-align: center;
}
.profile-card.shell-open.layout-modern .pc-badges,
.profile-card.shell-open.layout-modern .pc-socials {
  justify-content: center;
}
.profile-card.shell-open.layout-modern .pc-activity {
  border-radius: 1.4rem;
  padding: 0.8rem 0.85rem;
}

.profile-card.shell-open.layout-simplistic {
  max-width: 300px;
}
.profile-card.shell-open.layout-simplistic .pc-body {
  align-items: center;
  text-align: center;
  padding: 0.25rem 0.35rem 1.1rem;
}
.profile-card.shell-open.layout-simplistic .avatar-wrap {
  align-self: center;
  margin-left: 0;
}
.profile-card.shell-open.layout-simplistic .pc-avatar {
  width: 88px;
  height: 88px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.45);
}
.profile-card.shell-open.layout-simplistic .pc-name {
  margin-top: 0.75rem;
  font-size: 1.45rem;
  text-align: center;
}
.profile-card.shell-open.layout-simplistic .pc-badges {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  justify-content: center;
}
.profile-card.shell-open.layout-simplistic .pc-socials {
  justify-content: center;
}
.profile-card.shell-open.layout-simplistic .pc-activity {
  border-radius: 0.85rem;
  margin-top: 0.85rem;
}
.profile-card.shell-open.layout-simplistic .preview-link {
  padding: 0.7rem 0.9rem;
}

.profile-card.shell-open.layout-sleek {
  max-width: 360px;
}
.profile-card.shell-open.layout-sleek .pc-body {
  align-items: flex-start;
  text-align: left;
  padding: 0.35rem 0.35rem 1.35rem;
}
.profile-card.shell-open.layout-sleek .avatar-wrap {
  align-self: flex-start;
  margin-left: 0.15rem;
}
.profile-card.shell-open.layout-sleek .pc-avatar {
  width: 80px;
  height: 80px;
  border-radius: 1.05rem;
  border-width: 3px;
}
.profile-card.shell-open.layout-sleek .avatar-glow {
  border-radius: 1.2rem;
  inset: -12px;
}
.profile-card.shell-open.layout-sleek .pc-name {
  margin-top: 0.65rem;
  font-size: 1.65rem;
  text-align: left;
}
.profile-card.shell-open.layout-sleek .pc-handle,
.profile-card.shell-open.layout-sleek .pc-bio {
  text-align: left;
}
.profile-card.shell-open.layout-sleek .pc-bio {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.profile-card.shell-open.layout-sleek .pc-badges,
.profile-card.shell-open.layout-sleek .pc-socials {
  justify-content: flex-start;
}
.profile-card.shell-open.layout-sleek .pc-socials {
  margin-inline: 0;
  padding-inline: 0;
}
.profile-card.shell-open.layout-sleek .profile-views {
  justify-content: flex-end;
  width: auto;
  margin-left: auto;
}

/* Open: keep shadows unclipped (icons / avatar / pills) */
body.layout-merged main {
  overflow: hidden;
}
body.layout-merged #stage {
  overflow: visible;
}
body.layout-merged .profile-card.shell-open,
body.layout-merged .profile-card.glass-card.shell-open {
  max-width: min(420px, 96vw);
  overflow: visible;
}
body.layout-merged #stage .absolute.inset-0.flex {
  overflow: visible;
  align-items: center;
  justify-content: center;
  padding: 2.75rem 2rem;
}
body.layout-merged .profile-card.shell-open .avatar-wrap,
body.layout-merged .profile-card.shell-open .pc-socials,
body.layout-merged .profile-card.shell-open .pc-links,
body.layout-merged .profile-card.shell-open .pc-activity,
body.layout-merged .profile-card.shell-open .pc-body {
  overflow: visible;
}
body.layout-merged .profile-card.shell-open .pc-socials {
  padding: 0.75rem 0.9rem;
  margin-inline: -0.9rem;
}
body.layout-merged .profile-card.shell-open .pc-socials .social-btn {
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.55));
}

body.layout-merged #bgOverlay {
  opacity: 0.68;
}
/* ——— guns.lol-style profile card ——— */
.profile-card.glass-card {
  overflow: hidden;
  padding: 0;
  max-width: 360px;
}
/* Open must win over glass-card overflow or icon/avatar shadows get clipped */
.profile-card.glass-card.shell-open {
  overflow: visible;
}

.pc-banner {
  position: relative;
  height: 118px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.35));
}
.pc-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.pc-banner img.is-on {
  display: block;
}
.pc-banner-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 55%),
    linear-gradient(160deg, #1a2030, #0a0c10);
}

.pc-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.15rem 2.35rem;
  text-align: center;
}

.pc-avatar {
  width: 92px;
  height: 92px;
  margin-top: -46px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid rgba(12, 14, 18, 0.85);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  background: #12151c;
  position: relative;
  z-index: 2;
}

.pc-name {
  margin-top: 0.7rem;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pc-handle {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 450;
  opacity: 0.88;
  color: rgba(255, 255, 255, 0.9);
}
.pc-handle.hidden {
  display: none;
}

.pc-badges {
  margin-top: 0.65rem;
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.pc-badges.has-items {
  display: inline-flex;
}
.pc-badge {
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
  font-size: 0.78rem;
  line-height: 1;
  text-decoration: none;
}
.pc-badge.is-link {
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}
.pc-badge.is-link:hover {
  color: var(--accent, #8869b3);
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent, #8869b3) 70%, transparent));
}
.pc-badge i,
.pc-badge svg {
  width: 1em;
  height: 1em;
  display: block;
  pointer-events: none;
}

.pc-bio {
  margin-top: 0.75rem;
  max-width: 18rem;
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 400;
}

.pc-activity {
  margin-top: 0.95rem;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.7rem;
  border-radius: 0.95rem;
  text-align: left;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}
.pc-activity.hidden {
  display: none;
}

.pc-activity-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
}
.pc-activity-avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  background: #1a1f2b;
}
.pc-presence {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 999px;
  border: 2.5px solid rgba(18, 20, 26, 0.95);
  background: #80848e;
}
.pc-presence[data-status="online"] {
  background: #23a559;
}
.pc-presence[data-status="idle"] {
  background: #f0b232;
}
.pc-presence[data-status="dnd"] {
  background: #f23f43;
}
.pc-presence[data-status="dnd"]::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58%;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(18, 20, 26, 0.95);
}
.pc-presence[data-status="offline"] {
  background: #80848e;
  box-shadow: inset 0 0 0 2.5px rgba(18, 20, 26, 0.95);
  background-clip: content-box;
  padding: 2px;
}

.pc-activity-text {
  min-width: 0;
  flex: 1;
}
.pc-activity-title {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.92);
}
.pc-activity-status {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.88);
}
.pc-activity-verb {
  font-weight: 400;
}
.pc-activity-status strong {
  font-weight: 700;
}
.pc-activity-detail {
  margin-top: 0.05rem;
  font-size: 0.68rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-activity-icon-wrap {
  flex-shrink: 0;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.55rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pc-activity-icon-wrap.is-empty {
  display: none;
}
.pc-activity-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.pc-activity-icon.is-on {
  display: block;
}

.pc-links {
  margin-top: 0.85rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.pc-links:empty {
  display: none;
}

.pc-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
.pc-socials-top {
  margin-top: 0.7rem;
}
.pc-socials-bottom {
  margin-top: 0.95rem;
}
.pc-socials:empty,
.pc-socials.is-empty {
  display: none;
}
.pc-socials .social-btn {
  width: 2.1rem;
  height: 2.1rem;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
}
.pc-socials .social-btn:hover {
  background: transparent;
  color: #fff;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 70%, transparent));
  transform: translateY(-1px);
}
.pc-socials .social-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.badge-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  color: #c4c9d4;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.15s;
  font-size: 0.95rem;
  cursor: default;
  user-select: none;
}
.badge-pick i,
.badge-pick svg {
  width: 1em;
  height: 1em;
  display: block;
}
.badge-pick.is-locked {
  color: #5a6170;
  opacity: 0.55;
}
.badge-pick.is-owned {
  color: #8869b3;
  background: rgba(136, 105, 179, 0.12);
  border-color: rgba(136, 105, 179, 0.35);
  opacity: 1;
}
.badge-pick .badge-lock {
  position: absolute;
  right: 0.15rem;
  bottom: 0.1rem;
  font-size: 0.45rem;
  color: rgba(255, 255, 255, 0.55);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.badge-picker.is-locked {
  pointer-events: none;
}
.badge-pick:hover {
  color: #c4c9d4;
  border-color: rgba(255, 255, 255, 0.08);
}
.badge-pick.active {
  color: #8869b3;
  background: rgba(136, 105, 179, 0.12);
  border-color: rgba(136, 105, 179, 0.35);
}

@media (max-width: 767px) {
  .profile-views {
    bottom: 0.85rem;
  }
}

/* ——— Unique glass profile card ——— */
.glass-card {
  --glass-opacity: 0.72;
  --glass-blur: 18px;
  --accent: #8869b3;
  --card-text: #ffffff;

  border-radius: 1.75rem;
  background: linear-gradient(
      155deg,
      rgba(255, 255, 255, calc(var(--glass-opacity) * 0.18)) 0%,
      rgba(255, 255, 255, calc(var(--glass-opacity) * 0.05)) 40%,
      rgba(8, 10, 14, calc(var(--glass-opacity) * 0.55)) 100%
    ),
    rgba(12, 14, 18, calc(var(--glass-opacity) * 0.55));
  backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 -1px 0 rgba(0, 0, 0, 0.25) inset,
    0 28px 60px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out, box-shadow 0.25s ease;
  color: var(--card-text);
}

.glass-border {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0.05) 35%,
    transparent 55%,
    color-mix(in srgb, var(--accent) 55%, transparent)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.glass-shine {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  opacity: 0.55;
}
.glass-shine::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 70%);
  filter: blur(8px);
}

.glass-card.fx-glow {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 0 40px color-mix(in srgb, var(--accent) 35%, transparent),
    0 0 80px color-mix(in srgb, var(--accent) 18%, transparent),
    0 28px 60px rgba(0, 0, 0, 0.45);
}

.glass-card.fx-pulse .glass-border {
  animation: borderPulse 2.4s ease-in-out infinite;
}

@keyframes borderPulse {
  0%,
  100% {
    opacity: 0.7;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.35);
  }
}

.glass-card.fx-shimmer .glass-shine::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 60%
  );
  animation: shimmer 3.2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-30%);
  }
  100% {
    transform: translateX(30%);
  }
}

.avatar-wrap {
  transform: translateZ(28px);
}

.avatar-glow {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: -1;
}
.avatar-glow.on {
  opacity: 1;
}

.handle-glow {
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 80%, transparent);
}

.preview-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--link-text, var(--card-text, #fff));
  background: color-mix(in srgb, var(--link-color, #2c2c2e) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--link-color, #2c2c2e) 55%, rgba(255, 255, 255, 0.2));
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}
.preview-link:hover {
  transform: translateY(-1px);
}
.preview-link-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  overflow: hidden;
}
.preview-link-icon svg,
.preview-link-icon img {
  width: 1rem;
  height: 1rem;
  display: block;
  object-fit: contain;
}
.preview-link-icon.is-favicon {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.28rem;
}
.preview-link-label {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.preview-link-arrow {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.preview-link:hover .preview-link-arrow {
  color: #fff;
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translate(1px, -1px);
}

/* ——— Link style variants (picker) ——— */
.profile-card.link-style-classic .preview-link,
#linkFields.link-style-classic .link-card-preview {
  justify-content: center;
  gap: 0;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  color: var(--link-text, #fff);
  background: color-mix(in srgb, var(--link-color, #2c2c2e) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--link-color, #2c2c2e) 35%, rgba(255, 255, 255, 0.35));
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.profile-card.link-style-classic .preview-link:hover {
  background: color-mix(in srgb, var(--link-color, #2c2c2e) 82%, transparent);
  border-color: color-mix(in srgb, var(--link-color, #2c2c2e) 25%, rgba(255, 255, 255, 0.45));
  box-shadow: none;
  transform: none;
}
.profile-card.link-style-classic .preview-link-icon,
.profile-card.link-style-classic .preview-link-arrow,
#linkFields.link-style-classic .preview-link-icon,
#linkFields.link-style-classic .preview-link-arrow {
  display: none;
}
.profile-card.link-style-classic .preview-link-label,
#linkFields.link-style-classic .preview-link-label {
  flex: 0 1 auto;
  text-align: center;
  color: inherit;
}

.profile-card.link-style-solid .preview-link,
#linkFields.link-style-solid .link-card-preview {
  justify-content: center;
  gap: 0;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  color: var(--link-text, #fff);
  background: var(--link-color, #2c2c2e);
  border: 0;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--link-color, #2c2c2e) 55%, rgba(0, 0, 0, 0.55));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.profile-card.link-style-solid .preview-link:hover {
  background: color-mix(in srgb, var(--link-color, #2c2c2e) 88%, #fff);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--link-color, #2c2c2e) 45%, rgba(0, 0, 0, 0.55));
  transform: translateY(-1px);
}
.profile-card.link-style-solid .preview-link-icon,
.profile-card.link-style-solid .preview-link-arrow,
#linkFields.link-style-solid .preview-link-icon,
#linkFields.link-style-solid .preview-link-arrow {
  display: none;
}
.profile-card.link-style-solid .preview-link-label,
#linkFields.link-style-solid .preview-link-label {
  flex: 0 1 auto;
  text-align: center;
  color: inherit;
}

/* Glass = image 2: icon + label + faint right circle */
.profile-card.link-style-glass .preview-link,
#linkFields.link-style-glass .link-card-preview {
  border-radius: 999px;
  padding: 0.55rem 0.7rem 0.55rem 0.55rem;
  gap: 0.7rem;
  color: var(--link-text, #fff);
  background: color-mix(in srgb, var(--link-color, #2c2c2e) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--link-color, #2c2c2e) 40%, rgba(255, 255, 255, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px color-mix(in srgb, var(--link-color, #2c2c2e) 40%, rgba(0, 0, 0, 0.45));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.profile-card.link-style-glass .preview-link:hover {
  background: color-mix(in srgb, var(--link-color, #2c2c2e) 92%, #fff);
  border-color: color-mix(in srgb, var(--link-color, #2c2c2e) 30%, rgba(255, 255, 255, 0.2));
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 28px color-mix(in srgb, var(--link-color, #2c2c2e) 35%, rgba(0, 0, 0, 0.5));
}
.profile-card.link-style-glass .preview-link-icon,
#linkFields.link-style-glass .preview-link-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.75rem;
  color: var(--link-text, #fff);
  background: color-mix(in srgb, var(--link-color, #2c2c2e) 55%, rgba(255, 255, 255, 0.1));
  border: 1px solid color-mix(in srgb, var(--link-color, #2c2c2e) 35%, rgba(255, 255, 255, 0.14));
  backdrop-filter: blur(8px);
}
.profile-card.link-style-glass .preview-link-arrow,
#linkFields.link-style-glass .preview-link-arrow {
  width: 1.35rem;
  height: 1.35rem;
  color: transparent;
  background: transparent;
  border: 1.5px solid color-mix(in srgb, var(--link-text, #fff) 18%, transparent);
  font-size: 0;
}
.profile-card.link-style-glass .preview-link-arrow i,
#linkFields.link-style-glass .preview-link-arrow i {
  display: none;
}
.profile-card.link-style-glass .preview-link:hover .preview-link-arrow {
  border-color: color-mix(in srgb, var(--link-text, #fff) 28%, transparent);
  background: transparent;
  transform: none;
}
.profile-card.link-style-glass .preview-link-label,
#linkFields.link-style-glass .preview-link-label {
  color: inherit;
}

/* Soft = image 3: frosted glass + bright left rim + icon */
.profile-card.link-style-soft .preview-link,
#linkFields.link-style-soft .link-card-preview {
  border-radius: 1.35rem;
  padding: 0.6rem 1rem 0.6rem 0.55rem;
  gap: 0.75rem;
  color: var(--link-text, #fff);
  background: color-mix(in srgb, var(--link-color, #2c2c2e) 42%, transparent);
  border: 1px solid color-mix(in srgb, var(--link-color, #2c2c2e) 25%, rgba(255, 255, 255, 0.22));
  box-shadow:
    inset 2px 0 0 color-mix(in srgb, var(--link-text, #fff) 55%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--link-text, #fff) 28%, transparent),
    0 12px 28px color-mix(in srgb, var(--link-color, #2c2c2e) 35%, rgba(0, 0, 0, 0.4));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.profile-card.link-style-soft .preview-link:hover {
  background: color-mix(in srgb, var(--link-color, #2c2c2e) 52%, transparent);
  border-color: color-mix(in srgb, var(--link-color, #2c2c2e) 20%, rgba(255, 255, 255, 0.3));
  transform: translateY(-1px);
  box-shadow:
    inset 2px 0 0 color-mix(in srgb, var(--link-text, #fff) 70%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--link-text, #fff) 35%, transparent),
    0 14px 32px color-mix(in srgb, var(--link-color, #2c2c2e) 30%, rgba(0, 0, 0, 0.45));
}
.profile-card.link-style-soft .preview-link-arrow,
#linkFields.link-style-soft .preview-link-arrow {
  display: none;
}
.profile-card.link-style-soft .preview-link-icon,
#linkFields.link-style-soft .preview-link-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.8rem;
  color: var(--link-text, #fff);
  background: color-mix(in srgb, var(--link-color, #2c2c2e) 45%, rgba(255, 255, 255, 0.14));
  border: 1px solid color-mix(in srgb, var(--link-color, #2c2c2e) 30%, rgba(255, 255, 255, 0.18));
}
.profile-card.link-style-soft .preview-link-label,
#linkFields.link-style-soft .preview-link-label {
  color: inherit;
}

/* Activity card follows Link style (radius stays default) */
.profile-card.link-style-classic .pc-activity {
  padding: 0.7rem 0.85rem;
  color: var(--link-text, #fff);
  background: color-mix(in srgb, var(--link-color, #2c2c2e) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--link-color, #2c2c2e) 35%, rgba(255, 255, 255, 0.35));
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.profile-card.link-style-classic .pc-activity-icon-wrap {
  background: color-mix(in srgb, var(--link-color, #2c2c2e) 50%, rgba(255, 255, 255, 0.1));
  border-color: color-mix(in srgb, var(--link-color, #2c2c2e) 30%, rgba(255, 255, 255, 0.16));
}

.profile-card.link-style-solid .pc-activity {
  padding: 0.75rem 0.9rem;
  color: var(--link-text, #fff);
  background: var(--link-color, #2c2c2e);
  border: 0;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--link-color, #2c2c2e) 55%, rgba(0, 0, 0, 0.55));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.profile-card.link-style-solid .pc-activity-icon-wrap {
  background: color-mix(in srgb, var(--link-color, #2c2c2e) 70%, #fff);
  border-color: color-mix(in srgb, var(--link-color, #2c2c2e) 40%, rgba(255, 255, 255, 0.1));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.profile-card.link-style-glass .pc-activity {
  padding: 0.6rem 0.75rem 0.6rem 0.6rem;
  color: var(--link-text, #fff);
  background: color-mix(in srgb, var(--link-color, #2c2c2e) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--link-color, #2c2c2e) 40%, rgba(255, 255, 255, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px color-mix(in srgb, var(--link-color, #2c2c2e) 40%, rgba(0, 0, 0, 0.45));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.profile-card.link-style-glass .pc-activity-icon-wrap {
  background: color-mix(in srgb, var(--link-color, #2c2c2e) 55%, rgba(255, 255, 255, 0.1));
  border: 1px solid color-mix(in srgb, var(--link-color, #2c2c2e) 35%, rgba(255, 255, 255, 0.14));
  overflow: hidden;
}

.profile-card.link-style-soft .pc-activity {
  padding: 0.65rem 0.9rem 0.65rem 0.6rem;
  color: var(--link-text, #fff);
  background: color-mix(in srgb, var(--link-color, #2c2c2e) 42%, transparent);
  border: 1px solid color-mix(in srgb, var(--link-color, #2c2c2e) 25%, rgba(255, 255, 255, 0.22));
  box-shadow:
    inset 2px 0 0 color-mix(in srgb, var(--link-text, #fff) 55%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--link-text, #fff) 28%, transparent),
    0 12px 28px color-mix(in srgb, var(--link-color, #2c2c2e) 35%, rgba(0, 0, 0, 0.4));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.profile-card.link-style-soft .pc-activity-icon-wrap {
  background: color-mix(in srgb, var(--link-color, #2c2c2e) 45%, rgba(255, 255, 255, 0.14));
  border: 1px solid color-mix(in srgb, var(--link-color, #2c2c2e) 30%, rgba(255, 255, 255, 0.18));
  overflow: hidden;
}

.profile-card[class*="link-style-"] .pc-activity-title,
.profile-card[class*="link-style-"] .pc-activity-status {
  color: color-mix(in srgb, var(--link-text, #fff) 92%, transparent);
}
.profile-card[class*="link-style-"] .pc-activity-detail {
  color: color-mix(in srgb, var(--link-text, #fff) 48%, transparent);
}

.social-btn {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  color: var(--card-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: 0.15s ease;
}
.social-btn:hover {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
}
.social-btn svg {
  width: 1rem;
  height: 1rem;
}

#saveToast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ——— Studio customize / editor reveal ——— */
@keyframes aura-editor-reveal {
  from {
    opacity: 0;
    transform: translateX(2.25rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes aura-card-editor-shift {
  from {
    opacity: 0.88;
    transform: translateX(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body.studio-customize-enter .editor-panel {
  animation: aura-editor-reveal 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

body.studio-customize-enter #profileCard {
  animation: aura-card-editor-shift 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

body.editor-reveal .editor-panel {
  animation: aura-editor-reveal 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  body.studio-customize-enter .editor-panel,
  body.studio-customize-enter #profileCard,
  body.editor-reveal .editor-panel {
    animation: none !important;
  }
}

/* ——— Collapsible editor chrome ——— */
.editor-panel {
  max-width: 400px;
  transition:
    max-width 0.35s ease,
    opacity 0.25s ease,
    transform 0.35s ease,
    border-color 0.25s ease;
  overflow: hidden;
}
body.chrome-editor-hidden .editor-panel {
  max-width: 0 !important;
  opacity: 0;
  transform: translateX(1rem);
  border-color: transparent;
  pointer-events: none;
}

.editor-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
}
.editor-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.editor-action-ghost {
  color: #c4c9d4;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.editor-action-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
.editor-action-primary {
  color: #07080a;
  background: #8869b3;
  border: 1px solid transparent;
  box-shadow: 0 0 24px rgba(136, 105, 179, 0.25);
}
.editor-action-primary:hover {
  background: #fff;
}

.chrome-fab {
  position: fixed;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 14, 18, 0.72);
  color: #eef0f4;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, opacity 0.2s ease;
}
.chrome-fab svg {
  width: 1rem;
  height: 1rem;
}
.chrome-fab:hover {
  background: rgba(136, 105, 179, 0.16);
  color: #8869b3;
  transform: translateY(-1px);
}

.chrome-fab-editor {
  right: 1.15rem;
  bottom: 1.15rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #8869b3;
  color: #07080a;
  border-color: transparent;
  box-shadow: 0 0 24px rgba(136, 105, 179, 0.28), 0 10px 28px rgba(0, 0, 0, 0.35);
}
.chrome-fab-editor:hover {
  background: #fff;
  color: #07080a;
}
body.chrome-editor-hidden .chrome-fab-editor {
  display: inline-flex;
}

@media (max-width: 767px) {
  .editor-panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(400px, 100%);
    max-width: min(400px, 100%);
    transform: translateX(100%);
    opacity: 1;
    pointer-events: auto;
  }
  body:not(.chrome-editor-hidden) .editor-panel,
  .editor-panel.open {
    transform: translateX(0);
  }
  body.chrome-editor-hidden .editor-panel {
    max-width: min(400px, 100%) !important;
    transform: translateX(100%);
    opacity: 1;
  }
  .chrome-fab-editor {
    bottom: 1.25rem;
  }
}
