/* ── Owner-only accent control (stacked under gear, top-right) ── */
.profile-theme-control[hidden] {
  display: none;
}

.profile-theme-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  cursor: pointer;
  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.profile-theme-btn::before {
  content: "";
  position: absolute;
  inset: -10px;
}

.profile-theme-btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: color var(--theme-transition);
}

.profile-theme-btn:hover,
.profile-theme-btn:focus-visible {
  transform: scale(1.06);
  background: rgba(var(--accent-r), 0.14);
  border-color: var(--accent-border);
  color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow-soft);
  outline: none;
}

.profile-theme-menu {
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 168px;
}

.theme-menu__option[data-profile-accent="pink"] { --swatch: #ff8fb1; }
.theme-menu__option[data-profile-accent="ice-blue"] { --swatch: #5ac8fa; }
.theme-menu__option[data-profile-accent="purple"] { --swatch: #bf5af2; }
.theme-menu__option[data-profile-accent="matrix-green"] { --swatch: #39ff14; }
.theme-menu__option[data-profile-accent="sunset-orange"] { --swatch: #ff9f0a; }
.theme-menu__option[data-profile-accent="electric-yellow"] { --swatch: #efff00; }
.theme-menu__option[data-profile-accent="ice-white"] { --swatch: #f4f8ff; }
.theme-menu__option[data-profile-accent="blood-red"] { --swatch: #ff0000; }

.theme-menu__option[data-profile-accent="shift"]::before {
  background: conic-gradient(
    from 0deg,
    #ff8fb1,
    #ff0000,
    #ff9f0a,
    #efff00,
    #39ff14,
    #5ac8fa,
    #bf5af2,
    #ff8fb1
  );
  box-shadow: 0 0 8px rgba(255, 143, 177, 0.45);
  animation: profile-shift-swatch 4s linear infinite;
}

.theme-menu__option--shift {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes profile-shift-swatch {
  to { transform: rotate(360deg); }
}

html[data-theme="shift"] {
  --theme-transition: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .theme-menu__option[data-profile-accent="shift"]::before {
    animation: none;
  }
}
