/* Profile backdrop effects (27.11, v2). Canvas stays inside the hero (never under the blurred app header),
   soft elliptic fade around the avatar; no transforms or entrance animations. */
.profile-hero.has-fx { position: relative; isolation: isolate; }
.profile-fx {
  /* explicit size: a canvas is a replaced element, left+right would not stretch it (its width attribute would) */
  position: absolute; display: block; left: 0; top: 0; width: 100%; height: 100%; max-height: 620px;
  z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 74% 58% at 50% 15%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 74% 58% at 50% 15%, #000 52%, transparent 100%);
}
.profile-fx.fx-pixels {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 46%, transparent 88%);
  mask-image: linear-gradient(180deg, transparent 0, #000 40px, #000 46%, transparent 88%);
}

/* «Настроить» in the hero, top right */
.fx-config {
  position: absolute; top: 2px; right: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .06);
  color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.fx-config:hover { background: rgba(255, 255, 255, .1); }
.fx-config svg { width: 16px; height: 16px; }

/* «Фон» menu */
.fx-menu {
  position: fixed; z-index: 1000; width: min(284px, calc(100vw - 16px)); padding: 6px;
  border-radius: 18px; background: rgba(22, 22, 25, .96); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.fx-menu-title { padding: 8px 12px 6px; font-size: 12px; color: rgba(255, 255, 255, .5); }
.fx-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.fx-menu-item:hover, .fx-menu-item:focus-visible { background: rgba(255, 255, 255, .06); outline: none; }
.fx-menu-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.fx-menu-text strong { font-size: 14.5px; font-weight: 600; }
.fx-menu-text small { font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.fx-menu-item svg { width: 18px; height: 18px; flex: none; color: var(--accent, #fff); }
.fx-menu-check { width: 18px; flex: none; }

/* «Оформление» row: current value, opens the same menu */
.fx-value {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; flex: none;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05);
  color: inherit; font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer;
}
.fx-value:hover { background: rgba(255, 255, 255, .09); }
.fx-value::after { content: "›"; opacity: .5; font-size: 16px; line-height: 1; }
