/* GalaxCloud dashboard.
 * Identity comes from the brand itself: the mint-to-cyan of the logo and the forest starfield of the bot's own background.
 * Status colours (mint / amber / coral) are reserved for status. Lists are ruled rows, not stacks of boxes.
 * Fonts are the visitor's own system fonts (the security policy only allows files served by this site). */

:root {
  --field: #06120d;
  --panel: 13 32 24;              /* r g b, used with alpha */
  --edge: rgba(159, 255, 216, .14);
  --edge-strong: rgba(159, 255, 216, .26);
  --rule: rgba(159, 255, 216, .10);
  --ink: #e9f6ef;
  --muted: #8aa89a;
  --faint: #5f7c6f;
  --mint: #38e8a4;
  --cyan: #2bc4f0;
  --amber: #f0b64a;
  --coral: #f26d6d;
  --brand: linear-gradient(100deg, #38e8a4, #2bc4f0);
  --r-panel: 20px;
  --r-ctrl: 10px;
  --r-row: 6px;
  --display: Bahnschrift, "DIN Alternate", "Avenir Next Condensed", "Roboto Condensed", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--field); color: var(--ink);
  font: 15px/1.55 var(--body); font-variant-numeric: tabular-nums; overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; margin: 0; line-height: 1.15; }

/* ---------------------------------------------------------------- backdrop */
.bg { position: fixed; inset: 0; z-index: -1; background: var(--field); overflow: hidden; }
.bg::before {            /* faint starfield so the glass has something to refract */
  content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='520' height='520'><g fill='%23cfffe9'><circle cx='38' cy='62' r='1.2' opacity='.7'/><circle cx='121' cy='301' r='.9' opacity='.5'/><circle cx='203' cy='118' r='1.5' opacity='.8'/><circle cx='287' cy='447' r='1' opacity='.55'/><circle cx='344' cy='73' r='.8' opacity='.5'/><circle cx='402' cy='252' r='1.4' opacity='.75'/><circle cx='468' cy='390' r='1' opacity='.5'/><circle cx='76' cy='471' r='1.3' opacity='.65'/><circle cx='251' cy='233' r='.8' opacity='.45'/><circle cx='497' cy='34' r='1.1' opacity='.6'/><circle cx='164' cy='409' r='.9' opacity='.5'/><circle cx='322' cy='347' r='1.2' opacity='.6'/></g></svg>");
}
.bg .band {              /* the bot's own background image, as a header band that fades into the page */
  position: absolute; left: 0; right: 0; top: 0; height: 260px;
  background: url("/bg.png") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 35%, transparent);
  mask-image: linear-gradient(#000 35%, transparent);
}

/* ---------------------------------------------------------------- surfaces */
.glass {
  background: linear-gradient(180deg, rgb(var(--panel) / .66), rgb(7 20 15 / .70));
  -webkit-backdrop-filter: blur(18px) saturate(135%); backdrop-filter: blur(18px) saturate(135%);
  border: 1px solid var(--edge); border-top-color: var(--edge-strong);
  border-radius: var(--r-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 48px -28px rgba(0, 0, 0, .8);
}
.card { padding: 22px; margin-bottom: 18px; }
.card h2 { font-size: 19px; }
.card .sub { margin: 4px 0 16px; color: var(--muted); max-width: 62ch; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- status */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px;
  font-size: 12.5px; background: rgba(255, 255, 255, .06); border: 1px solid var(--edge); color: var(--ink); white-space: nowrap;
}
.pill.ok { color: var(--mint); border-color: rgba(56, 232, 164, .35); background: rgba(56, 232, 164, .08); }
.pill.bad { color: var(--coral); border-color: rgba(242, 109, 109, .4); background: rgba(242, 109, 109, .08); }
.pill.warn { color: var(--amber); border-color: rgba(240, 182, 74, .4); background: rgba(240, 182, 74, .08); }
.pill.violet { color: var(--cyan); border-color: rgba(43, 196, 240, .35); background: rgba(43, 196, 240, .08); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: var(--mint); box-shadow: 0 0 0 3px rgba(56, 232, 164, .16); }
.dot.bad { background: var(--coral); box-shadow: 0 0 0 3px rgba(242, 109, 109, .16); }
.dot.warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(240, 182, 74, .16); }

/* ---------------------------------------------------------------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: var(--r-ctrl); border: 1px solid var(--edge-strong); background: rgba(255, 255, 255, .05);
  color: var(--ink); font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, transform .08s;
}
.btn:hover { background: rgba(255, 255, 255, .10); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .nav a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .tab:focus-visible, .chip:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}
.btn.primary { background: var(--brand); color: #031610; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); background: var(--brand); }
.btn.danger { color: var(--coral); border-color: rgba(242, 109, 109, .45); background: rgba(242, 109, 109, .06); }
.btn.danger:hover { background: rgba(242, 109, 109, .16); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.primary[disabled] { background: rgba(255, 255, 255, .08); color: var(--muted); border-color: var(--edge); }
.topbar .btn { white-space: nowrap; }

.field { margin-bottom: 16px; }
.field > label, .label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.help { margin-top: 5px; color: var(--muted); font-size: 13px; max-width: 62ch; }
input[type="text"], input[type="url"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--r-ctrl);
  background: rgba(0, 0, 0, .30); border: 1px solid var(--edge); color: var(--ink);
}
select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: #0c1f17; color: var(--ink); }
textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); }
input[type="color"] { width: 52px; height: 42px; padding: 3px; border-radius: var(--r-ctrl); background: rgba(0, 0, 0, .3); border: 1px solid var(--edge); cursor: pointer; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.toggle input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: rgba(255, 255, 255, .10); border: 1px solid var(--edge-strong); transition: background .15s; }
.toggle span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform .15s; }
.toggle input:checked + span { background: var(--mint); border-color: transparent; }
.toggle input:checked + span::after { transform: translateX(20px); background: #031610; }
.toggle input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.setting { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.setting:last-child { border-bottom: 0; }
.setting + .field, .field + .setting { margin-top: 16px; }
.setting .txt { min-width: 0; }
.setting .title { font-weight: 600; }
.setting .help { margin-top: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--edge); background: rgba(255, 255, 255, .04); color: var(--muted); cursor: pointer; font-size: 13.5px; }
.chip:hover { color: var(--ink); border-color: var(--edge-strong); }
.chip[aria-pressed="true"] { color: var(--mint); background: rgba(56, 232, 164, .10); border-color: rgba(56, 232, 164, .5); }

/* ---------------------------------------------------------------- frame */
.app { max-width: 1260px; margin: 0 auto; padding: 14px 16px 40px; }
.topbar { position: sticky; top: 10px; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 8px 12px 8px 10px; margin-bottom: 18px; border-radius: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { flex: none; width: 36px; height: 36px; border-radius: 9px; object-fit: contain; background: rgba(255, 255, 255, .92); padding: 2px; }
.brand b { display: block; font-family: var(--display); font-size: 17px; line-height: 1.1; letter-spacing: .01em; }
.brand small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
.crumbs { color: var(--muted); font-size: 14px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.ph { display: grid; place-items: center; background: rgba(56, 232, 164, .14); color: var(--mint); font-weight: 700; }

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 22px; align-items: start; }
.nav { position: sticky; top: 84px; padding: 12px 8px 14px; max-height: calc(100vh - 100px); overflow-y: auto; }
.nav h4 { margin: 14px 12px 4px; font-size: 12.5px; font-weight: 600; color: var(--faint); letter-spacing: 0; }
.nav h4:first-child { margin-top: 4px; }
.nav a { display: block; padding: 7px 12px; border-radius: var(--r-row); color: var(--muted); font-size: 14.5px; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(56, 232, 164, .09); box-shadow: inset 2px 0 0 var(--mint); font-weight: 600; }
.main { min-width: 0; }

.page-head { margin: 6px 0 22px; }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); }
.page-head p { margin: 8px 0 0; color: var(--muted); max-width: 64ch; }

/* ---------------------------------------------------------------- data */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.facts > div { padding: 2px 18px; border-left: 1px solid var(--rule); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts .n { font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.2; }
.facts .l { color: var(--muted); font-size: 13.5px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 18px; padding: 18px 22px; border-radius: var(--r-panel); }
.stat { padding: 2px 18px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .n { font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.2; }
.stat .l { color: var(--muted); font-size: 13.5px; }

.cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }

.list { display: flex; flex-direction: column; }
.item { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.item:last-child { border-bottom: 0; }
.item .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.item .main b { font-weight: 600; overflow-wrap: anywhere; }
.item .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
a.item { color: inherit; }
a.item:hover { text-decoration: none; background: rgba(255, 255, 255, .03); }
.item .count { font-family: var(--display); font-size: 22px; font-weight: 600; min-width: 2ch; text-align: right; }

.svc { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.svc:last-child { border-bottom: 0; }
.svc .name { font-weight: 600; overflow-wrap: anywhere; }
.svc .meta { color: var(--muted); font-size: 13px; text-align: right; }
.svc .ticks { grid-column: 2 / -1; display: flex; gap: 2px; height: 14px; }
.svc .ticks i { flex: 1; max-width: 9px; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.svc .ticks i.on { background: var(--mint); }
.svc .ticks.bad i.on { background: var(--coral); }
.svc .ticks.warn i.on { background: var(--amber); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); column-gap: 36px; }
.server-card { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.server-card .ico { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; flex: none; background: rgba(56, 232, 164, .12); color: var(--mint); font-family: var(--display); font-size: 19px; font-weight: 700; }
.server-card .ico img { width: 100%; height: 100%; object-fit: cover; }
.server-card .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.server-card .meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; padding: clamp(24px, 5vw, 52px); margin-top: 6vh; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); margin-bottom: 14px; }
.hero p { color: var(--muted); max-width: 46ch; margin: 0 0 22px; }
.hero .art { display: grid; place-items: center; }
.hero .art img { width: min(100%, 300px); filter: drop-shadow(0 0 40px rgba(56, 232, 164, .25)); }
.login-btn { min-height: 48px; padding: 0 26px; font-size: 16px; }

.empty { padding: 26px 8px; color: var(--muted); max-width: 56ch; }
.empty .big { display: none; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.tab { padding: 9px 14px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer; white-space: nowrap; font-weight: 600; margin-bottom: -1px; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--mint); }

.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 8px; }
.bars .b { flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--brand); opacity: .9; }
.bars .b.leave { background: var(--coral); }
.bars-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.hbar { display: grid; grid-template-columns: minmax(70px, 150px) 1fr 40px; gap: 12px; align-items: center; margin: 9px 0; font-size: 14px; }
.hbar .track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 99px; background: var(--brand); }
.stars { color: var(--amber); letter-spacing: 2px; }
.review-score { font-family: var(--display); font-size: 56px; font-weight: 600; line-height: 1; }

.savebar { position: sticky; bottom: 12px; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; margin-top: 14px; }

/* ---------------------------------------------------------------- overlays */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(2, 8, 6, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); overflow-y: auto; }
.modal { width: min(520px, 100%); padding: 22px; max-height: calc(100vh - 32px); overflow-y: auto; background: #0b1d15; }
.modal h3 { font-size: 20px; margin-bottom: 14px; }
.modal .foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { padding: 11px 16px; border-radius: 12px; background: #0b1d15; border-left: 3px solid var(--mint); box-shadow: 0 12px 32px rgba(0, 0, 0, .5); width: 100%; }
.toast.bad { border-left-color: var(--coral); }
.boot { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--mint); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.footer { margin: 28px 0 0; text-align: center; color: var(--faint); font-size: 13px; }

/* ---------------------------------------------------------------- policy pages */
.doc { padding: clamp(20px, 4vw, 40px); max-width: 860px; margin: 8px auto 0; }
.doc h1 { font-size: clamp(28px, 4.5vw, 40px); margin-bottom: 6px; }
.doc h2 { font-size: 21px; margin: 30px 0 8px; }
.doc h3 { font-size: 16px; margin: 20px 0 6px; font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.doc p, .doc li { max-width: 68ch; color: #cfe3d9; }
.doc ul { padding-left: 20px; margin: 8px 0 12px; }
.doc li { margin: 5px 0; }
.doc code { font-family: var(--mono); font-size: 13px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.doc .table-wrap { margin: 12px 0 16px; border: 1px solid var(--rule); border-radius: 12px; }
.doc table td, .doc table th { max-width: 34ch; }
.doc strong { color: var(--ink); }
.footer a, .doc a { color: var(--cyan); }
.legal-note { margin-top: 16px; max-width: 46ch; }

/* ---------------------------------------------------------------- phones and tablets */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .nav { position: static; display: flex; gap: 4px; overflow-x: auto; padding: 8px; max-height: none; border-radius: 14px; }
  .nav h4 { display: none; }
  .nav a { white-space: nowrap; padding: 8px 14px; flex: none; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--mint); }
  .cols, .hero, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .hero .art { order: -1; }
  .hero .art img { width: 150px; }
  .crumbs { display: none; }
  .topbar { top: 6px; }
}
@media (max-width: 520px) {
  .card { padding: 16px; }
  .grid-cards { grid-template-columns: minmax(0, 1fr); }
  .stats { padding: 14px 16px; }
  .facts > div, .stat { border-left: 0; padding-left: 0; }
  .item { flex-wrap: wrap; }
  .item .actions { width: 100%; justify-content: flex-start; }
  .setting { align-items: flex-start; }
  .hbar { grid-template-columns: 84px 1fr 34px; }
  .brand div { display: none; }
  .topbar { gap: 8px; padding-right: 8px; }
  .topbar select { max-width: 130px !important; min-width: 0; }
  .topbar .row { flex-wrap: nowrap; gap: 4px; }
  .topbar .avatar { display: none; }
  .topbar .btn.small { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* staff status tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.tile { padding: 12px 14px; border: 1px solid var(--edge); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.tile .n { font-size: 22px; font-weight: 700; line-height: 1.2; }
.tile .l { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ------------------------------------------------------------------ motion
   CSS only (the page's security policy blocks inline scripts). Everything here is turned off for people who ask for reduced motion. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(56, 232, 164, 0); } 50% { box-shadow: 0 0 0 6px rgba(56, 232, 164, .12); } }

/* each page slides in, with its cards arriving one after another */
#app > * { animation: rise .46s cubic-bezier(.2, .7, .2, 1) both; }
#app > *:nth-child(2) { animation-delay: .05s; }
#app > *:nth-child(3) { animation-delay: .10s; }
#app > *:nth-child(4) { animation-delay: .15s; }
#app > *:nth-child(5) { animation-delay: .20s; }
#app > *:nth-child(n+6) { animation-delay: .25s; }

.card { transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.card:hover { border-color: rgba(56, 232, 164, .22); }

.item { animation: fade .4s ease both; }
.list .item:nth-child(2) { animation-delay: .04s; }
.list .item:nth-child(3) { animation-delay: .08s; }
.list .item:nth-child(4) { animation-delay: .12s; }
.list .item:nth-child(5) { animation-delay: .16s; }
.list .item:nth-child(n+6) { animation-delay: .2s; }
.item[role="button"] { transition: background-color .2s ease, transform .2s ease; border-radius: var(--r-row); }
.item[role="button"]:hover { background: rgba(255, 255, 255, .04); transform: translateX(3px); }

.tile, .stat { transition: transform .25s ease, border-color .25s ease; animation: pop .45s cubic-bezier(.2, .7, .2, 1) both; }
.tile:hover { transform: translateY(-2px); border-color: rgba(56, 232, 164, .3); }
.tiles .tile:nth-child(2) { animation-delay: .05s; }
.tiles .tile:nth-child(3) { animation-delay: .10s; }
.tiles .tile:nth-child(4) { animation-delay: .15s; }
.tiles .tile:nth-child(5) { animation-delay: .20s; }
.tiles .tile:nth-child(n+6) { animation-delay: .25s; }

.btn { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease; }
.btn.primary:not([disabled]):hover { box-shadow: 0 6px 18px -6px rgba(56, 232, 164, .55); transform: translateY(-1px); }
.btn.primary:not([disabled]):active { transform: translateY(0); }
.tab { transition: color .2s ease, border-color .25s ease; }
.nav a { transition: color .2s ease, background-color .2s ease, padding-left .2s ease; }
.nav a:hover { padding-left: 16px; }

/* growing bars: the join chart, the rating bars and the ticks in the service board */
.bars .b { transform-origin: bottom; animation: grow-y .6s cubic-bezier(.2, .7, .2, 1) both; }
.hbar .fill { transform-origin: left; animation: grow-x .7s cubic-bezier(.2, .7, .2, 1) both; }
.svc .ticks i.on { animation: fade .5s ease both; }

.overlay { animation: fade .2s ease both; }
.modal { animation: pop .28s cubic-bezier(.2, .7, .2, 1) both; }
.spinner { animation: spin .9s linear infinite; }
.pill.ok { animation: glow 2.6s ease-in-out infinite; }

/* ---- animated background: stars drift, the header image breathes, a soft glow moves behind the glass */
@keyframes stars-drift { from { background-position: 0 0; } to { background-position: 520px 520px; } }
@keyframes band-breathe { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.09) translate3d(-1.2%, 1%, 0); } }
@keyframes glow-a { 0% { transform: translate3d(-8%, -4%, 0) scale(1); } 50% { transform: translate3d(10%, 6%, 0) scale(1.15); } 100% { transform: translate3d(-8%, -4%, 0) scale(1); } }
@keyframes glow-b { 0% { transform: translate3d(12%, 10%, 0) scale(1.1); } 50% { transform: translate3d(-6%, -8%, 0) scale(.95); } 100% { transform: translate3d(12%, 10%, 0) scale(1.1); } }
@keyframes twinkle { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }

.bg::before { animation: stars-drift 140s linear infinite, twinkle 7s ease-in-out infinite; will-change: background-position; }
.bg .band { transform-origin: 50% 0; animation: band-breathe 26s ease-in-out infinite alternate; will-change: transform; }
.bg::after {
  content: ""; position: absolute; inset: -20%; pointer-events: none; opacity: .5; filter: blur(60px);
  background:
    radial-gradient(closest-side at 30% 35%, rgba(56, 232, 164, .22), transparent 70%),
    radial-gradient(closest-side at 72% 65%, rgba(43, 196, 240, .16), transparent 70%);
  will-change: transform;
}
.bg::after { animation: glow-a 38s ease-in-out infinite, glow-b 52s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------- effects layer (fx.js) */
#fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fx-off #fx { display: none; }

/* cursor spotlight + moving sheen on glass cards */
.glass:not(.topbar):not(.nav):not(.savebar) { position: relative; }   /* keep sticky bars sticky and the mobile tab bar static */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(72, 214, 160, .13), transparent 65%);
  transition: opacity .25s;
}
.glass:hover::after { opacity: 1; }
.fx-off .glass::after { display: none; }

/* lift on hover for interactive cards */
.server-card, .item, .tile { transition: transform .22s cubic-bezier(.2, .8, .2, 1), border-color .2s, box-shadow .25s; }
@media (hover: hover) {
  .server-card:hover, .tile:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(72, 214, 160, .35), inset 0 1px 0 rgba(255, 255, 255, .06); }
}

/* button ripple and shine */
.btn { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, .28); transform: scale(0); animation: ripple .6s ease-out forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* animated gradient on the brand name */
.brand b { background: linear-gradient(90deg, var(--ink), #9ff5d3, var(--ink)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: sheen 7s linear infinite; }
@keyframes sheen { to { background-position: -200% 0; } }

/* smooth scrolling + nicer scrollbars */
html { scroll-behavior: smooth; }
* { scrollbar-width: thin; scrollbar-color: rgba(72, 214, 160, .35) transparent; }
::selection { background: rgba(72, 214, 160, .35); }

.linkish { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--cyan); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .ripple, .brand b { animation: none; }
  .brand b { -webkit-text-fill-color: currentColor; background: none; }
  html { scroll-behavior: auto; }
  .server-card:hover, .tile:hover { transform: none; }
}
.fx-off .brand b { animation: none; -webkit-text-fill-color: currentColor; background: none; }
