/* My Profile + Settings. Builds on /my-nexus/my-nexus.css (same Profit Tracker look). */
.mb .nxm.acct { width: min(1160px, 100%); margin-left: auto; margin-right: auto; }
.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; } }


/* Settings: membership */
.mb .stm-skel { display: grid; gap: 10px; }
.mb .stm-skel i { display: block; height: 56px; border-radius: 14px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04)); background-size: 200% 100%; animation: stm-shine 1.3s linear infinite; }
.mb .stm-skel i:first-child { height: 92px; }
@keyframes stm-shine { to { background-position: -200% 0; } }
#stMem.stm-in > * { animation: stm-up .45s var(--mb-ease, cubic-bezier(.2,.8,.2,1)) both; }
#stMem.stm-in > *:nth-child(2) { animation-delay: .05s; } #stMem.stm-in > *:nth-child(3) { animation-delay: .1s; } #stMem.stm-in > *:nth-child(n+4) { animation-delay: .15s; }
@keyframes stm-up { from { opacity: 0; transform: translateY(6px); } }
.mb .stm-card { position: relative; margin: 0 0 6px; padding: 18px 18px 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: rgba(255,255,255,.03); overflow: hidden; }
.mb .stm-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: rgba(255,255,255,.12); }
.mb .stm-card.stm-plus { border-color: rgba(56,189,248,.28); background: linear-gradient(135deg, rgba(56,189,248,.1), rgba(255,255,255,.02) 60%); }
.mb .stm-card.stm-plus::before { background: linear-gradient(90deg, #38bdf8, #6366f1); }
.mb .stm-card.stm-vip { border-color: rgba(251,191,36,.3); background: linear-gradient(135deg, rgba(251,191,36,.12), rgba(255,255,255,.02) 60%); }
.mb .stm-card.stm-vip::before { background: linear-gradient(90deg, #fbbf24, #f97316); }
.mb .stm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mb .stm-name { color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.mb .stm-note { margin: 6px 0 0; color: var(--mut); font-size: 13px; line-height: 1.5; }
.mb .stm-pill { flex: none; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.mb .stm-pill.on { background: rgba(0,255,157,.12); color: var(--g); }
.mb .stm-pill.trial { background: rgba(56,189,248,.14); color: #7dd3fc; }
.mb .stm-pill.off { background: rgba(255,255,255,.08); color: #c9ccd6; }
.mb .stm-pill.bad { background: rgba(255,77,109,.14); color: #ff8098; }
.mb #stMem .st-row .nxm-btn { flex: none; }
@media (max-width: 640px) {
  .mb #stMem .st-row { flex-wrap: wrap; }
  .mb #stMem .st-row .nxm-btn { width: 100%; }
}

/* Settings: plan card matches the account menu's membership card */
.mb .stm-hero { margin: 0 0 6px; }
.mb .stm-memcard { margin: 0; padding: 18px 16px 18px 20px; border-radius: 16px; }
.mb .stm-memcard::after { border-radius: 14.5px; }
.mb .stm-memcard .nxs-mem-t b { font-size: 18px; }
.mb .stm-memcard .nxs-mem-cta.due { background: #ff4d6d; color: #fff; }
.mb .stm-hero .stm-note { margin: 10px 2px 0; }

/* Settings: same width and header as My Nexus; the sidebar switches sections straight away */
.mb .mb-main.st-wide { width: min(1480px, calc(100% - 64px)); }
.mb .st-wide .nxm.acct { width: 100%; }
.mb .st-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 0 26px; }
.mb .st-me { display: flex; align-items: center; gap: 18px; min-width: 0; }
.mb .st-av { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #22d3ee); color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.06), 0 12px 30px -10px rgba(139,92,246,.7); }
.mb .st-av svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mb .st-hero h1 { margin: 0; color: #fff; font: 800 clamp(26px, 3vw, 38px)/1.1 Outfit, Inter, sans-serif; letter-spacing: -.02em; }
.mb .st-hero p { margin: 4px 0 0; color: #a1a1aa; font-size: 15px; }
.mb .st-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mb .st-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: #d4d4d8; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .2s; }
.mb .st-chip:hover { background: rgba(255,255,255,.08); color: #fff; }
.mb .st-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mb .st-instant .st-body, .mb .st-instant .st-pad, .mb .st-instant .st-chev { transition: none !important; }
@media (max-width: 760px) {
  .mb .mb-main.st-wide { width: calc(100% - 24px); }
  .mb .st-hero { margin-bottom: 18px; }
  .mb .st-av { width: 52px; height: 52px; }
}

/* Settings sections sit straight on the page like My Nexus: no boxes, a thin line between them */
@media (min-width: 1024px) {
  .mb .st-sec, .mb .st-sec.open { margin: 0; border: 0; border-bottom: 1px solid var(--ln); border-radius: 0; background: none; box-shadow: none; }
  .mb .st-sec .nxm-head { padding: 18px 4px; border-radius: 12px; }
  .mb .st-pad { padding: 0 4px 22px; }
}

/* Desktop: Settings avatar the same size as the Profile page's */
@media (min-width: 1081px) { .mb .st-av { width: 76px; height: 76px; } }

/* Settings on phones (Claude BFD92, 9 Oct 2026): one section per page from the bottom bar, header only on the first page,
   less space at the top, centred headings, no fold arrows. */
@media (max-width: 1023px) {
  .mb .mb-main:has(#stApp) { padding-top: 20px; }
  #stApp .st-sec:not(.open) { display: none !important; }
  #stApp .st-sec.open { animation: stPage .35s cubic-bezier(.22,1,.36,1) both; }
  #stApp .st-sec, #stApp .st-sec.open { margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  #stApp .st-sec .st-pad { padding-left: 0; padding-right: 0; }
  #stApp:has(.st-sec.open:not(#betting)) .st-hero { display: none; }   /* Betting is the first page on phones */
  #stApp .st-hero { flex-direction: column; align-items: center; gap: 14px; margin-bottom: 8px; text-align: center; }
  #stApp .st-me { flex-direction: column; align-items: center; gap: 10px; }
  #stApp .st-me p { max-width: 320px; margin-left: auto; margin-right: auto; }
  #stApp .st-links { justify-content: center; }
  #stApp .st-sec .nxm-head { justify-content: center; padding: 14px 4px 10px; cursor: default; }
  #stApp .st-sec .nxm-head:hover { background: none; }
  #stApp .st-sec .nxm-head h2 { flex: none; justify-content: center; font-size: 18px; }
  #stApp .st-sec .st-chev { display: none; }
  #stApp .st-sec .nxm-hint, #stApp .st-sec .st-pad > p:first-child { text-align: center; }
}
@keyframes stPage { from { opacity: 0; transform: translateY(8px); } }

/* Settings > Betting (Claude BFD92, 9 Oct 2026): colours first, paired fields, a commission for every exchange */
#stApp .st-sec[hidden] { display: none !important; }
#stApp .bp-block { margin: 14px 0 0; }
#stApp .bp-label { display: block; margin: 0 0 8px; color: #e4e6eb; font-size: 13.5px; font-weight: 700; }
#stApp .bp-sub { display: block; margin: -4px 0 10px; color: #8a8d9b; font-size: 12.5px; }
#stApp .bp-swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#stApp .bp-swatches button { display: flex; align-items: center; gap: 12px; padding: 12px; border: 0; border-radius: 14px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); color: #e4e6eb; font: 700 14px Inter, sans-serif; text-align: left; cursor: pointer; transition: box-shadow .2s, background .2s; }
#stApp .bp-swatches button small { display: block; margin-top: 2px; color: #8a8d9b; font-size: 11.5px; font-weight: 600; }
#stApp .bp-swatches button i { flex: none; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--b) 50%, var(--l) 50%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
#stApp .bp-swatches button[aria-pressed="true"] { background: rgba(0,255,157,.06); box-shadow: inset 0 0 0 1.5px var(--g, #00ff9d); }
#stApp .bp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
#stApp .bp-full { display: block; margin-top: 12px; }
#stApp .bp-full > span { display: block; }
#stApp .bp-full small { display: block; margin-top: 2px; color: #71717a; font-weight: 500; }
#stApp .bp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#stApp .bp-ex { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
#stApp .bp-ex > span { color: #e4e6eb; font-size: 13px; font-weight: 700; }
#stApp .bp-ex .mb-affix input { width: 100%; }
#stApp #stBetting .nxm-form-foot { margin-top: 16px; }
@media (max-width: 1023px) { #stApp #stBetting .nxm-form-foot .nxm-btn { width: 100%; justify-content: center; } }
@media (max-width: 360px) { #stApp .bp-two, #stApp .bp-swatches { grid-template-columns: 1fr; } }
/* Settings > Redeem a code (matches Profile) */
#stApp .st-redeem { display: flex; gap: 8px; margin-top: 12px; }
#stApp .st-redeem .mb-input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; text-transform: uppercase; }
#stApp .st-promo-msg { margin: 10px 0 0; color: #8a8d9b; font-size: 12.5px; text-align: center; }
#stApp .st-promo-msg:empty { display: none; }
#stApp .st-promo-msg.good { color: var(--g, #00ff9d); }
#stApp .st-promo-msg.bad { color: #ff8098; }
@media (min-width: 1024px) { #stApp .bp-grid { grid-template-columns: repeat(4, 1fr); } }

/* Settings > Active sessions */
#stApp .st-sessions { display: grid; gap: 6px; margin: 4px 0 6px; }
#stApp .st-sess { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
#stApp .st-sess.me { box-shadow: inset 0 0 0 1px rgba(0,255,157,.3); }
#stApp .st-sess-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.05); color: #c8cad3; }
#stApp .st-sess-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#stApp .st-sess b { display: block; overflow: hidden; color: #f4f4f5; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
#stApp .st-sess b em { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(0,255,157,.12); color: var(--g, #00ff9d); font: 800 10px Inter, sans-serif; font-style: normal; letter-spacing: .04em; vertical-align: 1px; }
#stApp .st-sess span { display: block; color: #8a8d9b; font-size: 12px; }
@media (max-width: 1023px) { #stApp .st-sess-h { flex-wrap: wrap; } #stApp .st-sess-h .nxm-btn { width: 100%; justify-content: center; } }
@media (max-width: 1023px) { #stApp .st-links { display: none; } #stApp .bp-swatches button { justify-content: center; } }

/* Settings > Notifications: kinds x channels table (Claude BFD92, 10 Oct 2026) */
.nt-table { display: grid; margin-top: 6px; }
.nt-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 68px); align-items: center; gap: 4px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.nt-row > .sw { justify-self: center; }
.nt-row > div b { display: block; color: #f4f4f5; font-size: 14px; font-weight: 700; }
.nt-row > div span { display: block; margin-top: 2px; color: #8a8d9b; font-size: 12.5px; line-height: 1.45; }
.nt-headrow { position: sticky; top: 64px; z-index: 2; padding: 8px 0; border-top: 0; background: inherit; }
.nt-headrow b { color: #a1a1aa; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.nt-row .sw input:disabled + i { opacity: .55; cursor: default; }
.nt-note { margin: 12px 0 0; color: #a1a1aa; font-size: 12.5px; text-align: center; }
.nt-note a { color: var(--nx-acc, #00ff9d); }
@media (max-width: 640px) {
  .nt-row { grid-template-columns: minmax(0, 1fr) repeat(3, 52px); gap: 2px; }
  .nt-headrow b { font-size: 10px; letter-spacing: .04em; }
  .nt-row > div span { font-size: 12px; }
}
