/* My Profile (signed in) - wide layout, same language as My Nexus: hairlines, quiet fills, one accent. */
.mb .mb-main:has(.pp:not([hidden])) { width: min(1480px, calc(100% - 64px)); padding-top: 96px; }
.mb .pp {
  --g: #00ff9d; --c: #00d8ff; --txt: #f0f2f5; --mut: #8a8d9b; --dim: #5d6070; --ln: rgba(255,255,255,.08);
  --fill: rgba(10,11,16,.6); --ease: cubic-bezier(.16,1,.3,1);
  color: var(--txt); font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}
.mb .pp [hidden] { display: none !important; }
.mb .pp svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header card ---------- */
.pp-cover { position: relative; margin: 0 0 18px; padding: 26px 28px; border: 1px solid var(--ln); border-radius: 26px; overflow: visible;
  background: radial-gradient(640px 260px at 0% 0%, rgba(0,255,157,.11), transparent 70%), radial-gradient(560px 260px at 100% 100%, rgba(0,216,255,.09), transparent 70%), rgba(11,12,18,.78);
  box-shadow: 0 30px 70px -45px rgba(0,0,0,.9); }
.pp-id { display: flex; align-items: center; gap: 24px; }
.mb .pp .pp-avatar { flex: none; margin: 0; }
.mb .pp #acAvatar { flex: 0 0 104px !important; width: 104px !important; height: 104px !important; min-width: 104px; max-width: 104px; background: linear-gradient(135deg, var(--g), var(--c)); color: #05110c; font: 800 40px "Plus Jakarta Sans", sans-serif; box-shadow: 0 0 0 4px #0b0c12, 0 0 0 5px rgba(255,255,255,.14), 0 18px 40px -12px rgba(0,255,157,.35); }
.mb .pp .pf-menu { left: 0; transform: none; }
.pp-who { flex: 1; min-width: 0; }
.pp-greet { margin: 0; color: var(--g); font-size: 11.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.pp-name { margin: 6px 0 4px; overflow: hidden; color: #fff; font: 800 clamp(1.8rem, 3vw, 2.6rem)/1.1 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.pp-handle { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0 0 12px; color: var(--mut); font-size: 14px; }
.pp-handle .dot { margin-right: 8px; color: var(--dim); }
.pp-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 12px; border: 1px solid var(--ln); border-radius: 99px; background: rgba(255,255,255,.04); color: #dfe1e7; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.pp-badge svg { width: 14px; height: 14px; }
.pp-badge.membership.plus { border-color: rgba(0,216,255,.35); background: rgba(0,216,255,.1); color: #7fe9fb; }
.pp-badge.membership.vip { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.1); color: #fcd77a; }
.pp-badge.membership.basic { color: var(--mut); }
.pp-badge.admin { border-color: rgba(255,111,181,.35); background: rgba(255,111,181,.1); color: #ff9fcf; }
.pp-badge.live { border-color: rgba(145,70,255,.45); background: rgba(145,70,255,.16); color: #d6c2ff; }
.pp-badge.live i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 10px #ff4d6d; }
.pp-actions { display: flex; flex-direction: column; gap: 8px; align-self: center; }
.pp-photo-status { margin: 10px 0 0; color: var(--mut); font-size: 12.5px; }
.pp-photo-status:empty { display: none; }

/* ---------- Buttons ---------- */
.pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid var(--ln); border-radius: 12px; background: rgba(255,255,255,.04); color: #e4e6eb; font: 600 13.5px "Plus Jakarta Sans", Inter, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s, color .2s, filter .2s; }
.pp-btn:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; }
.pp-btn svg { width: 16px; height: 16px; }
.pp-btn.sm { min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13px; }
.pp-btn.primary { border-color: transparent; background: #e7e7ea; color: #0b0b10; font-weight: 700; }
.pp-btn.primary:hover { color: #0b0b10; filter: brightness(1.06);  background: #f4f4f5;}
.pp-btn.danger { border-color: rgba(255,77,109,.3); background: rgba(255,77,109,.08); color: #ff8098; }
.pp-btn.danger:hover { background: rgba(255,77,109,.16); color: #fff; }
.pp-btn:disabled { opacity: .5; cursor: default; }
.pp-btn .spinner { display: none; width: 15px; height: 15px; }
.pp-btn.is-busy .spinner { display: inline-block; }
.pp-btn.is-busy { pointer-events: none; opacity: .8; }

/* ---------- Stats strip ---------- */
.pp-stats { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); margin: 0 0 18px; border: 1px solid var(--ln); border-radius: 20px; background: rgba(11,12,18,.72); }
.pp-stat { min-width: 0; padding: 18px 20px 16px; }
.pp-stat + .pp-stat { box-shadow: inset 1px 0 0 var(--ln); }
.pp-stat span { display: block; color: var(--mut); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pp-stat strong { display: block; margin-top: 7px; overflow: hidden; color: #fff; font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.pp-stat strong.pos, .pp-stat strong.good { color: var(--g); }
.pp-stat strong.neg, .pp-stat strong.bad { color: #ff6b86; }
.pp-stat small { display: block; margin-top: 3px; overflow: hidden; color: var(--dim); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Cards ---------- */
.pp-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.pp-col { display: grid; gap: 18px; min-width: 0; }
.pp-card { padding: 24px 26px 26px; border: 1px solid var(--ln); border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 140px), rgba(11,12,18,.74); box-shadow: 0 30px 70px -45px rgba(0,0,0,.9); }
.pp-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.pp-card-h h2 { margin: 0 0 4px; color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.pp-card-h p { margin: 0; color: var(--mut); font-size: 13.5px; line-height: 1.5; }
.pp-count { flex: none; padding: 4px 10px; border-radius: 99px; background: rgba(0,255,157,.1); color: var(--g); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Profile details */
.pp-photo { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; margin: 0 0 20px; padding: 14px; border: 1px solid var(--ln); border-radius: 16px; background: rgba(255,255,255,.02); }
.pp-mini { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, var(--g), var(--c)); color: #05110c; font: 800 20px "Plus Jakarta Sans", sans-serif; }
.pp-mini img { width: 100%; height: 100%; object-fit: cover; }
.pp-photo b { display: block; color: #fff; font-size: 14px; }
.pp-photo div > span { display: block; color: var(--mut); font-size: 12.5px; }
.pp-photo-btns { display: flex; gap: 8px; }
.pp-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.pp-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pp-field.full { grid-column: 1 / -1; }
.pp-field > span { color: #d9dbe2; font-size: 13px; font-weight: 700; }
.pp-field small { margin-left: 6px; color: var(--dim); font-weight: 500; }
.mb .pp .mb-input { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--ln); border-radius: 12px; background: var(--fill); color: #fff; font-size: 14px; }
.mb .pp .mb-input:focus { border-color: rgba(0,216,255,.45); box-shadow: 0 0 0 3px rgba(0,216,255,.08); outline: none; }
.pp .mb-error { margin: 14px 0 0; }
.pp-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ln); }
.pp-form-foot p { margin: 0; color: var(--mut); font-size: 13px; }
.pp-form-foot a { color: var(--c); font-weight: 600; text-decoration: none; }
.pp-form-foot a:hover { text-decoration: underline; }

/* Achievements */
.pp-progress { height: 6px; margin: -6px 0 18px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.pp-progress i { display: block; width: 16%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--g), var(--c)); transition: width .8s var(--ease); }
.pp-badge-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.pp-ach { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px 14px; border: 1px solid var(--ln); border-radius: 16px; background: rgba(255,255,255,.02); opacity: .55; filter: grayscale(.9); transition: opacity .3s, filter .3s, border-color .3s; }
.pp-ach.got { opacity: 1; filter: none; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.035); }
.pp-ach i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--a) 14%, transparent); color: var(--a); }
.pp-ach i svg { width: 19px; height: 19px; }
.pp-ach b { display: block; overflow: hidden; color: #fff; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.pp-ach small { display: block; overflow: hidden; color: var(--mut); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

/* Membership */
.pp-member { position: relative; overflow: hidden; }
.pp-member::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #5d6070, #8a8d9b); }
.pp-member.plus::before { background: linear-gradient(90deg, var(--g), var(--c)); }
.pp-member.vip::before { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.pp-member-top { display: flex; align-items: center; gap: 14px; }
.pp-member-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: rgba(255,255,255,.05); color: var(--mut); }
.pp-member.plus .pp-member-ic { background: rgba(0,216,255,.12); color: #7fe9fb; }
.pp-member.vip .pp-member-ic { background: rgba(251,191,36,.12); color: #fcd77a; }
.pp-member-ic svg { width: 22px; height: 22px; }
.pp-member-top small { color: var(--mut); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pp-member-top h2 { margin: 2px 0 0; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pp-member-line { margin: 14px 0 12px; color: #d9dbe2; font-size: 13.5px; font-weight: 600; }
.pp-perks { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.pp-perks li { display: flex; align-items: center; gap: 9px; color: var(--mut); font-size: 13px; }
.pp-perks svg { flex: none; width: 15px; height: 15px; color: var(--g); }
.pp-member-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-member-btns .pp-btn { flex: 1; }

/* Redeem */
.pp-redeem { display: flex; gap: 8px; }
.mb .pp .pp-redeem .mb-input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; text-transform: uppercase; }
.pp-hint { margin: 10px 0 0; color: var(--mut); font-size: 12.5px; }
.pp-hint:empty { display: none; }
.pp-hint.good { color: var(--g); }
.pp-hint.bad { color: #ff8098; }

/* Shortcuts */
.pp-links { display: grid; gap: 4px; margin: -6px 0 0; padding: 0; list-style: none; }
.pp-links a { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: inherit; text-decoration: none; transition: background .2s; }
.pp-links a:hover { background: rgba(255,255,255,.04); }
.pp-li { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--a) 13%, transparent); color: var(--a); }
.pp-li svg { width: 17px; height: 17px; }
.pp-links b { display: block; color: #fff; font-size: 14px; }
.pp-links small { display: block; overflow: hidden; color: var(--mut); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.pp-links .go { width: 16px; height: 16px; color: var(--dim); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1080px) {
  .pp-grid { grid-template-columns: 1fr; }
  .pp-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .pp-stat:nth-child(4) { box-shadow: none; }
  .pp-stat:nth-child(n+4) { border-top: 1px solid var(--ln); }
}
@media (max-width: 720px) {
  .mb .mb-main:has(.pp:not([hidden])) { width: calc(100% - 24px); padding-top: 88px; }
  .pp-cover { padding: 22px 18px; border-radius: 22px; }
  .pp-id { flex-direction: column; text-align: center; gap: 14px; }
  .mb .pp #acAvatar { flex-basis: 88px !important; width: 88px !important; height: 88px !important; min-width: 88px; max-width: 88px; font-size: 34px; }
  .mb .pp .pf-menu { left: 50%; transform: translateX(-50%); }
  .pp-name { white-space: normal; }
  .pp-handle, .pp-badges { justify-content: center; }
  .pp-actions { flex-direction: row; width: 100%; }
  .pp-actions .pp-btn { flex: 1; }
  .pp-photo-status { text-align: center; }
  .pp-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pp-stat { padding: 14px 16px 12px; }
  .pp-stat:first-child { grid-column: 1 / -1; }
  .pp-stat + .pp-stat { box-shadow: none; }
  .pp-stat:nth-child(n+2) { border-top: 1px solid var(--ln); }
  .pp-stat:nth-child(odd):not(:first-child) { box-shadow: inset 1px 0 0 var(--ln); }
  .pp-card { padding: 20px 16px 22px; border-radius: 18px; }
  .pp-photo { grid-template-columns: auto minmax(0,1fr); }
  .pp-photo-btns { grid-column: 1 / -1; }
  .pp-photo-btns .pp-btn { flex: 1; }
  .pp-fields { grid-template-columns: 1fr; }
  .pp-form-foot .pp-btn { width: 100%; }
  .pp-badge-grid { grid-template-columns: 1fr 1fr; }
  .pp-ach { flex-direction: column; align-items: flex-start; gap: 9px; }
  .pp-ach b, .pp-ach small { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .pp-progress i, .pp-ach { transition: none; } }

/* ---------- Redesign: same width, header and left menu as My Nexus and Settings; sections sit flat on the page ---------- */
.mb .pp .pp-cover { margin: 0 0 26px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.mb .pp #acAvatar { flex: 0 0 76px !important; width: 76px !important; height: 76px !important; min-width: 76px; max-width: 76px; font-size: 30px; }
.mb .pp .pp-id { gap: 18px; }
.mb .pp .pp-name { margin: 2px 0; font: 800 clamp(26px, 3vw, 38px)/1.1 Outfit, "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -.02em; }
.mb .pp .pp-greet { font-size: 11px; }
.pf-content { min-width: 0; }
.pf-sec { scroll-margin-top: 96px; }
.mb .pp .pf-content > .pf-sec, .mb .pp .pf-content > .pp-card { padding: 26px 4px; margin: 0; border: 0; border-bottom: 1px solid var(--ln); border-radius: 0; background: none; box-shadow: none; }
.mb .pp .pf-content > .pf-sec:first-child { padding-top: 4px; }
.mb .pp .pf-content > .pf-sec:last-child { border-bottom: 0; }
.mb .pp .pf-sec > .pp-card { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.mb .pp .pf-sec > .pp-member::before { display: none; }
.pf-sec-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.pf-sec-h h2 { margin: 0 0 4px; color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.pf-sec-h p { margin: 0; color: var(--mut); font-size: 13.5px; line-height: 1.5; }
.mb .pp .pf-sec .pp-stats { margin: 0; border: 0; border-radius: 0; background: none; }

/* Nexus Rewards */
.rw-pts { flex: none; padding: 7px 12px; border-radius: 99px; background: rgba(0,255,157,.1); color: var(--g); font-size: 13px; font-weight: 800; white-space: nowrap; }
.rw-next { color: #a1a1aa; font-size: 14px; line-height: 1.6; }
.rw-next b { color: #fff; }
.rw-next a { color: var(--g); }
.rw-claim { display: grid; gap: 10px; margin-top: 18px; }
.rw-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--ln); }
.rw-card.ready { background: linear-gradient(90deg, rgba(0,255,157,.1), rgba(0,216,255,.04)); box-shadow: inset 0 0 0 1px rgba(0,255,157,.35); }
.rw-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(0,255,157,.14); color: var(--g); }
.rw-ic.done { background: rgba(255,255,255,.06); color: #a1a1aa; }
.rw-ic svg { width: 19px; height: 19px; }
.rw-card b { display: block; color: #fff; font-size: 14px; }
.rw-card small { display: block; margin-top: 2px; color: var(--mut); font-size: 12.5px; }
.rw-card small code { color: #e4e4e7; }
.rw-code { display: inline-block; margin-top: 6px; padding: 4px 8px; border-radius: 7px; background: rgba(255,255,255,.06); color: #fff; font: 700 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; user-select: all; }
.rw-acts { display: flex; gap: 6px; }
.rw-how { margin-top: 18px; }
.rw-how summary { color: #a1a1aa; font-size: 13px; font-weight: 700; cursor: pointer; }
.rw-how ul { display: grid; gap: 2px; margin: 10px 0 0; padding: 0; list-style: none; }
.rw-how li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--ln); font-size: 13.5px; }
.rw-how li small { color: #5d6070; font-size: 12px; }
.rw-how li b { min-width: 50px; color: #fff; text-align: right; }
@media (max-width: 1023px) { .mb .pp .pf-content > .pf-sec { padding: 22px 0; } }
@media (max-width: 640px) {
  .rw-card { grid-template-columns: 36px minmax(0, 1fr); }
  .rw-acts { grid-column: 1 / -1; }
  .rw-acts .pp-btn { flex: 1; }
  .rw-how li { grid-template-columns: minmax(0, 1fr) auto; }
  .rw-how li small { display: none; }
}
.mb .pp .pp-actions { flex-direction: row; flex-wrap: wrap; align-self: center; gap: 8px; margin-left: auto; }
.mb .pp .pp-actions .pp-btn { min-height: 34px; padding: 0 13px; border-radius: 99px; font-size: 13px; }
@media (max-width: 640px) {
  .rw-card > .pp-btn { grid-column: 1 / -1; width: 100%; }
}

/* My Rewards tab: the line gets room to breathe */
.mb .pp #rewards[hidden], .mb .pp .pf-sec[hidden] { display: none !important; }

/* Desktop: folding sections, like Settings */
@media (min-width: 1024px) {
  .mb .pp .pf-acc { padding-top: 0 !important; padding-bottom: 0 !important; }
  .pf-head { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 18px 4px; border-radius: 12px; cursor: pointer; user-select: none; transition: background .25s; }
  .pf-head:hover { background: rgba(255,255,255,.025); }
  .pf-head:focus-visible { outline: 2px solid var(--c); outline-offset: -2px; }
  .pf-head > div:first-child { flex: 1; min-width: 0; }
  .pf-head > .rw-pts, .pf-head > .pp-count { margin-left: auto; }
  .pf-chev { flex: none; width: 18px; height: 18px; margin-left: auto; fill: none; stroke: var(--mut); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease), stroke .25s; }
  .pf-acc.open .pf-chev { transform: rotate(180deg); stroke: #fff; }
  .pf-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--ease); }
  .pf-acc.open .pf-body { grid-template-rows: 1fr; }
  .pf-in { min-height: 0; overflow: hidden; padding: 0 4px; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .42s var(--ease); }
  .pf-acc.open .pf-in { padding-bottom: 22px; opacity: 1; transform: none; transition-delay: .08s; }
  .pf-acc.open .pf-in:has(.pf-menu:not([hidden])) { overflow: visible; }
  .pf-instant .pf-body, .pf-instant .pf-in, .pf-instant .pf-chev { transition: none !important; }
}
@media (prefers-reduced-motion: reduce) { .pf-body, .pf-in, .pf-chev { transition: none !important; } }
/* At a glance: shorter, numbers centred in their columns */
.mb .pp .pf-sec .pp-stat { align-items: center; justify-content: center; padding: 8px 10px; text-align: center; }
.mb .pp .pf-sec .pp-stat strong { margin: 4px 0 2px; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.mb .pp .pf-sec .pp-stat small { margin: 0; }

/* My Rewards: a winding road of prizes (laid out in profile-rewards.js: a full S of 3 rows on desktop) */
.rw-track { position: relative; min-height: 220px; margin: 26px 0 14px; }
.rw-snake { position: absolute; inset: 0; overflow: visible; }
.rw-snake path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rw-rim { stroke: rgba(255,255,255,.1); stroke-width: 22; }
.rw-road { stroke: #07080d; stroke-width: 18; }
.rw-lane { stroke: rgba(255,255,255,.07); stroke-width: 2; stroke-dasharray: 1 11; }
.rw-fill { stroke: url(#rwGrad); stroke-width: 12; filter: drop-shadow(0 0 10px rgba(0,216,255,.35)); }
.rw-mpath { stroke: #fff; stroke-width: 14; }
.rw-shine { stroke: rgba(255,255,255,.4); stroke-width: 2; transform: translateY(-3px); }
.rw-flow { stroke: rgba(255,255,255,.85); stroke-width: 3; stroke-dasharray: .1 26; animation: rw-flow 1.6s linear infinite; }
@keyframes rw-flow { to { stroke-dashoffset: -26.1; } }
.rw-you { fill: #fff; filter: drop-shadow(0 0 6px #00ffd0); }
.rw-you-halo { fill: rgba(0,255,200,.18); stroke: rgba(255,255,255,.5); stroke-width: 1.5; animation: rw-halo 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes rw-halo { 50% { transform: scale(1.35); opacity: .5; } }
/* Each kind of prize has its own colour */
.rw-node { --t: 0,255,157; position: absolute; display: grid; justify-items: center; gap: 10px; width: var(--lw); transform: translate(-50%, -28px); text-align: center; }
.rw-node.pass { --t: 167,139,250; }
.rw-node.plus { --t: 0,216,255; }
.rw-node.vip { --t: 251,191,36; }
.rw-node.smart { --t: 56,189,248; }
.rw-node.turbo { --t: 251,113,133; }
.rw-node button { position: relative; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(var(--t),.16), #0d0f16 70%); color: rgba(var(--t),.6); box-shadow: inset 0 0 0 1.5px rgba(var(--t),.28), 0 0 0 5px #07080d, 0 0 0 6px rgba(255,255,255,.08); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; }
.rw-node button:hover { transform: translateY(-3px) scale(1.06); }
.rw-node button:focus-visible { outline: 2px solid rgb(var(--t)); outline-offset: 7px; }
.rw-node svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rw-badge { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1b1d27; color: #8a8d9b; box-shadow: 0 0 0 3px #07080d; }
.rw-badge svg { width: 11px; height: 11px; stroke-width: 2.6; }
.rw-node.ready button { background: radial-gradient(circle at 30% 25%, rgba(var(--t),.35), rgba(var(--t),.1) 70%); color: rgb(var(--t)); box-shadow: inset 0 0 0 2px rgb(var(--t)), 0 0 0 5px #07080d, 0 0 0 6px rgba(var(--t),.5); animation: rw-pulse 1.8s ease-in-out infinite; }
.rw-node.ready .rw-badge { background: rgb(var(--t)); color: #05110c; }
.rw-node.claimed button { background: linear-gradient(145deg, rgb(var(--t)), rgba(var(--t),.6)); color: #05110c; box-shadow: 0 0 0 5px #07080d, 0 0 0 6px rgba(var(--t),.45), 0 12px 28px -10px rgba(var(--t),.8); }
.rw-node.claimed .rw-badge { background: #fff; color: #05110c; }
.rw-lab b { display: block; color: #fff; font: 700 13.5px/1.3 "Plus Jakarta Sans", Inter, sans-serif; }
.rw-lab small { display: block; margin-top: 3px; color: #5d6070; font-size: 11.5px; font-weight: 600; }
.rw-node.locked .rw-lab b { color: #a3a6b4; }
.rw-node.ready .rw-lab small, .rw-node.claimed .rw-lab small { color: rgb(var(--t)); }
.rw-node.start { transform: translate(-50%, -17px); }
.rw-dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0d0f16; color: var(--g); box-shadow: inset 0 0 0 1.5px rgba(0,255,157,.6), 0 0 0 5px #07080d; }
.rw-dot svg { width: 15px; height: 15px; }
@keyframes rw-pulse { 50% { box-shadow: inset 0 0 0 2px rgb(var(--t)), 0 0 0 5px #07080d, 0 0 0 6px rgba(var(--t),.5), 0 0 30px rgba(var(--t),.55); } }
@media (max-width: 640px) { .rw-node button { width: 46px; height: 46px; } .rw-node { transform: translate(-50%, -23px); } .rw-node svg { width: 19px; height: 19px; } .rw-lab b { font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) { .rw-node.ready button, .rw-flow, .rw-you-halo { animation: none; } }

/* Phones: sections do not fold, so the desktop fold arrow is hidden (it had no size here and drew huge). Claude BFD92, 9 Oct 2026 */
@media (max-width: 1023px) { .pf-chev { display: none; } }

/* Plan + Admin badges match the site sidebar (Claude BFD92, 9 Oct 2026): VIP and Plus have a slowly spinning ring. */
.pp-badges .pp-badge.membership, .pp-badges .pp-badge.admin { position: relative; z-index: 1; height: 26px; min-height: 0; padding: 0 12px; overflow: hidden; border: 0; border-radius: 999px; background: none;
  font: 800 10.5px/1 Inter, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.pp-badges .pp-badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pp-badges .pp-badge.membership.vip { color: #fde68a; }
.pp-badges .pp-badge.membership.plus { color: #7dd3fc; }
.pp-badges .pp-badge.membership.vip::before, .pp-badges .pp-badge.membership.plus::before { content: ""; position: absolute; inset: -100%; z-index: -2; background: conic-gradient(from 0deg, #fbbf24, #f472b6, #38bdf8, #fbbf24); animation: ppSpin 3.5s linear infinite; }
.pp-badges .pp-badge.membership.plus::before { background: conic-gradient(from 0deg, #38bdf8, #6366f1, #22d3ee, #38bdf8); }
.pp-badges .pp-badge.membership.vip::after, .pp-badges .pp-badge.membership.plus::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: 999px; background: #08080d; }
.pp-badges .pp-badge.membership.basic { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: #a1a1aa; }
.pp-badges .pp-badge.admin { border: 1px solid #ef4444; background: #08080d; color: #fca5a5; box-shadow: 0 0 12px rgba(239,68,68,.25); }
@keyframes ppSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pp-badges .pp-badge::before { animation: none; } }

/* Phones: one section per page, picked from the bottom bar; the photo header shows on Overview (Claude BFD92, 9 Oct 2026) */
@media (max-width: 1023px) {
  .mb .pp .pf-content > .pf-sec:not(.open) { display: none !important; }
  .mb .pp .pf-content > .pf-sec.open { padding-top: 6px; animation: ppPage .35s cubic-bezier(.22,1,.36,1) both; }
  .mb .pp .pf-acc .pf-body { display: block; }
  .mb .pp .pf-acc .pf-in { overflow: visible; padding: 0 0 22px; opacity: 1; transform: none; }
  .mb .pp .pf-head { cursor: default; }
  .pp:has(#edit:not(.open)) .pp-cover { display: none; }   /* the photo header is part of the Profile page on phones */
  .mb .mb-main:has(> .pp), .mb .mb-main:has(#acApp) { padding-top: 24px; }   /* the site header already takes its own space here */
}
@keyframes ppPage { from { opacity: 0; transform: translateY(8px); } }

/* Phones (Claude BFD92, 9 Oct 2026): no Overview; Profile is the landing page with the photo top centre; centred headings;
   a richer Membership page. */
@media (max-width: 1023px) {
  .mb .pp #overview { display: none !important; }
  .mb .pp .pp-cover { margin-bottom: 4px; }
  .mb .pp #edit .pp-photo { display: none; }                 /* the photo is edited from the pencil on the big photo above */
  .mb .pp .pf-sec-h, .mb .pp .pp-card-h { justify-content: center; text-align: center; }
  .mb .pp .pf-sec-h > div, .mb .pp .pp-card-h > div { flex: 1; }
  .mb .pp .pf-sec-h p, .mb .pp .pp-card-h p { margin-left: auto; margin-right: auto; max-width: 320px; }
  .mb .pp #edit .pp-card-h { padding-top: 8px; border-top: 1px solid rgba(255,255,255,.06); }
  .mb .pp #edit form { margin-top: 6px; }

  /* Membership: a centred plan card with a soft glow in the plan's colour */
  .mb .pp #membership .pp-member { --tint: 161,161,170; padding: 0 !important; text-align: center; }
  .mb .pp #membership .pp-member.plus { --tint: 34,211,238; }
  .mb .pp #membership .pp-member.vip { --tint: 251,191,36; }
  .mb .pp #membership .pp-member-top { flex-direction: column; justify-content: center; gap: 10px; padding: 26px 16px 18px; border-radius: 22px;
    background: radial-gradient(120% 90% at 50% 0%, rgba(var(--tint), .16), transparent 70%), rgba(255,255,255,.02); box-shadow: inset 0 0 0 1px rgba(var(--tint), .22); }
  .mb .pp #membership .pp-member-ic { width: 64px; height: 64px; border-radius: 20px; background: rgba(var(--tint), .14); color: rgb(var(--tint)); box-shadow: 0 0 40px -6px rgba(var(--tint), .6); }
  .mb .pp #membership .pp-member-ic svg { width: 30px; height: 30px; }
  .mb .pp #membership .pp-member-top small { color: rgba(var(--tint), .9); }
  .mb .pp #membership .pp-member-top h2 { font-size: 26px; }
  .mb .pp #membership .pp-member-line { display: table; margin: 16px auto 14px; padding: 6px 14px; border-radius: 999px; background: rgba(74,222,128,.1); color: #86efac; font-size: 12.5px; }
  .mb .pp #membership .pp-perks { gap: 0; margin: 0 0 18px; text-align: left; border-radius: 16px; background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
  .mb .pp #membership .pp-perks li { gap: 12px; padding: 13px 16px; color: #e4e4e7; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.05); }
  .mb .pp #membership .pp-perks li:last-child { border-bottom: 0; }
  .mb .pp #membership .pp-perks svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(74,222,128,.12); }
  .mb .pp #membership .pp-member-btns .pp-btn { height: 48px; border-radius: 14px; background: #f4f4f5; color: #0b0b10; font-weight: 800; }
}

/* My Rewards (Claude BFD92, 9 Oct 2026): the long description sits behind a ? at the top left; a premium earning table */
.rw-h { position: relative; }
.rw-help { position: relative; flex: none; order: -1; }
.rw-help summary { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; list-style: none; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  color: #d4d4d8; font: 800 14px Inter, sans-serif; cursor: pointer; transition: background .2s; }
.rw-help summary::-webkit-details-marker { display: none; }
.rw-help summary:hover, .rw-help[open] summary { background: rgba(0,255,157,.12); color: var(--g); box-shadow: inset 0 0 0 1px rgba(0,255,157,.35); }
.rw-help p { position: absolute; z-index: 20; top: 36px; left: 0; width: min(300px, 78vw); margin: 0; padding: 14px 16px; border-radius: 14px; background: #10111a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 20px 40px -18px rgba(0,0,0,.9); color: #c8cad3; font-size: 13px; line-height: 1.55; text-align: left; }
.rw-how { margin-top: 24px; }
.rw-how h3 { margin: 0 0 12px; color: #fff; font-size: 15px; font-weight: 800; }
.rw-table-wrap { overflow: hidden; border-radius: 16px; background: rgba(255,255,255,.02); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.rw-table { width: 100%; border-collapse: collapse; }
.rw-table th { padding: 11px 14px; background: rgba(255,255,255,.03); color: #71717a; font: 800 10.5px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); }
.rw-table th:not(:first-child), .rw-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.rw-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.rw-table tr:last-child td { border-bottom: 0; }
.rw-table td b { display: block; color: #f4f4f5; font-size: 13.5px; font-weight: 700; }
.rw-table td small { display: block; margin-top: 2px; color: #71717a; font-size: 12px; }
.rw-each span { display: inline-block; padding: 3px 9px; border-radius: 999px; background: rgba(0,255,157,.1); color: var(--g); font: 800 12px Inter, sans-serif; }
.rw-got { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) {
  .mb .pp .rw-h { flex-direction: column; align-items: center; gap: 8px; }
  .mb .pp .rw-h .rw-help { position: absolute; top: 0; left: 0; }
  .mb .pp .rw-h > .rw-pts { margin: 0; }
  .rw-table th, .rw-table td { padding: 11px 12px; }
  .rw-table th:nth-child(3) { font-size: 0; } .rw-table th:nth-child(3)::after { content: "Earned"; font-size: 10.5px; }
}

.pp-perks li.more a { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; text-decoration: none; }
.pp-perks li.more svg { color: #a1a1aa; }
@media (max-width: 1023px) { .mb .pp #membership .pp-perks li.more { padding: 0; } .mb .pp #membership .pp-perks li.more a { gap: 12px; width: 100%; padding: 13px 16px; } .mb .pp #membership .pp-perks li.more svg { background: rgba(255,255,255,.08); } }

/* Membership on phones: the glowing-ring card (shared .nxs-mem-card) replaces the plain plan card */
.pp-memring { display: none; }
@media (max-width: 1023px) {
  .mb .pp #membership .pp-member-top { display: none; }
  .mb .pp #membership .pp-memring { display: block; margin: 4px 0 0; }
  .mb .pp #membership .pp-memring .nxs-mem-card { margin: 0; padding: 22px 18px 22px 20px; border-radius: 18px; text-decoration: none; }
  .mb .pp #membership .pp-memring .nxs-mem-card::after { border-radius: 16.5px; }
  .mb .pp #membership .pp-memring .nxs-mem-t { flex: 1; text-align: left; }
  .mb .pp #membership .pp-memring .nxs-mem-t b { font-size: 22px; }
  .mb .pp #membership .pp-memring .nxs-mem-cta.due { background: #ff4d6d; color: #fff; }
}

/* Section titles get an icon, like Settings (Claude BFD92, 9 Oct 2026) */
.pf-h-ic { display: inline-block; width: 19px; height: 19px; margin-right: 9px; vertical-align: -3px; fill: none; stroke: var(--c, #00d8ff); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mb .pp h2 .pf-h-ic { stroke: var(--c, #00d8ff) !important; color: var(--c, #00d8ff); }
