/* The admin panel: a night-glass control room.
   A floating island for navigation, bento tiles, ring gauges, a reactor core
   for payouts, a fine dot grid under an aurora. Unbounded for big type and
   figures, Inter for everything else. */

@font-face { font-family: 'Inter'; src: url('fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Unbounded'; src: url('fonts/unbounded.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #04060c;
  --bg-top: #0b1430;
  --aur1: rgba(47, 107, 255, .26);
  --aur2: rgba(90, 208, 255, .14);
  --aur3: rgba(255, 111, 181, .09);
  --on-brand: #04111f;
  --glass: rgba(255, 255, 255, .04);
  --glass-2: rgba(255, 255, 255, .07);
  --glass-3: rgba(255, 255, 255, .11);
  --glass-strong: rgba(16, 20, 32, .82);
  --edge: rgba(255, 255, 255, .08);
  --edge-2: rgba(255, 255, 255, .14);
  --text: #f2f6ff;
  --text-2: #9aa6bf;
  --text-3: #5d6782;
  --frost: #5ad0ff;
  --royal: #2f6bff;
  --brand: linear-gradient(135deg, #6ad8ff, #2f6bff);
  --green: #3ee08f;
  --amber: #ffb547;
  --red: #ff5a6a;
  --pink: #ff6fb5;
  --yellow: #ffd166;
  --violet: #b18cff;
  --blur: blur(28px) saturate(170%);
  --r: 14px;
  --r-lg: 24px;
  --r-xl: 30px;
  --spring: cubic-bezier(.3, 1.45, .55, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 30px 80px -24px rgba(0, 0, 0, .9);
  --font: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* Names older markup still reads. */
  --muted: var(--text-2);
  --faint: var(--text-3);
  --line: var(--edge);
  --line-soft: rgba(255, 255, 255, .05);
  --cyan: var(--frost);
  --blue: var(--frost);
  --surface: var(--glass);
  --surface-2: var(--glass-2);
  --surface-3: var(--glass-3);
  --radius: var(--r-lg);
}

/* ---------- base ---------- */

* { box-sizing: border-box; }
/* Glows on round shapes must never be cut off square by an SVG's edge. */
svg { overflow: visible; }
/* The pointer follows the theme: frost to royal, pumpkin to purple at Halloween. */
html:root { --fx-accent: var(--frost); --fx-accent-2: var(--royal); }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 14.5px/1.5 var(--font); letter-spacing: -.006em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .38; }
a { color: var(--frost); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; }
h2 { font-size: 17px !important; }
h1 { margin-bottom: 6px; font-size: 34px; font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
h2 { margin-bottom: 4px; font-size: 19px; }
h3 { margin-bottom: 4px; font-size: 16px; }
:focus-visible { outline: 2px solid var(--frost); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--frost) 45%, transparent); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); }
.tiny { font-size: 12px; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); font-size: .92em; }
.wrap { overflow-wrap: anywhere; }
.ok { color: var(--green); }
.warn { color: var(--amber); }
.bad { color: var(--red); }
.blue { color: var(--frost); }
.empty { padding: 28px; color: var(--text-2); text-align: center; }
.loading { padding: 28px; color: var(--text-2); }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 10px; background: rgba(255, 255, 255, .18); background-clip: padding-box; }

/* ---------- backdrop: aurora + dot grid ---------- */

.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(1200px 800px at 50% -20%, var(--bg-top), var(--bg) 70%); }
.aur { position: absolute; border-radius: 50%; will-change: transform; }
.a1 { width: 70vmax; height: 70vmax; left: -25vmax; top: -35vmax; background: radial-gradient(circle, var(--aur1), transparent 62%); animation: drift1 30s ease-in-out infinite alternate; }
.a2 { width: 60vmax; height: 60vmax; right: -24vmax; top: 10vmax; background: radial-gradient(circle, var(--aur2), transparent 62%); animation: drift2 36s ease-in-out infinite alternate; }
.a3 { width: 46vmax; height: 46vmax; left: 30vmax; bottom: -30vmax; background: radial-gradient(circle, var(--aur3), transparent 64%); animation: drift3 42s ease-in-out infinite alternate; }
.grid-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 75%); mask: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 75%); }
@keyframes drift1 { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-12vmax, -8vmax, 0) scale(1.15); } }
@keyframes drift3 { to { transform: translate3d(-16vmax, 6vmax, 0) scale(.9); } }

/* ---------- the island ---------- */

.island-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 30; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.island {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 6px;
  height: 58px; padding: 0 8px 0 9px;
  border-radius: 999px;
  background: rgba(14, 18, 30, .72);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 50px -18px rgba(0, 0, 0, .9);
  transition: height .45s var(--spring), padding .45s var(--spring), gap .3s;
  animation: islandIn .8s var(--spring) both;
}
.island-brand { position: relative; display: grid; width: 42px; height: 42px; flex: none; place-items: center; margin-right: 4px; }
.island-brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; position: relative; z-index: 1; box-shadow: 0 0 0 1.5px var(--edge-2); transition: transform .5s var(--spring); }
.island-brand:hover img { transform: rotate(-14deg) scale(1.08); }
.island-spin { display: none; }
body.is-loading .island-spin { animation-duration: .8s; opacity: 1; }
.island-tabs { position: relative; display: flex; align-items: center; gap: 2px; }
.island-glow { position: absolute; top: 4px; bottom: 4px; left: 0; z-index: 0; border-radius: 999px; background: linear-gradient(135deg, color-mix(in srgb, var(--frost) 22%, transparent), color-mix(in srgb, var(--royal) 20%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frost) 35%, transparent), 0 0 24px -4px color-mix(in srgb, var(--frost) 45%, transparent); transition: transform .55s var(--spring), width .55s var(--spring), opacity .3s; }
.nav { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 550; white-space: nowrap; transition: color .25s, transform .35s var(--spring); }
.nav:hover { color: var(--text); }
.nav:active { transform: scale(.94); }
.nav.active { color: #fff; }
.nav-icon { display: grid; place-items: center; }
.nav-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav.active .nav-icon { color: var(--frost); animation: navPop .5s var(--spring); }
.nav-text { transition: max-width .4s var(--ease), opacity .25s; max-width: 120px; overflow: hidden; }
.nav-badge[hidden] { display: none; }
.nav-badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 0 0 2px #0e121e; animation: navPop .45s var(--spring); }
.island-search { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; margin-left: 6px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); transition: background .2s, color .2s, transform .35s var(--spring); }
.island-search:active { transform: scale(.9); }
.island-search:hover { background: var(--glass-3); color: var(--text); }
.island-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
kbd { padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06); color: var(--text-2); font: 600 11px var(--font); }
.island-live { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; border: 0; border-radius: 999px; background: rgba(62, 224, 143, .12); color: var(--green); font: 600 13px var(--font); font-variant-numeric: tabular-nums; transition: background .3s, color .3s; }
.island-live.warn { background: rgba(255, 181, 71, .13); color: var(--amber); }
.island-live.off { background: rgba(255, 90, 106, .14); color: var(--red); }
.island-me { display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; transition: transform .35s var(--spring); }
.island-me:hover { transform: scale(1.06); }
.island.compact { height: 50px; }
.island.compact .nav-text { max-width: 0; opacity: 0; }
.island.compact .nav { padding: 0 12px; height: 40px; }

.avatar { position: relative; display: grid; width: 36px; height: 36px; flex: none; place-items: center; overflow: hidden; border-radius: 50%; background: var(--brand); color: #04111f; font: 600 13px var(--display); box-shadow: 0 0 0 2px color-mix(in srgb, var(--frost) 35%, transparent); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--green); animation: ping 2.4s ease-out infinite; }
.dot.off { background: var(--red); animation-name: pingRed; }
.island-live.warn .dot.off { background: var(--amber); animation-name: pingAmber; }

/* ---------- control center ---------- */

.control {
  position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 45;
  display: flex; flex-direction: column; gap: 14px;
  width: min(380px, calc(100vw - 24px)); padding: 18px; overflow-y: auto;
  border-radius: var(--r-xl);
  background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 0 0 1px var(--edge-2), var(--shadow);
  transform: translateX(calc(100% + 30px)); visibility: hidden;
  transition: transform .55s var(--spring), visibility 0s linear .55s;
}
.control.open { transform: none; visibility: visible; transition: transform .55s var(--spring), visibility 0s; }
.control-scrim { position: fixed; inset: 0; z-index: 44; border: 0; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.control.open + .control-scrim { opacity: 1; pointer-events: auto; }
.cc-head { display: flex; align-items: center; gap: 12px; }
.cc-head .avatar { width: 48px; height: 48px; font-size: 16px; }
.cc-head strong { display: block; font: 600 18px var(--display); }
.cc-head small { color: var(--text-2); font-size: 12.5px; text-transform: capitalize; }
.cc-head .close { margin-left: auto; }
.side-state { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(62, 224, 143, .12); color: var(--green); font-size: 13px; font-weight: 600; }
.side-state.off { background: rgba(255, 90, 106, .14); color: var(--red); }
.cc-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cc-link { flex-direction: column; justify-content: center; height: 78px; gap: 6px; padding: 0; border-radius: 18px; background: var(--glass); color: var(--text); font-size: 12.5px; box-shadow: inset 0 0 0 1px var(--edge); }
.cc-link:hover { background: var(--glass-2); }
.cc-link.active { background: linear-gradient(135deg, color-mix(in srgb, var(--frost) 20%, transparent), color-mix(in srgb, var(--royal) 20%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frost) 40%, transparent); }
.cc-link .nav-icon svg { width: 22px; height: 22px; }
.cc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cc-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 96px; padding: 12px; border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); }
.cc-tile small { color: var(--text-2); font-size: 11.5px; }
.cc-tile strong { font: 600 15px var(--display); font-variant-numeric: tabular-nums; }
.cc-tile strong.big { margin-top: auto; font-size: 20px; }
.cc-tile .donut { width: 34px; height: 34px; }
.side-review { width: 100%; padding: 10px 14px; border: 0; border-radius: 14px; background: rgba(255, 181, 71, .14); color: var(--amber); font-size: 13px; font-weight: 600; text-align: left; }
.side-live { display: grid; gap: 10px; }
.side-live:empty { display: none; }

/* ---------- content ---------- */

.main { min-width: 0; }
.content { width: min(100%, 1380px); margin: 0 auto; padding: 102px 32px 80px; transition: opacity .22s var(--ease), transform .22s var(--ease), filter .22s; }
.content.is-leaving { opacity: 0; transform: translateY(8px) scale(.995); filter: blur(4px); }
.content > * { animation: rise .6s var(--ease) both; }
.content > :nth-child(2) { animation-delay: .05s; }
.content > :nth-child(3) { animation-delay: .1s; }
.content > :nth-child(4) { animation-delay: .14s; }
.content > :nth-child(n+5) { animation-delay: .18s; }
.content.quiet *, .quiet, .quiet * { animation: none !important; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading > div { min-width: 0; }
.page-heading h1 { background: linear-gradient(180deg, #fff 30%, #a9dcff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-heading p { margin: 0; color: var(--text-2); font-size: 15px; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow { display: none; }

/* ---------- surfaces ---------- */

.card, .tile {
  position: relative; isolation: isolate;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 50px -30px rgba(0, 0, 0, .9);
  transition: transform .5s var(--ease), box-shadow .3s;
}
/* Pointer light and a slight lean on anything marked data-tilt. */
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
[data-tilt]::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -40%), color-mix(in srgb, var(--frost) 13%, transparent), transparent 60%); opacity: 0; transition: opacity .35s; pointer-events: none; }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -40%), color-mix(in srgb, var(--frost) 60%, transparent), transparent 65%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
[data-tilt].lit::before, [data-tilt].lit::after { opacity: 1; }
.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 2px 0 0; color: var(--text-2); font-size: 13px; }
.surface-title { margin-bottom: 14px; font-size: 15px; font-weight: 600; }
.divider { height: 1px; margin: 18px 0; background: var(--edge); }
.metric { min-height: 120px; }
.metric-label { color: var(--text-2); font-size: 13px; font-weight: 500; }
.metric-num { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.metric .metric-num { margin: 10px 0 4px; font-size: 28px; line-height: 1.05; letter-spacing: -.03em; }
.metric-foot { color: var(--text-3); font-size: 12.5px; }
.money { font: 600 30px var(--display); }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: var(--text-2); font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.tile-foot { margin-top: 8px; color: var(--text-3); font-size: 12px; }

/* ---------- bento ---------- */

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(120px, auto); gap: 16px; }
.bento .hero { grid-column: span 6; grid-row: span 2; display: flex; flex-direction: column; }
.bento .pay-tile, .bento .mc-tile, .bento .results-tile, .bento .stat { grid-column: span 3; }
.bento .feed { grid-column: span 7; }
.bento .timeline { grid-column: span 5; }
.hero-num { font-size: clamp(38px, 4.4vw, 58px); letter-spacing: -.04em; line-height: 1; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 30px color-mix(in srgb, var(--royal) 35%, transparent)); }
.hero-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 auto; color: var(--text-2); font-size: 13.5px; }
.hero-sub b { color: var(--text); font-size: 17px; }
.day-chart { width: 100%; height: 120px; margin-top: 18px; overflow: visible; }
.day-chart .bar { fill: url(#barg); transform-box: fill-box; transform-origin: bottom; animation: barUp .9s var(--spring) both; animation-delay: calc(var(--i) * 18ms); transition: fill .2s; }
.day-chart .bar:hover { fill: var(--frost); }
.day-chart .bar.now { fill: var(--pink); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--pink) 80%, transparent)); }

/* Payouts: a reactor core. Orbits spin while money flows; red and still when paused. */

/* Ring gauges. */
.donut .d-track { fill: none; stroke: rgba(255, 255, 255, .08); }
.donut .d-fill { fill: none; stroke: var(--frost); stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--frost) 60%, transparent)); animation: donutIn 1.2s var(--ease) both; }
.donut .d-shine { fill: none; stroke: rgba(255, 255, 255, .45); stroke-linecap: round; opacity: .35; }
.donut.warn .d-fill { stroke: var(--amber); filter: drop-shadow(0 0 6px rgba(255, 181, 71, .6)); }
.donut { overflow: visible; }
.donut.big { width: 116px; height: 116px; }
.ring-wrap { position: relative; display: grid; place-items: center; margin: 6px 0; }
.ring-wrap.small .donut.big { width: 96px; height: 96px; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 3px; text-align: center; }
.ring-label b { font: 500 26px var(--display); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ring-wrap.small .ring-label b { font-size: 15px; }
.ring-label b { font-size: 22px !important; }
.ring-wrap.small .ring-label b { font-size: 15px !important; }
.fund-split .ring-label b { font-size: 17px !important; }
.ring-label small { color: var(--text-2); font-size: 11px; line-height: 1; letter-spacing: .02em; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat small { color: var(--text-2); font-size: 12.5px; }
.stat .ring-wrap { align-self: flex-start; }
.stat-num { font-size: 40px; line-height: 1; letter-spacing: -.04em; }
button.tile { border: 0; color: inherit; font: inherit; text-align: left; }
.review.hot { box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .45), 0 0 40px -12px rgba(255, 181, 71, .55); }
.review.hot .stat-num { color: var(--amber); }

/* Live feed. */
.feed-list { display: grid; gap: 4px; margin: 0 -8px; }
.feed-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto 64px; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 16px; background: transparent; color: inherit; text-align: left; transition: background .2s, transform .35s var(--spring); animation: rise .5s var(--ease) both; }
.feed-row:nth-child(2) { animation-delay: .04s; } .feed-row:nth-child(3) { animation-delay: .08s; } .feed-row:nth-child(4) { animation-delay: .12s; } .feed-row:nth-child(n+5) { animation-delay: .16s; }
.feed-row:hover { background: var(--glass-2); }
.feed-row:active { transform: scale(.99); }
.feed-main { min-width: 0; }
.feed-main strong { display: block; overflow: hidden; font-size: 14.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.feed-main small, .feed-pay small { display: flex; align-items: center; gap: 5px; color: var(--text-2); font-size: 12px; }
.feed-pay { display: grid; justify-items: end; }
.feed-pay b { font: 500 14px var(--display); font-variant-numeric: tabular-nums; }
.feed-row time { color: var(--text-3); font-size: 12px; text-align: right; }

/* Timeline. */
.tl { position: relative; display: grid; gap: 4px; padding-left: 4px; }
.tl::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 8px; width: 2px; border-radius: 2px; background: linear-gradient(var(--frost), color-mix(in srgb, var(--frost) 0%, transparent)); opacity: .35; }
.tl-item { position: relative; display: flex; gap: 14px; padding: 8px 0; }
.tl-item > i { position: relative; z-index: 1; width: 10px; height: 10px; margin-top: 5px; flex: none; border-radius: 50%; background: var(--frost); box-shadow: 0 0 0 3px #0b0f1a, 0 0 12px color-mix(in srgb, var(--frost) 80%, transparent); }
.tl-item.err > i { background: var(--red); box-shadow: 0 0 0 3px #0b0f1a, 0 0 12px rgba(255, 90, 106, .8); }
.tl-item > div { min-width: 0; }
.tl-item .title { font-size: 13.5px; overflow-wrap: anywhere; }
.tl-item .meta { margin-top: 2px; color: var(--text-3); font-size: 12px; }

.alert-bar { display: flex; width: 100%; align-items: center; gap: 14px; margin-bottom: 18px; padding: 14px 18px; border: 0; border-radius: 20px; background: linear-gradient(90deg, rgba(255, 181, 71, .16), rgba(255, 181, 71, .06)); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .3); color: #ffd79a; text-align: left; transition: transform .35s var(--spring), background .2s; }
.alert-bar:hover { background: linear-gradient(90deg, rgba(255, 181, 71, .22), rgba(255, 181, 71, .08)); }
.alert-bar svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.alert-bar span { flex: 1; }
.alert-bar b { white-space: nowrap; }

/* ---------- heads, coins, previews ---------- */

.mc-head { display: inline-block; flex: none; border-radius: 8px; image-rendering: pixelated; vertical-align: middle; background: var(--glass-2); }
.mc-head.ph { display: inline-grid; place-items: center; color: var(--text-2); font: 600 13px var(--display); }
.who { display: inline-flex; align-items: center; gap: 9px; }
.coin { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.coin.big { width: 40px; height: 40px; }
.coin.txt { display: inline-grid; place-items: center; width: auto; height: 16px; padding: 0 5px; border-radius: 6px; background: var(--glass-2); font: 700 9.5px var(--font); }
.coin-line { display: flex; align-items: center; gap: 5px; }
.preview-card {
  position: fixed; z-index: 90; display: flex; gap: 14px; width: 270px; padding: 14px;
  border-radius: 22px; background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 0 0 1px var(--edge-2), var(--shadow); pointer-events: none;
  opacity: 0; transform: translateY(6px) scale(.95);
}
.preview-card.in { opacity: 1; transform: none; transition: opacity .2s, transform .45s var(--spring); }
.pv-skin { display: grid; width: 74px; place-items: center; border-radius: 16px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--frost) 25%, transparent), transparent 70%); }
.pv-skin img { height: 120px; image-rendering: pixelated; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .6)); }
.pv-body { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.pv-body strong { font: 600 17px var(--display); overflow-wrap: anywhere; }
.pv-body small { color: var(--text-2); font-size: 12px; }
.pv-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 13px; }
.pv-row span { color: var(--text-2); }
.pv-tx { display: flex; gap: 12px; align-items: center; }

/* ---------- buttons, pills, notices ---------- */

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; overflow: hidden; border: 0; border-radius: 999px; background: var(--glass-2); color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--edge); transition: background .2s, transform .35s var(--spring), box-shadow .3s, translate .4s var(--ease); }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover:not(:disabled) { background: var(--glass-3); }
.btn:active:not(:disabled) { transform: scale(.95); }
.btn.primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--royal) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .5) 48%, transparent 66%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn.primary:hover:not(:disabled) { background: var(--brand); box-shadow: 0 14px 38px -10px color-mix(in srgb, var(--royal) 90%, transparent), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.primary:hover:not(:disabled)::after { transform: translateX(120%); }
.btn.danger { background: rgba(255, 90, 106, .14); color: var(--red); box-shadow: inset 0 0 0 1px rgba(255, 90, 106, .3); }
.btn.danger:hover:not(:disabled) { background: rgba(255, 90, 106, .22); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--frost); }
.btn.small { min-height: 32px; padding: 0 13px; font-size: 13px; }
.btn.full { width: 100%; min-height: 48px; font-size: 15px; }
.link-btn { padding: 4px 2px; border: 0; background: none; color: var(--frost); font-size: 13.5px; font-weight: 600; transition: opacity .2s; }
.link-btn:hover { opacity: .75; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--glass-2); color: var(--text-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.green { background: rgba(62, 224, 143, .13); color: var(--green); }
.pill.red { background: rgba(255, 90, 106, .14); color: var(--red); }
.pill.amber { background: rgba(255, 181, 71, .14); color: var(--amber); }
.pill.blue { background: color-mix(in srgb, var(--frost) 13%, transparent); color: var(--frost); }
.pill .dot { width: 6px; height: 6px; animation: none; }
.callout { padding: 13px 16px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); font-size: 14px; }
.callout.warn { background: rgba(255, 181, 71, .1); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .28); color: #ffd79a; }
.callout.bad { background: rgba(255, 90, 106, .1); box-shadow: inset 0 0 0 1px rgba(255, 90, 106, .3); color: #ffa3ad; }
.callout + .callout { margin-top: 10px; }
.health-alert { margin-bottom: 16px; }
.review-strip { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 14px 18px; border: 0; border-radius: 20px; background: rgba(255, 181, 71, .12); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .3); color: #ffd79a; text-align: left; }
.review-strip span { display: grid; }
.review-strip small { color: rgba(255, 215, 154, .7); font-weight: 400; }

/* ---------- tables ---------- */

.table-wrap { overflow: auto; border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); box-shadow: inset 0 0 0 1px var(--edge); }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th { position: sticky; top: 0; z-index: 1; padding: 13px 16px; background: rgba(12, 16, 28, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--text-3); font-size: 12px; font-weight: 600; text-align: left; letter-spacing: .02em; border-bottom: 1px solid var(--edge); }
td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 14px; vertical-align: middle; font-variant-numeric: tabular-nums; }
td.num { font-family: var(--display); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: color-mix(in srgb, var(--frost) 5%, transparent); }
.click-row { cursor: pointer; }
.table-primary { font-weight: 600; }
.table-secondary { margin-top: 2px; color: var(--text-2); font-size: 12px; }
.table-card { display: flex; flex-direction: column; }
.table-card .table-wrap { flex: 1; margin: 0 -22px -20px; border-radius: 0 0 var(--r-lg) var(--r-lg); background: transparent; box-shadow: none; border-top: 1px solid var(--edge); }

/* ---------- fields ---------- */

.toolbar { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.toolbar .search { flex: 1; min-width: 220px; padding-left: 40px; background: var(--glass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa6bf' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") 14px 50% / 17px no-repeat; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.field label { color: var(--text-2); font-size: 13px; font-weight: 500; }
.field small { color: var(--text-3); font-size: 12px; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 15px; border: 0; border-radius: 14px; outline: none; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); color: var(--text); font-size: 14.5px; transition: background .2s, box-shadow .25s; }
input:hover, select:hover, textarea:hover { background: var(--glass-2); }
input:focus, select:focus, textarea:focus { background: var(--glass-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frost) 60%, transparent), 0 0 0 4px color-mix(in srgb, var(--frost) 12%, transparent); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input[type=checkbox] { width: auto; min-height: 0; box-shadow: none; accent-color: var(--frost); }
textarea { min-height: 90px; resize: vertical; }
input[type=number] { appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { margin: 0; appearance: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .custom-select-button:focus-visible { outline: none; }
.field-invalid, .field-invalid:focus { box-shadow: inset 0 0 0 1px var(--red), 0 0 0 4px rgba(255, 90, 106, .15) !important; animation: fieldShake .32s ease; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.form-row .field { min-width: 150px; flex: 1; }
.cols-3-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-5-form { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.inline-note { margin-top: 8px; color: var(--text-2); font-size: 13px; }
.tabs { display: flex; width: max-content; max-width: 100%; gap: 2px; padding: 4px; overflow: auto; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); }
.tab { padding: 7px 16px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font-size: 13.5px; font-weight: 550; white-space: nowrap; transition: background .25s, color .25s; }
.tab:hover { color: var(--text); }
.tab.active { background: linear-gradient(135deg, color-mix(in srgb, var(--frost) 22%, transparent), color-mix(in srgb, var(--royal) 22%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frost) 35%, transparent); color: #fff; }
.tab .dot { display: inline-block; vertical-align: middle; }
.kv { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 2fr); font-size: 14px; }
.kv dt, .kv dd { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; text-align: right; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.address { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.address code { padding: 8px 12px; border-radius: 12px; background: var(--glass); font-family: var(--mono); word-break: break-all; }

/* Dropdowns. */
.native-select { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden; opacity: 0; pointer-events: none; }
.custom-select { position: relative; min-width: 150px; }
.custom-select.open { z-index: 80; }
.field > .custom-select { width: 100%; }
.custom-select-button { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 14px; padding: 0 15px; border: 0; border-radius: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); color: var(--text); font-size: 14.5px; text-align: left; transition: background .2s, box-shadow .2s; }
.custom-select-button:hover, .custom-select.open .custom-select-button { background: var(--glass-2); }
.custom-select.open .custom-select-button { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frost) 60%, transparent), 0 0 0 4px color-mix(in srgb, var(--frost) 12%, transparent); }
.custom-select-button i { width: 7px; height: 7px; flex: none; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: translateY(-2px) rotate(45deg); transition: transform .35s var(--spring); }
.custom-select.open .custom-select-button i { transform: translateY(2px) rotate(225deg); }
.custom-select-menu { position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 70; display: grid; max-height: 300px; padding: 6px; overflow: auto; visibility: hidden; border-radius: 18px; background: rgb(17, 20, 31); box-shadow: inset 0 0 0 1px var(--edge-2), 0 24px 60px -12px rgba(0, 0, 0, .95); opacity: 0; transform: translateY(-6px) scale(.96); transform-origin: top; transition: opacity .18s, transform .4s var(--spring), visibility .18s; }
.custom-select.open .custom-select-menu { visibility: visible; opacity: 1; transform: none; }
.custom-select-option { position: relative; padding: 10px 12px 10px 32px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font-size: 14px; text-align: left; transition: background .12s; }
.custom-select-option:hover, .custom-select-option:focus { outline: 0; background: color-mix(in srgb, var(--frost) 12%, transparent); }
.custom-select-option.selected { font-weight: 600; }
.custom-select-option.selected::before { position: absolute; left: 11px; top: 50%; color: var(--frost); content: "✓"; font-weight: 700; transform: translateY(-50%); }
.content > *:has(.custom-select.open), .card:has(.custom-select.open), .tile:has(.custom-select.open), .acct-card:has(.custom-select.open) { z-index: 60; }
.button-ripple { position: absolute; z-index: 5; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); pointer-events: none; transform: translate(-50%, -50%) scale(0); animation: ripple .55s ease-out forwards; }

/* ---------- palette ---------- */

.palette { position: fixed; inset: 0; z-index: 85; display: flex; justify-content: center; align-items: flex-start; padding: 16vh 16px 20px; background: rgba(2, 4, 10, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade .2s ease; }
.palette-box { width: min(620px, 100%); overflow: hidden; border-radius: 26px; background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: inset 0 0 0 1px var(--edge-2), 0 40px 120px -20px rgba(0, 0, 0, .9), 0 0 80px -30px color-mix(in srgb, var(--frost) 40%, transparent); animation: pop .45s var(--spring); }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--edge); }
.palette-input svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--frost); stroke-width: 2; stroke-linecap: round; }
.palette-input input { min-height: 62px; padding: 0; border-radius: 0; background: transparent !important; box-shadow: none !important; font-size: 17px; }
.palette-list { display: grid; max-height: 50vh; padding: 8px; overflow: auto; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 14px; background: transparent; color: var(--text); text-align: left; }
.pal-item.sel, .pal-item:hover { background: linear-gradient(135deg, color-mix(in srgb, var(--frost) 16%, transparent), color-mix(in srgb, var(--royal) 14%, transparent)); }
.pal-ic { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 10px; background: var(--glass-2); color: var(--frost); }
.pal-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pal-label { flex: 1; font-size: 14.5px; font-weight: 500; }
.pal-hint { color: var(--text-3); font-size: 12px; }
.pal-item.danger .pal-ic { color: var(--red); }

/* ---------- sheets + banners ---------- */

.modal-backdrop { position: fixed; inset: 0; z-index: 70; display: grid; padding: 20px; place-items: center; background: rgba(2, 4, 10, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade .2s ease; }
.modal { position: relative; width: min(660px, 100%); max-height: min(88vh, 920px); padding: 24px; overflow: auto; border-radius: var(--r-xl); background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: inset 0 0 0 1px var(--edge-2), var(--shadow); animation: pop .5s var(--spring); }
.modal.wide { width: min(920px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.modal-head h2 { margin: 0; font-size: 22px; }
.modal .card { background: rgba(255, 255, 255, .035); }
.close { display: grid; width: 34px; height: 34px; flex: none; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--glass-2); color: var(--text-2); font-size: 20px; line-height: 1; transition: background .2s, transform .35s var(--spring); }
.close:hover { background: var(--glass-3); color: var(--text); transform: rotate(90deg); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.toasts { position: fixed; top: 84px; left: 50%; z-index: 95; display: grid; justify-items: center; width: min(460px, calc(100vw - 28px)); gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border-radius: 999px; background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: inset 0 0 0 1px var(--edge-2), 0 20px 50px -14px rgba(0, 0, 0, .9); font-size: 14px; font-weight: 500; pointer-events: auto; animation: dropIn .55s var(--spring); }
.toast > i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.toast.error > i { background: var(--red); box-shadow: 0 0 10px var(--red); }
.toast.leaving { animation: dropOut .4s var(--ease) forwards; }
.spark { position: fixed; z-index: 99; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px var(--frost), 0 0 2px #fff; pointer-events: none; }

/* ---------- sign-in ---------- */

.auth-page { position: relative; display: grid; min-height: 100vh; place-items: center; padding: 30px 18px; }
.auth-art { display: none; }
.auth-form-wrap { display: grid; width: 100%; place-items: center; }
.auth-box { width: min(410px, 100%); padding: 32px 28px 26px; border-radius: 34px; background: rgba(14, 18, 30, .68); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: inset 0 0 0 1px var(--edge-2), inset 0 1px 0 rgba(255, 255, 255, .08), var(--shadow); animation: pop .8s var(--spring) both; }
.auth-logo { position: relative; display: grid; width: 86px; height: 86px; margin: 0 auto 16px; place-items: center; }
.auth-logo img { width: 70px; height: 70px; border-radius: 50%; position: relative; z-index: 1; }
.auth-logo .island-spin { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px)); }
.auth-box h2 { margin: 0 0 4px; font-size: 30px; text-align: center; }
.auth-box > p { margin: 0 0 22px; color: var(--text-2); text-align: center; }
.auth-box form { display: grid; gap: 14px; }
.auth-footer { margin-top: 20px; color: var(--text-3); font-size: 12.5px; text-align: center; }
.login-error { min-height: 18px; color: var(--red); font-size: 13px; }

/* ---------- pages ---------- */

.settings-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-link { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; color: var(--text); text-align: left; }
.settings-link span { display: grid; }
.settings-link small { margin-top: 3px; color: var(--text-2); }
.settings-link b { color: var(--frost); font-size: 20px; transition: transform .35s var(--spring); }
.settings-link:hover b { transform: translateX(4px); }
.timeline { margin: 5px 0 5px 7px; padding-left: 20px; border-left: 2px solid var(--edge); }
.timeline-item { position: relative; padding: 0 0 18px; }
.timeline-item::before { position: absolute; top: 6px; left: -26px; width: 10px; height: 10px; border-radius: 50%; background: var(--frost); content: ""; }

/* Funds: the wallet card. */
.fund-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.wallet-card { position: relative; isolation: isolate; display: flex; min-height: 230px; flex-direction: column; padding: 24px 26px; overflow: hidden; border-radius: 28px; background: radial-gradient(120% 140% at 0% 0%, #3a7bff 0%, #1d3fb4 42%, #0c1a52 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .3), 0 30px 70px -26px color-mix(in srgb, var(--royal) 70%, transparent); }
.wallet-card::before { opacity: 1 !important; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%) !important; animation: sheen 6s ease-in-out infinite; }
.wc-top { display: flex; align-items: center; gap: 12px; }
.wc-top strong { display: block; font: 600 17px var(--display); }
.wc-top small { color: rgba(255, 255, 255, .7); font-size: 12.5px; }
.wc-balance { margin: auto 0 4px; }
.wc-balance .metric-num { display: block; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.04em; line-height: 1.02; text-shadow: 0 6px 30px rgba(0, 0, 0, .3); }
.wc-balance small { color: rgba(255, 255, 255, .78); font-size: 13.5px; }
.wc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: rgba(255, 255, 255, .7); font-size: 13px; }
.wc-chip { width: 26px; height: 26px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8.5 6.5a8 8 0 0 1 0 11M12 4a12 12 0 0 1 0 16M5 9a4 4 0 0 1 0 6'/%3E%3C/svg%3E"); }
.fund-split { display: flex; flex-direction: column; }
.split-rows { display: grid; gap: 8px; margin-top: auto; }
.split-rows > div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.split-rows span { flex: 1; color: var(--text-2); }
.split-rows b { font: 600 15px var(--display); }
.k { width: 10px; height: 10px; border-radius: 3px; }
.k.free { background: var(--frost); box-shadow: 0 0 8px var(--frost); }
.k.held { background: rgba(255, 255, 255, .15); }
.deposit-strip { display: flex; align-items: center; gap: 18px; }
.deposit-strip > div { flex: none; }
.deposit-strip h2 { margin: 0; }
.deposit-strip code { flex: 1; min-width: 0; padding: 12px 15px; overflow-wrap: anywhere; border-radius: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); font-family: var(--mono); font-size: 14px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.amount-input { display: flex; align-items: center; overflow: hidden; border-radius: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); transition: background .2s, box-shadow .25s; }
.amount-input:focus-within { background: var(--glass-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frost) 60%, transparent), 0 0 0 4px color-mix(in srgb, var(--frost) 12%, transparent); }
.amount-input input, .amount-input input:focus, .amount-input input:focus-visible { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; }
.amount-input span { padding: 0 14px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.amount-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 14px; }
.amount-foot small { color: var(--text-2); }
.presets { display: flex; gap: 6px; }
.chip { padding: 6px 13px; border: 0; border-radius: 999px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--edge); color: var(--text); font-size: 13px; font-weight: 500; transition: background .2s, transform .35s var(--spring); }
.chip:hover { background: var(--glass-3); }
.chip:active { transform: scale(.94); }
.chip.ghost { background: transparent; box-shadow: none; color: var(--frost); }
#withdraw-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; align-items: start; }
#withdraw-form > .form-grid { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#withdraw-form > .btn { grid-column: 1 / -1; }
#withdraw-form .field { margin: 0; }
.saved-addrs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.saved-addr { display: inline-flex; align-items: center; }
.saved-addr .chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px 0 0 999px; font-family: var(--mono); font-size: 12px; }
.saved-addr .chip svg { width: 12px; height: 12px; fill: var(--yellow); stroke: none; }
.saved-x { padding: 6px 10px 6px 8px; border: 0; border-radius: 0 999px 999px 0; background: var(--glass-2); color: var(--text-2); font-size: 13px; }
.saved-x:hover { background: rgba(255, 90, 106, .2); color: var(--red); }

/* Minecraft: skin cards. */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.acct-card { position: relative; isolation: isolate; display: flex; align-items: flex-start; gap: 16px; padding: 16px; border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px var(--edge), 0 20px 50px -30px rgba(0, 0, 0, .9); }
.acct-skin { position: relative; display: grid; width: 96px; height: 176px; flex: none; place-items: center; overflow: hidden; border-radius: 18px; background: rgba(255, 255, 255, .03); }
.acct-skin img { position: relative; z-index: 1; height: 150px; image-rendering: pixelated; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .7)); transition: transform .5s var(--spring); }
.acct-card:hover .acct-skin img { transform: scale(1.06) translateY(-3px); }
.acct-glow { position: absolute; inset: 20% 10% 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 181, 71, .35), transparent 70%); filter: blur(6px); }
.acct-card.online .acct-glow { background: radial-gradient(circle, rgba(62, 224, 143, .45), transparent 70%); animation: breathe 3s ease-in-out infinite; }
.acct-card.stopped .acct-glow { background: radial-gradient(circle, rgba(255, 255, 255, .1), transparent 70%); }
.acct-card.stopped .acct-skin img { filter: grayscale(.8) drop-shadow(0 10px 14px rgba(0, 0, 0, .7)); opacity: .7; }
.acct-body { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 8px; }
.account-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account-line strong { font: 500 16px var(--display); }
.acct-bal .metric-num { font-size: 20px; letter-spacing: -.03em; }
.acct-bal small { margin-left: 6px; color: var(--text-2); font-size: 12.5px; }
.acct-bar { height: 6px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.acct-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); box-shadow: 0 0 10px color-mix(in srgb, var(--frost) 60%, transparent); transition: width .9s var(--ease); }
.account-meta { color: var(--text-2); font-size: 12.5px; }
.account-proxy { width: 100%; }
.account-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.account-list { display: grid; gap: 12px; }
.head { width: 52px; height: 52px; flex: none; border-radius: 14px; image-rendering: pixelated; }
.proxy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.proxy-row:first-child { border-top: 0; }
.proxy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.proxy-tile { display: flex; flex-direction: column; gap: 14px; }
.proxy-top { display: flex; align-items: center; gap: 12px; }
.proxy-icon { display: grid; width: 44px; height: 44px; flex: none; place-items: center; border-radius: 14px; background: var(--brand); color: #04111f; font-size: 18px; font-weight: 700; }
.proxy-icon.big { width: 60px; height: 60px; border-radius: 18px; font-size: 26px; }
button.proxy-icon { padding: 0; overflow: hidden; border: 0; transition: transform .35s var(--spring); }
button.proxy-icon:hover { transform: scale(1.07) rotate(-4deg); }
.proxy-icon.has-logo { background: #fff; }
.proxy-icon img { width: 100%; height: 100%; object-fit: contain; }
.proxy-name { flex: 1; min-width: 0; }
.proxy-name strong { display: block; font: 600 17px var(--display); }
.proxy-name span { display: block; overflow: hidden; color: var(--text-2); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.proxy-loc { color: var(--text-3) !important; font-size: 12px !important; }
.proxy-users { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; align-items: center; }
.user-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 3px; border-radius: 999px; background: var(--glass-2); font-size: 13px; }
.user-chip img { width: 22px; height: 22px; border-radius: 50%; image-rendering: pixelated; }
.proxy-actions { display: flex; gap: 8px; margin-top: auto; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 20px; text-align: center; }
.empty-state p { margin: 0 0 6px; color: var(--text-2); }

/* Live chat: story-style account picker. */
.chat-accounts { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.chat-acct.story { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: var(--text-2); font-size: 12.5px; font-weight: 550; transition: transform .35s var(--spring), color .2s; }
.chat-acct.story:hover { transform: translateY(-3px); color: var(--text); }
.story-ring { display: grid; width: 70px; height: 70px; place-items: center; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.chat-acct.on .story-ring { background: conic-gradient(var(--green), var(--frost), var(--green)); }
.chat-acct.active .story-ring { background: conic-gradient(var(--frost), var(--royal), #fff, var(--frost)); animation: spin 4s linear infinite; }
.story-ring img { width: 100%; height: 100%; padding: 6px; border-radius: 50%; background: #0b0f1a; image-rendering: pixelated; }
.chat-acct.active .story-ring img { animation: spin 4s linear infinite reverse; }
.chat-acct.active { color: #fff; }
.chat-card { padding: 0; overflow: hidden; }
.chat-log { height: min(60vh, 640px); overflow-y: auto; padding: 16px 20px; font: 14px/1.6 var(--font); }
.chat-line { display: flex; align-items: baseline; gap: 12px; padding: 4px 0; word-break: break-word; animation: rise .35s var(--ease) both; }
.chat-line time { flex: none; min-width: 70px; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.chat-line span { flex: 1; min-width: 0; }
.chat-line.whisper span { color: #d9a2ff; }
.chat-line.system span { color: var(--text-2); }
.chat-line.paid span { color: var(--green); font-weight: 600; }
.chat-line .pill { flex: none; }
.chat-send { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--edge); }
.chat-send input { flex: 1; min-width: 0; border-radius: 999px; padding-left: 18px; }
.chat-send .btn { min-height: 44px; }

/* The old app aura stays off; the pointer comes from fx.js. */
.cursor-glow { display: none !important; }
body::before { content: none; }
.btn:focus-visible, .nav:focus-visible, .tab:focus-visible, .chip:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--frost) 50%, transparent); }
html .fx-mute { left: auto; right: 16px; bottom: 16px; }

/* ---------- motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes islandIn { from { opacity: 0; transform: translateY(-30px) scale(.9); } }
@keyframes navPop { from { transform: scale(.6); } to { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .55; transform: scale(.94); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(62, 224, 143, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(62, 224, 143, 0); } }
@keyframes pingRed { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 106, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(255, 90, 106, 0); } }
@keyframes pingAmber { 0% { box-shadow: 0 0 0 0 rgba(255, 181, 71, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(255, 181, 71, 0); } }
@keyframes barUp { from { transform: scaleY(0); } }
@keyframes donutIn { from { stroke-dasharray: 0 999; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.95); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-24px) scale(.85); } }
@keyframes dropOut { to { opacity: 0; transform: translateY(-14px) scale(.9); } }
@keyframes sheen { 0%, 100% { transform: translateX(-60%); } 50% { transform: translateX(60%); } }
@keyframes ripple { to { opacity: 0; transform: translate(-50%, -50%) scale(18); } }
@keyframes fieldShake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
/* Motion is part of the design; the OS reduced-motion switch is not honoured (owner request). */

/* ---------- responsive ---------- */

@media (max-width: 1240px) {
  .bento .hero { grid-column: span 12; grid-row: auto; }
  .bento .pay-tile, .bento .mc-tile, .bento .results-tile, .bento .stat { grid-column: span 6; }
  .bento .feed, .bento .timeline { grid-column: span 12; }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-5-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .nav-text { display: none; }
  .fund-grid { grid-template-columns: 1fr; }
  .cols-4-form, .cols-3-form { grid-template-columns: 1fr; }
  #withdraw-form, #withdraw-form > .form-grid { grid-template-columns: 1fr; }
  .deposit-strip { flex-direction: column; align-items: stretch; }
}
@media (max-width: 760px) {
  /* Tabs drop into a floating dock at the bottom; the island keeps brand, search, status, you. */
  /* No blur or animation on the island here: either would make it the containing block and pull the fixed dock up into it. */
  .island { height: 52px; gap: 4px; -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(14, 18, 30, .94); animation: none; }
  .island-tabs { position: fixed; left: 12px; right: 12px; bottom: 12px; justify-content: space-around; height: 62px; padding: 0 6px; border-radius: 999px; background: rgba(14, 18, 30, .82); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: inset 0 0 0 1px var(--edge), 0 20px 50px -18px rgba(0, 0, 0, .9); }
  .island-tabs .island-glow { top: 8px; bottom: 8px; }
  .nav { padding: 0 9px; height: 46px; }
  .island-search { margin-left: auto; }
  .content { padding: 84px 14px 110px; }
  h1 { font-size: 32px; }
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: auto !important; grid-row: auto !important; }
  .grid.cols-3, .grid.cols-2, .form-grid, .settings-links { grid-template-columns: 1fr; }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric .metric-num { font-size: 22px; }
  .page-heading { flex-direction: column; align-items: flex-start; }
  .feed-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .feed-row .pill, .feed-row time { display: none; }
  .acct-grid { grid-template-columns: 1fr; }
  .modal-backdrop { place-items: end center; padding: 0; }
  .modal { width: 100%; max-height: 92vh; border-radius: 28px 28px 0 0; }
  .toasts { top: 74px; }
  html .fx-mute { bottom: 86px; right: 14px; }
  .control { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 86vh; transform: translateY(calc(100% + 30px)); }
}

/* ---------- overview tiles: payout bot, Minecraft, results ---------- */
.tile-head .run-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(52, 211, 153, .12); color: var(--green); font-size: 12px; font-weight: 600; }
.run-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: livePing 1.8s ease-out infinite; }
.pay-tile.paused .run-chip { background: rgba(255, 90, 106, .12); color: var(--red); }
.pay-tile.paused .run-chip i { animation: none; }
.pay-big { display: grid; gap: 2px; margin-top: 4px; }
.pay-big b { font: 500 34px/1 var(--display); letter-spacing: -.03em; background: linear-gradient(180deg, #fff, var(--frost)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay-big small { color: var(--text-2); font-size: 12.5px; }
.pay-strip { margin: 14px 0 10px; }
.pay-strip svg { display: block; width: 100%; height: 46px; overflow: visible; }
.pay-strip rect.ghost { fill: rgba(255, 255, 255, .06); filter: none; animation: none; }
.pay-strip rect.mid { fill: var(--amber); filter: drop-shadow(0 0 3px rgba(255, 181, 71, .6)); }
.pay-strip rect.slow { fill: var(--red); filter: drop-shadow(0 0 3px rgba(255, 90, 106, .6)); }
.pay-strip rect:last-of-type:not(.ghost) { fill: #fff; filter: drop-shadow(0 0 6px var(--frost)); }
.pay-strip rect:hover { opacity: .75; }
.pay-strip rect { fill: var(--frost); filter: drop-shadow(0 0 3px color-mix(in srgb, var(--frost) 70%, transparent)); transform-box: fill-box; transform-origin: bottom; animation: tickIn .6s var(--spring) both; animation-delay: calc(var(--i) * 18ms); }
.pay-tile.paused .pay-strip rect:not(.ghost) { fill: var(--text-3); filter: none; }
.pay-axis { display: flex; justify-content: space-between; margin-top: 4px; color: var(--text-3); font-size: 10.5px; letter-spacing: .02em; }
.pay-last { display: flex; align-items: center; gap: 8px; min-height: 24px; color: var(--text-2); font-size: 12.5px; line-height: 1.35; }
.pay-last .mc-head { flex: none; border-radius: 6px; }
.pay-last b { color: var(--text); font-weight: 600; }
.pay-tile .tile-foot, .results-tile .res-legend { margin-top: auto; }
.pay-tile .tile-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }

.mc-count { color: var(--text-2); font-size: 12px; }
.mc-count b { color: var(--green); font: 500 15px var(--display); }
.mc-count.warn b { color: var(--amber); }
.mc-list { display: grid; gap: 6px; margin-top: 6px; }
.mc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .035); color: var(--text); text-align: left; transition: background .25s, transform .35s var(--spring); }
.mc-row:hover { background: rgba(255, 255, 255, .07); transform: translateX(3px); }
.mc-row .mc-head { border-radius: 8px; }
.mc-name { display: grid; min-width: 0; }
.mc-name strong { overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.mc-name small { color: var(--text-3); font-size: 11.5px; }
.mc-state { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.mc-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mc-row.on .mc-state { color: var(--green); }
.mc-row.on .mc-state i { animation: livePing 1.8s ease-out infinite; }
.mc-row.warn .mc-state { color: var(--amber); }
.mc-more { justify-self: start; margin: 2px 0 0 4px; font-size: 12px; }

.res-rate { color: var(--text-2); font-size: 12px; }
.res-rate b { color: var(--green); font: 500 15px var(--display); }
.res-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; margin: 10px 0 12px; }
.res-cell { aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; background: var(--text-3); opacity: .9; animation: cellIn .5s var(--spring) both; animation-delay: calc(var(--i) * 14ms); transition: transform .3s var(--spring), box-shadow .25s, opacity .2s; }
.res-cell.ok { background: linear-gradient(160deg, #5ef0b0, #1fb57a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.res-cell.muted { background: rgba(255, 255, 255, .12); }
.res-cell.info { background: var(--frost); }
.res-cell.warn { background: var(--amber); }
.res-cell.bad { background: var(--red); }
.res-cell:hover { transform: scale(1.35); z-index: 1; box-shadow: 0 0 0 2px #0b0f1a, 0 0 14px rgba(94, 240, 176, .6); }
.res-cell:last-child { box-shadow: 0 0 0 2px #0b0f1a, 0 0 0 3.5px rgba(255, 255, 255, .5); }
.res-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-2); font-size: 12px; }
.res-key { display: inline-flex; align-items: center; gap: 6px; }
.res-key i { width: 8px; height: 8px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.res-key.ok i { background: var(--green); }
.res-key.info i { background: var(--frost); }
.res-key.warn i { background: var(--amber); }
.res-key.bad i { background: var(--red); }
@keyframes tickIn { from { transform: scaleY(0); opacity: 0; } }
@keyframes cellIn { from { transform: scale(0); opacity: 0; } }
@keyframes livePing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- hover labels (the site's own, never the browser's) ---------- */
.tip { position: fixed; left: 0; top: 0; z-index: 2147483600; max-width: 280px; padding: 7px 11px; border-radius: 11px; background: rgba(16, 18, 28, .92); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: inset 0 0 0 1px var(--edge-2), 0 14px 34px -10px rgba(0, 0, 0, .85); color: var(--text); font-size: 12.5px; font-weight: 550; line-height: 1.35; white-space: pre-line; pointer-events: none; opacity: 0; }
.tip::after { content: ""; position: absolute; left: calc(var(--ax, 50%) - 5px); bottom: -4px; width: 10px; height: 10px; border-radius: 0 0 3px 0; background: inherit; box-shadow: inset -1px -1px 0 var(--edge-2); transform: rotate(45deg); }
.tip.below::after { top: -4px; bottom: auto; border-radius: 3px 0 0 0; box-shadow: inset 1px 1px 0 var(--edge-2); }
.tip.in { animation: tipIn .22s var(--spring) forwards; }
@keyframes tipIn { from { opacity: 0; translate: 0 4px; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* ---------- Settings → Discord look: Discord's own colours and type for the preview ---------- */
.discord-card { --blurple: #5865f2; background: linear-gradient(160deg, rgba(88, 101, 242, .14), transparent 45%), var(--glass); box-shadow: inset 0 0 0 1px rgba(88, 101, 242, .3), 0 30px 70px -40px rgba(88, 101, 242, .7); }
.dc-title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.dc-title h2 { margin: 0; }
.dc-title p { margin: 2px 0 0; }
.dc-mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--blurple); color: #fff; box-shadow: 0 10px 26px -8px rgba(88, 101, 242, .9); }
.dc-mark svg { width: 26px; height: 26px; }
.brand-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }

.dc { overflow: hidden; border-radius: 16px; background: #313338; color: #dbdee1; font: 15px/1.375 'Inter', 'gg sans', 'Noto Sans', sans-serif; letter-spacing: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 24px 60px -30px #000; }
.dc-top { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-bottom: 1px solid #1f2023; box-shadow: 0 1px 0 rgba(4, 4, 5, .2); color: #f2f3f5; font-size: 15px; }
.dc-hash { color: #80848e; font-size: 22px; font-weight: 400; line-height: 1; }
.dc-topic { overflow: hidden; margin-left: 6px; padding-left: 12px; border-left: 1px solid #3f4147; color: #949ba4; font-size: 13.5px; white-space: nowrap; text-overflow: ellipsis; }
.dc-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 16px 16px 20px; }
.dc-msg:hover { background: #2e3035; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.dc-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.dc-head strong { color: #f2f3f5; font-weight: 600; }
.dc-app { display: inline-flex; align-items: center; gap: 2px; height: 16px; padding: 0 5px 0 3px; border-radius: 4px; background: var(--blurple); color: #fff; font-size: 10.5px; font-weight: 700; }
.dc-app svg { width: 12px; height: 12px; }
.dc-head time { margin-left: 2px; color: #949ba4; font-size: 12px; }
.dc-card { max-width: 520px; padding: 16px; border-radius: 8px; border: 1px solid #3f4147; border-left: 4px solid #1267ff; background: #2b2d31; }
.dc-card.closed { border-left-color: #faa61a; }
.dc-banner { display: block; width: 100%; max-height: 210px; margin-bottom: 10px; border-radius: 8px; object-fit: cover; }
.dc-card h1 { margin: 6px 0 2px; color: #f2f3f5; font: 700 24px/1.25 inherit; font-family: inherit; letter-spacing: 0; }
.dc-card h2 { display: flex; align-items: center; gap: 6px; margin: 10px 0 2px; color: #f2f3f5; font: 700 20px/1.25 inherit; font-family: inherit; letter-spacing: 0; }
.dc-card p, .dc-card ol { margin: 2px 0; }
.dc-card ol { padding-left: 22px; }
.dc-card b { color: #f2f3f5; font-weight: 700; }
.dc-card code { padding: 1px 4px; border-radius: 4px; background: #1e1f22; color: #dbdee1; font: 13px var(--mono); }
.dc-card hr { margin: 12px 0; border: 0; border-top: 1px solid #3f4147; }
.dc-card svg { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; }
.dc-card h2 svg { width: 22px; height: 22px; }
.dc-sub { color: #949ba4; font-size: 12.5px; }
.dc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.dc-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 500; }
.dc-btn.green { background: #248046; }
.dc-btn.grey { background: #4e5058; }
.dc-btn.off { opacity: .5; }

.brand-ctls { display: grid; gap: 14px; }
.brand-ctl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border-radius: 20px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); transition: box-shadow .25s, background .25s, transform .35s var(--spring); }
.brand-ctl.over { background: rgba(88, 101, 242, .12); box-shadow: inset 0 0 0 2px var(--blurple); transform: scale(1.015); }
.brand-ctl.busy { opacity: .6; pointer-events: none; }
.brand-thumb { overflow: hidden; background: #1e1f22; box-shadow: 0 0 0 1px var(--edge-2); }
.brand-thumb.wide { width: 132px; height: 52px; border-radius: 10px; }
.brand-thumb.round { width: 64px; height: 64px; margin: 0 34px; border-radius: 50%; }
.brand-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: grid; gap: 4px; min-width: 0; }
.brand-name { display: flex; align-items: center; gap: 8px; }
.brand-text small { color: var(--text-2); font-size: 12.5px; line-height: 1.4; }
.brand-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.brand-acts svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1100px) { .brand-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .brand-ctl { grid-template-columns: 1fr; } .brand-thumb.round { margin: 0; } .dc-msg { gap: 10px; padding: 12px; } }

/* ---------- activity timeline ---------- */
.activity-card { padding: 8px 22px; }
.activity-item { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-soft); animation: rise .45s var(--ease) both; }
.activity-item:first-child { border-top: 0; }
.activity-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--frost) 14%, transparent); color: var(--frost); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frost) 25%, transparent); }
.activity-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.activity-item.warn .activity-icon { background: rgba(255, 181, 71, .14); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .28); }
.activity-item.error .activity-icon { background: rgba(255, 90, 106, .14); color: var(--red); box-shadow: inset 0 0 0 1px rgba(255, 90, 106, .3); }
.activity-item.pay .activity-icon { background: color-mix(in srgb, var(--green) 13%, transparent); color: var(--green); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 26%, transparent); }
.activity-item.staff .activity-icon { background: rgba(177, 140, 255, .14); color: var(--violet); box-shadow: inset 0 0 0 1px rgba(177, 140, 255, .28); }
.activity-item .title { color: var(--text); font-size: 14px; font-weight: 550; line-height: 1.45; overflow-wrap: anywhere; }
.activity-item .meta { margin-top: 3px; color: var(--text-3); font-size: 12.5px; overflow-wrap: anywhere; }

/* ---------- Settings → Holiday themes ---------- */
.hol-mark { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--frost) 70%, transparent); }
.hol-mark svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 12px; }
.hol { position: relative; display: grid; gap: 0; overflow: hidden; padding: 0; border: 0; border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); color: var(--text); text-align: left; transition: transform .4s var(--spring), box-shadow .25s; }
.hol:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--edge-2), 0 18px 40px -20px rgba(0, 0, 0, .9); }
.hol.on { box-shadow: inset 0 0 0 2px var(--frost), 0 0 34px -10px var(--frost); }
.hol-art { position: relative; display: block; aspect-ratio: 5 / 2; overflow: hidden; background: #0b0d14; }
.hol-art img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hol:hover .hol-art img:first-child { transform: scale(1.05); }
.hol-logo { position: absolute; left: 10px; bottom: -14px; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #0b0d14, 0 6px 16px rgba(0, 0, 0, .6); }
.hol-text { display: grid; gap: 1px; padding: 20px 14px 13px; }
.hol-text strong { font-size: 14px; font-weight: 650; }
.hol-text small { color: var(--text-3); font-size: 12px; }
.hol-text em { margin-top: 3px; color: var(--frost); font-size: 12px; font-style: normal; font-weight: 600; }
.hol-check { position: absolute; top: 10px; right: 10px; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--frost); color: var(--on-brand); box-shadow: 0 0 0 3px rgba(0, 0, 0, .35); animation: navPop .45s var(--spring); }
.hol-check svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.dc-emo { display: inline-block; width: 1.375em; height: 1.375em; vertical-align: -.3em; object-fit: contain; }
.dc-card h2 .dc-emo { width: 28px; height: 28px; }
.dc-btn .dc-emo { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }

/* ---------- AFK bots ---------- */
.afk-totals { margin-bottom: 18px; }
.afk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.afk-card { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-xl); background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); transition: box-shadow .3s; }
.afk-card.online { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 35%, transparent), 0 24px 60px -40px var(--green); }
.afk-card.signin { box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .45); }
.afk-card.error { box-shadow: inset 0 0 0 1px rgba(255, 90, 106, .45); }
.afk-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.afk-head .mc-head { border-radius: 14px; }
.afk-ph { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 14px; background: var(--glass-2); color: var(--text-3); }
.afk-ph svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.afk-name { display: grid; min-width: 0; }
.afk-name strong { overflow: hidden; font: 500 17px var(--display); text-overflow: ellipsis; white-space: nowrap; }
.afk-name small { color: var(--text-3); font-size: 12.5px; }
.afk-head .pill { display: inline-flex; align-items: center; gap: 6px; }
.afk-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.afk-card.online .afk-dot { animation: livePing 1.8s ease-out infinite; }
.afk-detail { margin: 0; color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }
.afk-signin { display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: rgba(255, 181, 71, .1); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .3); }
.afk-signin small { color: var(--text-2); }
.afk-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.afk-code b { font: 500 26px var(--display); letter-spacing: .12em; color: var(--amber); }
.afk-signin .btn.primary { justify-self: start; }
.afk-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.afk-bar { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; overflow: hidden; padding: 9px 11px 12px; border-radius: 14px; background: var(--glass-2); font-size: 11.5px; color: var(--text-3); }
.afk-bar b { color: var(--text); font: 500 15px var(--display); }
.afk-bar b small { color: var(--text-3); font: 400 11px var(--font); }
.afk-bar i { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--f) * 100%); border-radius: 0 3px 3px 0; background: var(--frost); transition: width .6s var(--ease); }
.afk-bar.hp i { background: var(--red); }
.afk-bar.food i { background: var(--amber); }
.afk-bar.inv i { background: var(--green); }
.afk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.afk-stats div { display: grid; }
.afk-stats b { font-size: 20px; line-height: 1.1; }
.afk-stats small { color: var(--text-3); font-size: 11.5px; }
.afk-last { margin: 0; color: var(--text-3); font-size: 12px; overflow-wrap: anywhere; }
.afk-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.afk-toggles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.afk-toggle { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--glass-2); cursor: pointer; }
.afk-toggle span { display: grid; }
.afk-toggle small { color: var(--text-3); font-size: 12px; }
.afk-chat { height: min(56vh, 460px); overflow-y: auto; padding: 12px 14px; border-radius: 16px; background: #05070c; font: 12.5px/1.55 var(--mono); }
.afk-line { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.afk-line time { color: var(--text-3); }
.afk-line span { overflow-wrap: anywhere; }
.afk-line.sys span { color: var(--frost); }
.afk-say { display: flex; gap: 10px; margin-top: 12px; }
.afk-say input { flex: 1; }
@media (max-width: 760px) { .afk-grid { grid-template-columns: 1fr; } .afk-toggles { grid-template-columns: 1fr; } }
.afk-toggle input[type=checkbox] { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 40px; height: 24px; margin: 0; border-radius: 99px; background: var(--glass-3); box-shadow: inset 0 0 0 1px var(--edge-2); transition: background .25s; }
.afk-toggle input[type=checkbox]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .35s var(--spring); }
.afk-toggle input[type=checkbox]:checked { background: var(--frost); }
.afk-toggle input[type=checkbox]:checked::before { transform: translateX(16px); }

.signin-code { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 4px; }
.signin-code .money { margin-right: 4px; user-select: all; }
.proxy-shared { display: block; margin-top: 6px; color: #ffb454; font-size: 12px; line-height: 1.35; }

/* Live balance changes on account cards */
.acct-bal { position: relative; }
.acct-card.bal-up .acct-bal .metric-num { animation: balUp 1.5s var(--ease); }
.acct-card.bal-down .acct-bal .metric-num { animation: balDown 1.5s var(--ease); }
.acct-card.bal-up .acct-bar i { box-shadow: 0 0 18px #3ddc84; }
@keyframes balUp { 0% { color: #3ddc84; text-shadow: 0 0 22px rgba(61, 220, 132, .75); transform: scale(1.06); } 60% { color: #3ddc84; } 100% { color: inherit; text-shadow: none; transform: none; } }
@keyframes balDown { 0% { color: #ff6b6b; text-shadow: 0 0 22px rgba(255, 107, 107, .7); transform: scale(.97); } 60% { color: #ff6b6b; } 100% { color: inherit; text-shadow: none; transform: none; } }
.acct-bal .metric-num { display: inline-block; transform-origin: left center; }
.bal-delta { position: absolute; right: 0; bottom: 100%; margin-bottom: 4px; white-space: nowrap; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; z-index: 2; animation: balChip 2.4s var(--ease) forwards; }
.bal-delta.up { color: #3ddc84; background: rgba(61, 220, 132, .14); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, .35); }
.bal-delta.down { color: #ff6b6b; background: rgba(255, 107, 107, .14); box-shadow: inset 0 0 0 1px rgba(255, 107, 107, .35); }
@keyframes balChip { 0% { opacity: 0; transform: translateY(8px) scale(.9); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; transform: translateY(-4px); } 100% { opacity: 0; transform: translateY(-10px); } }

/* AFK bots: stream tiles + the stage (watching a bot like a Discord stream) */
.st-heading h1 { margin-bottom: 10px; }
.st-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--edge); color: var(--text-2); font-size: 13px; font-weight: 500; }
.st-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.st-chip i.on { background: #ff3b3b; box-shadow: 0 0 10px #ff3b3b; animation: lvPulse 1.4s ease-in-out infinite; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 22px; }
.st-card { display: grid; gap: 12px; min-width: 0; }
.st-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 0; border-radius: 20px; background: radial-gradient(120% 120% at 50% 0%, #161b2b, #07090f); box-shadow: inset 0 0 0 1px var(--edge); color: #fff; text-align: left; cursor: pointer; transition: transform .35s var(--spring), box-shadow .3s; }
.st-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: stFade .6s ease both; }
@keyframes stFade { from { opacity: 0; } }
button.st-thumb:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--edge-2), 0 22px 50px -18px rgba(0, 0, 0, .9), 0 0 0 3px color-mix(in srgb, var(--frost) 55%, transparent); }
.st-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%, transparent 62%, rgba(0, 0, 0, .55)); pointer-events: none; }
.st-live { position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 7px; background: #e5263b; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.st-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: lvPulse 1.4s ease-in-out infinite; }
.st-live.big { position: static; font-size: 12px; padding: 5px 10px; }
.stage.down .st-live.big { background: rgba(255, 255, 255, .12); }
.st-watch { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(4, 6, 12, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); font-weight: 700; font-size: 15px; opacity: 0; transition: opacity .2s; }
.st-watch svg { width: 22px; height: 22px; padding: 9px; box-sizing: content-box; border-radius: 50%; background: #fff; color: #0b0d14; }
button.st-thumb:hover .st-watch, button.st-thumb:focus-visible .st-watch { opacity: 1; }
.st-hud { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; gap: 6px; }
.st-hud span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-thumb.off { display: grid; place-items: center; cursor: default; }
/* Live tile: the bot's skin standing where it is (the 3D view opens on Watch). */
.st-scene { background: linear-gradient(180deg, #16223a 0%, #0c1220 58%, #0e1712 58%, #070b08 100%); }
.st-scene::before { content: ""; position: absolute; left: -20%; right: -20%; bottom: 0; height: 42%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 34px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 18px); transform: perspective(240px) rotateX(48deg); transform-origin: bottom; pointer-events: none; }
.st-scene .st-body { left: 50%; right: auto; top: auto; bottom: 9%; width: auto; height: 76%; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .65)); image-rendering: pixelated; }
.st-where { position: absolute; top: 12px; right: 12px; z-index: 3; padding: 4px 9px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #dfe6ff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-where:empty { display: none; }
.st-thumb.off::after { display: none; }
.st-off { display: grid; justify-items: center; gap: 10px; max-width: 80%; text-align: center; }
.st-off p { margin: 0; color: var(--text-2); font-size: 13.5px; overflow-wrap: anywhere; }
.st-off .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; margin-right: 6px; vertical-align: -2px; }
.st-signin { display: grid; gap: 8px; padding: 18px; text-align: center; }
.st-signin small { color: var(--text-2); }
.st-signin .signin-code { justify-content: center; }
.st-meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0 4px; }
.st-meta .mc-head { border-radius: 50%; }
.st-meta div { display: grid; min-width: 0; }
.st-meta strong { overflow: hidden; font-size: 15.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.st-meta small { overflow: hidden; color: var(--text-3); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.st-more { display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s; }
.st-more:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.st-more svg { width: 18px; height: 18px; }
.st-pop { position: absolute; z-index: 90; display: grid; min-width: 200px; padding: 6px; border-radius: 16px; background: rgb(17, 20, 31); box-shadow: inset 0 0 0 1px var(--edge-2), 0 24px 60px -12px rgba(0, 0, 0, .95); animation: pop .3s var(--spring); }
.st-pop button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.st-pop button:hover { background: rgba(255, 255, 255, .07); }
.st-pop button.bad { color: var(--red); }
.st-pop svg, .stage-dock svg, .stage-x svg, .stage-say svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-pop hr { width: 100%; height: 1px; margin: 4px 0; border: 0; background: var(--edge); }
.stage { position: fixed; inset: 0; z-index: 65; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; padding: 16px 20px 20px; background: rgba(3, 4, 8, .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); opacity: 0; transition: opacity .25s; }
.stage.in { opacity: 1; }
body.staged { overflow: hidden; }
.stage-top { display: flex; align-items: center; gap: 12px; }
.stage-top .mc-head { border-radius: 50%; }
.stage-name { display: grid; }
.stage-name strong { font-size: 16px; }
.stage-name small { color: var(--text-3); font-size: 12.5px; }
.stage-x { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--text); cursor: pointer; }
.stage-x:hover { background: rgba(255, 255, 255, .14); }
.stage-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; min-height: 0; }
.stage-main { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; min-height: 0; }
.stage-screen { position: relative; display: grid; min-height: 0; place-items: center; overflow: hidden; border-radius: 18px; background: #000; transform: scale(.985); transition: transform .45s var(--spring); }
.stage.in .stage-screen { transform: none; }
.afkv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-cross { position: absolute; left: 50%; top: 50%; z-index: 2; width: 18px; height: 18px; margin: -9px 0 0 -9px; pointer-events: none; mix-blend-mode: difference; background: linear-gradient(#fff, #fff) center / 2px 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 2px no-repeat; }
.stage-screen.afkv-menu .stage-cross { display: none; }
.stage-screen:fullscreen { border-radius: 0; }
.stage-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--text-2); background: #000; }
.stage-wait .spin { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .2); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-dock { display: flex; justify-self: center; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--edge); }
.stage-dock button { display: grid; width: 46px; height: 46px; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .07); color: var(--text); cursor: pointer; transition: background .15s, transform .25s var(--spring); }
.stage-dock button:hover { background: rgba(255, 255, 255, .15); transform: translateY(-2px); }
.stage-dock button.bad { background: #e5263b; color: #fff; }
.stage-dock button.bad:hover { background: #ff3b4f; }
.stage-chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; overflow: hidden; border-radius: 18px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--edge); }
.stage-chat-head { padding: 14px 16px; border-bottom: 1px solid var(--edge); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.stage-chat .afk-chat { height: auto; min-height: 0; border-radius: 0; background: transparent; }
.stage-say { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--edge); }
.stage-say input { flex: 1; min-width: 0; }
.stage-say button { display: grid; width: 42px; place-items: center; border: 0; border-radius: 12px; background: var(--brand); color: #fff; cursor: pointer; }
@media (max-width: 900px) {
  .stage { padding: 12px; overflow: auto; }
  .stage-body { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .stage-screen { aspect-ratio: 16 / 9; }
  .stage-chat { height: 50vh; }
}
.st-hud svg { width: 13px; height: 13px; }
.st-hud { z-index: 3; }
body.staged .fx-mute { display: none; }

/* AFK bot settings: grouped list */
.set { display: grid; gap: 18px; }
.set-hero { display: flex; align-items: center; gap: 14px; }
.set-hero .mc-head { border-radius: 16px; }
.set-hero div { display: grid; flex: 1; min-width: 0; }
.set-title { width: 100%; padding: 2px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--text); font: 600 22px var(--display); outline: none; }
.set-title:focus { box-shadow: 0 2px 0 var(--frost); }
.set-hero small { color: var(--text-3); font-size: 13px; }
.set-group { display: grid; overflow: hidden; border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--edge); }
.set-group h3, .set-adv summary { margin: 0; padding: 12px 16px 6px; color: var(--text-3); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.set-row { display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 10px 16px; border-top: 1px solid var(--edge); cursor: pointer; transition: opacity .2s, background .15s; }
.set-group h3 + .set-row, .set-adv summary + .set-row { border-top: 0; }
.set-row:hover { background: rgba(255, 255, 255, .025); }
.set-row.dim { opacity: .45; }
.set-txt { display: grid; flex: 1; min-width: 0; }
.set-txt b { font-size: 14.5px; font-weight: 600; }
.set-txt small { color: var(--text-3); font-size: 12.5px; }
.set-switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 46px !important; height: 28px; margin: 0; border-radius: 99px; background: rgba(255, 255, 255, .14); cursor: pointer; transition: background .25s; }
.set-switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .3s var(--spring); }
.set-switch:checked { background: #34c759; }
.set-switch:checked::before { transform: translateX(18px); }
.set-num { display: inline-flex; align-items: center; flex: none; height: 38px; padding: 0 12px 0 4px; border-radius: 12px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--edge); }
.set-num input { width: 64px; min-height: 0; padding: 0 6px; border: 0; background: transparent; box-shadow: none; color: var(--text); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.set-num input::-webkit-inner-spin-button, .set-num input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.set-num i { color: var(--text-3); font-size: 12.5px; font-style: normal; }
.set-range { flex: none; width: 160px; accent-color: var(--frost); box-shadow: none; }
.set-row select, .set-row .custom-select { flex: none; width: 250px; }
.set-row .custom-select-button { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.set-note { margin: 0; padding: 0 16px 12px; color: var(--text-3); font-size: 12.5px; }
.set-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 14px 12px; cursor: text; }
.set-chip { display: inline-flex; align-items: center; gap: 2px; padding: 5px 6px 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 500; animation: pop .3s var(--spring); }
.set-chip button { display: grid; width: 20px; height: 20px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); font-size: 15px; line-height: 1; cursor: pointer; }
.set-chip button:hover { background: rgba(255, 90, 106, .2); color: var(--red); }
.set-chips input { flex: 1; min-width: 120px; min-height: 30px; padding: 0 4px; border: 0; background: transparent; box-shadow: none; }
.set-adv summary { padding-bottom: 12px; cursor: pointer; list-style: none; }
.set-adv summary::-webkit-details-marker { display: none; }
.set-adv summary::after { content: "›"; float: right; font-size: 16px; line-height: 1; transition: transform .2s; }
.set-adv[open] summary::after { transform: rotate(90deg); }
.set-adv[open] summary { padding-bottom: 6px; }
.set-foot { display: flex; align-items: center; gap: 10px; }
.set-remove { padding: 8px 4px; border: 0; background: transparent; color: var(--red); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; opacity: .8; }
.set-remove:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 560px) { .set-row select, .set-row .custom-select { width: 150px; } .set-range { width: 110px; } }
/* AFK order drop: x y z and travel commands, styled like .set-num */
.set-xyz { display: inline-flex; gap: 6px; flex: none; }
.set-xyz input, .set-row .set-text { width: 86px; height: 38px; min-height: 0; padding: 0 10px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--edge); color: var(--text); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.set-xyz input::-webkit-inner-spin-button, .set-xyz input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.set-row .set-text { width: 150px; text-align: left; flex: none; }
@media (max-width: 560px) { .set-xyz input { width: 64px; } .set-row .set-text { width: 120px; } }
/* AFK drop points: one inset card per point */
.drop-pt { margin: 6px 10px 10px; border-radius: 14px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--edge); overflow: hidden; }
.drop-pt .set-row { padding-left: 14px; padding-right: 14px; }
.drop-pt-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 2px; }
.drop-pt-head b { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.drop-pt-x { width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--text-2); font-size: 16px; line-height: 1; cursor: pointer; }
.drop-pt-x:hover { background: rgba(255, 77, 109, .18); color: #ff4d6d; }
.drop-sel { display: inline-flex; gap: 6px; flex: none; }
.drop-sel select, .drop-sel .custom-select { width: 120px !important; }
.linkish { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
/* AFK live view free look */
.afkv-canvas { cursor: grab; touch-action: none; }
.afkv-canvas:active { cursor: grabbing; }
.afkv-hint { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(8, 10, 16, .55); backdrop-filter: blur(10px); color: rgba(255, 255, 255, .85); font-size: 12.5px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .3s; }
.stage-screen:hover .afkv-hint, .afkv-free .afkv-hint { opacity: 1; }
.afkv-free .stage-cross { display: none; }
@media (max-width: 560px) { .afkv-hint { font-size: 11px; white-space: normal; text-align: center; width: max-content; max-width: 86%; } }

/* Accounts: live view of a sell account's game screen (MJPEG) */
.acct-live { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: radial-gradient(120% 120% at 50% 0%, #161b2b, #07090f); box-shadow: inset 0 0 0 1px var(--edge); }
.acct-live img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.acct-email { margin: 2px 0 6px; color: var(--text-2); font-size: 12.5px; overflow-wrap: anywhere; user-select: all; }

/* DonutSMP sidebar stats on account cards: one glass strip, four cells */
.acct-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin-top: 14px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--edge); overflow: hidden; }
/* Playtime ("20h 34m") gets the room it needs; the three counts share the rest. */
.acct-stats:has(> [data-stat="playtime"]) { grid-template-columns: repeat(3, minmax(0, 1fr)) max-content; }
.acct-stat[data-stat="playtime"] { padding-right: 13px; }
.acct-stat[data-stat="playtime"] b { overflow: visible; text-overflow: clip; } /* always the full "2d 14h" */
.acct-stat { --c: var(--frost); position: relative; display: grid; justify-items: start; gap: 3px; min-width: 0; padding: 10px 9px 9px 11px; transition: background .25s; }
.acct-stat + .acct-stat::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--edge); }
.acct-stat:hover { background: color-mix(in srgb, var(--c) 7%, transparent); }
.acct-stat svg { width: 15px; height: 15px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 55%, transparent)); }
.acct-stat b { max-width: 100%; overflow: hidden; font: 600 13px var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; text-overflow: ellipsis; }
.acct-stat small { color: var(--text-2); font-size: 10.5px; letter-spacing: .02em; }
.acct-stat[data-stat="shards"] { --c: var(--violet); }
.acct-stat[data-stat="kills"] { --c: var(--red); }
.acct-stat[data-stat="deaths"] { --c: var(--text-2); }
.acct-stat[data-stat="playtime"] { --c: var(--frost); }

/* Role + proxy side by side: a shorter card. The shared-IP warning spans both. */
.acct-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.acct-selects .proxy-shared { display: block; }
.acct-selects .custom-select { min-width: 0; }
.acct-selects .custom-select-button { gap: 8px; padding: 0 12px; font-size: 13.5px; }
.acct-selects .custom-select-button > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.acct-selects .custom-select-menu { min-width: 250px; }

/* Card layout: skin beside the header only (name, email, balance, bar); stats, dropdowns
   and buttons use the full width below, so there is no empty column under the skin. */
.acct-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 16px; row-gap: 8px; align-items: start; }
.acct-body { display: contents; }
.acct-skin { grid-column: 1; grid-row: 1 / span 4; width: auto; height: 100%; min-height: 128px; }
.acct-skin img { height: 118px; }
.acct-body > .account-line, .acct-body > .acct-email, .acct-body > .acct-bal, .acct-body > .acct-bar { grid-column: 2; }
.acct-body > .acct-bar { align-self: end; margin-bottom: 4px; }
.acct-body > :not(.account-line, .acct-email, .acct-bal, .acct-bar) { grid-column: 1 / -1; }
.acct-body > .acct-stats { margin-top: 6px; }
