/* The profile page (kagiram.com/profile, also /account), in the website's look (site.css tokens). */
.acc-body { min-height: 100vh; margin: 0;
  background: radial-gradient(1100px 520px at 50% -14%, rgba(255, 79, 195, .15), transparent 70%), var(--bg); }
.acc-body [hidden] { display: none !important; }

/* the website's own top bar (site.css, filled by nav.js): Profile is the page you're on */
.nav-in .nav-account.on { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }

/* lined up with the bar's edges (site.css .nav: 20px sides, 12px on phones) */
.acc-wrap { width: 100%; max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding: 28px 20px 64px; display: flex; flex-direction: column; gap: 20px; box-sizing: border-box; }
.acc-login { width: 100%; max-width: 460px; align-self: center; margin-top: 4vh; box-sizing: border-box; }
/* between the password login and "Log in with Discord" */
.acc-or { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; color: var(--faint); font-size: 12px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase; }
.acc-or::before, .acc-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
/* "Create an account" (after Discord) and "Link your Discord" (an account without one) */
.acc-login .free-field + .acc-hint { margin: -8px 0 14px; }
#lkMsg .acc-msg { margin: 0 0 12px; }
#suCancel, #lkOut { width: 100%; }
.acc-loading { text-align: center; }
.acc-dash { display: flex; flex-direction: column; gap: 20px; }

/* the profile header: who you are, and your plan, PCs and badges at a glance. Behind it, slow pink, violet and
   gold glows drift, a light sweeps across now and then, and the edge's colors flow round (still with reduced motion) */
.acc-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 24px; align-items: center; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--panel); }
.acc-hero > :not(.acc-hero-bg) { position: relative; z-index: 1; }
.acc-hero::after { content: ""; position: absolute; inset: -1px; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(115deg, #ff4fc3, rgba(150, 110, 255, .8), #f2c14e, #ff4fc3, rgba(150, 110, 255, .8));
  background-size: 300% 100%; animation: acc-edge 9s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.acc-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 140% at 50% 120%, rgba(212, 42, 156, .22), transparent 60%),
              linear-gradient(100deg, rgba(255, 79, 195, .1), transparent 45%, rgba(150, 110, 255, .08)); }
.acc-hero-bg i { position: absolute; border-radius: 50%; filter: blur(44px); will-change: transform; }
.acc-hero-bg i:nth-child(1) { width: 58%; height: 160%; left: -14%; top: -72%; background: radial-gradient(closest-side, rgba(255, 79, 195, .78), transparent);
  animation: acc-glow-a 13s ease-in-out infinite alternate; }
.acc-hero-bg i:nth-child(2) { width: 50%; height: 150%; right: -8%; top: -58%; background: radial-gradient(closest-side, rgba(150, 110, 255, .62), transparent);
  animation: acc-glow-b 16s ease-in-out infinite alternate; }
.acc-hero-bg i:nth-child(3) { width: 44%; height: 130%; left: 28%; bottom: -80%; background: radial-gradient(closest-side, rgba(242, 193, 78, .5), transparent);
  animation: acc-glow-c 19s ease-in-out infinite alternate; }
/* two angled light slabs, like the home page's hero */
.acc-hero-bg b { position: absolute; top: -30%; bottom: -30%; transform: skewX(-22deg); will-change: transform;
  background: linear-gradient(180deg, rgba(255, 154, 222, .16), rgba(255, 154, 222, .02) 70%); border-left: 1px solid rgba(255, 154, 222, .3);
  animation: acc-slab 11s ease-in-out infinite alternate; }
.acc-hero-bg b:nth-of-type(1) { left: 40%; width: 110px; }
.acc-hero-bg b:nth-of-type(2) { left: 50%; width: 36px; opacity: .7; animation-duration: 14s; }
@keyframes acc-slab { to { transform: skewX(-22deg) translateX(46px); } }
.acc-hero-bg::after { content: ""; position: absolute; inset: -40% -30%; transform: translateX(-70%);
  background: linear-gradient(105deg, transparent 42%, rgba(255, 214, 240, .09) 50%, transparent 58%); animation: acc-sweep 8s ease-in-out infinite 1.5s; }
@keyframes acc-glow-a { to { transform: translate(22%, 26%) scale(1.18); } }
@keyframes acc-glow-b { to { transform: translate(-24%, 20%) scale(1.12); } }
@keyframes acc-glow-c { to { transform: translate(-28%, -34%) scale(1.25); } }
@keyframes acc-sweep { 0%, 30% { transform: translateX(-70%); } 70%, 100% { transform: translateX(70%); } }
@keyframes acc-edge { to { background-position: 300% 0; } }

.acc-hero-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.acc-avatar { position: relative; width: 76px; height: 76px; flex: none; border-radius: 22px; display: grid; place-items: center; font: 700 34px/1 var(--display);
  color: var(--accent-ink); background: linear-gradient(160deg, #ff9ade, #ff4fc3 55%, #d42a9c);
  box-shadow: 0 0 0 4px rgba(255, 79, 195, .14), 0 14px 34px -10px rgba(255, 79, 195, .75); }
.acc-avatar::after { content: ""; position: absolute; inset: -6px; border-radius: 26px; border: 2px solid rgba(255, 122, 214, .55);
  animation: acc-ring 3.4s ease-out infinite; }
@keyframes acc-ring { 0% { opacity: .85; transform: scale(.94); } 100% { opacity: 0; transform: scale(1.14); } }
.acc-logout { margin-top: 12px; min-height: 32px; padding: 6px 12px; font-size: 13px; gap: 7px; background: rgba(10, 5, 9, .35); }
.acc-who { min-width: 0; }
.acc-name { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 700 30px/1.15 var(--display); letter-spacing: .2px; }
.acc-name-text { overflow-wrap: anywhere; }
.acc-sub { margin: 8px 0 0; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.acc-uid { font: 600 12px/1 var(--mono); color: var(--faint); padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line-2); }

.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.acc-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border-radius: 14px; text-align: left; cursor: pointer;
  color: var(--text); font: inherit; background: rgba(14, 7, 12, .5); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .15s, background-color .15s, transform .15s var(--ease); }
.acc-stat:hover { border-color: var(--accent-line); background: var(--accent-soft); transform: translateY(-1px); }
.acc-stat:focus-visible, .acc-tab:focus-visible, .acc-bcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc-stat-k { font-size: 11.5px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--faint); }
.acc-stat-v { font: 700 19px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-stat-s { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-stat-s.soon { color: #ffb36b; }
.acc-tone-ultimate { color: var(--gold); }
.acc-tone-free { color: var(--good); }
.acc-tone-game { color: #7fb2ff; }

/* the menu and the open section */
.acc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.acc-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line-2); }
.acc-tab { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid transparent;
  background: none; color: var(--muted); font: 600 15px/1.2 var(--font); text-align: left; cursor: pointer; transition: background-color .15s, color .15s; }
.acc-tab:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.acc-tab[aria-selected="true"] { color: var(--text); background: var(--accent-soft); border-color: var(--accent-line); }
.acc-tab[aria-selected="true"] .ic { color: var(--accent-hi); }
.acc-tab-n { margin-left: auto; font: 600 12px/1 var(--mono); color: var(--faint); }

.acc-card { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; min-width: 0; }
.acc-panel-head h2 { font: 700 23px/1.2 var(--display); margin: 0 0 6px; letter-spacing: .2px; }
.acc-panel-head p { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; max-width: 62ch; }
.acc-panel-head b { color: var(--text); }
.acc-h3 { font: 700 16px/1.3 var(--display); margin: 24px 0 10px; }
.acc-fine { color: var(--faint); font-size: 13px; margin-top: 3px; }
.acc-fine a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.acc-after { margin-top: 14px; }
.acc-empty { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--faint); }
.acc-empty p { margin: 0; color: var(--muted); font-size: 14px; }

/* Badges: one card per badge; the shown one is lit */
.acc-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.acc-bcard { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 14px; text-align: left; cursor: pointer;
  color: var(--text); font: inherit; background: var(--bg-2); border: 1px solid var(--line-2); transition: border-color .15s, background-color .15s; }
.acc-bcard:hover { border-color: var(--c-line); }
.acc-bcard.on { border-color: var(--c-line); box-shadow: inset 0 0 0 1px var(--c-line);
  background: linear-gradient(180deg, var(--c-soft), transparent 85%), var(--bg-2); }
.acc-bcard-about { color: var(--muted); font-size: 13px; line-height: 1.45; }
.acc-bcard-pick { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--faint); }
.acc-bcard.on .acc-bcard-pick { color: var(--c); }

/* Plan */
.acc-plan-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-2); }
.acc-plan-icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center;
  color: var(--accent-hi); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.acc-plan-box.ultimate .acc-plan-icon { color: var(--gold); background: rgba(242, 193, 78, .1); border-color: rgba(242, 193, 78, .42); }
.acc-plan-box.free .acc-plan-icon { color: var(--good); background: rgba(76, 214, 180, .1); border-color: rgba(76, 214, 180, .4); }
.acc-plan-box.game .acc-plan-icon { color: #7fb2ff; background: rgba(90, 150, 255, .1); border-color: rgba(90, 150, 255, .4); }
.acc-plan-box.ram .acc-plan-icon { color: var(--muted); background: rgba(255, 255, 255, .04); border-color: var(--line-2); }
.acc-plan-what { flex: 1; min-width: 180px; }
.acc-plan-what p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.acc-plan { font: 700 24px/1.2 var(--display); }
.acc-plan-box.ultimate .acc-plan { color: var(--gold); }
.acc-plan-box.free .acc-plan { color: var(--good); }
.acc-plan-left { text-align: right; }
.acc-plan-left b { display: block; font: 700 34px/1 var(--display); }
.acc-plan-left span { color: var(--muted); font-size: 13px; }
.acc-plan-left.soon b, .acc-plan-left.soon span { color: #ffb36b; }

.acc-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-inline input, .acc-form input { flex: 1; min-width: 0; width: 100%; box-sizing: border-box; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 11px 14px; color: var(--text); font: inherit; outline: none; }
.acc-inline input { flex-basis: 260px; width: auto; }
.acc-inline input:focus, .acc-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* PCs */
.acc-places { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.acc-meter { display: inline-flex; gap: 4px; }
.acc-meter i { width: 26px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.acc-meter i.used { background: linear-gradient(90deg, var(--accent), var(--accent-hi)); }
.acc-pc { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.acc-pc:first-child { border-top: 0; }
.acc-pc .grow { flex: 1; min-width: 180px; }
.acc-pc-icon { position: relative; width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  color: var(--muted); background: var(--bg-2); border: 1px solid var(--line-2); }
.acc-pc.free .acc-pc-icon { border-style: dashed; color: var(--faint); background: none; }
.acc-pc-dot { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: #5a4752; border: 2px solid var(--panel); }
.acc-pc-dot.on { background: var(--good); box-shadow: 0 0 8px rgba(76, 214, 180, .8); }
.acc-pc-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-chip { font-size: 12px; font-weight: 700; line-height: 1.3; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--faint); }
.acc-chip.on { color: var(--good); border-color: rgba(76, 214, 180, .4); background: rgba(76, 214, 180, .08); }
.acc-chip.free { border-style: dashed; }
.acc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Security */
.acc-box { padding: 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-2); }
.acc-box + .acc-box { margin-top: 12px; }
.acc-box h3 { margin: 0 0 6px; font: 700 16px/1.3 var(--display); }
.acc-box p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.acc-box.danger { border-color: rgba(255, 90, 110, .26); }
.acc-box-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.acc-box-row .grow { flex: 1; min-width: 220px; }
.acc-box-row p { margin: 0; }
.acc-form { display: grid; gap: 12px; max-width: 440px; }
.acc-form label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }

.acc-msg { font-size: 14px; border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }
.acc-msg.err { color: #ff8fa3; background: rgba(255, 80, 110, .08); border: 1px solid rgba(255, 80, 110, .3); }
.acc-msg.ok { color: var(--good); background: rgba(76, 214, 180, .08); border: 1px solid rgba(76, 214, 180, .3); }
.acc-msg.info { color: var(--muted); background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); }

.btn.confirming { border-color: #ff8fa3; color: #ff8fa3; }
.btn.danger { color: #ff8fa3; }

/* badges: the same colors as in the app */
.bdg { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font: 700 12.5px/1.3 var(--font);
  letter-spacing: .2px; border: 1px solid var(--c-line); color: var(--c); background: var(--c-soft); }
.bdg::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
/* the badge next to your name catches the light every few seconds */
.acc-name .bdg { position: relative; overflow: hidden; font-size: 13px; box-shadow: 0 0 18px -4px var(--c-line); }
.acc-name .bdg::after { content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%); animation: acc-shine 5s ease-in-out infinite 1s; }
@keyframes acc-shine { 0%, 62% { transform: translateX(-130%); } 88%, 100% { transform: translateX(130%); } }
.c-pink { --c: #ff6fcf; --c-soft: rgba(255, 79, 195, .12); --c-line: rgba(255, 79, 195, .4); }
.c-purple { --c: #b99bff; --c-soft: rgba(160, 120, 255, .12); --c-line: rgba(160, 120, 255, .4); }
.c-blue { --c: #7fb2ff; --c-soft: rgba(90, 150, 255, .12); --c-line: rgba(90, 150, 255, .4); }
.c-cyan { --c: #5fd8f0; --c-soft: rgba(60, 200, 230, .12); --c-line: rgba(60, 200, 230, .4); }
.c-green { --c: #4cd6b4; --c-soft: rgba(76, 214, 180, .12); --c-line: rgba(76, 214, 180, .4); }
.c-gold { --c: #f2c14e; --c-soft: rgba(242, 193, 78, .12); --c-line: rgba(242, 193, 78, .42); }
.c-orange { --c: #ffa65c; --c-soft: rgba(255, 150, 70, .12); --c-line: rgba(255, 150, 70, .4); }
.c-red { --c: #ff7a8f; --c-soft: rgba(255, 90, 110, .12); --c-line: rgba(255, 90, 110, .4); }
.c-gray { --c: #c3a5b7; --c-soft: rgba(255, 255, 255, .05); --c-line: rgba(255, 255, 255, .18); }

/* reduced motion: the glows stay where they are, nothing sweeps, pulses or flows */
@media (prefers-reduced-motion: reduce) {
  .acc-hero::after, .acc-hero-bg i:nth-child(n), .acc-hero-bg b:nth-of-type(n) { animation: none; }
  .acc-hero-bg::after, .acc-avatar::after, .acc-name .bdg::after { display: none; }
}

/* tablets and phones: the header stacks, and the menu becomes a row of tabs */
@media (max-width: 860px) {
  .acc-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .acc-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .acc-nav { position: static; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px; scroll-margin-top: 80px; }
  .acc-tab { flex-direction: column; justify-content: center; gap: 5px; padding: 9px 4px; font-size: 13.5px; text-align: center; }
  .acc-tab-n { display: none; }
}
@media (max-width: 520px) {
  .acc-wrap { padding: 18px 12px 48px; gap: 16px; }
  .acc-hero { padding: 18px 16px; }
  .acc-logout { margin-top: 10px; }
  .acc-hero-main { gap: 14px; }
  .acc-avatar { width: 58px; height: 58px; border-radius: 17px; font-size: 26px; }
  .acc-name { font-size: 24px; }
  .acc-stats { gap: 8px; }
  .acc-stat { padding: 10px; border-radius: 12px; }
  .acc-stat-k { font-size: 10.5px; letter-spacing: .6px; }
  .acc-stat-v { font-size: 16px; }
  .acc-stat-s { font-size: 11.5px; white-space: normal; overflow-wrap: anywhere; }
  .acc-card { padding: 18px 16px; }
  .acc-panel-head h2 { font-size: 21px; }
  .acc-badges { grid-template-columns: minmax(0, 1fr); }
  .acc-plan-left { text-align: left; display: flex; align-items: baseline; gap: 8px; padding-left: 64px; }
  .acc-plan-left b { display: inline; font-size: 28px; }
  .acc-pc .grow { min-width: 0; flex-basis: calc(100% - 56px); }
  .acc-actions { padding-left: 56px; }
  .acc-box { padding: 16px 14px; }
  .acc-box-row .grow { min-width: 0; flex-basis: 100%; }
}

/* ---- badges as proper cards, cosmetics, the public profile switch ---- */
.acc-hero > .kbanner-layer { position: absolute; z-index: 0; }
.acc-hero[data-banner] .acc-hero-bg i { opacity: .35; }
.acc-avatar-wrap { position: relative; flex: none; padding: 4px; }
/* your picture: the camera on the avatar's corner, and its menu (New picture, Remove) */
.acc-pic-btn { position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--accent-line); color: var(--text); background: #2a1424; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .8);
  transition: background-color .15s, transform .15s; }
.acc-pic-btn:hover { background: #3a1a31; transform: scale(1.06); }
.acc-pic-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc-pic-btn:disabled { opacity: .55; cursor: progress; }
.acc-pic-menu { position: absolute; z-index: 5; left: calc(100% + 8px); bottom: 0; display: grid; min-width: 170px; padding: 6px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--panel-2); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .85); }
.acc-pic-menu button { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 9px; cursor: pointer;
  background: none; color: var(--text); font: 600 14px/1 var(--font); text-align: left; }
.acc-pic-menu button:hover, .acc-pic-menu button:focus-visible { background: var(--accent-soft); outline: none; }
.acc-pic-menu button.confirming { color: #ff8a8a; }
#picMsg .acc-msg { margin: 10px 0 0; }
.acc-avatar-wrap .kav-xl .kav-in { box-shadow: 0 14px 34px -10px rgba(255, 79, 195, .75); }
.acc-hero-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.acc-hero-btns .acc-logout { margin-top: 0; }
.acc-hero-btns .btn.sm { min-height: 32px; padding: 6px 12px; font-size: 13px; gap: 7px; background: rgba(10, 5, 9, .35); }
.acc-public { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 5px 12px 5px 8px; border-radius: 999px; cursor: pointer;
  font: 600 13px/1 var(--font); color: var(--muted); background: rgba(10, 5, 9, .35); border: 1px solid var(--line-2); transition: border-color .15s, color .15s; }
.acc-public:hover { color: var(--text); border-color: var(--accent-line); }
.acc-public.on { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }
.acc-switch { position: relative; width: 28px; height: 16px; border-radius: 99px; background: rgba(255, 255, 255, .14); transition: background-color .2s; }
.acc-switch i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.acc-public.on .acc-switch { background: var(--accent); }
.acc-public.on .acc-switch i { transform: translateX(12px); }
.acc-public:focus-visible, .bcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc-panel-head a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }

/* the badge next to your name catches the light every few seconds */
.acc-name .kbdg { position: relative; overflow: hidden; font-size: 13px; box-shadow: 0 0 18px -4px var(--c-line); }
.acc-name .kbdg::after { content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%); animation: acc-shine 5s ease-in-out infinite 1s; }

/* How you look: your picture, name and the badge you show, live */
.bprev { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px;
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%), var(--bg-2); border: 1px solid var(--line-2); }
.bprev-k { font-size: 11.5px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--faint); }
.bprev-row { display: inline-flex; align-items: center; gap: 9px; min-width: 0; font: 700 16px/1.2 var(--display); }
.bprev-none { font: 500 12.5px/1 var(--font); }

/* a badge card: its emblem in the middle, its name under it with an i button; the i turns it round to say when you got
   it and how to get it. The whole card picks it (.bcard-pick lies over it); the one you show has a tick */
.bcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bcard { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; align-content: center; gap: 12px;
  min-height: 150px; padding: 20px 12px 16px; border-radius: 16px; color: var(--text); text-align: center;
  background: radial-gradient(90% 70% at 50% 0%, var(--c-soft), transparent 70%), var(--bg-2); border: 1px solid var(--line-2);
  transition: border-color .18s, transform .18s var(--ease), box-shadow .18s; }
.bcard:hover { border-color: var(--c-line); transform: translateY(-2px); box-shadow: 0 14px 30px -18px var(--c); }
.bcard.on { border-color: var(--c-line); box-shadow: inset 0 0 0 1px var(--c-line), 0 16px 34px -20px var(--c);
  background: radial-gradient(100% 80% at 50% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 75%), var(--bg-2); }
.bcard-pick { position: absolute; inset: 0; z-index: 1; border: 0; padding: 0; background: none; border-radius: inherit; cursor: pointer; }
.bcard-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.bcard-emblem { position: relative; width: 60px; height: 60px; display: grid; place-items: center; color: var(--c); pointer-events: none;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 34%, transparent), color-mix(in srgb, var(--c) 8%, transparent)); }
.bcard-emblem .ic { filter: drop-shadow(0 0 7px var(--c)); }
.bcard.on .bcard-emblem { background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 45%, #000)); color: #160a12; }
.bcard.on .bcard-emblem .ic { filter: none; }
.bcard-row { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; pointer-events: none; }
.bcard-name { font: 700 16px/1.25 var(--display); overflow-wrap: anywhere; }
.bcard-i { position: relative; z-index: 2; pointer-events: auto; flex: none; width: 24px; height: 24px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 0; color: var(--faint); background: none; cursor: pointer; transition: color .15s, background-color .15s; }
.bcard-i:hover, .bcard-i[aria-expanded="true"] { color: var(--c); background: var(--c-soft); }
.bcard-i:focus-visible, .bcard-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bcard-on { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  color: #160a12; background: var(--c); pointer-events: none; }
.bcard.locked .bcard-emblem { filter: grayscale(.85); opacity: .55; }
.bcard.locked .bcard-name { color: var(--muted); }
.bcard.locked:hover .bcard-emblem { filter: none; opacity: 1; }
.bcard-lock { position: absolute; right: 9px; bottom: 9px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text); background: var(--panel); font-style: normal; }
/* the back of the card: when you got it, until when, how to get it */
.bcard-pop { position: absolute; inset: 0; z-index: 3; display: none; align-content: center; gap: 2px; padding: 16px 14px; text-align: left;
  border-radius: inherit; background: radial-gradient(100% 80% at 50% 0%, var(--c-soft), transparent 75%), var(--bg-2); }
.bcard.info .bcard-pop { display: grid; animation: bcard-flip .18s var(--ease); }
.bcard-pop-name { font: 700 14.5px/1.2 var(--display); color: var(--c); margin-bottom: 6px; padding-right: 22px; }
.bcard-pop-k { font-size: 10.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.bcard-pop-v { font-size: 13px; line-height: 1.4; color: var(--text); }
.bcard-pop-go { justify-self: start; margin-top: 8px; }
.bcard-close { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0;
  border-radius: 50%; color: var(--muted); background: none; cursor: pointer; }
.bcard-close:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
@keyframes bcard-flip { from { opacity: 0; transform: scale(.97); } }

/* Cosmetics */
.cos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.cos-grid.wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cos-shop { display: grid; gap: 22px; }
.cos-price.free { color: var(--good, #4cd6b4); }
.cos-free-sub { margin: -4px 0 14px; }
.cos-shop-kind { margin: 0 0 10px; font: 800 11.5px/1 var(--font); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.cos-yours .cos-kind:first-child .acc-h3 { margin-top: 4px; }
.cos-card { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-2);
  transition: border-color .15s, transform .15s var(--ease); }
.cos-card:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.cos-card.on { border-color: var(--accent-line); box-shadow: inset 0 0 0 1px var(--accent-line); }
.cos-card > .btn { align-self: flex-start; }
.cos-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cos-info b { font: 700 15.5px/1.25 var(--display); }
.cos-info span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.cos-info .cos-kindtag { font-size: 11px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--accent-hi); }
.cos-buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.cos-price { font: 700 19px/1 var(--display); }
.cos-coins { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.cos-shop-h { display: flex; align-items: center; gap: 8px; margin-top: 26px; }
.cos-shop-h .ic { color: var(--accent-hi); }

@media (prefers-reduced-motion: reduce) { .acc-name .kbdg::after { display: none; } }
@media (max-width: 860px) {
  /* one row, however many tabs there are (Discord shows once the bot is set up) */
  .acc-nav { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .acc-tab { font-size: 12.5px; }
}
@media (max-width: 520px) {
  .acc-avatar-wrap .kav-xl { width: 58px; height: 58px; }
  .acc-avatar-wrap .kav-xl .kav-in { font-size: 26px; }
  .cos-grid { grid-template-columns: minmax(0, 1fr); }
  .bcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-tab { font-size: 11.5px; padding: 8px 2px; }
}

/* ---- Discord tab ---- */
.dc-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: var(--bg-3, rgba(255, 255, 255, .05)); border: 1px solid var(--line-2); color: var(--muted); }
.dc-icon.on { color: var(--accent); background: var(--accent-soft); border-color: rgba(255, 79, 195, .35); }
.dc-link .btn .ic { margin-right: 6px; }
.dc-cmds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dc-cmds li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; padding: 10px 14px;
  border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.dc-cmds code, .dc-role { font: 600 13px/1.4 ui-monospace, Consolas, monospace; color: var(--text); }
.dc-role { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; color: var(--accent-hi, var(--accent)); }
@media (max-width: 560px) {
  .dc-cmds li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- server boosters ---- */
.bst { margin-bottom: 14px; border-color: rgba(255, 115, 250, .35); background: linear-gradient(135deg, rgba(255, 115, 250, .08), rgba(166, 107, 255, .06)); }
.bst.off { border-style: dashed; background: var(--bg-2); }
.bst-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.bst-head p { margin: 0; }
.bst-gem { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex: none; color: var(--muted);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); }
.bst-gem.on { color: #ff73fa; background: rgba(255, 115, 250, .14); border-color: rgba(255, 115, 250, .45); }
.bst-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bst-perks li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .18);
  border: 1px solid var(--line-2); }
.bst-perks li > .ic { flex: none; margin-top: 2px; color: #ff73fa; }
.bst-perks span { display: grid; gap: 2px; font-size: 14px; }
.bst-perks small { color: var(--muted); font-size: 12.5px; }
.bst.off .bst-perks li > .ic { color: var(--muted); }
.bst-week { margin-top: 4px; }
.cos-price.boost { display: inline-flex; align-items: center; gap: 5px; color: #ff73fa; }
@media (max-width: 560px) { .bst-perks { grid-template-columns: minmax(0, 1fr); } }
.bst .acc-h3 { margin: 18px 0 10px; }

/* ---- the Affiliate tab ---- */
.aff-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.aff-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); }
.aff-stat-k { font-size: 11.5px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--faint); }
.aff-stat-v { font: 700 21px/1.2 var(--display); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.aff-stat.owed { border-color: rgba(242, 193, 78, .45); background: rgba(242, 193, 78, .08); }
.aff-stat.owed .aff-stat-v { color: var(--gold); }
.aff-list { display: flex; flex-direction: column; }
.aff-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.aff-row:first-child { border-top: 0; }
.aff-main { flex: 1; min-width: 0; }
.aff-line { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.aff-line b { overflow-wrap: anywhere; }
.aff-code { font-family: var(--mono, ui-monospace, monospace); font-size: 15px; letter-spacing: .5px; }
.aff-off { color: var(--muted); font-size: 13.5px; }
.aff-amt { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; }
.aff-amt b { font-variant-numeric: tabular-nums; color: var(--good); }
.aff-amt span { font-size: 12px; color: var(--faint); }
#affBody .acc-msg { margin: 0 0 14px; }
@media (max-width: 860px) { .aff-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .aff-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .aff-stat { padding: 10px; } .aff-stat-k { font-size: 10.5px; letter-spacing: .6px; } .aff-stat-v { font-size: 18px; } }
