.profile-customization-entry-card {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 92px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 20px 0 4px;
  padding: 16px 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 86, 190, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 214, 101, 0.13), transparent 25%),
    radial-gradient(circle at 90% 8%, rgba(172, 70, 255, 0.27), transparent 44%),
    linear-gradient(112deg, rgba(26, 17, 44, 0.98), rgba(25, 15, 41, 0.95) 49%, rgba(48, 19, 68, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 119, 205, 0.05) inset,
    0 17px 38px rgba(15, 3, 29, 0.34),
    0 0 32px rgba(230, 48, 176, 0.1);
  color: #fceffc;
  font: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.profile-customization-entry-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(120deg, transparent 9%, rgba(255, 255, 255, 0.05) 50%, transparent 88%);
  content: "";
  opacity: 0;
  transform: translateX(-18%);
  transition: opacity 180ms ease, transform 260ms ease;
}

.profile-customization-entry-card:hover {
  border-color: rgba(255, 117, 208, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 128, 215, 0.08) inset,
    0 20px 42px rgba(15, 3, 29, 0.42),
    0 0 38px rgba(230, 48, 176, 0.2);
  transform: translateY(-2px);
}

.profile-customization-entry-card:hover::before {
  opacity: 1;
  transform: translateX(18%);
}

.profile-customization-entry-card:active {
  transform: translateY(0);
}

.profile-customization-entry-card:focus-visible,
.profile-customization-close:focus-visible,
.profile-customization-back:focus-visible,
.profile-customization-upgrade:focus-visible {
  outline: 2px solid #ff8bd8;
  outline-offset: 3px;
}

.profile-customization-entry-card[hidden] {
  display: none !important;
}

.profile-customization-entry-crown {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 214, 102, 0.52);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 219, 122, 0.2), rgba(214, 121, 25, 0.12));
  color: #ffd66c;
  box-shadow: 0 7px 21px rgba(237, 163, 45, 0.15), 0 0 18px rgba(255, 205, 74, 0.08) inset;
}

.profile-customization-entry-crown svg {
  width: 21px;
  height: 21px;
}

.profile-customization-entry-copy {
  min-width: 0;
}

.profile-customization-entry-title {
  display: block;
  color: #fff7ff;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.profile-customization-entry-subtitle {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #c6a9c7;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-customization-entry-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.profile-customization-premium-pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 214, 101, 0.57);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 212, 100, 0.25), rgba(178, 99, 29, 0.2));
  color: #ffe29a;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1;
}

.profile-customization-entry-chevron {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 146, 221, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: #ff8bd8;
}

.profile-customization-entry-chevron svg {
  width: 15px;
  height: 15px;
}

.profile-customization-entry-lock {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 224, 159, 0.28);
  border-radius: 7px;
  background: rgba(13, 7, 22, 0.55);
  color: #ffd77b;
  opacity: 1;
  transform: scale(1);
  transition: opacity 180ms ease, transform 180ms ease;
}

.profile-customization-entry-lock svg {
  width: 11px;
  height: 11px;
}

.profile-customization-entry-card[data-profile-customization-locked="false"] .profile-customization-entry-lock {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.profile-customization-shell {
  --profile-customization-studio-accent: #ff54b8;
  --profile-customization-studio-theme: #ff54b8;
  --profile-customization-studio-secondary: #45d7ff;
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background:
    radial-gradient(circle at 78% 11%, rgba(168, 49, 238, 0.16), transparent 31%),
    radial-gradient(circle at 14% 75%, rgba(233, 35, 143, 0.1), transparent 32%),
    rgba(4, 5, 13, 0.84);
  color: #f8f3fa;
  opacity: 1;
  overscroll-behavior: contain;
  -webkit-backdrop-filter: blur(17px);
  backdrop-filter: blur(17px);
  transition: opacity 180ms ease;
}

.profile-customization-shell[hidden] {
  display: none !important;
}

.profile-customization-shell.profile-customization-shell-closing {
  opacity: 0;
}

.profile-customization-panel {
  position: relative;
  display: flex;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 104, 197, 0.3);
  border-radius: 0;
  background:
    linear-gradient(148deg, rgba(30, 19, 48, 0.98), rgba(14, 14, 27, 0.98) 54%, rgba(29, 17, 46, 0.99)),
    #151021;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.68),
    0 0 72px rgba(213, 44, 176, 0.16),
    0 0 0 1px rgba(255, 216, 247, 0.035) inset;
  transform: translateY(0);
  transition: transform 220ms ease;
}

.profile-customization-panel::before {
  position: absolute;
  top: -130px;
  right: -95px;
  width: 330px;
  height: 280px;
  border-radius: 50%;
  background: rgba(147, 63, 255, 0.15);
  content: "";
  filter: blur(42px);
  pointer-events: none;
}

.profile-customization-header {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 27px 20px;
  border-bottom: 1px solid rgba(221, 170, 226, 0.12);
}

.profile-customization-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.profile-customization-heading-mark {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 214, 101, 0.42);
  border-radius: 11px;
  background: rgba(255, 205, 74, 0.1);
  color: #ffd66c;
}

.profile-customization-heading-mark svg {
  width: 17px;
  height: 17px;
}

.profile-customization-eyebrow {
  display: block;
  margin: 1px 0 7px;
  color: #ff88d6;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1;
}

.profile-customization-title {
  margin: 0;
  color: #fff7ff;
  font-size: clamp(21px, 3vw, 29px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.profile-customization-header-note {
  margin: 7px 0 0;
  color: #bcaec5;
  font-size: 12px;
  line-height: 1.45;
}

.profile-customization-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(232, 188, 233, 0.19);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #f5eaf8;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.profile-customization-close svg {
  width: 17px;
  height: 17px;
}

.profile-customization-close:hover {
  border-color: rgba(255, 129, 211, 0.6);
  background: rgba(255, 108, 199, 0.12);
  transform: rotate(3deg);
}

.profile-customization-body {
  display: grid;
  min-height: 0;
  gap: 24px;
  overflow: auto;
  padding: 27px;
  overscroll-behavior: contain;
}

.profile-customization-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  align-items: center;
  gap: 22px;
}

.profile-customization-intro-copy {
  min-width: 0;
}

.profile-customization-intro-kicker {
  margin: 0 0 8px;
  color: #dfbedf;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-customization-intro-copy h3 {
  margin: 0;
  color: #fff9ff;
  font-size: clamp(19px, 3vw, 25px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.13;
}

.profile-customization-intro-copy p {
  max-width: 480px;
  margin: 11px 0 0;
  color: #bcaec5;
  font-size: 13px;
  line-height: 1.65;
}

.profile-customization-coming-next {
  position: relative;
  min-height: 172px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(235, 119, 217, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 69, 176, 0.2), transparent 37%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}

.profile-customization-coming-next::after {
  position: absolute;
  right: -20px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 136, 214, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 16px rgba(255, 136, 214, 0.035), 0 0 0 32px rgba(255, 136, 214, 0.025);
  content: "";
  pointer-events: none;
}

.profile-customization-coming-next-label {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 14px;
  color: #ff8dd8;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.profile-customization-coming-next-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-customization-coming-next-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #eaddec;
  font-size: 11px;
  line-height: 1.3;
}

.profile-customization-coming-next-list li::before {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ff75c9;
  box-shadow: 0 0 10px rgba(255, 117, 201, 0.75);
  content: "";
}

.profile-customization-locked-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 214, 101, 0.22);
  border-radius: 17px;
  background: linear-gradient(105deg, rgba(255, 208, 88, 0.08), rgba(173, 64, 244, 0.09));
}

.profile-customization-locked-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(255, 214, 101, 0.3);
  border-radius: 12px;
  background: rgba(255, 207, 92, 0.1);
  color: #ffd86e;
}

.profile-customization-locked-icon svg {
  width: 17px;
  height: 17px;
}

.profile-customization-locked-copy {
  min-width: 0;
}

.profile-customization-locked-copy h3 {
  margin: 0;
  color: #fff4d3;
  font-size: 14px;
  font-weight: 800;
}

.profile-customization-locked-copy p {
  margin: 4px 0 0;
  color: #c8b9ba;
  font-size: 11px;
  line-height: 1.55;
}

.profile-customization-upgrade {
  min-height: 39px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid rgba(255, 214, 101, 0.45);
  border-radius: 10px;
  background: rgba(255, 205, 83, 0.12);
  color: #ffe29b;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.profile-customization-upgrade:hover {
  border-color: rgba(255, 225, 137, 0.85);
  background: rgba(255, 205, 83, 0.2);
  transform: translateY(-1px);
}

.profile-customization-error {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 105, 137, 0.45);
  border-radius: 11px;
  background: rgba(125, 28, 57, 0.24);
  color: #ffc2d1;
  font-size: 11px;
  line-height: 1.45;
}

.profile-customization-error[hidden],
.profile-customization-locked-card[hidden] {
  display: none !important;
}

.profile-customization-footer {
  flex: 0 0 auto;
  padding: 15px 27px max(17px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(221, 170, 226, 0.1);
  color: #907f99;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 640px) {
  .profile-customization-entry-card {
    min-height: 86px;
    gap: 11px;
    padding: 14px;
  }

  .profile-customization-entry-crown {
    width: 38px;
    height: 38px;
  }

  .profile-customization-entry-title {
    font-size: 13px;
  }

  .profile-customization-entry-subtitle {
    font-size: 9px;
  }

  .profile-customization-entry-meta {
    gap: 5px;
  }

  .profile-customization-premium-pill {
    min-height: 20px;
    padding: 0 6px;
    font-size: 7px;
  }

  .profile-customization-shell {
    align-items: flex-end;
    padding: 0;
  }

  .profile-customization-panel {
    width: 100%;
    max-height: 94dvh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .profile-customization-header {
    padding: 20px 18px 16px;
  }

  .profile-customization-body {
    gap: 19px;
    padding: 21px 18px;
  }

  .profile-customization-intro {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .profile-customization-coming-next {
    min-height: 0;
  }

  .profile-customization-footer {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 390px) {
  .profile-customization-entry-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .profile-customization-entry-chevron {
    width: 26px;
    height: 26px;
  }

  .profile-customization-entry-subtitle {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .profile-customization-coming-next-list {
    grid-template-columns: 1fr;
  }

  .profile-customization-locked-card {
    align-items: flex-start;
  }
}

/* Stage 2 profile studio */
.profile-customization-studio[hidden],
.profile-customization-studio[hidden] * {
  display: none !important;
}

.profile-customization-studio {
  min-width: 0;
}

.profile-customization-studio-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.profile-customization-studio-intro h3 {
  margin: 0;
  color: #fff7ff;
  font-size: clamp(23px, 3vw, 35px);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.profile-customization-studio-intro p:not(.profile-customization-intro-kicker) {
  max-width: 560px;
  margin: 9px 0 0;
  color: #bcaec9;
  font-size: 13px;
  line-height: 1.55;
}

.profile-customization-intro-kicker,
.profile-customization-section-kicker {
  margin: 0 0 8px;
  color: #ff82d5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1;
}

.profile-customization-draft-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 135, 215, .23);
  border-radius: 999px;
  background: rgba(255, 104, 197, .06);
  color: #d7bddb;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .03em;
}

.profile-customization-draft-dot,
.profile-customization-preview-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff73c9;
  box-shadow: 0 0 0 4px rgba(255, 115, 201, .11), 0 0 13px rgba(255, 115, 201, .75);
}

.profile-customization-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(270px, .83fr);
  align-items: start;
  gap: 25px;
}

.profile-customization-controls {
  min-width: 0;
}

.profile-customization-control-section {
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(229, 180, 232, .11);
}

.profile-customization-control-section + .profile-customization-control-section {
  padding-top: 20px;
}

.profile-customization-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
}

.profile-customization-section-heading h3 {
  margin: 0;
  color: #fef5ff;
  font-size: 15px;
  font-weight: 820;
  letter-spacing: -.02em;
}

.profile-customization-section-kicker {
  margin-bottom: 6px;
  color: #a993ae;
  font-size: 8px;
}

.profile-customization-motion-diagnostic {
  margin-left: auto;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: #b8acbf;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.profile-customization-motion-diagnostic[data-reduced="true"] {
  border-color: rgba(198, 184, 213, .26);
  color: #e0d7e8;
}

.profile-customization-section-hint {
  padding-bottom: 1px;
  color: #87788e;
  font-size: 10px;
  white-space: nowrap;
}

.profile-customization-option-grid {
  display: grid;
  gap: 9px;
}

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

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

.profile-customization-option {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  gap: 9px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(224, 178, 231, .13);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  color: #eee2f0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.profile-customization-option:hover {
  border-color: rgba(255, 131, 212, .45);
  background: rgba(255, 103, 197, .07);
  transform: translateY(-1px);
}

.profile-customization-option[aria-checked="true"] {
  border-color: #ff70c8;
  background: linear-gradient(135deg, rgba(255, 103, 196, .17), rgba(129, 58, 222, .13));
  box-shadow: 0 0 0 1px rgba(255, 113, 204, .17) inset, 0 8px 22px rgba(160, 28, 126, .13);
}

.profile-customization-option:focus-visible,
.profile-customization-accent-swatch:focus-visible,
.profile-customization-switch:focus-visible,
.profile-customization-background-save:focus-visible,
.profile-customization-reset:focus-visible,
.profile-customization-apply:focus-visible {
  outline: 2px solid #ff96dd;
  outline-offset: 3px;
}

.profile-customization-option-art,
.profile-customization-theme-art,
.profile-customization-border-art {
  position: relative;
  display: block;
  width: 35px;
  height: 42px;
  flex: 0 0 35px;
  overflow: hidden;
  border-radius: 8px;
  background: #251832;
}

.profile-customization-theme-art::before,
.profile-customization-theme-art::after,
.profile-customization-theme-art i,
.profile-customization-theme-art b,
.profile-customization-theme-art em {
  position: absolute;
  display: block;
  border-radius: 50%;
  content: "";
}

.profile-customization-theme-art::before {
  inset: -8px 7px 16px -10px;
  background: #ff62ba;
  filter: blur(8px);
}

.profile-customization-theme-art::after {
  right: -11px;
  bottom: -12px;
  width: 34px;
  height: 34px;
  background: #8e43f1;
  filter: blur(5px);
}

.profile-customization-theme-art i {
  top: 8px;
  right: 5px;
  width: 10px;
  height: 10px;
  background: #ffd36d;
}

.profile-customization-theme-art b {
  right: 8px;
  bottom: 9px;
  width: 4px;
  height: 4px;
  background: #fff;
  box-shadow: -13px -11px 0 rgba(255, 255, 255, .7), -20px 4px 0 rgba(255, 255, 255, .45);
}

.profile-customization-theme-art em {
  top: 22px;
  left: 6px;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .58);
  transform: rotate(-31deg);
}

.profile-customization-option:nth-child(2) .profile-customization-theme-art::before { background: #36bfff; }
.profile-customization-option:nth-child(2) .profile-customization-theme-art::after { background: #1e61d5; }
.profile-customization-option:nth-child(3) .profile-customization-theme-art::before { background: #ff4f8c; }
.profile-customization-option:nth-child(3) .profile-customization-theme-art::after { background: #ff9b5d; }
.profile-customization-option:nth-child(4) .profile-customization-theme-art::before { background: #9f56ff; }
.profile-customization-option:nth-child(4) .profile-customization-theme-art::after { background: #4932a7; }
.profile-customization-option:nth-child(5) .profile-customization-theme-art::before { background: #6270a4; }
.profile-customization-option:nth-child(5) .profile-customization-theme-art::after { background: #11182d; }
.profile-customization-option:nth-child(6) .profile-customization-theme-art::before { background: #ff6d38; }
.profile-customization-option:nth-child(6) .profile-customization-theme-art::after { background: #aa1827; }

.profile-customization-border-art {
  height: 35px;
  border: 1px solid rgba(255, 255, 255, .17);
  background: linear-gradient(135deg, #ff60c4, #7540d1 58%, #25203a);
}

.profile-customization-border-art i {
  position: absolute;
  inset: 4px;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 5px;
}

.profile-customization-border-option:nth-child(2) .profile-customization-border-art { border-color: #d652ff; box-shadow: 0 0 10px #d652ff; }
.profile-customization-border-option:nth-child(3) .profile-customization-border-art { background: repeating-linear-gradient(130deg, #ff68ca 0 3px, #6b5aff 3px 7px, #38c8ff 7px 10px); }
.profile-customization-border-option:nth-child(4) .profile-customization-border-art { background: linear-gradient(135deg, #ffb32f, #ec3c43 65%, #8e1739); }
.profile-customization-border-option:nth-child(5) .profile-customization-border-art { background: linear-gradient(135deg, #dcf7ff, #5eabe2 65%, #3c559f); }
.profile-customization-border-option:nth-child(6) .profile-customization-border-art { background: conic-gradient(#ff648e, #ffd261, #71e7af, #57c9ff, #bd75ff, #ff648e); }

.profile-customization-option-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.profile-customization-option-copy strong {
  overflow: hidden;
  color: #f7edf8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-customization-option-copy small {
  overflow: hidden;
  color: #a995ad;
  font-size: 9px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-customization-option-check {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #fff;
  opacity: 0;
  transform: scale(.7);
  transition: opacity 140ms ease, transform 140ms ease;
}

.profile-customization-option-check svg { width: 9px; height: 9px; }
.profile-customization-option[aria-checked="true"] .profile-customization-option-check {
  border-color: transparent;
  background: #ff70c8;
  opacity: 1;
  transform: scale(1);
}

.profile-customization-accent-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-customization-accent-swatch {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 4px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.profile-customization-accent-swatch span {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 13px color-mix(in srgb, var(--swatch), transparent 55%);
}

.profile-customization-accent-swatch[aria-checked="true"] {
  border-color: rgba(255, 255, 255, .84);
  box-shadow: 0 0 0 3px rgba(255, 113, 204, .16);
}

.profile-customization-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 0;
}

.profile-customization-badge-mark {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 211, 110, .47);
  border-radius: 9px;
  background: rgba(255, 211, 110, .1);
  color: #ffd878;
  font-size: 11px;
  font-weight: 900;
}

.profile-customization-badge-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.profile-customization-badge-copy strong { color: #f5eaf7; font-size: 12px; }
.profile-customization-badge-copy small { color: #a995ad; font-size: 10px; line-height: 1.3; }

.profile-customization-switch {
  position: relative;
  width: 43px;
  height: 24px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid rgba(228, 185, 232, .23);
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}

.profile-customization-switch span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #a291ab;
  transition: transform 160ms ease, background 160ms ease;
}

.profile-customization-switch[aria-checked="true"] { border-color: rgba(255, 117, 202, .65); background: rgba(255, 100, 194, .25); }
.profile-customization-switch[aria-checked="true"] span { background: #ff8bd8; transform: translateX(17px); }

.profile-customization-background-host {
  min-height: 34px;
  padding: 9px;
  border: 1px solid rgba(224, 178, 231, .12);
  border-radius: 12px;
  background: rgba(7, 6, 15, .24);
}

.profile-customization-background-host:empty::before {
  display: block;
  color: #8e8097;
  content: "Photo and video controls will appear here.";
  font-size: 10px;
}

.profile-customization-background-state,
.profile-customization-background-save-status,
.profile-customization-save-status {
  margin: 8px 0 0;
  color: #9f91a6;
  font-size: 10px;
  line-height: 1.35;
}

.profile-customization-background-state[data-state="draft"],
.profile-customization-save-status[data-state="draft"] { color: #ffb5e3; }
.profile-customization-background-state[data-state="ready"],
.profile-customization-save-status[data-state="success"],
.profile-customization-background-save-status[data-state="success"] { color: #c7eeae; }
.profile-customization-background-state[data-state="error"],
.profile-customization-save-status[data-state="error"],
.profile-customization-background-save-status[data-state="error"] { color: #ffb8c9; }

.profile-customization-background-save {
  min-height: 31px;
  margin-top: 10px;
  padding: 0 11px;
  border: 1px solid rgba(255, 131, 212, .3);
  border-radius: 9px;
  background: rgba(255, 103, 197, .08);
  color: #ffc0e9;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
}

.profile-customization-background-save:hover:not(:disabled) { border-color: #ff8bd8; background: rgba(255, 103, 197, .16); }
.profile-customization-background-save:disabled { cursor: default; opacity: .42; }

.profile-customization-preview-wrap {
  position: sticky;
  top: 0;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(234, 134, 222, .2);
  border-radius: 20px;
  background: rgba(9, 7, 18, .55);
  box-shadow: 0 18px 45px rgba(8, 2, 16, .23);
}

.profile-customization-preview-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 2px 11px;
  color: #ff91d9;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
}

.profile-customization-preview-pulse { width: 5px; height: 5px; }

.profile-customization-preview {
  position: relative;
  min-height: 405px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 17px;
  background: #20172b;
  isolation: isolate;
  --profile-customization-preview-accent: #ff54b8;
}

.profile-customization-preview[data-accent="#ff54b8"] { --profile-customization-preview-accent: #ff54b8; }
.profile-customization-preview[data-accent="#8f6bff"] { --profile-customization-preview-accent: #8f6bff; }
.profile-customization-preview[data-accent="#45d7ff"] { --profile-customization-preview-accent: #45d7ff; }
.profile-customization-preview[data-accent="#4ce0b5"] { --profile-customization-preview-accent: #4ce0b5; }
.profile-customization-preview[data-accent="#ffad5a"] { --profile-customization-preview-accent: #ffad5a; }
.profile-customization-preview[data-accent="#ffd56b"] { --profile-customization-preview-accent: #ffd56b; }
.profile-customization-preview[data-accent="#a7c7ff"] { --profile-customization-preview-accent: #a7c7ff; }
.profile-customization-preview[data-accent="#ff7867"] { --profile-customization-preview-accent: #ff7867; }

.profile-customization-preview-cover,
.profile-customization-preview-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.profile-customization-preview-cover {
  overflow: hidden;
  border-radius: inherit;
  background-position: center;
  background-size: cover;
  filter: saturate(1.08);
}

.profile-customization-preview-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-customization-preview-shade {
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(12, 7, 21, .18), rgba(13, 8, 23, .38) 42%, rgba(8, 6, 17, .96) 100%);
}

.profile-customization-preview[data-theme="midnight"] .profile-customization-preview-shade { background: linear-gradient(180deg, rgba(4, 8, 20, .33), rgba(5, 7, 17, .88) 55%, #050712 100%); }
.profile-customization-preview[data-theme="electric-blue"] .profile-customization-preview-shade { background: linear-gradient(180deg, rgba(9, 50, 89, .25), rgba(7, 12, 28, .96)); }
.profile-customization-preview[data-theme="hot-pink"] .profile-customization-preview-shade { background: linear-gradient(180deg, rgba(80, 9, 63, .18), rgba(29, 8, 31, .94)); }
.profile-customization-preview[data-theme="purple-pulse"] .profile-customization-preview-shade { background: linear-gradient(180deg, rgba(49, 20, 92, .2), rgba(20, 10, 42, .95)); }
.profile-customization-preview[data-theme="fire"] .profile-customization-preview-shade { background: linear-gradient(180deg, rgba(97, 28, 22, .2), rgba(30, 8, 19, .95)); }

.profile-customization-preview-content {
  display: flex;
  min-height: 405px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 19px 17px;
}

.profile-customization-preview-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  place-items: center;
  border: 3px solid var(--profile-customization-preview-accent);
  border-radius: 19px;
  background: linear-gradient(145deg, #7145bf, #ff5db9);
  background-position: center;
  background-size: cover;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--profile-customization-preview-accent) 14%, transparent),
    0 0 18px color-mix(in srgb, var(--profile-customization-preview-accent) 30%, transparent),
    0 7px 18px rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.profile-customization-preview-identity {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
}

.profile-customization-preview-identity > div { min-width: 0; }
.profile-customization-preview-identity strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-customization-preview-identity span:not(.profile-customization-preview-presence) {
  color: #dbcde0;
  font-size: 12px;
}

.profile-customization-preview-presence {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid rgba(147, 255, 185, .3);
  border-radius: 6px;
  color: #bdf8c9;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
}

.profile-customization-preview-bio {
  display: -webkit-box;
  margin: 10px 0 13px;
  overflow: hidden;
  color: #f5edf8;
  font-size: 11px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.profile-customization-preview-activity {
  margin-bottom: 11px;
  color: #ffb8e5;
  font-size: 10px;
  font-weight: 750;
}

.profile-customization-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.profile-customization-preview-tags span {
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 99px;
  background: rgba(7, 5, 16, .32);
  color: #f6eafa;
  font-size: 8px;
  font-weight: 700;
}

.profile-customization-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-top: 17px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #afa1b7;
  font-size: 9px;
}

.profile-customization-preview-badge {
  padding: 4px 6px;
  border: 1px solid rgba(255, 215, 115, .46);
  border-radius: 5px;
  color: #ffe199;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
}

.profile-customization-preview-note {
  margin: 11px 3px 0;
  color: #897c94;
  font-size: 9px;
  line-height: 1.35;
}

.profile-customization-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  text-align: left;
}

.profile-customization-footer-status { min-width: 0; }
.profile-customization-footer-status p { margin: 0; }
.profile-customization-background-save-status { color: #98889e; }
.profile-customization-footer-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.profile-customization-reset,
.profile-customization-apply {
  min-height: 39px;
  padding: 0 15px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 820;
}

.profile-customization-reset {
  border: 1px solid rgba(226, 185, 231, .17);
  background: rgba(255, 255, 255, .04);
  color: #c7b4cb;
}

.profile-customization-reset:hover { border-color: rgba(255, 143, 217, .45); color: #f3dff2; }

.profile-customization-apply {
  border: 1px solid rgba(255, 141, 215, .72);
  background: linear-gradient(135deg, #ff63bd, #a64be7);
  box-shadow: 0 8px 22px rgba(212, 48, 165, .25);
  color: #fff8ff;
}

.profile-customization-apply:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.profile-customization-apply:disabled { cursor: wait; opacity: .58; }

@media (min-width: 900px) {
  .profile-customization-panel { width: min(1160px, calc(100% - 44px)); height: min(890px, calc(100dvh - 44px)); max-height: calc(100dvh - 44px); border-radius: 26px; }
  .profile-customization-body { padding: 29px 31px 25px; }
  .profile-customization-footer { padding-right: 31px; padding-left: 31px; }
}

@media (max-width: 899px) {
  .profile-customization-studio-grid { grid-template-columns: 1fr; }
  .profile-customization-preview-wrap { position: relative; order: -1; }
  .profile-customization-preview { min-height: 330px; }
  .profile-customization-preview-content { min-height: 330px; }
}

@media (max-width: 640px) {
  .profile-customization-studio-intro { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 19px; }
  .profile-customization-studio-intro h3 { font-size: 25px; }
  .profile-customization-studio-grid { gap: 19px; }
  .profile-customization-theme-grid,
  .profile-customization-border-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-customization-option { min-height: 59px; padding: 8px; }
  .profile-customization-option-art,
  .profile-customization-theme-art,
  .profile-customization-border-art { width: 30px; height: 34px; flex-basis: 30px; }
  .profile-customization-preview-wrap { padding: 12px; }
  .profile-customization-preview { min-height: 310px; }
  .profile-customization-preview-content { min-height: 310px; padding: 18px 15px 14px; }
  .profile-customization-footer { align-items: stretch; flex-direction: column; gap: 11px; }
  .profile-customization-footer-actions { justify-content: flex-end; }
  .profile-customization-apply { flex: 1; }
}

@media (max-width: 390px) {
  .profile-customization-option-copy small { display: none; }
  .profile-customization-section-hint { display: none; }
  .profile-customization-accent-row { justify-content: space-between; }
  .profile-customization-footer-actions { display: grid; grid-template-columns: 1fr 1.35fr; }
  .profile-customization-reset,
  .profile-customization-apply { padding: 0 9px; }
}

/* Public RadarMeet profile styling stays scoped to the existing profile panel. */
.app .profile-panel[data-profile-theme] {
  --profile-customization-theme-accent: #ff54b8;
  border-color: var(--profile-customization-theme-accent) !important;
  box-shadow:
    inset 0 0 55px color-mix(in srgb, var(--profile-customization-theme-accent) 18%, transparent),
    0 0 27px color-mix(in srgb, var(--profile-customization-theme-accent) 22%, transparent) !important;
}

.app .profile-panel[data-profile-theme="radar-neon"] { --profile-customization-theme-accent: #ff54b8; }
.app .profile-panel[data-profile-theme="electric-blue"] { --profile-customization-theme-accent: #45d7ff; }
.app .profile-panel[data-profile-theme="hot-pink"] { --profile-customization-theme-accent: #ff3ea5; }
.app .profile-panel[data-profile-theme="purple-pulse"] { --profile-customization-theme-accent: #8f6bff; }
.app .profile-panel[data-profile-theme="midnight"] { --profile-customization-theme-accent: #a7c7ff; }
.app .profile-panel[data-profile-theme="fire"] { --profile-customization-theme-accent: #ffad5a; }

.app .profile-panel[data-profile-theme]::after {
  color: color-mix(in srgb, var(--profile-customization-theme-accent) 12%, transparent);
  text-shadow:
    -18px 0 45px color-mix(in srgb, var(--profile-customization-theme-accent) 14%, transparent),
    18px 0 45px color-mix(in srgb, var(--profile-customization-theme-accent) 10%, transparent);
}

.app .profile-panel[data-profile-theme] #panelInterests span {
  border-color: color-mix(in srgb, var(--profile-customization-accent) 76%, transparent) !important;
}

.app .profile-panel[data-profile-theme] #panelMessageButton {
  border-color: color-mix(in srgb, var(--profile-customization-accent) 84%, white 8%) !important;
  box-shadow:
    0 9px 22px color-mix(in srgb, var(--profile-customization-accent) 27%, transparent),
    0 0 0 1px color-mix(in srgb, var(--profile-customization-accent) 22%, transparent) !important;
}

.app .profile-panel[data-profile-badge="true"] #panelName {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-customization-profile-badge {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 214, 107, .7);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 214, 107, .2), rgba(255, 126, 185, .15));
  box-shadow: 0 0 13px rgba(255, 214, 107, .16);
  color: #ffe8a4;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1;
  vertical-align: middle;
}

.profile-customization-profile-badge::before {
  color: #ffd66c;
  content: "✦";
  font-size: 10px;
}

/* Premium visual pass for the live studio and existing public profile. */
.profile-customization-option[aria-checked="true"] {
  border-color: rgba(255, 137, 221, .88);
  background:
    linear-gradient(135deg, rgba(255, 89, 190, .2), rgba(111, 76, 255, .16)),
    rgba(255, 255, 255, .035);
  box-shadow:
    inset 0 0 0 1px rgba(255, 194, 236, .18),
    0 0 21px rgba(219, 58, 177, .2),
    0 9px 24px rgba(0, 0, 0, .18);
}

.profile-customization-option[aria-checked="true"] .profile-customization-theme-art,
.profile-customization-border-option[aria-checked="true"] .profile-customization-border-art {
  box-shadow: 0 0 17px rgba(255, 110, 203, .35);
}

.profile-customization-accent-swatch[aria-checked="true"] {
  border-color: #fff;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--swatch) 26%, transparent),
    0 0 18px color-mix(in srgb, var(--swatch) 58%, transparent);
}

.profile-customization-badge-mark {
  border-color: rgba(255, 219, 133, .64);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 230, 162, .22), transparent 68%),
    linear-gradient(145deg, rgba(139, 93, 26, .28), rgba(255, 205, 90, .13));
  box-shadow: inset 0 1px rgba(255, 246, 205, .14), 0 0 17px rgba(255, 204, 91, .13);
  color: #ffe19a;
}

.profile-customization-badge-mark svg {
  width: 17px;
  height: 17px;
  filter: drop-shadow(0 0 5px rgba(255, 211, 104, .38));
}

.profile-customization-preview[data-theme="radar-neon"] {
  --profile-customization-preview-theme: #ff54b8;
  --profile-customization-preview-secondary: #45d7ff;
}

.profile-customization-preview[data-theme="electric-blue"] {
  --profile-customization-preview-theme: #45d7ff;
  --profile-customization-preview-secondary: #829cff;
}

.profile-customization-preview[data-theme="hot-pink"] {
  --profile-customization-preview-theme: #ff3ea5;
  --profile-customization-preview-secondary: #ffad5a;
}

.profile-customization-preview[data-theme="purple-pulse"] {
  --profile-customization-preview-theme: #8f6bff;
  --profile-customization-preview-secondary: #e174ff;
}

.profile-customization-preview[data-theme="midnight"] {
  --profile-customization-preview-theme: #a7c7ff;
  --profile-customization-preview-secondary: #6f81ba;
}

.profile-customization-preview[data-theme="fire"] {
  --profile-customization-preview-theme: #ffad5a;
  --profile-customization-preview-secondary: #ff534a;
}

.profile-customization-preview[data-theme] {
  border-color: color-mix(in srgb, var(--profile-customization-preview-theme) 68%, white 8%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--profile-customization-preview-theme) 42%, transparent),
    0 18px 48px rgba(4, 2, 12, .44),
    0 0 34px color-mix(in srgb, var(--profile-customization-preview-theme) 24%, transparent);
}

.profile-customization-preview-avatar {
  position: relative;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--profile-customization-preview-accent) 19%, transparent),
    0 0 22px color-mix(in srgb, var(--profile-customization-preview-accent) 42%, transparent),
    0 0 34px color-mix(in srgb, var(--profile-customization-preview-theme) 23%, transparent),
    0 7px 18px rgba(0, 0, 0, .38);
}

.profile-customization-preview-activity {
  color: var(--profile-customization-preview-accent);
  text-shadow: 0 0 16px color-mix(in srgb, var(--profile-customization-preview-accent) 35%, transparent);
}

.profile-customization-preview-tags span {
  border-color: color-mix(in srgb, var(--profile-customization-preview-accent) 46%, rgba(255, 255, 255, .18));
  background: color-mix(in srgb, var(--profile-customization-preview-accent) 9%, rgba(7, 5, 16, .76));
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.profile-customization-preview-footer {
  border-top-color: color-mix(in srgb, var(--profile-customization-preview-accent) 34%, rgba(255, 255, 255, .14));
}

.profile-customization-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-color: rgba(255, 220, 133, .78);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 215, 122, .22), rgba(122, 75, 21, .2));
  box-shadow: inset 0 1px rgba(255, 250, 220, .22), 0 0 15px rgba(255, 207, 91, .18);
  color: #ffe9ae;
  text-shadow: 0 0 9px rgba(255, 207, 91, .28);
}

.profile-customization-preview-badge[hidden] {
  display: none !important;
}

.profile-customization-preview-badge::before,
.profile-customization-profile-badge::before {
  display: block;
  width: 12px;
  height: 10px;
  flex: 0 0 auto;
  background: linear-gradient(180deg, #fff5c7 0%, #ffd76b 52%, #c77d1d 100%);
  clip-path: polygon(0 17%, 23% 42%, 31% 0, 50% 35%, 69% 0, 77% 42%, 100% 17%, 90% 78%, 10% 78%);
  content: "";
  filter: drop-shadow(0 1px 3px rgba(255, 205, 89, .38));
}

.app .profile-panel[data-profile-theme] {
  --profile-customization-theme-accent: #ff54b8;
  --profile-customization-theme-secondary: #45d7ff;
  border-left-color: var(--profile-customization-theme-accent) !important;
  box-shadow:
    inset 3px 0 0 color-mix(in srgb, var(--profile-customization-theme-accent), white 18%),
    inset 0 0 52px color-mix(in srgb, var(--profile-customization-theme-accent) 7%, transparent),
    -12px 0 35px rgba(8, 2, 16, .45),
    -9px 0 34px color-mix(in srgb, var(--profile-customization-theme-accent) 24%, transparent) !important;
}

.app .profile-panel[data-profile-theme="radar-neon"] {
  --profile-customization-theme-accent: #ff54b8;
  --profile-customization-theme-secondary: #45d7ff;
}

.app .profile-panel[data-profile-theme="electric-blue"] {
  --profile-customization-theme-accent: #45d7ff;
  --profile-customization-theme-secondary: #829cff;
}

.app .profile-panel[data-profile-theme="hot-pink"] {
  --profile-customization-theme-accent: #ff3ea5;
  --profile-customization-theme-secondary: #ffad5a;
}

.app .profile-panel[data-profile-theme="purple-pulse"] {
  --profile-customization-theme-accent: #8f6bff;
  --profile-customization-theme-secondary: #e174ff;
}

.app .profile-panel[data-profile-theme="midnight"] {
  --profile-customization-theme-accent: #a7c7ff;
  --profile-customization-theme-secondary: #6f81ba;
}

.app .profile-panel[data-profile-theme="fire"] {
  --profile-customization-theme-accent: #ffad5a;
  --profile-customization-theme-secondary: #ff534a;
}

.app .profile-panel[data-profile-theme]::after {
  color: color-mix(in srgb, var(--profile-customization-theme-accent) 9%, transparent);
  text-shadow:
    -18px 0 45px color-mix(in srgb, var(--profile-customization-theme-accent) 12%, transparent),
    18px 0 45px color-mix(in srgb, var(--profile-customization-theme-secondary) 10%, transparent);
}

.app .profile-panel[data-profile-theme] #panelName {
  text-shadow: 0 0 22px color-mix(in srgb, var(--profile-customization-accent) 26%, transparent);
}

.app .profile-panel[data-profile-theme] .panel-age,
.app .profile-panel[data-profile-theme] #panelAge,
.app .profile-panel[data-profile-theme] #panelLocation {
  border-color: color-mix(in srgb, var(--profile-customization-accent) 76%, rgba(255, 255, 255, .22)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 0 14px color-mix(in srgb, var(--profile-customization-accent) 12%, transparent);
}

.app .profile-panel[data-profile-theme] #panelActivity {
  border: 1px solid color-mix(in srgb, var(--profile-customization-accent) 48%, rgba(255, 255, 255, .1));
  background: color-mix(in srgb, var(--profile-customization-accent) 9%, #111722) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 8px 24px rgba(0, 0, 0, .12);
  color: color-mix(in srgb, var(--profile-customization-accent), white 12%) !important;
}

.app .profile-panel[data-profile-theme] #panelInterests span {
  border: 1px solid color-mix(in srgb, var(--profile-customization-accent) 50%, rgba(255, 255, 255, .1)) !important;
  background: color-mix(in srgb, var(--profile-customization-accent) 8%, #111722);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
  color: #f3f0fa;
}

.app .profile-panel[data-profile-theme] #panelMessageButton {
  border: 1px solid color-mix(in srgb, var(--profile-customization-accent) 78%, white 10%) !important;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--profile-customization-accent) 88%, white 8%),
    color-mix(in srgb, var(--profile-customization-theme-secondary) 76%, #21102d)
  ) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .18),
    0 9px 24px color-mix(in srgb, var(--profile-customization-accent) 25%, transparent),
    0 0 0 1px color-mix(in srgb, var(--profile-customization-accent) 18%, transparent) !important;
}

.app .profile-panel[data-profile-badge="true"] #panelName {
  gap: 9px;
}

.profile-customization-profile-badge {
  min-height: 22px;
  gap: 5px;
  padding: 3px 9px;
  border-color: rgba(255, 224, 147, .86);
  background: linear-gradient(145deg, rgba(255, 220, 125, .24), rgba(128, 78, 22, .24));
  box-shadow:
    inset 0 1px rgba(255, 250, 220, .24),
    0 0 0 1px rgba(255, 202, 81, .12),
    0 0 19px rgba(255, 205, 91, .2);
  color: #fff0bf;
  text-shadow: 0 0 10px rgba(255, 207, 91, .3);
}

.profile-customization-profile-badge::before {
  width: 13px;
  height: 11px;
  color: #ffd66c;
  content: "";
}

/* Keep one shared badge treatment in the editor preview and public profile. */
.profile-customization-profile-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 227, 157, .94);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 239, 179, .2), rgba(255, 193, 73, .1)),
    rgba(44, 30, 12, .86);
  box-shadow:
    inset 0 1px rgba(255, 255, 235, .27),
    0 0 0 1px rgba(255, 205, 86, .13),
    0 0 19px rgba(255, 202, 78, .25);
  color: #fff0bc;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .14em;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 209, 104, .34);
  text-transform: uppercase;
  vertical-align: middle;
}

.profile-customization-profile-badge[hidden] {
  display: none !important;
}

.profile-customization-profile-badge::before {
  display: inline-block;
  width: 12px;
  height: 10px;
  flex: 0 0 12px;
  background: linear-gradient(180deg, #fff0ad, #ffc83f 62%, #d78b18);
  clip-path: polygon(0 15%, 20% 43%, 38% 4%, 52% 44%, 79% 11%, 100% 27%, 88% 82%, 12% 82%);
  content: "";
}

.profile-customization-preview-badge {
  margin: 6px 0 3px;
}

.profile-customization-preview-identity span.profile-customization-profile-badge {
  color: #fff0bc;
  font-size: 9px;
}

.app .profile-panel[data-profile-badge="true"] #panelName {
  display: block !important;
  text-align: center !important;
}

.app .profile-panel[data-profile-badge="true"] .profile-customization-profile-badge {
  margin: 7px auto 10px;
}

/* Theme color fields are shared by the live preview and the saved profile. */
.profile-customization-preview[data-theme="radar-neon"] {
  --profile-customization-preview-theme: #ff54b8;
  --profile-customization-preview-secondary: #45d7ff;
}

.profile-customization-preview[data-theme="electric-blue"] {
  --profile-customization-preview-theme: #299dff;
  --profile-customization-preview-secondary: #70eaff;
}

.profile-customization-preview[data-theme="hot-pink"] {
  --profile-customization-preview-theme: #ff279b;
  --profile-customization-preview-secondary: #ff68cf;
}

.profile-customization-preview[data-theme="purple-pulse"] {
  --profile-customization-preview-theme: #9256ff;
  --profile-customization-preview-secondary: #d879ff;
}

.profile-customization-preview[data-theme="midnight"] {
  --profile-customization-preview-theme: #697be8;
  --profile-customization-preview-secondary: #a6b5ff;
}

.profile-customization-preview[data-theme="fire"] {
  --profile-customization-preview-theme: #ff773d;
  --profile-customization-preview-secondary: #ffd166;
}

.profile-customization-preview[data-theme] {
  border-color: color-mix(in srgb, var(--profile-customization-preview-theme) 78%, white 9%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--profile-customization-preview-theme) 48%, transparent),
    inset 0 0 58px color-mix(in srgb, var(--profile-customization-preview-theme) 11%, transparent),
    0 0 38px color-mix(in srgb, var(--profile-customization-preview-theme) 30%, transparent),
    0 0 72px color-mix(in srgb, var(--profile-customization-preview-secondary) 17%, transparent),
    0 18px 48px rgba(4, 2, 12, .48);
}

.profile-customization-preview[data-theme] .profile-customization-preview-shade {
  background:
    radial-gradient(ellipse at 0% 5%, color-mix(in srgb, var(--profile-customization-preview-theme) 15%, transparent), transparent 53%),
    radial-gradient(ellipse at 100% 36%, color-mix(in srgb, var(--profile-customization-preview-secondary) 12%, transparent), transparent 52%),
    linear-gradient(180deg, rgba(9, 7, 18, .1), rgba(9, 7, 18, .42) 46%, rgba(5, 5, 13, .96) 100%);
}

.app .profile-panel[data-profile-theme] {
  border-left-color: color-mix(in srgb, var(--profile-customization-theme-accent), white 24%) !important;
  box-shadow:
    inset 4px 0 0 color-mix(in srgb, var(--profile-customization-theme-accent), white 18%),
    inset 0 0 0 1px color-mix(in srgb, var(--profile-customization-theme-accent) 28%, transparent),
    inset 0 0 82px color-mix(in srgb, var(--profile-customization-theme-accent) 10%, transparent),
    inset -3px 0 32px color-mix(in srgb, var(--profile-customization-theme-secondary) 12%, transparent),
    -12px 0 35px rgba(8, 2, 16, .45),
    0 0 38px color-mix(in srgb, var(--profile-customization-theme-accent) 30%, transparent),
    0 0 70px color-mix(in srgb, var(--profile-customization-theme-secondary) 17%, transparent) !important;
}

.app .profile-panel[data-profile-theme="radar-neon"] {
  --profile-customization-theme-accent: #ff54b8;
  --profile-customization-theme-secondary: #45d7ff;
}

.app .profile-panel[data-profile-theme="electric-blue"] {
  --profile-customization-theme-accent: #299dff;
  --profile-customization-theme-secondary: #70eaff;
}

.app .profile-panel[data-profile-theme="hot-pink"] {
  --profile-customization-theme-accent: #ff279b;
  --profile-customization-theme-secondary: #ff68cf;
}

.app .profile-panel[data-profile-theme="purple-pulse"] {
  --profile-customization-theme-accent: #9256ff;
  --profile-customization-theme-secondary: #d879ff;
}

.app .profile-panel[data-profile-theme="midnight"] {
  --profile-customization-theme-accent: #697be8;
  --profile-customization-theme-secondary: #a6b5ff;
}

.app .profile-panel[data-profile-theme="fire"] {
  --profile-customization-theme-accent: #ff773d;
  --profile-customization-theme-secondary: #ffd166;
}

.app .profile-panel[data-profile-theme]::before {
  box-shadow:
    inset 0 0 88px color-mix(in srgb, var(--profile-customization-theme-accent) 9%, transparent),
    inset 0 0 42px color-mix(in srgb, var(--profile-customization-theme-secondary) 5%, transparent);
}

.app .profile-panel[data-profile-theme] .panel-age,
.app .profile-panel[data-profile-theme] .panel-location {
  border-color: color-mix(in srgb, var(--profile-customization-accent) 74%, var(--profile-customization-theme-accent) 26%) !important;
  background: color-mix(in srgb, var(--profile-customization-accent) 11%, rgba(8, 11, 21, .9)) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .1),
    0 0 16px color-mix(in srgb, var(--profile-customization-theme-accent) 18%, transparent);
  color: #f7f4ff !important;
}

.app .profile-panel[data-profile-theme] .profile-info-icon {
  color: color-mix(in srgb, var(--profile-customization-theme-accent), white 18%) !important;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--profile-customization-theme-accent) 58%, transparent));
}

.app .profile-panel[data-profile-theme] .profile-info-label,
.app .profile-panel[data-profile-theme] .profile-section-title {
  color: color-mix(in srgb, var(--profile-customization-theme-accent) 78%, white 22%) !important;
  text-shadow: 0 0 13px color-mix(in srgb, var(--profile-customization-theme-accent) 29%, transparent);
}

.app .profile-panel[data-profile-theme] .profile-about-read-more {
  border: 1px solid color-mix(in srgb, var(--profile-customization-accent) 72%, white 12%) !important;
  border-radius: 8px;
  background: color-mix(in srgb, var(--profile-customization-accent) 15%, rgba(8, 11, 21, .9)) !important;
  box-shadow: 0 0 15px color-mix(in srgb, var(--profile-customization-accent) 16%, transparent);
  color: color-mix(in srgb, var(--profile-customization-accent), white 26%) !important;
}

.app .profile-panel[data-profile-theme] #panelInterests span {
  border-color: color-mix(in srgb, var(--profile-customization-accent) 58%, var(--profile-customization-theme-accent) 42%) !important;
  background: color-mix(in srgb, var(--profile-customization-theme-accent) 13%, rgba(11, 13, 24, .9)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 0 12px color-mix(in srgb, var(--profile-customization-theme-accent) 12%, transparent);
  color: #fff5ff !important;
}

.app .profile-panel[data-profile-theme] #panelMessageButton {
  border-color: color-mix(in srgb, var(--profile-customization-accent) 76%, white 18%) !important;
  background: linear-gradient(
    115deg,
    color-mix(in srgb, var(--profile-customization-accent) 92%, white 8%),
    color-mix(in srgb, var(--profile-customization-theme-accent) 86%, #24102c) 54%,
    color-mix(in srgb, var(--profile-customization-theme-secondary) 78%, #160f2c)
  ) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .2),
    0 10px 28px color-mix(in srgb, var(--profile-customization-theme-accent) 31%, transparent),
    0 0 20px color-mix(in srgb, var(--profile-customization-theme-secondary) 17%, transparent) !important;
}

.profile-customization-shell[data-customization-theme="radar-neon"] {
  --profile-customization-studio-theme: #ff54b8;
  --profile-customization-studio-secondary: #45d7ff;
}

.profile-customization-shell[data-customization-theme="electric-blue"] {
  --profile-customization-studio-theme: #299dff;
  --profile-customization-studio-secondary: #70eaff;
}

.profile-customization-shell[data-customization-theme="hot-pink"] {
  --profile-customization-studio-theme: #ff279b;
  --profile-customization-studio-secondary: #ff68cf;
}

.profile-customization-shell[data-customization-theme="purple-pulse"] {
  --profile-customization-studio-theme: #9256ff;
  --profile-customization-studio-secondary: #d879ff;
}

.profile-customization-shell[data-customization-theme="midnight"] {
  --profile-customization-studio-theme: #697be8;
  --profile-customization-studio-secondary: #a6b5ff;
}

.profile-customization-shell[data-customization-theme="fire"] {
  --profile-customization-studio-theme: #ff773d;
  --profile-customization-studio-secondary: #ffd166;
}

.profile-customization-shell .profile-customization-control-section {
  border-bottom-color: color-mix(in srgb, var(--profile-customization-studio-theme) 19%, transparent);
}

.profile-customization-shell .profile-customization-section-kicker {
  color: color-mix(in srgb, var(--profile-customization-studio-theme) 72%, white 28%);
}

.profile-customization-shell .profile-customization-draft-chip {
  border-color: color-mix(in srgb, var(--profile-customization-studio-theme) 38%, transparent);
  background: color-mix(in srgb, var(--profile-customization-studio-theme) 9%, transparent);
}

.profile-customization-shell .profile-customization-preview-wrap {
  border-color: color-mix(in srgb, var(--profile-customization-studio-theme) 26%, transparent);
  box-shadow:
    0 18px 45px rgba(8, 2, 16, .23),
    0 0 25px color-mix(in srgb, var(--profile-customization-studio-theme) 12%, transparent);
}

.profile-customization-shell .profile-customization-preview-label {
  color: color-mix(in srgb, var(--profile-customization-studio-theme) 78%, white 22%);
}

.profile-customization-shell .profile-customization-motion-diagnostic {
  border-color: color-mix(in srgb, var(--profile-customization-studio-secondary) 23%, transparent);
}

/* Shared studio/public avatar: effects stay on sibling rings behind the photo. */
.profile-customization-avatar-frame {
  --profile-customization-ring-accent: var(
    --profile-customization-accent,
    var(--profile-customization-preview-accent, #ff54b8)
  );
  --profile-customization-ring-secondary: var(
    --profile-customization-theme-secondary,
    var(--profile-customization-preview-secondary, #45d7ff)
  );
  position: relative !important;
  isolation: isolate !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  overflow: visible !important;
}

.profile-customization-avatar-ring {
  position: absolute !important;
  z-index: 1 !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(
    135deg,
    var(--profile-customization-ring-accent, #ff54b8),
    var(--profile-customization-ring-secondary, #45d7ff)
  ) !important;
  box-shadow: 0 0 13px color-mix(in srgb, var(--profile-customization-ring-accent, #ff54b8) 38%, transparent) !important;
  opacity: .96;
  pointer-events: none !important;
  transform: rotate(0deg);
  transform-origin: center center;
}

.profile-customization-avatar-image-shell {
  position: absolute !important;
  z-index: 2 !important;
  inset: 6px !important;
  display: block !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #111 !important;
  box-shadow: none !important;
  isolation: isolate !important;
}

.profile-customization-avatar-image-shell > img,
.profile-customization-avatar-image-shell > .profile-customization-preview-avatar {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-image: none !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: cover !important;
  transform: none !important;
}

.profile-customization-avatar-image-shell > img[hidden] {
  display: none !important;
}

.profile-customization-preview-avatar-fallback,
.profile-customization-public-avatar-fallback {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.profile-customization-public-avatar-fallback {
  font-size: 32px;
}

.profile-customization-preview-avatar-fallback[hidden],
.profile-customization-public-avatar-fallback[hidden] {
  display: none !important;
}

.profile-customization-preview-frame {
  display: block !important;
  width: 70px !important;
  height: 70px !important;
  margin: 0 0 12px !important;
}

.app .profile-panel[data-profile-border] .profile-customization-avatar-frame {
  width: 110px !important;
  height: 110px !important;
}

.app .profile-panel[data-profile-border] .profile-customization-avatar-image-shell > #panelPhoto {
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #111 !important;
  box-shadow: none !important;
  filter: none !important;
  object-fit: cover !important;
}

.app .profile-panel[data-profile-border] .profile-customization-avatar-image-shell > #panelPhoto[hidden] {
  display: none !important;
}

.app .profile-panel[data-profile-border] .profile-customization-avatar-frame > .panel-online-dot,
.app .profile-panel[data-profile-border] .profile-customization-avatar-frame > #panel-online-dot {
  position: absolute !important;
  z-index: 5 !important;
}

.profile-customization-preview-online-dot {
  position: absolute !important;
  z-index: 5 !important;
  right: 4px !important;
  bottom: 4px !important;
  width: 12px !important;
  height: 12px !important;
  border: 2px solid #0d1016 !important;
  border-radius: 50% !important;
  background: #31e6b6 !important;
}

.profile-customization-avatar-frame[data-customization-border="default-glow"] > .profile-customization-avatar-ring {
  background: linear-gradient(
    135deg,
    var(--profile-customization-ring-accent, #ff54b8),
    var(--profile-customization-ring-secondary, #45d7ff)
  ) !important;
}

.profile-customization-avatar-frame[data-customization-border="pulse"] > .profile-customization-avatar-ring {
  background: linear-gradient(
    135deg,
    var(--profile-customization-ring-accent, #ff54b8),
    var(--profile-customization-ring-accent, #ff54b8)
  ) !important;
}

.profile-customization-avatar-frame[data-customization-border="neon-wave"] > .profile-customization-avatar-ring {
  background:
    conic-gradient(
      transparent 0deg 236deg,
      rgba(69, 215, 255, .42) 246deg 260deg,
      #45d7ff 264deg 272deg,
      #fff 273deg 276deg,
      #ff54b8 279deg 291deg,
      rgba(255, 84, 184, .42) 298deg 312deg,
      transparent 322deg 1turn
    ),
    linear-gradient(
      135deg,
      var(--profile-customization-ring-accent, #ff54b8),
      var(--profile-customization-ring-secondary, #45d7ff)
    ) !important;
  box-shadow: 0 0 12px rgba(69, 215, 255, .48), 0 0 16px rgba(255, 84, 184, .34) !important;
  animation: radarNeonWaveSweep 3.6s linear infinite !important;
}

.profile-customization-avatar-frame[data-customization-border="fire"] > .profile-customization-avatar-ring {
  background: conic-gradient(
    #ff402f,
    #ffb22e 18%,
    #fff0a6 31%,
    #ff6b2d 55%,
    #d92d32 76%,
    #ffba45 91%,
    #ff402f
  ) !important;
}

.profile-customization-avatar-frame[data-customization-border="ice"] > .profile-customization-avatar-ring {
  background: conic-gradient(
    #7ddcff,
    #d9f9ff 28%,
    #fff 35%,
    #8be8ff 60%,
    #438ef2 82%,
    #7ddcff
  ) !important;
}

.profile-customization-avatar-frame[data-customization-border="rainbow"] > .profile-customization-avatar-ring {
  background: conic-gradient(
    #ff54b8,
    #ffd56b,
    #4ce0b5,
    #45d7ff,
    #8f6bff,
    #ff54b8
  ) !important;
  animation: radarRainbowRingRotate 13s linear infinite;
}

@keyframes radarNeonWaveSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-customization-shell .profile-customization-control-section {
  border-bottom-color: color-mix(in srgb, var(--profile-customization-studio-theme) 19%, transparent);
}

.profile-customization-shell .profile-customization-section-kicker {
  color: color-mix(in srgb, var(--profile-customization-studio-theme) 72%, white 28%);
}

.profile-customization-shell .profile-customization-draft-chip {
  border-color: color-mix(in srgb, var(--profile-customization-studio-theme) 38%, transparent);
  background: color-mix(in srgb, var(--profile-customization-studio-theme) 9%, transparent);
}

.profile-customization-shell .profile-customization-preview-wrap {
  border-color: color-mix(in srgb, var(--profile-customization-studio-theme) 26%, transparent);
  box-shadow:
    0 18px 45px rgba(8, 2, 16, .23),
    0 0 25px color-mix(in srgb, var(--profile-customization-studio-theme) 12%, transparent);
}

.profile-customization-shell .profile-customization-preview-label {
  color: color-mix(in srgb, var(--profile-customization-studio-theme) 78%, white 22%);
}

.profile-customization-shell .profile-customization-motion-diagnostic {
  border-color: color-mix(in srgb, var(--profile-customization-studio-secondary) 23%, transparent);
}

.profile-customization-avatar-frame[data-customization-border="pulse"] > .profile-customization-avatar-ring {
  animation: radarPulseRingBreath 2.2s ease-in-out infinite alternate !important;
}

.profile-customization-avatar-frame[data-customization-border="fire"] > .profile-customization-avatar-ring {
  box-shadow: 0 0 13px rgba(255, 90, 41, .62) !important;
  animation:
    radarFireRingSpin 4s linear infinite,
    radarFireRingFlicker 1.6s ease-in-out infinite alternate !important;
}

.profile-customization-avatar-frame[data-customization-border="ice"] > .profile-customization-avatar-ring {
  box-shadow: 0 0 13px rgba(110, 221, 255, .58) !important;
  animation:
    radarIceRingSweep 4.2s linear infinite,
    radarIceRingShimmer 1.7s ease-in-out infinite alternate !important;
}

.profile-customization-avatar-embers {
  position: absolute !important;
  z-index: 1 !important;
  inset: -3px !important;
  display: block !important;
  border-radius: 50% !important;
  opacity: 0;
  pointer-events: none !important;
  transform-origin: center center;
}

.profile-customization-avatar-embers > i {
  position: absolute;
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff0a6;
  box-shadow: 0 0 6px 2px rgba(255, 166, 54, .75);
}

.profile-customization-avatar-embers > i:first-child {
  top: 0;
  left: calc(50% - 2px);
}

.profile-customization-avatar-embers > i:last-child {
  right: 2px;
  bottom: 24%;
  width: 3px;
  height: 3px;
  background: #ff7853;
  box-shadow: 0 0 6px 2px rgba(255, 89, 62, .64);
}

.profile-customization-avatar-frame[data-customization-border="fire"] > .profile-customization-avatar-embers {
  opacity: .46;
  animation: radarFireEmberOrbit 5.4s linear infinite;
}

.profile-customization-avatar-frame[data-customization-theme="radar-neon"][data-customization-border="default-glow"] > .profile-customization-avatar-ring {
  background:
    conic-gradient(
      transparent 0deg 230deg,
      rgba(69, 215, 255, .4) 244deg 258deg,
      #45d7ff 263deg 270deg,
      #fff 272deg 275deg,
      #ff54b8 279deg 290deg,
      rgba(255, 84, 184, .4) 298deg 312deg,
      transparent 322deg 1turn
    ),
    linear-gradient(
      135deg,
      var(--profile-customization-ring-accent, #ff54b8),
      var(--profile-customization-ring-secondary, #45d7ff)
    ) !important;
  animation: radarNeonThemeSweep 7.5s linear infinite;
}

.profile-customization-avatar-frame[data-customization-theme="purple-pulse"][data-customization-border="default-glow"] > .profile-customization-avatar-ring {
  background: linear-gradient(135deg, #9256ff, #d879ff) !important;
  box-shadow: 0 0 13px rgba(143, 107, 255, .45) !important;
  animation: radarPurpleThemePulse 3.6s ease-in-out infinite alternate;
}

@keyframes radarPulseRingBreath {
  from {
    opacity: .8;
    transform: scale(1);
    box-shadow: 0 0 8px 1px color-mix(in srgb, var(--profile-customization-ring-accent, #ff54b8) 45%, transparent);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
    box-shadow: 0 0 16px 2px color-mix(in srgb, var(--profile-customization-ring-accent, #ff54b8) 62%, transparent);
  }
}

@keyframes radarFireRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes radarFireRingFlicker {
  from {
    opacity: .84;
    box-shadow: 0 0 8px rgba(255, 74, 36, .42);
  }
  to {
    opacity: .98;
    box-shadow: 0 0 16px 2px rgba(255, 174, 49, .62);
  }
}

@keyframes radarFireEmberOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes radarIceRingSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes radarIceRingShimmer {
  from { opacity: .76; }
  to { opacity: .98; }
}

@keyframes radarNeonThemeSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes radarPurpleThemePulse {
  from {
    opacity: .72;
    transform: scale(1);
    box-shadow: 0 0 8px 1px rgba(143, 107, 255, .32);
  }
  to {
    opacity: .98;
    transform: scale(1.04);
    box-shadow: 0 0 16px 3px rgba(169, 131, 255, .54);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-customization-avatar-frame[data-customization-theme] > .profile-customization-avatar-ring,
  .profile-customization-avatar-frame[data-customization-theme] > .profile-customization-avatar-embers {
    animation: none !important;
    animation-play-state: paused !important;
  }

  .profile-customization-option,
  .profile-customization-option-check,
  .profile-customization-switch span,
  .profile-customization-apply,
  .profile-customization-entry-card,
  .profile-customization-entry-card::before,
  .profile-customization-entry-lock,
  .profile-customization-shell,
  .profile-customization-panel,
  .profile-customization-close,
  .profile-customization-upgrade {
    transition: none !important;
  }
}

@keyframes radarRainbowRingRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/*
 * Ring safety: animated gradients are visible only through a donut mask.
 * Safari's prefixed mask path is included; older/partial implementations
 * receive the solid-border rules below instead of a full-circle gradient.
 */
@supports (background-image: conic-gradient(red, blue)) and
  ((mask-image: radial-gradient(farthest-side, transparent 80%, #000 82%)) or
    (-webkit-mask-image: radial-gradient(farthest-side, transparent 80%, #000 82%))) {
  .profile-customization-avatar-frame > .profile-customization-avatar-ring {
    -webkit-mask-image: radial-gradient(
      farthest-side,
      transparent calc(100% - 6px),
      #000 calc(100% - 5px)
    ) !important;
    -webkit-mask-repeat: no-repeat !important;
    -webkit-mask-size: 100% 100% !important;
    mask-image: radial-gradient(
      farthest-side,
      transparent calc(100% - 6px),
      #000 calc(100% - 5px)
    ) !important;
    mask-repeat: no-repeat !important;
    mask-size: 100% 100% !important;
  }
}

@supports not (
  (background-image: conic-gradient(red, blue)) and
    ((mask-image: radial-gradient(farthest-side, transparent 80%, #000 82%)) or
      (-webkit-mask-image: radial-gradient(farthest-side, transparent 80%, #000 82%)))
) {
  .profile-customization-avatar-frame[data-customization-theme][data-customization-border] > .profile-customization-avatar-ring {
    background: transparent !important;
    border: 6px solid var(--profile-customization-ring-accent, #ff54b8) !important;
    box-shadow: 0 0 10px rgba(255, 84, 184, .35) !important;
    animation: none !important;
    transform: none !important;
  }

  .profile-customization-avatar-frame > .profile-customization-avatar-embers {
    display: none !important;
    animation: none !important;
  }
}