/* Shared chrome for login / register / dashboard.
   Variables and type mirror index.html so the account pages read as part of the
   same site rather than a bolted-on portal. */

:root {
  --bg: #07080b;
  --bg-soft: #0b0d11;
  --panel: rgba(14, 17, 22, 0.82);
  --panel-solid: #101319;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f7f8fa;
  --soft: #c0c6cf;
  --muted: #7c8490;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.52);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

/* Soft grey lighting, matching the loader's background rather than the marketing
   page's animated hero — these are utility pages. */
body::before {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(38vw 38vw at 28% 22%, rgba(255,255,255,.055), transparent 70%),
    radial-gradient(32vw 32vw at 74% 78%, rgba(255,255,255,.035), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 34px 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.card.wide { max-width: 760px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 26px;
}
.brand img { width: 38px; height: 38px; }
.brand strong {
  font-family: Unbounded, sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 {
  font-family: Unbounded, sans-serif;
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.sub { color: var(--muted); font-size: 14px; margin: 0 0 26px; }

label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

input {
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
input:focus {
  outline: none;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .06);
}
input::placeholder { color: #565c66; }

.btn {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--text);
  color: #0a0a0b;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost {
  background: transparent;
  color: var(--soft);
  border: 1px solid var(--line);
}
.btn.ghost:hover:not(:disabled) { border-color: var(--line-strong); color: var(--text); }

.alt { text-align: center; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.alt a { color: var(--soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.alt a:hover { color: var(--text); }

/* Status line. Errors stay monochrome — a red would be the only hue on the
   whole site. Weight and position carry the meaning instead. */
.msg {
  min-height: 20px;
  font-size: 13px;
  margin: 0 0 14px;
  color: var(--soft);
}
.msg.err { color: #fff; font-weight: 500; }
.msg.err::before { content: '! '; color: var(--muted); }
.msg.ok::before { content: '\2713  '; color: var(--muted); }

/* Dashboard */
.rows { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 22px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 18px; background: var(--panel-solid); }
.row span { color: var(--muted); font-size: 13px; }
.row code, .row b {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
  text-align: right;
}
.pill {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.05);
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft);
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { width: auto; flex: 1 1 180px; }

@media (max-width: 520px) {
  .card { padding: 26px 20px 22px; border-radius: 18px; }
}

/* ── Dashboard shell ──────────────────────────────────────────────────
   Wide page layout: top bar, page header with an action row, then a card
   grid. Distinct from the narrow centred card the auth pages use. */
body.app {
  display: block;
  padding: 0;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 26px;
  height: 62px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 13, .78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .brand { margin: 0; gap: 10px; }
.topbar .brand img { width: 28px; height: 28px; }
.topbar .brand strong { font-size: 19px; }
.topbar .spacer { flex: 1; }


.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 28px 56px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.page-head h1 {
  font-family: Unbounded, sans-serif;
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -.02em;
}
.page-head .sub { margin: 0; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* Compact action buttons for the header row. */
.act {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  color: var(--soft);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .25s var(--ease), border-color .25s var(--ease),
    color .25s var(--ease), transform .25s var(--ease);
}
.act:hover:not(:disabled) {
  background: rgba(255, 255, 255, .09);
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-1px);
}
.act:disabled { opacity: .38; cursor: not-allowed; }
.act svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.9; fill: none; }
.act.primary {
  background: var(--text);
  border-color: var(--text);
  color: #0a0a0b;
}
.act.primary:hover:not(:disabled) { background: #fff; color: #0a0a0b; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.panel-head { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.panel-head svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2; fill: none; color: var(--soft); }
.panel-head h2 {
  font-family: Unbounded, sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -.01em;
}
.panel .hint { color: var(--muted); font-size: 12.5px; margin: 0 0 16px; }

/* An entitlement / detail line inside a panel. */
.item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--panel-solid);
  margin-bottom: 10px;
}
.item:last-child { margin-bottom: 0; }
.item-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.item-name { font-size: 14.5px; font-weight: 600; }
.item-meta { color: var(--muted); font-size: 12px; margin-top: 5px; }
.item-right { margin-left: auto; font-size: 12.5px; color: var(--soft); text-align: right; }

/* Monochrome status badges — Sync has no hue, so state reads through
   brightness and border weight rather than red/green. */
.badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
}
.badge.on { color: #0a0a0b; background: var(--text); border-color: var(--text); }

.empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 34px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.6; fill: none; opacity: .55; display: block; margin: 0 auto 10px; }

/* Inline panel revealed by a header action. */
.drawer {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  transform: translateY(-6px);
  transition:
    max-height .4s var(--ease),
    opacity .35s var(--ease),
    margin-bottom .4s var(--ease),
    border-color .3s var(--ease),
    transform .4s var(--ease);
}
.drawer.is-open {
  max-height: 280px;
  opacity: 1;
  margin-bottom: 18px;
  border-color: var(--line);
  transform: translateY(0);
}

/* Author-level image rules otherwise override the browser's built-in hidden
   style, causing fallback and uploaded avatars to render at the same time. */
[hidden] { display: none !important; }
.drawer.redeem-static { margin-top: 0; }
.drawer-inner { padding: 20px; }
.drawer h3 { font-family: Unbounded, sans-serif; font-size: 15px; margin: 0 0 4px; font-weight: 600; }
.drawer .hint { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; }
.drawer .hint a {
  color: var(--soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.drawer .hint a:hover { color: var(--text); border-color: var(--line-strong); }
.drawer .row-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.drawer .row-inline input { margin-bottom: 0; flex: 1 1 260px; }
.drawer .row-inline .act { padding: 13px 18px; }

/* Account chip in the top bar — an initial disc and the name, reading as one
   object rather than a row of loose labels. */
.account {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
}
.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--text);
  color: #0a0a0b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.account-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
  letter-spacing: .01em;
}

/* Square icon-only button; the label lives in the tooltip. */
.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .09); border-color: var(--line-strong); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }

@media (max-width: 620px) {
  .account-name { display: none; }
  .account { padding: 5px; }
}

/* Account chip in the top bar — an initial disc and the name, reading as one
   object rather than a row of loose labels. */
.account {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
}
.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--text);
  color: #0a0a0b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.account-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
  letter-spacing: .01em;
}

/* Square icon-only button; the label lives in the tooltip. */
.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .09); border-color: var(--line-strong); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }

@media (max-width: 620px) {
  .account-name { display: none; }
  .account { padding: 5px; }
}

/* ── Profile panel ──────────────────────────────────────────────────────
   The picture doubles as the upload control: clicking it opens the file
   picker, which is what people reach for first regardless of what the button
   says. A separate "Upload" button would just be a second thing to find. */
.panel-wide { grid-column: 1 / -1; }
#viewProfile { margin-bottom: 18px; }

.admin-panel { margin-top: 18px; }
.admin-panel .panel-head .badge { margin-left: auto; }
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.admin-block {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-solid);
}
.admin-hwid { grid-column: 1 / -1; }
.admin-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.admin-row input {
  min-width: 0;
  margin-bottom: 0;
}
.admin-row input:not([type="number"]) { flex: 1 1 auto; }
.admin-row input[type="number"] { flex: 0 0 76px; width: 76px; }
.admin-row .act { flex: 0 0 auto; justify-content: center; }
.admin-block .msg { min-height: 18px; margin: 8px 0; }
.admin-list {
  max-height: 174px;
  overflow: auto;
  border-top: 1px solid var(--line);
}
.admin-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.admin-list-row span { color: var(--muted); }
.admin-empty { padding: 16px 2px; color: var(--muted); font-size: 12.5px; }
.key-output {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0c10;
  color: var(--soft);
  font: 500 12px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.key-output:focus { outline: none; border-color: var(--line-strong); }
.admin-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.admin-foot .act { margin-left: auto; }
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .admin-row, .key-row { flex-direction: column; }
  .admin-row input[type="number"] { width: 100%; flex-basis: auto; }
}

.avatar-img {
  object-fit: cover;
  /* Overrides the grid centring the initial uses, so the image fills. */
  display: block;
}

.profile {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 14px;
}
@media (max-width: 620px) { .profile { flex-direction: column; } }

.pfp {
  position: relative;
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel-2, #141416);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  display: grid;
  place-items: center;
}
.pfp:hover { border-color: var(--text); }
.pfp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfp-initial {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
/* Only announces itself on hover; a permanent label on a picture is noise. */
.pfp-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .58);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .16s ease;
}
.pfp:hover .pfp-hover, .pfp:focus-visible .pfp-hover { opacity: 1; }

.profile-fields { flex: 1 1 auto; min-width: 0; }
.lbl {
  display: block;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.profile-fields textarea {
  width: 100%;
  resize: none;
  overflow: hidden;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2, #141416);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}
.profile-fields textarea:focus {
  outline: none;
  border-color: var(--text);
}
.profile-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.profile-foot .spacer { flex: 1 1 auto; }
.counter { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.act.ghost { background: transparent; }

/* The dashboard script uses .bad for failures; .err is the older name used by
   the login pages. Both should look the same rather than one silently
   rendering as plain text. */
.msg.bad { color: #fff; font-weight: 500; }
.msg.bad::before { content: '! '; color: var(--muted); }

.uname-row { display: flex; gap: 8px; align-items: stretch; }
.uname-row input {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2, #141416);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}
.uname-row input:focus { outline: none; border-color: var(--text); }
.uname-row .act {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  min-height: 42px;
}
.profile-fields .msg { margin: 6px 0 14px; }

/* ── Dashboard motion ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* Entrance: toggled by JS after [hidden] is cleared (keyframes often skip). */
.enter {
  opacity: 0 !important;
  transform: translateY(18px);
  transition:
    opacity .55s var(--ease),
    transform .55s var(--ease) !important;
  will-change: opacity, transform;
}
.enter.enter-in {
  opacity: 1 !important;
  transform: translateY(0);
}

.panel {
  transition:
    border-color .28s var(--ease),
    transform .32s var(--ease),
    box-shadow .32s var(--ease),
    background .28s var(--ease);
}
.panel:hover {
  border-color: rgba(255, 255, 255, .22);
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .35);
}

.item {
  transition:
    border-color .25s var(--ease),
    background .25s var(--ease),
    transform .28s var(--ease);
}
.item:hover {
  border-color: rgba(255, 255, 255, .2);
  transform: translateY(-2px);
}

.act {
  transition:
    background .25s var(--ease),
    border-color .25s var(--ease),
    color .25s var(--ease),
    transform .25s var(--ease),
    box-shadow .25s var(--ease),
    opacity .25s var(--ease) !important;
}
.act:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}
.act:active:not(:disabled) {
  transform: translateY(0) scale(.97);
}

.icon-btn {
  transition:
    background .25s var(--ease),
    border-color .25s var(--ease),
    color .25s var(--ease),
    transform .25s var(--ease) !important;
}
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn:active { transform: scale(.95); }

.account {
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.account:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .07);
  transform: translateY(-1px);
}

.pfp {
  transition: border-color .25s var(--ease), transform .3s var(--ease) !important;
}
.pfp:hover { transform: scale(1.04); }

.profile-fields input,
.profile-fields textarea,
.drawer input,
.uname-row input {
  transition:
    border-color .25s var(--ease),
    background .25s var(--ease),
    box-shadow .25s var(--ease) !important;
}
.profile-fields input:focus,
.profile-fields textarea:focus,
.drawer input:focus,
.uname-row input:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .07);
}

.msg { transition: color .25s var(--ease), opacity .3s var(--ease); }

.badge {
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

body.app .brand {
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
body.app .brand:hover { opacity: .9; transform: translateY(-1px); }

.empty {
  transition: border-color .25s var(--ease), color .25s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter,
  .enter.enter-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .drawer,
  .panel,
  .item,
  .act,
  .icon-btn,
  .pfp,
  .account {
    transition: none !important;
  }
  .panel:hover,
  .item:hover,
  .act:hover:not(:disabled),
  .pfp:hover,
  .account:hover {
    transform: none;
  }
}

/* ── Full-motion pass ─────────────────────────────────────────────────
   Everything on the dashboard animates: the top bar slides down, each
   surface rises in on a stagger, badges breathe, status lines and
   avatars pop when their content changes, and admin rows cascade in.
   All of it collapses under prefers-reduced-motion at the end. */

/* The top bar drops in from above rather than rising like the content. */
.enter.from-top {
  transform: translateY(-14px) !important;
}
.enter.from-top.enter-in {
  transform: translateY(0) !important;
}

/* One-shot content pop, re-triggerable. Applied to status messages and
   the account chip whenever their text or image changes, so updates are
   seen rather than merely being correct. */
@keyframes contentPop {
  0% { opacity: 0; transform: translateY(3px) scale(.985); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.msg.pop { animation: contentPop .3s var(--ease) both; }
.account.pop { animation: contentPop .35s var(--ease) both; }

/* Active badges breathe — a slow, quiet glow so "Active" reads as a
   live state rather than printed text. */
@keyframes badgeBreathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  50% { box-shadow: 0 0 10px 1px rgba(255, 255, 255, .22); }
}
.badge.on { animation: badgeBreathe 3.2s ease-in-out infinite; }

/* Admin whitelist rows cascade in top-to-bottom; the delay is set inline
   by the dashboard script per row. */
@keyframes rowIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.admin-list-row { animation: rowIn .35s var(--ease) both; }
.admin-empty { animation: rowIn .35s var(--ease) both; }

/* Generated keys and the key output fade in as a block. */
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.key-output.pop { animation: fadeSlide .4s var(--ease) both; }

/* The large profile picture settles in with a scale, softer than a pop. */
@keyframes avatarIn {
  from { opacity: 0; transform: scale(.88); }
  to { opacity: 1; transform: scale(1); }
}
.pfp.pop { animation: avatarIn .4s var(--ease) both; }

/* Busy buttons get a subtle working pulse while their request is in
   flight (they are disabled then, so hover styles do not apply). */
@keyframes working {
  0%, 100% { opacity: .38; }
  50% { opacity: .62; }
}
.act:disabled.busy { animation: working 1.1s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .msg.pop, .account.pop, .pfp.pop, .key-output.pop,
  .admin-list-row, .admin-empty {
    animation: none !important;
  }
  .badge.on { animation: none !important; }
  .act:disabled.busy { animation: none !important; }
}
