/* My Profile + Settings. Builds on /my-nexus/my-nexus.css (same Profit Tracker look). */
.mb .nxm.acct { width: 100%; }
.mb .nxm [hidden] { display: none !important; }

/* Profile hero avatar + photo menu (ids used by /assets/profile-photo.js) */
.mb .pf-avatar-wrap { position: relative; margin: 4px 0 16px; }
.mb .nxm #acAvatar { display: grid; place-items: center; flex: 0 0 116px !important; width: 116px !important; height: 116px !important; min-width: 116px; max-width: 116px; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, var(--g), var(--c)); color: #05110c; font: 800 46px "Plus Jakarta Sans", Inter, sans-serif; text-transform: uppercase; box-shadow: 0 0 0 4px rgba(4,4,10,.9), 0 0 0 6px rgba(0,216,255,.45), 0 0 40px rgba(0,255,157,.22); }
.mb .nxm #acAvatar img { width: 100%; height: 100%; object-fit: cover; }
.mb .pf-edit { position: absolute; right: -2px; bottom: 2px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 3px solid #04040a; border-radius: 50%; background: linear-gradient(135deg, var(--g), var(--c)); color: #05110c; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.5); transition: transform .2s; }
.mb .pf-edit:hover { transform: scale(1.08); }
.mb .pf-edit svg { width: 16px; height: 16px; }
.mb .pf-menu { position: absolute; top: calc(100% + 10px); left: 50%; z-index: 30; display: grid; min-width: 210px; padding: 6px; transform: translateX(-50%); border: 1px solid var(--ln); border-radius: 14px; background: rgba(10,11,16,.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 50px rgba(0,0,0,.6); text-align: left; }
.mb .pf-menu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 9px; background: none; color: #e4e6eb; font: 600 13.5px "Plus Jakarta Sans", Inter, sans-serif; cursor: pointer; }
.mb .pf-menu button:hover { background: rgba(255,255,255,.06); }
.mb .pf-menu button.danger { color: #ff4d6d; }
.mb .pf-menu svg { width: 16px; height: 16px; }
.mb .nxm-greet { margin: 0; color: var(--mut); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.mb .nxm-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; }
.mb .nxm-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border: 1px solid var(--ln); border-radius: 99px; background: rgba(10,11,16,.5); color: var(--mut); font-size: 12.5px; font-weight: 600; }
.mb .nxm-pill svg { width: 14px; height: 14px; }
.mb .nxm-pill.admin { color: #ffb86b; border-color: rgba(255,184,107,.3); }
.mb .nxm-pill.membership { text-decoration: none; }
.mb .nxm-pill.membership.basic { color: #aeb5c2; border-color: rgba(174,181,194,.23); }
.mb .nxm-pill.membership.plus { color: #69ecfa; border-color: rgba(0,216,255,.36); background: rgba(0,216,255,.08); box-shadow: 0 0 18px rgba(0,216,255,.07); }
.mb .nxm-pill.membership.vip { color: #f5ce68; border-color: rgba(244,190,65,.38); background: linear-gradient(135deg,rgba(244,190,65,.12),rgba(139,92,246,.08)); box-shadow: 0 0 20px rgba(244,190,65,.08); }
.mb .nxm-pill.discord { color: #b4bbff; border-color: rgba(88,101,242,.35); }
.mb .nxm-pill.discord.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--g); box-shadow: 0 0 8px var(--g); }
.mb .pf-status { min-height: 0; margin: -12px 0 16px; color: var(--g); font-size: 13px; font-weight: 600; }
.mb .pf-status:empty { display: none; }
.mb .nxm-stat strong.pos { color: var(--g); text-shadow: 0 0 18px rgba(0,255,157,.35); }
.mb .nxm-stat strong.neg { color: #ff4d6d; }

/* Forms in the tracker style */
.mb .nxm .mb-input, .mb .nxm .mb-select { background: rgba(10,11,16,.6); border-color: var(--ln); }
.mb .nxm .mb-input:focus, .mb .nxm .mb-select:focus { border-color: rgba(0,216,255,.5); box-shadow: 0 0 15px rgba(0,216,255,.15); }
.mb .nxm .mb-field > span, .mb .nxm .mb-field-label { color: #d4d6dd; font-family: "Plus Jakarta Sans", Inter, sans-serif; }
.mb .nxm .mb-fields { gap: 14px; }
.mb .nxm-form-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.mb .nxm-hint { margin: 0; color: var(--mut); font-size: 12.5px; line-height: 1.55; }
.mb .nxm .mb-error { margin-top: 12px; }
.mb .nxm-btn .spinner { display: none; width: 16px; height: 16px; border-color: rgba(0,0,0,.2); border-top-color: #05110c; }
.mb .nxm-btn:not(.primary) .spinner { border-color: rgba(255,255,255,.2); border-top-color: #fff; }
.mb .nxm-btn.is-busy .spinner { display: inline-block; }
.mb .nxm-btn.is-busy { pointer-events: none; opacity: .8; }
.mb .nxm-btn.danger { border-color: rgba(255,77,109,.35); background: rgba(255,77,109,.1); color: #ff8098; }
.mb .nxm-btn.danger:hover { background: rgba(255,77,109,.18); color: #fff; }

/* Photo row (profile edit) */
.mb .pf-photo-row { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.05); }
.mb .pf-photo-row .mini { display: grid; place-items: center; flex: none; width: 58px; height: 58px; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, var(--g), var(--c)); color: #05110c; font: 800 22px "Plus Jakarta Sans", sans-serif; }
.mb .pf-photo-row .mini img { width: 100%; height: 100%; object-fit: cover; }
.mb .pf-photo-row b { display: block; color: #fff; font-size: 14px; }
.mb .pf-photo-row span { color: var(--mut); font-size: 12.5px; }
.mb .pf-photo-row .btns { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }

/* Lists: achievements, connections, shortcuts */
.mb .nxm-list { list-style: none; margin: 0; padding: 0; }
.mb .nxm-list li + li { border-top: 1px solid rgba(255,255,255,.05); }
.mb .nxm-item { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 4px; color: inherit; text-decoration: none; border-radius: 10px; transition: background .2s; }
a.nxm-item:hover { background: rgba(255,255,255,.035); }
.mb .nxm-item .t-name { font-size: 14px; }
.mb .nxm-item .go { width: 16px; height: 16px; color: var(--mut); }
.mb .nxm-state { padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.mb .nxm-state.on { background: rgba(0,255,157,.1); color: var(--g); }
.mb .nxm-state.off { background: rgba(255,255,255,.06); color: var(--mut); }
.mb .nxm-state.soon { background: rgba(255,0,127,.1); color: #ff6fb5; }
.mb .badges { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.mb .badge { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 14px; border-radius: 14px; text-align: center; background: rgba(255,255,255,.02); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); opacity: .45; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.mb .badge.got { opacity: 1; filter: none; box-shadow: inset 0 0 0 1px rgba(0,255,157,.25), 0 0 24px rgba(0,255,157,.06); }
.mb .badge i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-style: normal; font-size: 20px; background: linear-gradient(135deg, rgba(0,255,157,.18), rgba(0,216,255,.18)); }
.mb .badge b { color: #fff; font-size: 12.5px; }
.mb .badge small { color: var(--mut); font-size: 11px; line-height: 1.35; }

/* Settings layout: sticky side menu + divider sections */
.mb .st-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 40px; align-items: start; margin-bottom: 40px; }
.mb .st-nav { position: sticky; top: 96px; display: grid; gap: 2px; padding-right: 20px; box-shadow: inset -1px 0 0 var(--ln); }
.mb .st-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--mut); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: color .2s, background .2s; }
.mb .st-nav a svg { width: 16px; height: 16px; }
.mb .st-nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.mb .st-nav a.on { color: #fff; background: rgba(0,255,157,.08); box-shadow: inset 2px 0 0 var(--g); }
.mb .st-nav a.danger { color: #ff8098; }
.mb .st-sec { scroll-margin-top: 96px; margin: 0 0 12px; border: 1px solid var(--ln); border-radius: 18px; background: rgba(10,11,16,.45); transition: border-color .35s, background .35s, box-shadow .35s; }
.mb .st-sec.open { border-color: rgba(255,255,255,.12); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 120px), rgba(12,13,19,.7); box-shadow: 0 24px 60px -30px rgba(0,0,0,.8); }
.mb .st-sec .nxm-head { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 12px; margin: 0; padding: 18px 20px; min-height: 0; border-bottom: 0; border-radius: 18px; text-align: left; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: background .25s; }
.mb .st-sec .nxm-head:hover { background: rgba(255,255,255,.025); }
.mb .st-sec .nxm-head:focus-visible { outline: 2px solid var(--c); outline-offset: -2px; }
.mb .st-sec .nxm-head h2 { flex: 1; justify-content: flex-start; min-width: 0; }
.mb .st-sec .nxm-head .nxm-state { flex: none; }
.mb .st-chev { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--mut); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--mb-ease), stroke .25s; }
.mb .st-sec.open .st-chev { transform: rotate(180deg); stroke: #fff; }
.mb .st-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--mb-ease); }
.mb .st-sec.open .st-body { grid-template-rows: 1fr; }
.mb .st-in { min-height: 0; overflow: hidden; }
.mb .st-pad { padding: 0 20px 18px; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .42s var(--mb-ease); }
.mb .st-sec.open .st-pad { opacity: 1; transform: none; transition-delay: .08s; }
.mb .st-pad > .nxm-hint:first-child { margin: 0 0 14px; }
.mb .st-sec.danger { border-color: rgba(255,77,109,.18); }
.mb .st-sec.danger.open { border-color: rgba(255,77,109,.35); }
@media (prefers-reduced-motion: reduce) { .mb .st-body, .mb .st-pad, .mb .st-chev { transition: none; } }
.mb .st-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.05); }
.mb .st-row > div:first-child { min-width: 0; }
.mb .st-row b { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.mb .st-row span { color: var(--mut); font-size: 12.5px; line-height: 1.5; }
.mb .st-sec.danger .nxm-head h2, .mb .st-sec.danger .nxm-head h2 svg { color: #ff8098; }

/* Switches + swatches */
.mb .sw { position: relative; flex: none; width: 46px; height: 26px; }
.mb .sw input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.mb .sw i { position: absolute; inset: 0; border-radius: 99px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px var(--ln); transition: background .25s; }
.mb .sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #c9ccd6; transition: transform .25s var(--mb-ease), background .25s; }
.mb .sw input:checked + i { background: linear-gradient(135deg, var(--g), var(--c)); }
.mb .sw input:checked + i::after { transform: translateX(20px); background: #05110c; }
.mb .sw input:focus-visible + i { outline: 2px solid var(--c); outline-offset: 2px; }
.mb .swatches { display: flex; gap: 8px; }
.mb .swatches button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--sw); cursor: pointer; box-shadow: 0 0 0 2px rgba(4,4,10,1), 0 0 0 3px transparent; transition: box-shadow .2s; }
.mb .swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px rgba(4,4,10,1), 0 0 0 4px #fff; }
.mb .st-select { width: auto; min-width: 150px; height: 40px; }

@media (max-width: 1023px) {
  .mb .st-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .mb .st-nav { position: sticky; top: 64px; z-index: 5; display: flex; gap: 6px; margin: 0 -16px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; box-shadow: none; border-bottom: 1px solid var(--ln); background: #06060d; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .mb .st-nav::-webkit-scrollbar { display: none; }
  .mb .st-nav a { flex: none; padding: 8px 12px; border: 1px solid var(--ln); border-radius: 99px; font-size: 12.5px; }
  .mb .st-nav a.on { box-shadow: none; border-color: rgba(0,255,157,.35); }
  .mb .st-sec { scroll-margin-top: 130px; }
  .mb .st-sec .nxm-head { padding: 16px; }
  .mb .st-sec .nxm-head h2 { font-size: 15px; }
  .mb .st-pad { padding: 0 16px 16px; }
}
@media (max-width: 640px) {
  .mb .badges { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mb .pf-photo-row { flex-wrap: wrap; }
  .mb .pf-photo-row .btns { width: 100%; margin-left: 0; }
  .mb .pf-photo-row .btns .nxm-btn { flex: 1; }
  .mb .st-row:has(.st-select) { flex-wrap: wrap; }
  .mb .st-row { gap: 14px; }
  .mb .nxm-head .nxm-state { align-self: center; }
  .mb .st-row .st-select { width: 100%; }
  .mb .nxm-form-foot .nxm-btn { width: 100%; }
}

/* Profile header: badges then join date under the photo */
.mb .pf-badges { margin: 2px 0 8px; }
.mb .pf-badges:not(:has(:not([hidden]))) { display: none; }
.mb .pf-since { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 14px; color: var(--mut); font-size: 13px; font-weight: 600; }
.mb .pf-since svg { width: 14px; height: 14px; }

/* Discord connect / remove button (Connected Accounts) */
.mb .dc-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px 0 11px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #6d78ff, #5865f2); color: #fff; font: 700 12.5px "Plus Jakarta Sans", Inter, sans-serif; cursor: pointer; box-shadow: 0 6px 18px rgba(88, 101, 242, .38), inset 0 1px 0 rgba(255, 255, 255, .2); transition: transform .15s, box-shadow .2s, filter .2s; }
.mb .dc-btn:hover { filter: brightness(1.1); box-shadow: 0 8px 24px rgba(88, 101, 242, .5); }
.mb .dc-btn:active { transform: translateY(1px); }
.mb .dc-btn:disabled { opacity: .6; cursor: wait; }
.mb .dc-btn .dc { width: 17px; height: 13px; }
.mb .dc-btn.is-linked { background: rgba(255, 77, 109, .08); color: #ff8098; box-shadow: inset 0 0 0 1px rgba(255, 77, 109, .35); }
.mb .dc-btn.is-linked:hover { background: rgba(255, 77, 109, .16); color: #fff; }
.mb .dc-code { display: grid; gap: 6px; margin: 0 4px 12px; padding: 12px; border: 1px solid rgba(88, 101, 242, .3); border-radius: 12px; background: rgba(88, 101, 242, .06); font-size: 12.5px; }
.mb .dc-code p { margin: 0; color: var(--mut); }
.mb .dc-code code { color: #a5b4fc; font-family: var(--mb-mono); font-size: 13.5px; user-select: all; }
.mb .dc-code small { color: #5d606d; }
/* Spotify connect / remove */
.mb .sp-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #1ed760, #17b34f); color: #05110c; font: 700 12.5px "Plus Jakarta Sans", Inter, sans-serif; cursor: pointer; box-shadow: 0 6px 18px rgba(30, 215, 96, .3); transition: filter .2s, transform .15s; }
.mb .sp-btn:hover { filter: brightness(1.08); }
.mb .sp-btn:disabled { opacity: .6; cursor: wait; }
.mb .sp-btn .sp { width: 17px; height: 17px; color: #05110c; }
.mb .sp-btn.is-linked { background: rgba(255, 77, 109, .08); color: #ff8098; box-shadow: inset 0 0 0 1px rgba(255, 77, 109, .35); }
.mb .sp-btn.is-linked .sp { color: #1ed760; }

/* X / Google / Twitch / Steam connect buttons */
.mb .soc-btn { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 34px; padding: 0 14px 0 11px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fff; font: 700 12.5px "Plus Jakarta Sans", Inter, sans-serif; cursor: pointer; transition: filter .2s, background .2s, transform .15s; }
.mb .soc-btn svg { width: 16px; height: 16px; }
.mb .soc-btn:hover { filter: brightness(1.12); }
.mb .soc-btn:disabled { opacity: .6; cursor: wait; }
.mb [data-soc="google"] .soc-btn { background: #fff; color: #1f1f1f; border-color: #fff; }
.mb [data-soc="x"] .soc-btn { background: #050505; color: #fff; border-color: rgba(255,255,255,.3); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.mb [data-soc="twitch"] .soc-btn { background: #9146ff; border-color: #9146ff; box-shadow: 0 6px 18px rgba(145, 70, 255, .35); }
.mb [data-soc="steam"] .soc-btn { background: linear-gradient(135deg, #1b2838, #2a475e); border-color: rgba(102, 192, 244, .45); }
.mb [data-soc] .soc-btn.is-linked { background: rgba(255, 77, 109, .08); color: #ff8098; border-color: rgba(255, 77, 109, .35); box-shadow: none; }
.mb .soc-ic svg { width: 18px; height: 18px; }
.mb .t-ico.soc-ic.google { background: rgba(255, 255, 255, .08); }
.mb .t-ico.soc-ic.x { background: #050505; color: #fff; border-color: rgba(255, 255, 255, .16); }
.mb .t-ico.soc-ic.twitch { background: rgba(145, 70, 255, .18); }
.mb .t-ico.soc-ic.steam { background: rgba(102, 192, 244, .12); }
/* LIVE on Twitch badge under the profile photo */
.mb .nxm-pill.live { color: #fff; border-color: rgba(255, 59, 92, .6); background: rgba(255, 59, 92, .14); text-decoration: none; }
.mb .nxm-pill.live i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 10px #ff3b5c; animation: nx-live 1.4s ease-in-out infinite; }
@keyframes nx-live { 50% { opacity: .35; } }

/* Match the desktop account pages to My Nexus. */
@media (min-width: 1024px) {
  .mb .mb-main:has(#stApp) { width: min(1480px, calc(100% - 64px)); }
}
