:root {
  color-scheme: dark;
  --main-neon-color: #c85cff;
  --main-neon-color-2: #ff4fd8;
  --main-neon-gradient: linear-gradient(135deg, var(--main-neon-color), var(--main-neon-color-2));
  --main-neon-glow-strong: color-mix(in srgb, var(--main-neon-color) 58%, transparent);
  --main-neon-glow: color-mix(in srgb, var(--main-neon-color) 32%, transparent);
  --main-neon-soft: color-mix(in srgb, var(--main-neon-color) 16%, transparent);
  --main-neon-faint: color-mix(in srgb, var(--main-neon-color) 8%, transparent);
  --main-neon-line: color-mix(in srgb, var(--main-neon-color) 28%, transparent);
  --profile-bg: #07040c;
  --profile-panel: rgba(10, 7, 18, .90);
  --profile-panel-strong: rgba(13, 8, 23, .96);
  --profile-line: var(--main-neon-line);
  --profile-line-soft: rgba(255,255,255,.09);
  --profile-text: #fff;
  --profile-muted: rgba(235, 226, 245, .64);
  --profile-dim: rgba(235, 226, 245, .42);
  --profile-accent: var(--main-neon-color);
  --profile-accent-2: var(--main-neon-color-2);
  --profile-good: #75f5c2;
  --profile-warn: #ffc66d;
  --profile-radius: 22px;
  --profile-shadow: 0 24px 80px rgba(0, 0, 0, .44), 0 0 36px var(--main-neon-faint);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body.pz-profile-page {
  --profile-line: var(--main-neon-line);
  --profile-accent: var(--main-neon-color);
  --profile-accent-2: var(--main-neon-color-2);
  --profile-shadow: 0 24px 80px rgba(0, 0, 0, .44), 0 0 36px var(--main-neon-faint);
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--profile-text);
  background: var(--profile-bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.pz-profile-backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(3,2,8,.68), rgba(5,2,10,.90)),
    radial-gradient(circle at 75% 20%, var(--main-neon-soft), transparent 34%),
    url("../img/theme/pz-theme-main-city-v1.webp") center/cover no-repeat;
  filter: saturate(.9) contrast(1.03);
}
.pz-profile-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,3,13,.84) 0 22%, transparent 52%),
    repeating-linear-gradient(90deg, transparent 0 79px, color-mix(in srgb, var(--main-neon-color) 2.5%, transparent) 80px);
  pointer-events: none;
}

body.pz-profile-page.theme-lite,
body.pz-profile-page[data-theme="lite"] {
  --profile-bg: #020202;
  --profile-panel: rgba(7,7,7,.94);
  --profile-panel-strong: rgba(10,10,10,.98);
  --profile-line: color-mix(in srgb, var(--main-neon-color) 18%, rgba(255,255,255,.08));
}
body.pz-profile-page.theme-lite .pz-profile-backdrop,
body.pz-profile-page[data-theme="lite"] .pz-profile-backdrop {
  background:
    linear-gradient(180deg, rgba(0,0,0,.76), rgba(0,0,0,.94)),
    url("../img/theme/pz-theme-lite-city-v1.webp") center/cover no-repeat;
  filter: grayscale(.2) saturate(.45) contrast(1.08);
}
body.pz-profile-page.theme-pink,
body.pz-profile-page[data-theme="pink"] {
  --profile-line: var(--main-neon-line);
}
body.pz-profile-page.theme-pink .pz-profile-backdrop,
body.pz-profile-page[data-theme="pink"] .pz-profile-backdrop {
  background:
    linear-gradient(180deg, rgba(12,2,18,.66), rgba(12,2,18,.90)),
    radial-gradient(circle at 76% 18%, var(--main-neon-soft), transparent 34%),
    url("../img/theme/pz-theme-pink-express-city-v1.webp") center/cover no-repeat;
}

.pz-profile-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--main-neon-soft);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--main-neon-color) 6%, rgba(5,2,10,.86)), rgba(5,2,10,.74));
  box-shadow: 0 10px 40px rgba(0,0,0,.18), 0 1px 0 var(--main-neon-faint);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transform: translate3d(0,0,0);
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.pz-profile-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  font-weight: 950;
  letter-spacing: -.02em;
}
.pz-profile-brand__mark {
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  line-height: 1;
  color: var(--main-neon-color);
  text-shadow: 0 0 18px var(--main-neon-glow);
}
.pz-profile-brand__word { font-size: clamp(.88rem, 2vw, 1.1rem); }
.pz-profile-brand__word b { color: var(--main-neon-color); }
.pz-profile-account {
  min-width: 0;
  max-width: 320px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 12px 6px 7px;
  border: 1px solid var(--profile-line);
  border-radius: 17px;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.035);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 850;
}
.pz-profile-account__avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--pz-avatar-line, var(--main-neon-line));
  color: #fff;
  font-size: .58rem;
  font-weight: 950;
  background:
    radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--pz-avatar-primary, var(--main-neon-color)) 86%, white 14%) 0 7%, transparent 8%),
    radial-gradient(circle at 50% 40%, var(--pz-avatar-primary, var(--main-neon-color)) 0 8%, var(--pz-avatar-mid, #24102e) 36%, var(--pz-avatar-dark, #08040d) 73%);
  box-shadow:
    0 0 18px var(--pz-avatar-glow, var(--main-neon-glow)),
    inset 0 -9px 16px rgba(0,0,0,.35);
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.pz-profile-account > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-profile-account svg { width: 17px; height: 17px; flex: 0 0 auto; }

.pz-profile-shell {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 42px;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.pz-profile-sidebar {
  position: sticky;
  top: 98px;
  min-height: calc(100vh - 122px);
  max-height: calc(100vh - 112px);
  display: flex;
  flex-direction: column;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--main-neon-line) transparent;
  padding: 17px 13px 14px;
  border: 1px solid var(--profile-line);
  border-radius: var(--profile-radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--main-neon-color) 6%, rgba(13,7,21,.95)), rgba(6,4,11,.95));
  box-shadow: var(--profile-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.pz-profile-sidebar::-webkit-scrollbar { width: 6px; }
.pz-profile-sidebar::-webkit-scrollbar-track { background: transparent; }
.pz-profile-sidebar::-webkit-scrollbar-thumb { background: var(--main-neon-line); border-radius: 999px; }
.pz-profile-sidebar__account {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr);
  align-items: center;
  gap: 11px;
  margin: 1px 2px 12px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,.075);
}
.pz-profile-sidebar__avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pz-avatar-line, var(--main-neon-line));
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--pz-avatar-primary, var(--main-neon-color)) 86%, white 14%) 0 7%, transparent 8%),
    radial-gradient(circle at 50% 40%, var(--pz-avatar-primary, var(--main-neon-color)) 0 8%, var(--pz-avatar-mid, #24102e) 36%, var(--pz-avatar-dark, #08040d) 73%);
  box-shadow:
    0 0 22px var(--pz-avatar-glow, var(--main-neon-glow)),
    inset 0 -10px 18px rgba(0,0,0,.34);
  font-size: .65rem;
  font-weight: 950;
  letter-spacing: .05em;
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.pz-profile-sidebar__identity { min-width:0; display:grid; gap:3px; }
.pz-profile-sidebar__identity strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.78rem; color:#fff; }
.pz-profile-sidebar__identity small { color:var(--profile-dim); font-size:.55rem; font-weight:900; letter-spacing:.13em; }
.pz-profile-nav__section {
  display: block;
  margin: 10px 10px 3px;
  color: var(--profile-dim);
  font-size: .52rem;
  font-weight: 950;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.pz-profile-nav { display: grid; gap: 4px; }
.pz-profile-nav a,
.pz-profile-nav button,
.pz-profile-logout {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 23px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: rgba(247,239,255,.82);
  background: transparent;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.pz-profile-nav svg,
.pz-profile-logout svg { width: 20px; height: 20px; }
.pz-profile-nav a:hover,
.pz-profile-nav a.is-active {
  color: #fff;
  border-color: var(--main-neon-line);
  background: linear-gradient(90deg, var(--main-neon-soft), color-mix(in srgb, var(--main-neon-color-2) 6%, transparent));
  transform: translateX(2px);
}
.pz-profile-nav button.is-locked {
  color: rgba(244,235,251,.44);
  cursor: not-allowed;
}
.pz-profile-nav small {
  padding: 4px 6px;
  border-radius: 999px;
  color: rgba(255,255,255,.50);
  background: rgba(255,255,255,.045);
  font-size: .52rem;
  font-weight: 900;
}
.pz-profile-logout {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.07);
  border-radius: 0 0 12px 12px;
  color: #ffd8ed;
}
.pz-profile-logout:hover { background: rgba(255,64,135,.075); color: #fff; }
.pz-profile-logout:disabled { opacity: .55; cursor: wait; }

.pz-profile-content { min-width: 0; }
.pz-profile-content [hidden] { display: none !important; }
.pz-profile-auth-gate {
  min-height: 60vh;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 48px 24px;
  border: 1px solid var(--profile-line);
  border-radius: 28px;
  background: var(--profile-panel-strong);
  box-shadow: var(--profile-shadow);
}
.pz-profile-auth-gate__mark {
  width: 74px; height: 74px; display:grid; place-items:center;
  border-radius: 24px;
  border: 1px solid var(--main-neon-line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--main-neon-color) 78%, transparent), color-mix(in srgb, var(--main-neon-color-2) 58%, transparent));
  font-weight: 950;
  box-shadow: 0 0 36px var(--main-neon-glow);
}
.pz-profile-auth-gate h1 { margin: 12px 0 6px; font-size: clamp(1.7rem,5vw,2.6rem); }
.pz-profile-auth-gate > p:not(.pz-profile-eyebrow) { max-width: 560px; margin: 0; color: var(--profile-muted); line-height: 1.65; }
.pz-profile-auth-gate > a { margin-top: 22px; padding: 12px 18px; border-radius: 13px; color:#fff; background:var(--main-neon-gradient); text-decoration:none; font-weight:850; }

.pz-profile-hero {
  min-height: 232px;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 4vw, 46px);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--profile-line);
  border-radius: 28px;
  background:
    linear-gradient(115deg, var(--main-neon-soft), transparent 32%),
    var(--profile-panel-strong);
  box-shadow: var(--profile-shadow);
  overflow: hidden;
  position: relative;
}
.pz-profile-hero::after {
  content:"";
  position:absolute;
  width: 300px; height: 300px; right:-100px; top:-140px;
  border:1px solid color-mix(in srgb, var(--main-neon-color) 11%, transparent); border-radius:50%;
  box-shadow:0 0 80px var(--main-neon-faint) inset;
  pointer-events:none;
}
.pz-profile-avatar {
  position: relative;
  width: 172px;
  height: 172px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.pz-profile-avatar__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--pz-avatar-line, var(--main-neon-line));
  box-shadow:
    0 0 18px color-mix(in srgb, var(--pz-avatar-primary, var(--main-neon-color)) 54%, transparent),
    0 0 45px var(--pz-avatar-glow, var(--main-neon-glow)),
    inset 0 0 36px color-mix(in srgb, var(--pz-avatar-primary, var(--main-neon-color)) 15%, transparent);
  transition: border-color .22s ease, box-shadow .22s ease;
}
.pz-profile-avatar__ring::before,
.pz-profile-avatar__ring::after {
  content:""; position:absolute; inset:10px; border-radius:50%;
  border:1px solid rgba(255,255,255,.15);
}
.pz-profile-avatar__ring::after { inset:-8px; border-color:color-mix(in srgb, var(--pz-avatar-primary, var(--main-neon-color)) 22%, transparent); }
.pz-profile-avatar__core {
  width: 132px; height:132px; display:grid; place-items:center;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--pz-avatar-primary, var(--main-neon-color)) 90%, white 10%) 0 6%, transparent 7%),
    radial-gradient(circle at 50% 42%, var(--pz-avatar-primary, var(--main-neon-color)) 0 6%, var(--pz-avatar-mid, #24102e) 34%, var(--pz-avatar-dark, #08030d) 72%);
  box-shadow: inset 0 -26px 45px rgba(0,0,0,.52), 0 0 34px var(--pz-avatar-glow, var(--main-neon-glow));
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing:.08em;
  text-shadow:0 0 15px rgba(255,255,255,.22);
}
.pz-profile-avatar__edit {
  position:absolute; left:50%; bottom:8px; transform:translateX(-50%) translateY(8px);
  opacity:0;
  padding:5px 8px;
  border:1px solid color-mix(in srgb, var(--pz-avatar-primary, var(--main-neon-color)) 34%, rgba(255,255,255,.12));
  border-radius:999px;
  background:rgba(4,2,8,.82);
  color:rgba(255,255,255,.82);
  font-size:.58rem; font-weight:850;
  transition:.18s ease;
}
.pz-profile-avatar:hover .pz-profile-avatar__edit { opacity:1; transform:translateX(-50%) translateY(0); }

.pz-profile-identity { min-width:0; }
.pz-profile-eyebrow {
  margin:0 0 8px;
  color: color-mix(in srgb, var(--profile-accent) 70%, white 30%);
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.17em;
  text-transform:uppercase;
}
.pz-profile-identity h1 { margin:0; font-size:clamp(2.1rem,5vw,3.5rem); line-height:1; letter-spacing:-.045em; overflow-wrap:anywhere; }
.pz-profile-email { margin:14px 0 0; display:flex; align-items:center; gap:9px; color:rgba(246,239,251,.72); font-size:.86rem; min-width:0; }
.pz-profile-email svg { width:19px; height:19px; flex:0 0 auto; }
.pz-profile-email span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pz-profile-badges { margin-top:16px; display:flex; flex-wrap:wrap; gap:7px; }
.pz-profile-badge { min-height:28px; display:inline-flex; align-items:center; gap:7px; padding:0 10px; border:1px solid var(--main-neon-line); border-radius:999px; background:var(--main-neon-faint); color:rgba(255,255,255,.83); font-size:.65rem; font-weight:850; }
.pz-profile-badge i { width:8px; height:8px; border-radius:50%; background:var(--main-neon-color); box-shadow:0 0 13px var(--main-neon-color); }
.pz-profile-badge.is-muted { border-color:rgba(255,255,255,.09); background:rgba(255,255,255,.03); color:var(--profile-dim); }
.pz-profile-status-line { margin-top:18px; padding-top:14px; border-top:1px solid rgba(255,255,255,.08); display:flex; align-items:center; gap:8px; color:var(--profile-muted); font-size:.72rem; }
.pz-profile-status-line svg { width:18px; height:18px; color:var(--profile-good); }
.pz-profile-hero__actions { align-self:start; display:grid; gap:8px; position:relative; z-index:1; }
.pz-profile-hero__actions a,
.pz-profile-hero__actions button { min-height:39px; display:flex; align-items:center; justify-content:center; padding:0 13px; border:1px solid rgba(255,255,255,.10); border-radius:11px; color:#fff; background:rgba(255,255,255,.035); text-decoration:none; cursor:pointer; font-size:.72rem; font-weight:850; }
.pz-profile-hero__actions a,
.pz-profile-hero__actions button {
  border-color:var(--main-neon-line);
  background:linear-gradient(135deg, var(--main-neon-soft), var(--main-neon-faint));
  box-shadow:0 0 18px var(--main-neon-faint);
}
.pz-profile-hero__actions a:hover,
.pz-profile-hero__actions button:hover {
  border-color:color-mix(in srgb, var(--main-neon-color) 48%, transparent);
  background:linear-gradient(135deg, color-mix(in srgb, var(--main-neon-color) 22%, transparent), var(--main-neon-soft));
  box-shadow:0 0 22px var(--main-neon-glow);
}

.pz-profile-dashboard-grid {
  display:grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap:14px;
  margin-top:14px;
}
.pz-profile-panel {
  min-width:0;
  padding:20px;
  border:1px solid var(--profile-line-soft);
  border-radius:var(--profile-radius);
  background:var(--profile-panel);
  box-shadow:0 16px 45px rgba(0,0,0,.28);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
}
.pz-profile-panel__head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.pz-profile-panel__head h2 { margin:0; font-size:1rem; letter-spacing:-.015em; }
.pz-profile-panel__lead { margin:14px 0 0; color:var(--profile-muted); font-size:.72rem; line-height:1.55; }
.pz-profile-state-chip,
.pz-profile-current-theme { flex:0 0 auto; padding:5px 8px; border-radius:999px; border:1px solid rgba(255,255,255,.08); color:var(--profile-dim); background:rgba(255,255,255,.03); font-size:.58rem; font-style:normal; font-weight:850; }
.pz-profile-state-chip.is-live { color:#b9ffe5; border-color:rgba(89,238,174,.16); background:rgba(75,230,161,.06); }
.pz-profile-locked-body { min-height:145px; display:grid; place-items:center; align-content:center; text-align:center; padding:18px 10px 4px; }
.pz-profile-lock-orb { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; border:1px solid rgba(255,255,255,.09); background:rgba(255,255,255,.035); color:rgba(255,255,255,.48); }
.pz-profile-locked-body strong { margin-top:12px; font-size:.78rem; }
.pz-profile-locked-body p { margin:7px 0 0; color:var(--profile-dim); font-size:.66rem; line-height:1.5; }
.pz-profile-theme-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:14px; }
.pz-profile-theme-grid button {
  min-width:0;
  min-height:63px;
  display:grid;
  grid-template-columns:26px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:8px;
  padding:9px 10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  color:rgba(255,255,255,.80);
  background:rgba(255,255,255,.025);
  text-align:left;
  cursor:pointer;
  transition:.18s ease;
}
.pz-profile-theme-grid button:hover,
.pz-profile-theme-grid button.is-active { border-color:var(--main-neon-line); background:var(--main-neon-faint); transform:translateY(-1px); }
.pz-profile-theme-grid button:disabled,
.pz-profile-theme-grid button.is-unavailable {
  display:grid;
  opacity:.48;
  cursor:not-allowed;
  transform:none;
}
.pz-profile-theme-grid button.is-unavailable::after {
  content:"ПК";
  grid-column:2;
  justify-self:start;
  margin-top:2px;
  padding:2px 5px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  color:var(--profile-dim);
  background:rgba(255,255,255,.03);
  font-size:.48rem;
  font-weight:900;
  letter-spacing:.06em;
}
.pz-profile-theme-grid button > span { font-size:.7rem; font-weight:850; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pz-profile-theme-grid button > small { grid-column:2; color:var(--profile-dim); font-size:.57rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.theme-dot { grid-row:1/3; width:24px; height:24px; border-radius:8px; border:1px solid rgba(255,255,255,.11); }
.theme-dot.is-neon { background:linear-gradient(135deg,#4d156e,#d544ff); box-shadow:0 0 13px rgba(192,65,255,.24); }
.theme-dot.is-lite { background:linear-gradient(135deg,#050505,#555); }
.theme-dot.is-pink { background:linear-gradient(135deg,#ff4acb,#7b4bff); }
.theme-dot.is-auto { background:conic-gradient(#c54cff,#1c1c23,#ff4cc8,#c54cff); }

.pz-profile-split { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:14px; scroll-margin-top:96px; }
.pz-profile-data-list { margin:16px 0 0; display:grid; }
.pz-profile-data-list > div { display:grid; grid-template-columns:130px minmax(0,1fr); gap:12px; padding:11px 0; border-bottom:1px solid rgba(255,255,255,.065); }
.pz-profile-data-list dt { color:var(--profile-dim); font-size:.68rem; }
.pz-profile-data-list dd { margin:0; min-width:0; overflow-wrap:anywhere; color:rgba(255,255,255,.86); font-size:.72rem; font-weight:750; }
.pz-profile-note { margin:14px 0 0; color:var(--profile-dim); font-size:.64rem; line-height:1.55; }
.pz-profile-security-list { margin-top:14px; display:grid; }
.pz-profile-security-list > div { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:40px; border-bottom:1px solid rgba(255,255,255,.065); color:var(--profile-muted); font-size:.68rem; }
.pz-profile-security-list strong { color:#c6ffe8; font-size:.63rem; }
.pz-profile-security-list .is-locked strong { color:var(--profile-dim); }

.pz-profile-catalog-section { margin-top:28px; }
.pz-profile-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:12px; padding:0 3px; }
.pz-profile-section-heading h2 { margin:0; font-size:clamp(1.2rem,3vw,1.65rem); letter-spacing:-.025em; }
.pz-profile-section-heading p:not(.pz-profile-eyebrow) { margin:6px 0 0; color:var(--profile-muted); font-size:.7rem; }
.pz-profile-section-heading > a { flex:0 0 auto; color:rgba(238,201,255,.78); font-size:.68rem; font-weight:800; text-decoration:none; }
.pz-profile-category-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.pz-profile-category-card { position:relative; min-height:112px; display:flex; flex-direction:column; justify-content:flex-end; padding:14px; overflow:hidden; border:1px solid var(--profile-line-soft); border-radius:17px; background:linear-gradient(145deg,color-mix(in srgb, var(--main-neon-color) 7%, rgba(25,12,35,.92)),rgba(8,5,14,.94)); color:#fff; text-decoration:none; }
.pz-profile-category-card::before { content:""; position:absolute; width:90px; height:90px; right:-22px; top:-25px; border-radius:50%; background:radial-gradient(circle,var(--category-accent,var(--main-neon-line)),transparent 66%); }
.pz-profile-category-card strong { position:relative; font-size:.76rem; }
.pz-profile-category-card small { position:relative; margin-top:5px; color:var(--profile-dim); font-size:.58rem; }

.pz-profile-product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.pz-profile-product-card { min-width:0; overflow:hidden; border:1px solid var(--profile-line-soft); border-radius:18px; background:linear-gradient(160deg,color-mix(in srgb, var(--main-neon-color) 6%, rgba(15,9,23,.95)),rgba(6,4,11,.96)); color:#fff; text-decoration:none; transition:transform .2s ease,border-color .2s ease; }
.pz-profile-product-card:hover { transform:translateY(-3px); border-color:var(--main-neon-line); }
.pz-profile-product-card__media { aspect-ratio: 1.3 / 1; display:grid; place-items:center; padding:10px; overflow:hidden; background:radial-gradient(circle at 50% 70%,var(--main-neon-soft),transparent 58%),#09060e; }
.pz-profile-product-card__media img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 14px 18px rgba(0,0,0,.32)); }
.pz-profile-product-card__body { padding:12px; }
.pz-profile-product-card__meta { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; color:var(--profile-dim); font-size:.55rem; text-transform:uppercase; letter-spacing:.08em; }
.pz-profile-product-card h3 { margin:0; min-height:2.2em; font-size:.74rem; line-height:1.1; }
.pz-profile-product-card__footer { margin-top:10px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.pz-profile-product-card__price { font-size:.76rem; font-weight:900; }
.pz-profile-product-card__state { padding:4px 6px; border-radius:999px; background:var(--main-neon-faint); color:color-mix(in srgb, var(--main-neon-color) 42%, white 58%); font-size:.52rem; }
.pz-profile-empty { padding:30px 20px; border:1px dashed rgba(255,255,255,.11); border-radius:18px; text-align:center; background:rgba(255,255,255,.018); }
.pz-profile-empty strong { display:block; font-size:.82rem; }
.pz-profile-empty p { margin:7px 0 13px; color:var(--profile-dim); font-size:.66rem; }
.pz-profile-empty a { color:color-mix(in srgb, var(--main-neon-color) 45%, white 55%); font-size:.68rem; font-weight:850; }
.pz-profile-skeleton-card { min-height:130px; border-radius:18px; background:linear-gradient(100deg,rgba(255,255,255,.025),rgba(255,255,255,.055),rgba(255,255,255,.025)); background-size:220% 100%; animation:pz-profile-skeleton 1.4s linear infinite; }
@keyframes pz-profile-skeleton { to { background-position:-220% 0; } }

.pz-profile-coming-row { margin-top:28px; display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.pz-profile-coming-row article { min-width:0; display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:70px; padding:12px; border:1px solid rgba(255,255,255,.07); border-radius:16px; background:rgba(255,255,255,.02); opacity:.72; }
.pz-profile-coming-row article > span { width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:rgba(255,255,255,.035); }
.pz-profile-coming-row strong,.pz-profile-coming-row small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pz-profile-coming-row strong { font-size:.7rem; }
.pz-profile-coming-row small { margin-top:3px; color:var(--profile-dim); font-size:.56rem; }
.pz-profile-coming-row em { padding:4px 6px; border-radius:999px; color:var(--profile-dim); background:rgba(255,255,255,.04); font-size:.54rem; font-style:normal; }

.pz-profile-footer { width:min(1500px,calc(100% - 32px)); margin:0 auto; padding:0 0 36px 264px; color:var(--profile-dim); font-size:.61rem; }
.pz-profile-footer > div { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:18px; border-top:1px solid rgba(255,255,255,.07); }
.pz-profile-footer nav { display:flex; flex-wrap:wrap; gap:12px; }
.pz-profile-footer a { color:rgba(235,218,244,.60); text-decoration:none; }
.pz-profile-footer p { margin:8px 0 0; }

.pz-profile-avatar-modal { position:fixed; inset:0; z-index:11000; display:grid; place-items:center; padding:18px; }
.pz-profile-avatar-modal[hidden] { display:none!important; }
.pz-profile-avatar-modal__backdrop { position:absolute; inset:0; border:0; background:rgba(2,1,5,.76); backdrop-filter:blur(12px); cursor:default; }
.pz-profile-avatar-modal__dialog { position:relative; width:min(560px,100%); max-height:min(82vh,680px); overflow:auto; padding:22px; border:1px solid var(--profile-line); border-radius:24px; background:linear-gradient(160deg,color-mix(in srgb, var(--main-neon-color) 7%, rgba(18,9,28,.99)),rgba(7,4,12,.99)); box-shadow:0 28px 100px rgba(0,0,0,.62); }
.pz-profile-avatar-modal__head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.pz-profile-avatar-modal__head h2 { margin:0; font-size:1.3rem; }
.pz-profile-avatar-modal__head > button { width:36px;height:36px;border:1px solid rgba(255,255,255,.09);border-radius:12px;color:#fff;background:rgba(255,255,255,.035);cursor:pointer; }
.pz-profile-avatar-modal__dialog > p { margin:8px 0 0; color:var(--profile-muted); font-size:.68rem; }
.pz-profile-avatar-options { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:18px; }
.pz-profile-avatar-options button { display:grid; place-items:center; gap:8px; min-height:130px; padding:12px; border:1px solid rgba(255,255,255,.08); border-radius:16px; color:#fff; background:rgba(255,255,255,.025); cursor:pointer; transition:.18s ease; }
.pz-profile-avatar-options button:hover,.pz-profile-avatar-options button.is-active { border-color:var(--main-neon-line); background:var(--main-neon-faint); transform:translateY(-2px); }
.pz-avatar-preview {
  width:68px;
  height:68px;
  display:grid;
  place-items:center;
  border:1px solid var(--pz-avatar-line, rgba(255,255,255,.12));
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--pz-avatar-primary, var(--main-neon-color)) 86%, white 14%) 0 7%, transparent 8%),
    radial-gradient(circle at 50% 40%, var(--pz-avatar-primary, var(--main-neon-color)) 0 8%, var(--pz-avatar-mid, #24102e) 36%, var(--pz-avatar-dark, #08030d) 73%);
  box-shadow:0 0 24px var(--pz-avatar-glow, var(--main-neon-glow));
  font-style:normal;
  font-size:.7rem;
  font-weight:950;
  transition:border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.pz-profile-avatar-options span { font-size:.68rem; font-weight:850; }
body.is-profile-modal-open { overflow:hidden; }


.pz-profile-topbar[data-pz-auto-hide-header].is-scroll-hidden {
  transform: translate3d(0, calc(-100% - 2px), 0);
  pointer-events: none;
}
.pz-profile-topbar[data-pz-auto-hide-header].is-scroll-visible {
  transform: translate3d(0,0,0);
  pointer-events: auto;
}

@media (max-width: 1180px) {
  .pz-profile-shell { grid-template-columns: 248px minmax(0,1fr); }
  .pz-profile-sidebar { padding-inline:9px; }
  .pz-profile-dashboard-grid { grid-template-columns:1fr 1fr; }
  .pz-profile-dashboard-grid > :last-child { grid-column:1/-1; }
  .pz-profile-category-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .pz-profile-product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .pz-profile-footer { padding-left:266px; }
}

@media (max-width: 860px) {
  .pz-profile-topbar { min-height:64px; }
  .pz-profile-shell { width:min(100% - 20px, 760px); display:block; padding-top:12px; }
  .pz-profile-sidebar {
    position:static;
    min-height:0;
    max-height:none;
    margin-bottom:10px;
    padding:8px;
    overflow:visible;
    border-radius:18px;
  }
  .pz-profile-sidebar__account { display:none; }
  .pz-profile-nav {
    display:flex;
    gap:6px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    padding-bottom:2px;
  }
  .pz-profile-nav::-webkit-scrollbar { display:none; }
  .pz-profile-nav__section { display:none; }
  .pz-profile-nav a,
  .pz-profile-nav button {
    flex:0 0 124px;
    min-height:58px;
    grid-template-columns:1fr;
    justify-items:center;
    gap:4px;
    padding:7px 5px;
    text-align:center;
    font-size:.56rem;
    scroll-snap-align:start;
  }
  .pz-profile-nav small { display:none; }
  .pz-profile-logout { display:none; }
  .pz-profile-hero { grid-template-columns:126px minmax(0,1fr); gap:20px; padding:22px; }
  .pz-profile-avatar { width:120px; height:120px; }
  .pz-profile-avatar__core { width:92px; height:92px; }
  .pz-profile-hero__actions { grid-column:1/-1; grid-template-columns:1fr 1fr; width:100%; }
  .pz-profile-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pz-profile-footer { width:min(100% - 20px,760px); padding-left:0; }
}

@media (max-width: 620px) {
  .pz-profile-topbar { padding-inline:12px; gap:10px; }
  .pz-profile-brand__word { display:none; }
  .pz-profile-account { max-width:210px; }
  .pz-profile-shell { width:calc(100% - 16px); }
  .pz-profile-hero { grid-template-columns:1fr; justify-items:center; text-align:center; border-radius:22px; }
  .pz-profile-identity { width:100%; }
  .pz-profile-email,.pz-profile-status-line,.pz-profile-badges { justify-content:center; }
  .pz-profile-hero__actions { grid-column:auto; }
  .pz-profile-dashboard-grid,.pz-profile-split { grid-template-columns:1fr; }
  .pz-profile-dashboard-grid > :last-child { grid-column:auto; }
  .pz-profile-panel { padding:16px; border-radius:18px; }
  .pz-profile-theme-grid { grid-template-columns:1fr 1fr; }
  .pz-profile-section-heading { align-items:flex-start; }
  .pz-profile-section-heading > a { margin-top:2px; }
  .pz-profile-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pz-profile-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .pz-profile-product-card__body { padding:10px; }
  .pz-profile-coming-row { grid-template-columns:1fr; }
  .pz-profile-footer > div { align-items:flex-start; flex-direction:column; }
  .pz-profile-avatar-options { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 420px) {
  .pz-profile-nav a,.pz-profile-nav button { font-size:.52rem; }
  .pz-profile-theme-grid { grid-template-columns:1fr; }
  .pz-profile-category-grid { grid-template-columns:1fr 1fr; }
  .pz-profile-product-card h3 { font-size:.68rem; }
  .pz-profile-product-card__price { font-size:.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .pz-profile-skeleton-card { animation:none; }
  .pz-profile-nav a,.pz-profile-product-card,.pz-profile-theme-grid button,.pz-profile-avatar-options button { transition:none; }
}


/* PATCH 326 — profile dashboard force-deploy + richer locked modules */
.pz-profile-order-preview {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.pz-profile-order-preview__row {
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 13px;
  background: linear-gradient(135deg, var(--main-neon-faint), rgba(255,255,255,.018));
}
.pz-profile-order-preview__row.is-muted { opacity: .66; }
.pz-profile-order-preview__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--main-neon-line);
  background: var(--main-neon-faint);
  color: rgba(255,255,255,.82);
  font-size: .62rem;
  font-weight: 950;
}
.pz-profile-order-preview__row > div { min-width: 0; display: grid; gap: 3px; }
.pz-profile-order-preview__row strong { color: rgba(255,255,255,.88); font-size: .73rem; }
.pz-profile-order-preview__row small { color: var(--profile-dim); font-size: .61rem; line-height: 1.4; }
.pz-profile-order-preview__row em {
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 999px;
  color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.025);
  font-size: .55rem;
  font-style: normal;
  font-weight: 850;
}
.pz-profile-settings-locks {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.pz-profile-settings-locks > div {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
}
.pz-profile-settings-locks span { min-width: 0; display: grid; gap: 2px; }
.pz-profile-settings-locks b { color: rgba(255,255,255,.72); font-size: .69rem; }
.pz-profile-settings-locks small { color: rgba(239,229,247,.36); font-size: .57rem; }
.pz-profile-settings-locks em {
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.04);
  font-size: .55rem;
  font-style: normal;
  font-weight: 900;
}
@media (max-width: 720px) {
  .pz-profile-order-preview__row { grid-template-columns: 38px minmax(0,1fr); }
  .pz-profile-order-preview__row > em { grid-column: 2; justify-self: start; }
}


/* PATCH 328 — expanded account navigation */
.pz-profile-nav a[aria-current="location"] {
  box-shadow: inset 3px 0 0 var(--main-neon-color), 0 0 18px var(--main-neon-faint);
}
.pz-profile-nav button.is-locked small {
  border: 1px solid rgba(255,255,255,.055);
}
.pz-profile-nav button.is-locked:hover { transform:none; }

/* PATCH 329 — account navigation scrollbar artifact fix */
.pz-profile-sidebar {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
}
.pz-profile-sidebar::-webkit-scrollbar,
.pz-profile-sidebar::-webkit-scrollbar-track,
.pz-profile-sidebar::-webkit-scrollbar-thumb,
.pz-profile-sidebar::-webkit-scrollbar-button,
.pz-profile-sidebar::-webkit-scrollbar-corner {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}
.pz-profile-nav {
  min-width: 0;
}
.pz-profile-nav a,
.pz-profile-nav button,
.pz-profile-logout {
  min-width: 0;
  overflow: hidden;
}
.pz-profile-nav a > span,
.pz-profile-nav button > span,
.pz-profile-logout > span {
  min-width: 0;
}
.pz-profile-nav button.is-locked small {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .pz-profile-sidebar {
    overflow: visible;
    overscroll-behavior: auto;
  }
  .pz-profile-nav {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .pz-profile-nav::-webkit-scrollbar,
  .pz-profile-nav::-webkit-scrollbar-track,
  .pz-profile-nav::-webkit-scrollbar-thumb,
  .pz-profile-nav::-webkit-scrollbar-button,
  .pz-profile-nav::-webkit-scrollbar-corner {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
  }
}

/* PATCH 331 — split profile navigation from global account dropdown */
@media (min-width: 861px) {
  .pz-profile-sidebar {
    min-height: calc(100vh - 122px);
    max-height: calc(100vh - 112px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .pz-profile-logout {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,.07);
    border-radius: 0 0 12px 12px;
  }
}


/* PATCH 332 — profile architecture: internal navigation is independent from the header account launcher. */
.pz-profile-view[hidden] { display: none !important; }
.pz-profile-view.is-active {
  animation: pzProfileViewIn .24s ease both;
}
@keyframes pzProfileViewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.pz-profile-view-heading {
  margin: 2px 0 16px;
  padding: 22px 24px;
  border: 1px solid var(--profile-line-soft);
  border-radius: var(--profile-radius);
  background: linear-gradient(120deg, var(--main-neon-faint), transparent 46%), var(--profile-panel);
  box-shadow: 0 16px 45px rgba(0,0,0,.22);
}
.pz-profile-view-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -.035em;
}
.pz-profile-view-heading > p:last-child {
  max-width: 760px;
  margin: 9px 0 0;
  color: var(--profile-muted);
  font-size: .78rem;
  line-height: 1.6;
}
.pz-profile-panel--wide { min-height: 300px; }
.pz-profile-dashboard-grid--overview { grid-template-columns: 1fr 1.15fr; }
.pz-profile-overview-account { display:flex; flex-direction:column; }
.pz-profile-overview-links {
  display:grid;
  gap:8px;
  margin-top:18px;
}
.pz-profile-overview-links a,
.pz-profile-settings-links a {
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 13px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.025);
  color:#fff;
  text-decoration:none;
  transition:.18s ease;
}
.pz-profile-overview-links a:hover,
.pz-profile-settings-links a:hover {
  border-color:var(--main-neon-line);
  background:var(--main-neon-faint);
  transform:translateY(-1px);
}
.pz-profile-overview-links a span,
.pz-profile-settings-links a span { font-size:.72rem; font-weight:850; }
.pz-profile-overview-links a small,
.pz-profile-settings-links a small { color:var(--profile-dim); font-size:.58rem; text-align:right; }
.pz-profile-view[data-profile-view="quick-settings"] .pz-profile-quick-settings {
  max-width: 980px;
}
.pz-profile-view[data-profile-view="quick-settings"] .pz-profile-theme-grid {
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.pz-profile-account-settings-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.pz-profile-account-settings-card { min-height:270px; }
.pz-profile-settings-identity {
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:22px;
  padding:16px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:15px;
  background:rgba(255,255,255,.022);
}
.pz-profile-settings-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--pz-avatar-line, var(--main-neon-line));
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--pz-avatar-primary, var(--main-neon-color)) 86%, white 14%) 0 7%, transparent 8%),
    radial-gradient(circle at 50% 40%, var(--pz-avatar-primary, var(--main-neon-color)) 0 8%, var(--pz-avatar-mid, #24102e) 36%, var(--pz-avatar-dark, #08030d) 73%);
  box-shadow: 0 0 24px var(--pz-avatar-glow, var(--main-neon-glow));
  color: #fff;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.pz-profile-settings-identity > div { min-width:0; display:grid; gap:5px; }
.pz-profile-settings-identity strong { color:#fff; font-size:.95rem; overflow:hidden; text-overflow:ellipsis; }
.pz-profile-settings-identity small { color:var(--profile-muted); font-size:.7rem; overflow:hidden; text-overflow:ellipsis; }
.pz-profile-settings-action,
.pz-profile-settings-logout,
.pz-profile-settings-disabled {
  width:100%;
  min-height:43px;
  margin-top:12px;
  border-radius:12px;
  font:inherit;
  font-size:.72rem;
  font-weight:850;
}
.pz-profile-settings-action {
  border:1px solid var(--main-neon-line);
  background:var(--main-neon-faint);
  color:#fff;
  cursor:pointer;
}
.pz-profile-settings-links { display:grid; gap:9px; margin-top:20px; }
.pz-profile-settings-logout {
  border:1px solid rgba(255,79,131,.26);
  background:rgba(255,42,107,.07);
  color:#ffd7e4;
  cursor:pointer;
}
.pz-profile-settings-disabled {
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.02);
  color:rgba(255,255,255,.28);
  cursor:not-allowed;
}
.pz-profile-account-settings-card.is-danger-zone {
  border-color:rgba(255,79,131,.16);
}
@media (max-width:1100px) {
  .pz-profile-dashboard-grid--overview { grid-template-columns:1fr 1.15fr; }
  .pz-profile-overview-account { grid-column:auto; }
  .pz-profile-view[data-profile-view="quick-settings"] .pz-profile-theme-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .pz-profile-account-settings-grid { grid-template-columns:1fr; }
  .pz-profile-view-heading { padding:18px; border-radius:18px; }
  .pz-profile-dashboard-grid--overview { grid-template-columns:1fr; }
  .pz-profile-overview-account { grid-column:auto; }
  .pz-profile-view[data-profile-view="quick-settings"] .pz-profile-theme-grid { grid-template-columns:1fr; }
}

/* PATCH 337 — OWNER profile integration */
.pz-profile-badge.is-owner {
  color: #f0c6ff;
  border-color: rgba(204, 104, 255, .28);
  background: rgba(182, 73, 239, .09);
  box-shadow: 0 0 18px rgba(179, 71, 239, .08);
}
.pz-profile-badge.is-owner i {
  background: #d579ff;
  box-shadow: 0 0 10px rgba(213, 121, 255, .7);
}
.pz-profile-owner-link {
  border-color: rgba(203, 101, 255, .22) !important;
  background: linear-gradient(90deg, rgba(178, 71, 239, .11), rgba(255,255,255,.018));
}
.pz-profile-owner-link small {
  color: #d99bf5 !important;
  font-weight: 900;
  letter-spacing: .06em;
}
.pz-profile-hero__actions .is-owner-action {
  color: #f1d3ff;
  border-color: rgba(203, 105, 255, .28);
  background: linear-gradient(135deg, rgba(178, 69, 239, .2), rgba(112, 37, 193, .15));
}
.pz-profile-owner-card {
  border-color: rgba(202, 104, 255, .18);
  background: linear-gradient(180deg, rgba(177, 72, 239, .055), rgba(255,255,255,.018));
}
.pz-profile-state-chip.is-owner {
  color: #efc5ff;
  border-color: rgba(202, 104, 255, .26);
  background: rgba(181, 73, 239, .08);
}
.pz-profile-settings-action.is-owner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-color: rgba(202, 104, 255, .26);
  color: #f0ceff;
  background: linear-gradient(135deg, rgba(178, 68, 237, .16), rgba(111, 37, 190, .12));
}

/* PATCH 339 — OWNER UI hard-hide for every non-owner account.
   This must stay after mobile nav/action display rules so [hidden] cannot be painted. */
[data-profile-owner-only][hidden],
[data-profile-owner-badge][hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* PATCH 363 — CUSTOM PROFILE AVATAR
   A personal image is selected in the existing profile avatar dialog. The
   source keeps its proportions; every circular surface performs only a
   centered crop and never stretches the bitmap. */
.pz-profile-avatar-modal__dialog {
  width: min(620px, 100%);
}

.pz-profile-avatar__core.has-custom-avatar,
.pz-profile-account__avatar.has-custom-avatar,
.pz-profile-sidebar__avatar.has-custom-avatar,
.pz-profile-settings-avatar.has-custom-avatar {
  color: transparent !important;
  text-shadow: none !important;
  background: var(--pz-avatar-image) 50% 50% / cover no-repeat !important;
}

.pz-profile-avatar__core.has-custom-avatar {
  border-color: color-mix(in srgb, var(--pz-avatar-primary, var(--main-neon-color)) 56%, rgba(255,255,255,.18));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 0 34px var(--pz-avatar-glow, var(--main-neon-glow));
}

.pz-profile-avatar-custom {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 16px 18px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(117, 218, 255, .20);
  border-radius: 19px;
  background:
    radial-gradient(circle at 0 0, rgba(88, 207, 255, .11), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(224, 99, 255, .11), transparent 38%),
    rgba(255,255,255,.025);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.pz-profile-avatar-custom.is-active {
  border-color: rgba(127, 226, 255, .48);
  box-shadow:
    0 0 24px rgba(75, 201, 255, .10),
    inset 0 0 26px rgba(202, 89, 255, .05);
}

.pz-profile-avatar-custom__preview {
  position: relative;
  width: 104px;
  height: 104px;
  overflow: hidden;
  border: 2px solid rgba(221, 127, 255, .64);
  border-radius: 50%;
  background: #0a0612;
  box-shadow:
    0 0 0 4px rgba(158, 73, 255, .10),
    0 0 25px rgba(220, 83, 255, .24),
    0 0 34px rgba(72, 208, 255, .10);
}

.pz-profile-avatar-custom__preview::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: inherit;
  pointer-events: none;
}

.pz-profile-avatar-custom__preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  transform: none;
}

.pz-profile-avatar-custom__copy {
  min-width: 0;
}

.pz-profile-avatar-custom__copy .pz-profile-eyebrow {
  margin-bottom: 5px;
  color: #81e4ff;
}

.pz-profile-avatar-custom__copy h3 {
  margin: 0;
  color: rgba(255,255,255,.96);
  font-size: 1rem;
}

.pz-profile-avatar-custom__copy > p:last-child {
  margin: 7px 0 0;
  color: var(--profile-muted);
  font-size: .68rem;
  line-height: 1.48;
}

.pz-profile-avatar-custom__actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.pz-profile-avatar-custom__file,
.pz-profile-avatar-custom__save,
.pz-profile-avatar-custom__reset {
  min-height: 43px;
  display: grid;
  place-items: center;
  padding: 0 13px;
  border-radius: 12px;
  font: inherit;
  font-size: .68rem;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
}

.pz-profile-avatar-custom__file {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 115, 255, .42);
  color: #fff;
  background: linear-gradient(135deg, rgba(191, 58, 245, .22), rgba(77, 192, 255, .11));
}

.pz-profile-avatar-custom__file input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.pz-profile-avatar-custom__save,
.pz-profile-avatar-custom__reset {
  border: 1px solid rgba(255,255,255,.10);
}

.pz-profile-avatar-custom__save {
  color: #071016;
  border-color: rgba(124, 227, 255, .68);
  background: linear-gradient(135deg, #8beaff, #e88bff);
}

.pz-profile-avatar-custom__save:disabled {
  color: rgba(233,225,238,.40);
  border-color: rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
  opacity: .64;
  cursor: not-allowed;
}

.pz-profile-avatar-custom__reset {
  color: rgba(255,238,248,.82);
  background: rgba(255,255,255,.035);
}

.pz-profile-avatar-custom__reset:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.pz-profile-avatar-custom__file:hover,
.pz-profile-avatar-custom__save:not(:disabled):hover,
.pz-profile-avatar-custom__reset:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(231,150,255,.70);
}

.pz-profile-avatar-custom__file:focus-within,
.pz-profile-avatar-custom__save:focus-visible,
.pz-profile-avatar-custom__reset:focus-visible {
  outline: 2px solid #8ce8ff;
  outline-offset: 3px;
}

.pz-profile-avatar-custom__status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  margin: -1px 2px 0;
  color: var(--profile-dim);
  font-size: .59rem;
  line-height: 1.4;
}

.pz-profile-avatar-custom__status[data-state="success"] {
  color: #91eaff;
}

.pz-profile-avatar-custom__status[data-state="error"] {
  color: #ff9fc5;
}

@media (max-width: 620px) {
  .pz-profile-avatar-modal__dialog {
    padding: 18px;
  }

  .pz-profile-avatar-custom {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 13px;
    padding: 13px;
  }

  .pz-profile-avatar-custom__preview {
    width: 82px;
    height: 82px;
  }

  .pz-profile-avatar-custom__actions {
    grid-template-columns: 1fr 1fr;
  }

  .pz-profile-avatar-custom__file {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .pz-profile-avatar-custom {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .pz-profile-avatar-custom__preview {
    width: 72px;
    height: 72px;
  }

  .pz-profile-avatar-custom__actions {
    grid-template-columns: 1fr;
  }

  .pz-profile-avatar-custom__file {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pz-profile-avatar-custom,
  .pz-profile-avatar-custom__file,
  .pz-profile-avatar-custom__save,
  .pz-profile-avatar-custom__reset {
    transition: none;
  }
}
