/* IronVault Hosting — "paper & ink": warm light surfaces, ink type, logo copper as the single accent. */
:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #ecebe5;
  --ink: #16181b;
  --text: #2b2e33;
  --muted: #5f646c;
  --line: #d8d6ce;
  --line-strong: #b9b6ac;
  --accent: #b8670f;       /* logo copper */
  --accent-ink: #8e4e09;   /* copper dark enough for text on light backgrounds */
  --accent-soft: #f4e6d6;
  --ok: #1d7f47;
  --radius: 4px;
  --wrap: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16.5px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.08; letter-spacing: -0.025em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); font-style: normal; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: #fff; font: 600 15px/1.2 var(--font); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--full { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(244,243,239,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 18px var(--font); color: var(--ink); letter-spacing: -0.02em; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .15s; }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__sep { width: 1px; height: 20px; background: var(--line); }
.nav__toggle { display: none; background: none; border: 0; padding: 10px 6px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s; }

/* Hosting dropdown */
.dd { position: relative; }
.dd__btn { background: none; border: 0; padding: 0; font: 500 15px var(--font); color: var(--muted); cursor: pointer; display: flex; gap: 4px; align-items: center; }
.dd__btn:hover, .dd__btn[aria-expanded="true"] { color: var(--ink); }
.dd__btn span { font-size: 11px; transition: transform .15s; }
.dd__btn[aria-expanded="true"] span { transform: rotate(180deg); }
.dd__panel { display: none; position: absolute; top: calc(100% + 18px); left: -24px; width: 640px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 20px 50px rgba(22,24,27,.12); padding: 20px; grid-template-columns: 1fr 1fr .8fr; gap: 8px 20px; z-index: 60; }
.dd__btn[aria-expanded="true"] + .dd__panel { display: grid; }
.dd__label { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px 10px; }
.dd__col { display: grid; gap: 2px; align-content: start; }
.dd__col a { display: grid; padding: 9px 10px; border-radius: var(--radius); color: var(--ink) !important; font-size: 14.5px; }
.dd__col a:hover { background: var(--surface-2); }
.dd__col a b { font-weight: 600; }
.dd__col a span { font-size: 13px; color: var(--muted); }
.dd__col--side { border-left: 1px solid var(--line); padding-left: 16px; }
.dd__col--side a { padding: 7px 10px; color: var(--muted) !important; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 0; border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px; }
.hero { background-color: var(--bg); }
.hero::before { content: none; }
.hero__inner { position: relative; padding: 48px 48px 56px; background: var(--bg); border: 1px solid var(--line); border-bottom: 0; }
.pill { display: inline-flex; align-items: center; gap: 10px; font: 500 13px var(--mono); color: var(--muted); border: 1px solid var(--line); background: var(--surface); padding: 6px 12px 6px 6px; border-radius: 999px; margin-bottom: 32px; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill__new { background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.hero h1 { font: 800 clamp(42px, 8vw, 104px)/0.98 var(--font); letter-spacing: -0.045em; max-width: 12ch; }
.hero h1 .dot { color: var(--accent); }
.lead { color: var(--muted); font-size: 19px; max-width: 58ch; margin-top: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.proof { list-style: none; padding: 24px 0 0; margin: 44px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.proof strong { display: block; font: 700 15px var(--font); color: var(--ink); }
.proof span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }

/* Product window */
.window { background: var(--surface); border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 8px 8px 0 0; overflow: hidden; }
.window__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.window__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window__bar span { margin-left: 12px; font: 12px var(--mono); color: var(--muted); }
.window__body { display: grid; grid-template-columns: 220px 1fr; min-height: 360px; }
.side { border-right: 1px solid var(--line); padding: 18px 12px; background: #faf9f6; }
.side__label { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 10px; margin: 6px 0 8px; }
.side__label:not(:first-child) { margin-top: 22px; }
.side__item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius); font-size: 14px; color: var(--text); cursor: default; }
.side__item em { margin-left: auto; font: 11px var(--mono); color: var(--muted); font-style: normal; }
.side__item.is-active { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.st { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.st--on { background: var(--ok); }
.st--idle { background: var(--line-strong); }
.st--ticket { background: var(--accent); }
.pane { padding: 22px 26px 26px; min-width: 0; }
.pane__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pane__head h2 { font: 700 22px var(--font); }
.pane__head p { font: 13px var(--mono); color: var(--muted); margin-top: 4px; }
.ok { color: var(--ok); }
.pane__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: 500 12.5px var(--mono); padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.chip--accent { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 10px; }
.tile p { font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tile strong { display: block; font: 700 24px var(--font); color: var(--ink); margin: 4px 0 6px; }
.tile small { font-size: 14px; color: var(--muted); font-weight: 500; }
.spark { width: 100%; height: 28px; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.console { margin: 0; background: var(--ink); color: #d6d3cb; border-radius: var(--radius); padding: 16px 18px; font: 13px/1.8 var(--mono); overflow-x: auto; white-space: pre; }
.c-dim { color: #7c7f85; } .c-ok { color: #6fcf97; } .c-acc { color: #e3a55a; }
.cursor { animation: blink 1s steps(1) infinite; color: #e3a55a; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; border-bottom: 1px solid var(--line); }
.section--alt { background: var(--surface-2); }
.head { margin-bottom: 52px; max-width: 760px; }
.eyebrow { font: 600 13px var(--mono); color: var(--accent-ink); letter-spacing: .04em; margin-bottom: 18px; }
.section h2 { font: 800 clamp(32px, 4.6vw, 54px)/1.04 var(--font); letter-spacing: -0.035em; }
.section .lead { margin-top: 18px; }

/* Service cards: ruled grid */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.card { padding: 28px 24px 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; transition: background .2s; }
.card:last-child { border-right: 0; }
.card:hover { background: var(--surface); }
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font: 700 20px var(--font); margin-top: 8px; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card .card__from { flex: 0; font: 600 13.5px var(--mono); color: var(--ink); }
.link { font: 600 14px var(--mono); color: var(--accent-ink); }
.link::after { content: " →"; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Games grid */
.games { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.game { display: grid; gap: 4px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px; cursor: pointer; font: inherit; color: var(--text); transition: border-color .15s, transform .15s; }
.game:hover { border-color: var(--ink); transform: translateY(-2px); }
.game__mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; background: var(--ink); color: #fff; font: 700 14px var(--mono); margin-bottom: 10px; }
.game:nth-child(3n+2) .game__mark { background: var(--accent); }
.game:nth-child(3n+3) .game__mark { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-strong); }
.game__name { font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.25; }
.game__from { font-size: 13px; color: var(--muted); }
.game__from b { color: var(--ink); }

/* RAM calculator */
.calc { margin-top: 48px; display: grid; grid-template-columns: 1fr 1.2fr .9fr; gap: 32px; align-items: start; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 32px; }
.calc__intro h3 { font: 800 26px/1.15 var(--font); letter-spacing: -0.03em; margin-bottom: 10px; }
.calc__intro .eyebrow { margin-bottom: 10px; }
.calc__form { display: grid; gap: 18px; }
.calc__form output { font: 600 13px var(--mono); color: var(--accent-ink); }
.calc__form input[type="range"] { accent-color: var(--ink); padding: 0; border: 0; background: none; }
.calc__result { border-left: 1px solid var(--line); padding-left: 28px; display: grid; gap: 6px; }
.calc__result strong { font: 800 40px/1.1 var(--font); color: var(--ink); letter-spacing: -0.04em; }
.calc__plan { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.calc__plan a { color: var(--accent-ink); text-decoration: underline; }
.seg.seg--3 { grid-template-columns: repeat(3, 1fr); }
.seg.seg--2x2 { grid-template-columns: 1fr 1fr; }

/* Plan switcher + plans */
.switch-wrap { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; }
.switch { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.cycles { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.cycles button { background: none; border: 1px solid transparent; border-radius: 999px; padding: 7px 14px; font: 600 13.5px var(--font); color: var(--muted); cursor: pointer; }
.cycles button b { color: var(--accent-ink); font-weight: 700; }
.cycles button:hover { color: var(--ink); }
.cycles button[aria-checked="true"] { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.switch button { white-space: nowrap; background: none; border: 0; border-right: 1px solid var(--line); color: var(--muted); font: 600 14px var(--font); padding: 10px 20px; cursor: pointer; }
.switch button:last-child { border-right: 0; }
.switch button:hover { color: var(--ink); }
.switch button[aria-selected="true"] { background: var(--ink); color: #fff; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 30px 28px; display: flex; flex-direction: column; animation: rise .3s ease both; }
.plan:nth-child(2) { animation-delay: .04s; } .plan:nth-child(3) { animation-delay: .08s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.plan--hot { border: 1.5px solid var(--ink); }
.plan__flag { position: absolute; top: 0; right: 0; background: var(--ink); color: #fff; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 0 4px 0 4px; }
.plan__name { font: 600 13px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.plan__price { font: 800 46px/1.1 var(--font); color: var(--ink); letter-spacing: -0.04em; margin: 14px 0 2px; }
.plan__cycle { font: 500 12.5px var(--mono); color: var(--muted); margin-bottom: 10px; }
.plan__price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__desc { color: var(--muted); font-size: 15px; min-height: 48px; }
.plan__managed { font: 500 12.5px var(--mono); color: var(--accent-ink); margin-top: 8px; }
.plan__offer { align-self: flex-start; font: 600 12px var(--mono); color: var(--ok); border: 1px solid currentColor; border-radius: 3px; padding: 3px 8px; margin: 0 0 10px; }
.plan ul { list-style: none; padding: 20px 0 0; margin: 20px 0 28px; display: grid; gap: 10px; flex: 1; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; background: var(--accent); }
.included { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font: 500 13.5px var(--mono); color: var(--muted); }
.included li::before { content: "✓ "; color: var(--ok); }

.note { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); color: var(--muted); }
.note b { color: var(--ink); }

/* Steps (3) + features */
.steps--3 { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
#features .sub { margin-top: 80px; }
.sub { font: 800 26px var(--font); letter-spacing: -0.03em; margin-bottom: 24px; }
.feat { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.feat li { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.feat b { color: var(--ink); font-size: 15px; display: flex; gap: 8px; align-items: center; }
.feat b::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; }
.feat span { color: var(--muted); font-size: 14px; }

/* Locations */
.locs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.locs li { display: flex; align-items: center; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.locs b { color: var(--ink); font-weight: 600; }
.locs em { margin-left: auto; font: 12.5px var(--mono); color: var(--muted); font-style: normal; padding-right: 16px; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: grid; gap: 16px; }
.review blockquote { margin: 0; color: var(--text); }
.review figcaption { font-size: 14px; color: var(--muted); }
.review figcaption b { color: var(--ink); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--top { align-items: start; }
.split .btn { margin-top: 32px; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.checks li { padding-left: 28px; position: relative; color: var(--muted); }
.checks li b { color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 1.5px; background: var(--accent); }

/* Chat mock (light, neutral — not a Discord clone) */
.chat { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding-bottom: 14px; }
.chat__head { padding: 14px 20px; border-bottom: 1px solid var(--line); font: 600 14px var(--mono); color: var(--ink); margin-bottom: 8px; }
.chat__head span { color: var(--muted); }
.msg { display: flex; gap: 12px; padding: 10px 20px; font-size: 15px; }
.msg .who { font-weight: 700; color: var(--ink); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--font); background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.avatar--alt { background: #e3ece6; }
.avatar--bot { background: var(--surface); padding: 6px; }
.badge { font: 600 10px var(--mono); background: var(--ink); color: #fff; padding: 2px 5px; border-radius: 3px; }
.embed { margin-top: 6px; border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: var(--radius); padding: 12px 16px; background: #faf9f6; }
.embed__title { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.embed__grid { display: grid; grid-template-columns: auto auto; gap: 4px 24px; font-size: 14px; }
.embed__grid span { color: var(--muted); }

/* Dev grid: ruled table */
.dev-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.dev-grid article { padding: 24px 22px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); counter-increment: dev; transition: background .2s; }
.dev-grid article::before { content: counter(dev, decimal-leading-zero); font: 500 12px var(--mono); color: var(--accent-ink); }
.dev-grid article:hover { background: var(--surface); }
.dev-grid h3 { font: 700 17px/1.25 var(--font); margin: 10px 0 8px; }
.dev-grid p { color: var(--muted); font-size: 14.5px; }
.steps { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { position: relative; padding-top: 20px; border-top: 2px solid var(--ink); }
.steps span { font: 600 13px var(--mono); color: var(--accent-ink); }
.steps h3 { font: 700 20px var(--font); margin: 6px 0 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--ink); }
summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font: 700 18px var(--font); color: var(--ink); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 24px var(--mono); color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); padding: 0 40px 22px 0; }

/* Contact */
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 24px; }
.contact__list li { display: flex; gap: 16px; }
.contact__list span { width: 80px; flex: none; font: 500 13px var(--mono); color: var(--muted); padding-top: 2px; }
.contact__list a { color: var(--accent-ink); font-weight: 600; }
.form { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 32px; display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label, .field, .seg legend { display: grid; gap: 8px; font: 600 13px var(--font); color: var(--ink); }
.form input, .form select, .form textarea, .field input, .field select {
  width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 13px; font: 400 15.5px var(--font);
}
.form input:focus, .form select:focus, .form textarea:focus, .field input:focus, .field select:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.form textarea { resize: vertical; }
.form [aria-invalid="true"] { border-color: #c2410c; }
.opt { font-weight: 400; color: var(--muted); font-style: normal; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { font-size: 14px; min-height: 1.2em; color: var(--ok); }
.form__note.err { color: #b42318; }

/* Checkout modal */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); width: min(460px, 100% - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal::backdrop { background: rgba(22,24,27,.45); backdrop-filter: blur(3px); }
.modal__body { position: relative; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 30px; display: grid; gap: 16px; box-shadow: 0 30px 80px rgba(22,24,27,.25); }
.modal__body .eyebrow { margin: 0; }
.modal__body h3 { font: 800 30px var(--font); letter-spacing: -0.03em; }
.modal__body .form__note:empty { display: none; }
.modal__x { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1; }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { margin-bottom: 8px; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 11px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 600; color: var(--ink); }
.seg span b { color: var(--accent-ink); }
.seg input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); }
.co-total strong { font: 800 28px var(--font); color: var(--ink); letter-spacing: -0.03em; }

/* Footer */
.footer { padding: 64px 0 28px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer__grid .muted { margin-top: 12px; max-width: 30ch; }
.footer nav { display: grid; gap: 8px; align-content: start; }
.footer nav p { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 4px; }
.footer nav a { color: var(--muted); }
.footer nav a:hover { color: var(--ink); }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font: 13px var(--mono); color: var(--muted); }

/* Success page */
.done { padding-top: 24px; }
.done__steps { margin: 36px 0; padding-left: 22px; display: grid; gap: 12px; color: var(--muted); }
.done__steps b { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .games { grid-template-columns: repeat(4, 1fr); }
  .proof { grid-template-columns: repeat(3, 1fr); }
  .calc { grid-template-columns: 1fr 1fr; }
  .calc__intro { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .feat { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .cards, .dev-grid { grid-template-columns: repeat(2, 1fr); }
  .card { border-bottom: 1px solid var(--line); }
  .card:nth-child(2n) { border-right: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none; }
  .nav__links.open { display: flex; }
  .nav__links a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav__sep { display: none; }
  .dd__btn { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); justify-content: space-between; }
  .dd__panel { position: static; width: auto; box-shadow: none; border: 0; padding: 4px 0 8px; grid-template-columns: 1fr; }
  .dd__col--side { border-left: 0; padding-left: 0; }
  .dd__label { display: none; }
  .dd__col a { padding: 8px 10px; }
  .nav__links { max-height: calc(100dvh - 64px); overflow-y: auto; }
  .games { grid-template-columns: repeat(3, 1fr); }
  .steps--3 { grid-template-columns: 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .nav__links .btn { margin-top: 16px; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { padding-top: 32px; }
  .hero__inner { padding: 32px 20px 40px; }
  .window__body { grid-template-columns: 1fr; }
  .side { display: none; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .plans { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .dev-grid, .steps, .feat, .locs { grid-template-columns: 1fr; }
  .games { grid-template-columns: 1fr 1fr; }
  .proof { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; padding: 22px; }
  .calc__result { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .card { border-right: 0; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile:last-child { display: none; }
  .pane { padding: 18px 16px; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Legal pages */
.legal h1 { font: 800 clamp(34px, 5vw, 52px)/1.05 var(--font); letter-spacing: -0.035em; margin-bottom: 8px; }
.legal h2 { font: 700 21px var(--font); margin: 40px 0 12px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--text); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0; }
.legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal mark { background: var(--accent-soft); color: var(--accent-ink); padding: 0 3px; border-radius: 2px; }
.legal__note { margin: 24px 0 8px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); font-size: 15px; }
.legal__table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; background: var(--surface); }
.legal__table th, .legal__table td { text-align: left; padding: 10px 14px; border: 1px solid var(--line); }
.legal__table th { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.footer__base a:hover, .co-terms a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.co-terms { font-size: 13px; color: var(--muted); text-align: center; margin-top: -6px; }
.co-agree { margin: 4px 0 12px; font-size: 13px; }

/* ---------- Auth pages ---------- */
.auth { min-height: calc(100dvh - 64px - 90px); display: grid; place-items: center; padding: 56px 16px; }
.auth__card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 36px 32px; display: grid; gap: 16px; }
.auth__card h1 { font: 800 30px/1.1 var(--font); letter-spacing: -0.03em; }
.auth__card .eyebrow { margin: 0; }
.auth__form { display: grid; gap: 14px; }
.auth__alert { padding: 12px 14px; border-radius: var(--radius); font-size: 14.5px; background: #fdecea; color: #8a1c12; border: 1px solid #f3c2bc; }
.auth__alert--ok { background: #e7f4ec; color: #14532d; border-color: #bfe0cb; }
.auth__linked { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: #eef0fd; border: 1px solid #cfd4f6; color: #2b2f6b; font-size: 14.5px; }
.auth__linked svg { flex: none; margin-top: 2px; color: #5865f2; }
.auth__hint { font-size: 13px; color: var(--muted); margin-top: -6px; }
.auth__or { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 500 12px var(--mono); text-transform: uppercase; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__switch { font-size: 14.5px; color: var(--muted); text-align: center; }
.auth__switch a, .check a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn--discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn--discord:hover { background: #4752c4; border-color: #4752c4; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); }
.check input { margin-top: 3px; accent-color: var(--ink); }
.field .opt { font-size: 12px; margin-top: -2px; }
.small { font-size: 13px; }

/* ---------- Client area ---------- */
.acct { padding-top: 56px; }
.acct-nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.acct-nav a { color: var(--muted); }
.acct-nav a:hover { color: var(--ink); }
.acct__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.acct__head h1 { font: 800 clamp(30px, 4vw, 44px)/1.05 var(--font); letter-spacing: -0.035em; }
.acct__head .eyebrow { margin-bottom: 10px; }
.acct .auth__alert { margin-bottom: 20px; }
.acct__block { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 26px; margin-bottom: 20px; }
.acct__block h2 { font: 800 21px var(--font); letter-spacing: -0.02em; margin-bottom: 14px; }
.acct__title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.acct__title h2 { margin: 0; }
.acct__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.acct__grid .acct__block { margin-bottom: 0; display: grid; gap: 12px; align-content: start; }
.acct__grid .acct__block h2 { margin-bottom: 0; }
.svc-list { display: grid; gap: 12px; margin-top: 14px; }
.svc { border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; display: grid; gap: 12px; background: #fdfcfa; }
.svc__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.svc__name { font-weight: 700; color: var(--ink); font-size: 17px; }
.svc__id { font: 500 13px var(--mono); color: var(--muted); }
.svc__meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.svc__meta code, .secret code, .acct code { font: 500 13px var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 3px; color: var(--ink); }
.svc__live { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 14px; color: var(--muted); }
.svc__live b { color: var(--ink); }
.dot-st { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.dot-st--on { background: var(--ok); }
.svc__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.svc__sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.svc__warn { font-size: 14px; color: #8a1c12; background: #fdecea; border: 1px solid #f3c2bc; border-radius: var(--radius); padding: 10px 12px; }
.svc-empty { border: 1px dashed var(--line-strong); border-radius: 6px; padding: 28px; display: grid; gap: 14px; justify-items: start; color: var(--muted); }
.svc-empty b { color: var(--ink); }
.pill-status { font: 600 12px var(--mono); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; color: var(--muted); background: var(--surface); }
.pill-status--active { color: var(--ok); border-color: #bfe0cb; background: #e7f4ec; }
.pill-status--provisioning { color: var(--accent-ink); border-color: #ecd2b4; background: var(--accent-soft); }
.pill-status--suspended, .pill-status--failed { color: #8a1c12; border-color: #f3c2bc; background: #fdecea; }
.secret { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--bg); }
.secret code { font-size: 15px; word-break: break-all; background: none; padding: 0; }
.admin-table { overflow-x: auto; }
.admin-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; } /* scrolls sideways on phones instead of squashing */
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
#dlg-body { display: grid; gap: 14px; }
@media (max-width: 860px) {
  .acct__grid { grid-template-columns: 1fr; }
  .acct-nav a { display: none; }
}
@media (max-width: 560px) {
  .auth__card, .acct__block { padding: 22px 18px; }
  .svc__sep { display: none; }
}

.co-auth { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-size: 14.5px; }
.co-auth__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- VPS console ---------- */
.page-console { background: #16181b; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.con-bar { display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.con-bar .brand { font-size: 16px; }
.con-bar__title { flex: 1; display: flex; gap: 10px; align-items: center; font-size: 15px; min-width: 0; }
.con-state { font: 500 12.5px var(--mono); color: var(--muted); }
.con-bar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.con-screen { flex: 1; position: relative; min-height: 0; display: flex; }
.con-screen > div { flex: 1; }
.con-msg { position: absolute; inset: 0; display: grid; place-items: center; color: #d6d3cb; font: 500 15px var(--mono); padding: 24px; text-align: center; }

.svc__conn { font-size: 14px; color: var(--muted); line-height: 1.9; }
.svc__conn:empty { display: none; }
.svc__addr { font-size: 14px; color: var(--muted); }
.svc__addr-line { margin: 4px 0 0; }
.svc__addr-form { max-width: 520px; }
.svc__addr [data-addr-note]:empty { display: none; }
.btn-link { background: none; border: 0; padding: 0 4px; color: var(--accent-ink); font: 600 13px var(--font); cursor: pointer; text-decoration: underline; }
.bk-list { display: grid; gap: 8px; max-height: 50vh; overflow-y: auto; }
.bk { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-size: 14px; }

/* ---------- Game console ---------- */
.gc { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #16181b; }
.gc__out { flex: 1; margin: 0; padding: 16px 18px; overflow-y: auto; color: #d6d3cb; font: 13.5px/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; }
.gc__sys { color: #e3a55a; }
.gc__err { color: #ff8a8a; }
.gc__in { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-top: 1px solid #2b2e33; background: #1d2024; color: #e3a55a; font: 600 14px var(--mono); }
.gc__in input { flex: 1; background: transparent; border: 0; color: #f2efe8; font: 14px var(--mono); outline: none; }
.ansi-30 { color: #7c7f85; } .ansi-31 { color: #ff6b6b; } .ansi-32 { color: #6fcf97; } .ansi-33 { color: #f2c94c; }
.ansi-34 { color: #6aa8ff; } .ansi-35 { color: #d78bff; } .ansi-36 { color: #56ccf2; } .ansi-37 { color: #e6e3dc; }
.ansi-90 { color: #9aa0a6; } .ansi-91 { color: #ff8a8a; } .ansi-92 { color: #8ee6b0; } .ansi-93 { color: #ffe08a; }
.ansi-94 { color: #9cc4ff; } .ansi-95 { color: #e6b3ff; } .ansi-96 { color: #8fe3ff; } .ansi-97 { color: #ffffff; }
.ansi-b { font-weight: 600; }

.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field__link { font-weight: 500; font-size: 13px; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

.verify-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 20px; padding: 12px 16px; border: 1px solid #ecd2b4; background: var(--accent-soft); border-radius: var(--radius); font-size: 14.5px; color: var(--accent-ink); }
.twofa { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; font-size: 14.5px; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.codes code { text-align: center; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; font: 500 14px var(--mono); }
.qr { display: block; margin: 0 auto; border: 1px solid var(--line); border-radius: 6px; }

/* ---------- support tickets ---------- */
.acct-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.svc__badges { display: flex; align-items: center; gap: 12px; }
.svc__help { font-size: 13px; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.tk-filters { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.tk-filters select { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font: 500 14px var(--font); }
.tk-toggle { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.tk-list { display: grid; margin: 8px 0 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tk-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; color: var(--ink); background: var(--surface); }
.tk-row + .tk-row { border-top: 1px solid var(--line); }
.tk-row:hover { background: var(--surface-2); }
.tk-row__num { font: 600 13px var(--mono); color: var(--muted); }
.tk-row__main { display: grid; gap: 2px; min-width: 0; }
.tk-row__main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-list .empty { padding: 26px; display: grid; gap: 14px; justify-items: start; }
.tk-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tk-form textarea, .tk-reply textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); font: 400 15px/1.5 var(--font); color: var(--ink); resize: vertical; }
.tk-form textarea:focus, .tk-reply textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.tk-thread { list-style: none; margin: 14px 0 20px; padding: 0; display: grid; gap: 12px; }
.tk-msg { max-width: 78%; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 12px 14px; }
.tk-msg--mine { justify-self: end; background: var(--surface-2); }
.tk-msg--staff:not(.tk-msg--mine) { border-color: #ecd2b4; background: var(--accent-soft); }
.tk-msg--system { justify-self: center; max-width: 92%; text-align: center; background: transparent; border-style: dashed; font-size: 14px; color: var(--muted); }
.tk-msg--system time { display: block; margin-top: 4px; }
.tk-msg__head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 6px; color: var(--ink); }
.tk-msg time { font: 12px var(--mono); color: var(--muted); }
.tk-msg__head time { margin-left: auto; }
.tk-msg__body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; }
.tk-msg__body a { color: var(--accent-ink); text-decoration: underline; }
.tk-src { font: 600 11px var(--mono); color: #4752c4; background: #eceefd; padding: 1px 6px; border-radius: 3px; }
@media (max-width: 640px) {
  .tk-row { grid-template-columns: 1fr auto; }
  .tk-row__num { display: none; }
  .tk-form__row { grid-template-columns: 1fr; }
  .tk-msg { max-width: 100%; }
  .acct-nav { gap: 14px; font-size: 14px; }
  .acct-nav a.acct-nav__main { display: inline; }
}
@media (max-width: 860px) { .acct-nav a.acct-nav__main { display: inline; } }
/* Phones: a signed-in header (three links + Log out) does not fit next to the full wordmark; keep the logo only. */
@media (max-width: 440px) { .nav__inner:has(#logout) .brand span { display: none; } .nav__inner:has(#logout) .acct-nav { gap: 12px; } }

/* ---------- Rust live map ---------- */
.page-map .nav { position: sticky; top: 0; z-index: 5; }
.rmap { display: grid; grid-template-columns: 1fr 340px; gap: 0; height: calc(100vh - 65px); min-height: 520px; }
.rmap__stage { position: relative; background: #1d2a33; overflow: hidden; }
.rmap__vp { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; }
.rmap__vp:active { cursor: grabbing; }
.rmap__world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.rmap__world img { display: block; width: 100%; height: 100%; pointer-events: none; }
.rmap__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rm-grid line { stroke: rgba(0, 0, 0, .28); }
.rm-grid text { fill: rgba(0, 0, 0, .55); font: 600 10px var(--mono); }
.rm-player { cursor: pointer; }
.rm-player circle { stroke: #fff; stroke-width: 2; }
.rm-player.is-sel circle { stroke: var(--ink); stroke-width: 3; }
.rm-name { font: 700 12px var(--font); fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .75); stroke-width: 3px; }
.rmap__empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; padding: 24px; color: #e9edf0; background: #1d2a33; }
.rmap__empty .muted { color: #a9b4bc; max-width: 46ch; }
.rmap__zoom { position: absolute; right: 14px; top: 14px; display: grid; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.rmap__zoom button { width: 36px; height: 36px; border: 0; background: var(--surface); font: 600 18px var(--font); color: var(--ink); cursor: pointer; }
.rmap__zoom button + button { border-top: 1px solid var(--line); }
.rmap__zoom button:hover { background: var(--surface-2); }
.rmap__coords { position: absolute; left: 12px; bottom: 10px; margin: 0; font: 500 12px var(--mono); color: #fff; background: rgba(0, 0, 0, .45); padding: 3px 8px; border-radius: 3px; pointer-events: none; }
.rmap__coords:empty { display: none; }
.rmap__side { overflow-y: auto; border-left: 1px solid var(--line); background: var(--bg); padding: 16px; display: grid; gap: 14px; align-content: start; }
.rmap__card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 10px; }
.rmap__card h1 { font-size: 22px; overflow-wrap: anywhere; }
.rmap__card h2 { font-size: 16px; }
.rmap__card .eyebrow { margin: 0; }
.rmap__status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.rmap__status .dot { width: 9px; height: 9px; border-radius: 50%; background: #c2c0b8; }
.rmap__status[data-state="online"] .dot { background: #2e9e5b; box-shadow: 0 0 0 3px #d9f0e2; }
.rmap__status[data-state="error"] .dot { background: #c0392b; }
.rmap__stats { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.rmap__stats dt { color: var(--muted); }
.rmap__stats dd { margin: 0; font-weight: 600; text-align: right; }
.rmap__layers { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.rmap__layers label, .rmap__toggle { display: flex; align-items: center; gap: 6px; }
.rmap__toggle { align-items: flex-start; font-size: 14px; color: var(--ink); }
.rmap__toggle input { margin-top: 3px; }
.rmap__search { width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); font: 400 14px var(--font); }
.rmap__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 320px; overflow-y: auto; }
.rmap__list button { width: 100%; text-align: left; display: grid; gap: 1px; padding: 7px 8px; border: 0; border-radius: var(--radius); background: none; font: 500 14px var(--font); color: var(--ink); cursor: pointer; }
.rmap__list button:hover, .rmap__list button.is-sel { background: var(--surface-2); }
.rmap__list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) {
  .rmap { grid-template-columns: 1fr; height: auto; }
  .rmap__stage { height: 62vh; }
  .rmap__side { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Rust tools ---------- */
.rt-tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.rt-tabs button { border: 0; background: none; padding: 10px 14px; font: 600 14.5px var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.rt-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.rt-row { grid-template-columns: 1fr auto; }
.rt-row .svc__actions { margin: 0; flex-wrap: nowrap; }
.rt-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin: 18px 0; }
.rt-grid h3 { font-size: 16px; }
.rt-grid form { align-content: start; }
.rt-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.rt-inline input, .rt-options select, .rt-options textarea { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); font: 400 14px var(--font); min-width: 0; }
.rt-inline input { flex: 1 1 180px; }
.rt-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 8px 0; background: var(--surface); }
.rt-group summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; }
.rt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.rt-chip { display: inline-flex; align-items: center; gap: 4px; font: 500 12.5px var(--mono); background: var(--surface-2); border-radius: 3px; padding: 2px 4px 2px 8px; }
.rt-chip button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1; padding: 0 4px; }
.rt-chip button:hover { color: #8a1c12; }
.rt-editor { display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
.rt-files { display: grid; gap: 2px; align-content: start; max-height: 70vh; overflow-y: auto; }
.rt-files button { text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: var(--radius); font: 500 13.5px var(--mono); color: var(--ink); cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
.rt-files button:hover, .rt-files button.is-sel { background: var(--surface-2); }
.rt-edit { display: grid; gap: 10px; align-content: start; }
.rt-edit textarea { width: 100%; min-height: 58vh; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); font: 13px/1.5 var(--mono); background: #fbfaf7; tab-size: 2; }
.rt-options { max-width: 640px; }
.rt-check { display: flex; gap: 8px; align-items: center; font-size: 14.5px; }
.rt-chart { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0; background: var(--surface); }
.rt-chart svg { width: 100%; height: 140px; display: block; }
.rt-axis { stroke: var(--line); }
.rt-tick { font: 10px var(--mono); fill: var(--muted); }
@media (max-width: 760px) { .rt-grid, .rt-editor { grid-template-columns: 1fr; } .rt-row { grid-template-columns: 1fr; } }
.rt-output { min-height: 160px; max-height: 50vh; overflow: auto; margin: 10px 0; padding: 12px 14px; background: #15181b; color: #d7dde2; border-radius: var(--radius); font: 13px/1.5 var(--mono); white-space: pre-wrap; }
.rt-var { display: flex; gap: 10px; align-items: flex-end; margin: 6px 0; }
.rt-var .field { flex: 1; }
.rt-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .rt-grid--3 { grid-template-columns: 1fr; } }

/* ---------- tickets: staff notes / tools ---------- */
.tk-msg--note { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-style: dashed; }
.tk-staff { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.tk-staff select { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font: 500 14px var(--font); }

/* ---------- staff page ---------- */
.st-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-table th, .st-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.st-table th { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.st-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; margin-top: 16px; }
.st-perms { display: flex; flex-wrap: wrap; gap: 8px 16px; grid-column: 1 / -1; font-size: 14px; }
.st-perms label { display: flex; gap: 6px; align-items: center; }
.st-chip { display: inline-block; padding: 2px 8px; margin: 2px 4px 2px 0; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 12px var(--mono); }
.st-scroll { overflow-x: auto; }
/* Phones: a row per card instead of a table wider than the screen (its action buttons would sit off to the side). */
@media (max-width: 560px) {
  .st-table--stack thead { display: none; }
  .st-table--stack, .st-table--stack tbody, .st-table--stack tr, .st-table--stack td { display: block; }
  .st-table--stack tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .st-table--stack td, .st-table.st-table--stack td.num { padding: 3px 0; border: 0; text-align: left; overflow-wrap: anywhere; }
  .st-table--stack td:empty { display: none; }
  .st-table--stack td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
}

/* ---------- sub-sites ---------- */
.site-hero { padding-bottom: 72px; }

/* ---------- projects ---------- */
.pj-desc { white-space: pre-wrap; color: var(--text); }
.pj-wide { grid-column: 1 / -1; }
.pj-quote { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.pj-quote:last-child { border-bottom: 0; }
.pj-quote__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pj-quote__actions input { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); font: 500 14px var(--font); width: 140px; }
.invoice-doc { max-width: 760px; }

/* ---------- IronVault bar (suite.js; the bot dashboards draw the same bar) ---------- */
.suite-bar { background: var(--ink); color: #c9ccd1; font: 500 13px/1 var(--font); }
.suite-bar__inner { display: flex; gap: 2px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.suite-bar__inner::-webkit-scrollbar { display: none; }
.suite-bar a { color: inherit; text-decoration: none; padding: 9px 10px; white-space: nowrap; border-bottom: 2px solid transparent; }
.suite-bar a:hover { color: #fff; }
.suite-bar a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.suite-bar .suite-bar__home { font-weight: 800; color: #fff; padding-left: 0; margin-right: 8px; }

.site-logo { display: block; margin-bottom: 18px; }

/* ---------- embedded checkout ---------- */
.co-page { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: start; }
.co-page__summary h1 { font-size: 1.6rem; margin: 6px 0 18px; }
.co-page__lines { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 18px; }
.co-page__lines dt { color: var(--muted); }
.co-page__lines dd { margin: 0; font-weight: 600; text-align: right; }
.co-page__total { font-size: 1.25rem; font-weight: 800; padding-top: 14px; border-top: 1px solid var(--line); }
.co-page__trust { margin: 22px 0 0; padding-left: 18px; color: var(--muted); font-size: .92rem; display: grid; gap: 6px; }
.co-page__pay { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; min-height: 420px; }
#co-loading { padding: 24px; }
@media (max-width: 820px) { .co-page { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- landing pages (server/seo.js) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 4px 0; font: 500 13px var(--mono); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.page-landing .hero h1 { max-width: 18ch; font-size: clamp(40px, 6.4vw, 84px); }
.page-landing .plan__name { margin: 0; }
.page-landing a.game { text-decoration: none; }
.table-scroll { overflow-x: auto; }
.table-scroll .legal__table { margin: 0; }
.related { margin-top: 28px; color: var(--muted); }
.related a, .linklist a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.linklist { margin-top: 28px; color: var(--muted); font-size: 15px; }
.pane__title { display: block; font: 700 22px var(--font); color: var(--ink); }

/* Plan grids: 3 across, or 5 across for the five game tiers */
.plans:has(> :nth-child(5)) { grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 1100px) { .plans:has(> :nth-child(5)) { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .plans:has(> :nth-child(5)) { grid-template-columns: 1fr; } }

/* VPS access line + firewall dialog */
.svc__access { margin: 8px 0 0; }
.fw-add { display: grid; grid-template-columns: 110px 130px 1fr; gap: 8px; margin-top: 14px; }
.fw-add input, .fw-add select { font: inherit; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.fw-add #fw-port, .fw-add #fw-source, .fw-add #fw-comment { grid-column: span 3; }
.fw-add #fw-port { grid-column: 3; }
@media (max-width: 560px) { .fw-add { grid-template-columns: 1fr 1fr; } .fw-add #fw-port { grid-column: span 2; } }
/* Order form: affiliate code box */
.co-code { display: flex; gap: 8px; }
.co-code input { flex: 1; min-width: 0; text-transform: uppercase; }
#co-code-note.ok { color: var(--ok, #2f7d4f); }
#co-code-note.err { color: var(--err, #b3261e); }
#co-code-note:empty { display: none; }
.co-code input::placeholder { text-transform: none; }

/* ---------- Projects: progress media, versions, reviews, developer board ---------- */
.btn--danger { color: #8a1c12; border-color: #f3c2bc; }
.btn--danger:hover { background: #fdecea; color: #8a1c12; border-color: #8a1c12; }
.pj-counts { margin: 6px 0 0; }
.pj-sub { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pj-sub:empty { display: none; }
.pj-sub h3 { font-size: 16px; margin-bottom: 8px; }
.pj-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 8px; white-space: normal; }
.pj-shot { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.pj-shot a { display: block; }
.pj-shot img { display: block; width: 100%; height: 110px; object-fit: cover; }
.pj-shot__del { position: absolute; top: 4px; right: 4px; padding: 2px 8px; font-size: 12px; }
.pj-video { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.pj-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 11.5px var(--mono); color: var(--muted); vertical-align: middle; }
.pj-tag--latest { color: var(--ok); border-color: #bfe0cb; background: #e7f4ec; }
.pj-msg-tools { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.pj-edit { display: grid; gap: 8px; margin-top: 8px; text-align: left; }
.pj-edit textarea { width: 100%; font: 400 15px var(--font); padding: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.pj-stars { color: var(--accent); letter-spacing: 1px; }
.dev-job { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.dev-job:last-child { border-bottom: 0; }
.dev-agreement { max-width: 760px; }
.dev-agreement h2 { font-size: 18px; margin: 22px 0 8px; }
.dev-draft { border: 2px dashed var(--accent); background: var(--accent-soft); color: var(--accent-ink); padding: 12px 16px; border-radius: var(--radius); }
.dev-changes { border-left: 3px solid var(--accent); padding: 8px 12px; background: var(--surface-2); border-radius: var(--radius); }
/* Developer payouts (Stripe Connect): the panel on /dev/jobs and the staff payout views. */
.dev-pay { display: grid; gap: 12px; }
.dev-pay__head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.dev-pay__head h2 { margin: 0; }
.dev-pay__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dev-split { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 13.5px var(--mono); color: var(--ink); }
.dev-split b { font-weight: 700; }
.dev-split__you { color: var(--ok); }
.dev-rule { border: 1px solid var(--line-strong); background: var(--surface-2); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 10px; }
.pj-sub .dev-pay { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.pj-sub .dev-split { margin: 6px 0; }
.dev-warn { border: 1px solid #f3c2bc; background: #fdecea; color: #8a1c12; padding: 10px 14px; border-radius: var(--radius); }
.dev-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.dev-kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--surface); }
.dev-kpi small { display: block; color: var(--muted); font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.dev-kpi b { font: 800 19px var(--font); }
.dev-h { margin: 28px 0 8px; font-size: 18px; }
.dev-h4 { margin: 18px 0 6px; font-size: 15px; }
.pill-status--pending { color: #6b5600; border-color: #eadb9c; background: #fbf5d9; }
.review figcaption .pj-stars { display: block; margin-bottom: 2px; }

/* ---------- Printable invoice (/invoices/<number>) ---------- */
.page-invoice { background: var(--bg); }
.invoice-bar { width: min(820px, 100% - 32px); margin: 24px auto 0; display: flex; justify-content: space-between; gap: 12px; }
.invoice-sheet { width: min(820px, 100% - 32px); margin: 16px auto 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 40px 44px; }
.invoice-sheet__head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.invoice-brand { display: flex; gap: 12px; align-items: center; }
.invoice-brand b { display: block; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
.invoice-brand b span { color: var(--accent); }
.invoice-brand small { color: var(--muted); font-size: 13px; }
.invoice-sheet__meta { text-align: right; }
.invoice-sheet__meta h1 { font-size: 30px; text-transform: uppercase; letter-spacing: 0.08em; }
.invoice-number { margin: 4px 0 8px; font: 600 15px var(--mono); color: var(--ink); }
.invoice-stamp { display: inline-block; padding: 3px 12px; border: 2px solid currentColor; border-radius: var(--radius); font: 700 13px var(--font); text-transform: uppercase; letter-spacing: 0.08em; }
.invoice-stamp--paid { color: var(--ok); }
.invoice-stamp--due { color: var(--accent-ink); }
.invoice-parties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.invoice-parties h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
.invoice-parties p { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.invoice-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 14.5px; }
.invoice-dl dt { color: var(--muted); }
.invoice-dl dd { margin: 0; }
.invoice-lines { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
.invoice-lines th, .invoice-lines td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.invoice-lines thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); border-bottom: 1px solid var(--ink); }
.invoice-lines tfoot th { font-size: 17px; color: var(--ink); border-bottom: 0; border-top: 2px solid var(--ink); }
.invoice-lines .num { text-align: right; white-space: nowrap; }
.invoice-sheet__foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
@media (max-width: 640px) {
  .invoice-sheet { padding: 24px 18px; }
  .invoice-sheet__head { flex-direction: column; }
  .invoice-sheet__meta { text-align: left; }
  .invoice-parties { grid-template-columns: 1fr; }
}
@media print {
  @page { size: A4; margin: 14mm; }
  .no-print, .nav, .footer { display: none !important; }
  body, .page-invoice { background: #fff; color: #000; font-size: 12pt; }
  .invoice-sheet { width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; }
  .invoice-sheet__head, .invoice-lines thead th, .invoice-lines tfoot th { border-color: #000; }
  .invoice-stamp, .invoice-brand b span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .invoice-parties { grid-template-columns: repeat(3, 1fr); }
  .invoice-lines tr { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}

/* ---------- Ticket topics (support.html new-ticket form) ---------- */
.tk-topics { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.tk-topics legend { font: 600 15px var(--font); color: var(--ink); margin-bottom: 6px; padding: 0; }
.tk-topics__group { font: 600 12px var(--mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 6px; }
.tk-topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.tk-topic { position: relative; cursor: pointer; }
.tk-topic input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tk-topic span { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font: 600 14px/1.25 var(--font); color: var(--ink); }
.tk-topic span b { font-weight: 400; }
.tk-topic:hover span { border-color: var(--ink); }
.tk-topic input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.tk-topic input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Network status page (/status) ---------- */
.sp h1 { font: 800 clamp(34px, 5vw, 52px)/1.05 var(--font); letter-spacing: -0.035em; margin-bottom: 18px; }
.sp h2 { font: 700 21px var(--font); margin: 0 0 12px; letter-spacing: -0.02em; }
.sp-banner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: var(--radius); background: var(--surface); margin-bottom: 18px; }
.sp-banner--degraded { border-left-color: #c47a00; }
.sp-banner--outage { border-left-color: #b3261e; }
.sp-banner--maintenance { border-left-color: #3a5fa0; }
.sp-components { list-style: none; padding: 0; margin: 0 0 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sp-components li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.sp-components li:first-child { border-top: 0; }
.sp-pill { font: 600 12px var(--mono); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; color: var(--muted); background: var(--surface); }
.sp-pill--operational { color: var(--ok); border-color: #bfe0cb; background: #e7f4ec; }
.sp-pill--degraded { color: #7a4a00; border-color: #efd29a; background: #fdf3df; }
.sp-pill--outage { color: #8a1c12; border-color: #f3c2bc; background: #fdecea; }
.sp-pill--maintenance { color: #23406f; border-color: #c4d3ec; background: #eaf0fa; }
.sp-block { margin-bottom: 32px; }
.sp-incident { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; }
.sp-incident h3 { font: 700 17px/1.3 var(--font); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.sp-timeline { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.sp-timeline li { white-space: pre-line; }
.sp a, .st-status a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .tk-topic-grid { grid-template-columns: 1fr 1fr; } .sp-components li { flex-direction: column; align-items: flex-start; } }
.st-status textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); font: 400 15px/1.5 var(--font); color: var(--ink); resize: vertical; }
.st-status .sp-incident .st-form { margin-top: 10px; }
/* Business dashboard (/staff/business) */
.biz-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0; }
.biz-sub { margin: 22px 0 10px; font-size: 16px; } /* Server health: Storage / Dedicated stock / Our servers */
.biz-kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px; background: var(--surface); }
.biz-kpi dt { font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.biz-kpi dd { margin: 4px 0 0; font: 700 24px/1.2 var(--font); color: var(--ink); }
.biz-kpi dd small { display: block; font: 500 13px var(--font); color: var(--muted); }
.biz-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.biz-chart figcaption { font: 600 14px var(--font); color: var(--ink); margin-bottom: 6px; }
.biz-chart svg { display: block; width: 100%; height: auto; }
.biz-bar { fill: var(--accent); }
.biz-bar:hover { fill: var(--accent-ink); }
.biz-axis { stroke: var(--line-strong); stroke-width: 1; }
.biz-label { fill: var(--muted); font: 500 10px var(--mono); }
.st-table td.num, .st-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .biz-charts { grid-template-columns: 1fr; } }

/* Help centre (/help, /migrate; server/help.js) */
.help-card { color: inherit; text-decoration: none; }
.help-card:hover h3, .help-card:focus-visible h3 { text-decoration: underline; }
.help-steps { padding-left: 1.3em; }
.help-steps li { margin: 0 0 12px; line-height: 1.6; }
.help-guide details { margin: 0 0 10px; }
/* Recovery guides (/staff/recovery, server/recovery.js): long commands scroll inside their block, never the page. */
.help-guide pre { max-width: 100%; overflow-x: auto; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius); font-size: 12.5px; line-height: 1.5; }
.help-guide pre code { white-space: pre; }
.help-guide :not(pre) > code { overflow-wrap: anywhere; }

/* ---------- Staff tools hub (/staff) ---------- */
.st-hub__group + .st-hub__group { margin-top: 22px; }
.st-hub__group h3 { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.st-tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.st-tool { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); }
.st-tool b { color: var(--ink); font-weight: 700; }
.st-tool span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.st-tool:hover, .st-tool:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 520px) { .st-tools { grid-template-columns: 1fr; } }
/* Staff tool pages (/staff/services, /staff/discount-codes, …) */
.dc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.dc-form .dc-wide { grid-column: 1 / -1; }
.dc-warn { margin-top: 6px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); font-size: 14px; }
/* Client area "Get started" checklist (public/account-checklist.js) */
.cl-list { display: grid; gap: 16px; }
.cl-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.cl-card h3 { margin: 0; font-size: 17px; }
.cl-card progress { width: 100%; height: 6px; margin: 10px 0 4px; accent-color: var(--accent); }
.cl-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cl-step { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; line-height: 1.5; }
.cl-step--done b { text-decoration: line-through; color: var(--muted); }
.cl-step input { margin-top: 4px; }
.cl-check { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-top: 3px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
.cl-check--on { background: var(--accent-soft); border-color: var(--accent); }
/* /status "Get updates" */
.sp-subscribe .auth__form { max-width: 560px; }
.sp-sub-components { border: 0; padding: 0; margin: 4px 0 8px; }
.sp-sub-components legend { padding: 0; margin-bottom: 6px; }

/* ---------- Supported games (server/bot-games.js): chips, groups and the game × feature matrix ---------- */
.bg-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0; border-top: 1px solid var(--ink); margin-bottom: 36px; }
.bg-group { padding: 22px 24px 24px 0; }
.bg-group + .bg-group { padding-left: 24px; border-left: 1px solid var(--line); }
.bg-group h3 { font: 700 18px var(--font); margin-bottom: 6px; }
.bg-group .muted.small { margin-bottom: 14px; max-width: 46ch; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; font: 500 13.5px var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; line-height: 1.4; }
a.chip:hover { border-color: var(--ink); }
.chip--plat, .plat { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--accent-ink); background: var(--accent-soft); border-color: transparent; }
.plat { display: inline-block; border-radius: 999px; padding: 2px 9px; margin: 0 4px 4px 0; white-space: nowrap; }
.chips--jump { margin-top: 28px; }
.matrix-card { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.matrix-card:focus-visible { outline-offset: 2px; }
.matrix { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
.matrix--features { min-width: 0; }
.matrix--games { min-width: 0; }
.matrix caption { text-align: left; padding: 14px 16px; font: 600 14px var(--font); color: var(--ink); border-bottom: 1px solid var(--line); }
.matrix th, .matrix td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.matrix thead th { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); vertical-align: bottom; background: var(--surface-2); }
.matrix tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.matrix--features tbody th { white-space: normal; }
.matrix--features tbody th .small { display: block; font-weight: 400; margin-top: 2px; }
.matrix .m { text-align: center; white-space: nowrap; font-weight: 700; }
.matrix thead th:not(:first-child) { text-align: center; }
.matrix--games thead th:not(:first-child) { text-align: left; }
.matrix .m--yes { color: var(--ok); }
.matrix .m--panel { color: var(--accent-ink); }
.matrix .m--no { color: var(--line-strong); font-weight: 400; }
/* First column stays put while the matrix scrolls sideways on a phone. */
.matrix:not(.matrix--games) tbody th, .matrix:not(.matrix--games) thead th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; box-shadow: 1px 0 0 var(--line); }
.matrix:not(.matrix--games) thead th:first-child { background: var(--surface-2); }
.matrix--games td:last-child { text-align: right; white-space: nowrap; }
.matrix--games tr.row-more td { border-top: 0; }
.matrix-note { margin-top: 12px; max-width: 110ch; }
.section--games { background: var(--bg); }
.co-works { margin-top: 8px; color: var(--muted); }
.co-works b { color: var(--ink); }
.matrix-swipe { display: none; }
@media (max-width: 720px) {
  .matrix-swipe { display: block; margin-bottom: 8px; }
  .matrix { font-size: 13px; }
  .matrix:not(.matrix--games) tbody th { white-space: normal; min-width: 104px; max-width: 128px; }
  .matrix--features tbody th { max-width: none; }
  .bg-group, .bg-group + .bg-group { padding: 18px 0; border-left: 0; }
  .bg-group + .bg-group { border-top: 1px solid var(--line); }
  /* Games table: one card per row instead of five squeezed columns. */
  .matrix--games, .matrix--games tbody, .matrix--games tr, .matrix--games th, .matrix--games td { display: block; }
  .matrix--games thead { display: none; }
  .matrix--games tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .matrix--games tbody th, .matrix--games td { padding: 2px 0; border: 0; white-space: normal; }
  .matrix--games tbody th { font-size: 16px; padding: 0 0 4px; }
  .matrix--games caption { display: block; }
  .matrix--games tr.row-more::before { content: "Also for this game"; display: block; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
  .matrix--games td:last-child { text-align: left; padding-top: 8px; }
  .matrix--games td[data-label="Platforms"] { padding-bottom: 4px; }
}

/* ---------- Add-ons (server/upsells.js): /addons, client area, staff page, branded pages ---------- */
.cycles--addons { margin: 0 0 18px; }
.auth__form--inline { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.auth__form--inline .field { flex: 1 1 160px; margin: 0; }
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 6px 0 12px; max-width: 480px; }
.meter__bar { display: block; height: 100%; width: 0; background: var(--ok); border-radius: 999px; }
.meter__bar--over { background: #b4361f; }
.sla { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 600 12px var(--mono); border: 1px solid var(--line-strong); }
.sla--ok { color: var(--ok); border-color: #bfe0cb; background: #e7f4ec; }
.sla--late { color: #8a1c12; border-color: #f3c2bc; background: #fdecea; }
.domain-row { border-top: 1px solid var(--line); padding: 8px 0; }
.domain-row p { margin: 4px 0; }
.brand-logo-preview { vertical-align: middle; border-radius: var(--radius); object-fit: contain; background: var(--surface-2); }
.sa-plan { border-top: 1px solid var(--line); padding: 12px 0; }
.page-brand .brand img { border-radius: var(--radius); object-fit: contain; }
.page-brand .acct__head h1 { color: var(--accent); }
.brand-servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.brand-server h3 { margin-bottom: 4px; }
.brand-state { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 10px 0 0; }
.brand-state .dot { width: 10px; height: 10px; border-radius: 50%; background: #c2c0b8; }
.brand-state--online .dot { background: #2e9e5b; box-shadow: 0 0 0 3px #d9f0e2; }
.brand-state--offline .dot { background: #b4361f; }
.brand-svcs { display: grid; gap: 6px; }
.field input[type="color"] { width: 72px; height: 40px; padding: 3px; cursor: pointer; }

/* Server templates (/templates, Game tools → Templates) and the Rust wipe schedule (Rust tools → Wipe schedule) */
.tpl-card .eyebrow { margin-bottom: 4px; }
.tpl-card .svc__actions { margin: 8px 0; }
.tpl-custom { margin-top: 28px; }
#tpl-filters { margin-bottom: 18px; flex-wrap: wrap; }
.tpl-row .tk-row__main b { white-space: normal; }
.wipe-sched__group { border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; display: grid; gap: 10px; }
.wipe-sched__group legend { font-weight: 700; padding: 0 6px; }

/* ---------- Game server analytics & alerts (game-insights.html, brand page widget, staff-analytics.html) ---------- */
.gi-ranges { display: flex; flex-wrap: wrap; gap: 6px; }
.gi-ranges button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 5px 10px; font: 600 13px/1.2 var(--font); cursor: pointer; }
.gi-ranges button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gi-ranges button[data-locked] { color: var(--muted); }
.gi-upsell { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px; }
.gi-upsell p { flex: 1 1 320px; }
.gi-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.gi-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.gi-tile b { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.gi-chart { width: 100%; overflow: hidden; }
.gi-chart svg, .gi-heat svg { max-width: none; }
.gi-heat { overflow-x: auto; }
.gi-readout { min-height: 1.6em; margin: 4px 0; }
.gi-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); margin: 0 0 6px; }
.gi-key { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--accent); vertical-align: middle; }
.gi-key--max { border-top: 2px dashed var(--accent-ink); }
.gi-key--up, .gi-key--down { height: 8px; border: 0; background: #2e9e5b; }
.gi-key--down { background: #c4472f; }
.gi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 14px; margin-top: 14px; }
.gi-narrow { max-width: 260px; }
.gi-badge { display: inline-block; }
.brand-players { margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.brand-spark { margin-top: 8px; }
#alerts-table { overflow-x: auto; }
#alerts-table table { min-width: 520px; }
/* Free trials / offers and community support pages (client area: account-offers.js; public: /chip-in, chip-in.js) */
.offer-row { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.offer-row p { margin: 4px 0 0; }
.chip-own { padding-bottom: 14px; margin-bottom: 8px; }
.chip-own .chip-form { margin-top: 10px; }
.chipin h2 { font-size: 18px; margin: 26px 0 8px; }
.chip__covered { font-size: 17px; margin: 18px 0 4px; }
.chip__amounts { grid-template-columns: repeat(4, 1fr); }
.chip__total { font: 500 13px var(--mono); color: var(--muted); margin: 4px 0; }
.chip__note { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 16px 0; background: var(--surface-2); }
.chip__list { padding-left: 20px; display: grid; gap: 8px; }
.page-chip .meter__bar { background: var(--accent); }
@media (max-width: 520px) { .chip__amounts { grid-template-columns: 1fr 1fr; } .offer-row { flex-direction: column; } }
/* Managed servers (/staff/managed, server/managed.js) and the customer "Plugin errors" panel. */
.mm-scroll { overflow-x: auto; }
.mm-table td { vertical-align: top; }
.mm-row { cursor: pointer; }
.mm-row:hover td, .mm-row:focus td, .mm-row--on td { background: var(--accent-soft); }
.mm-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.mm-sort[aria-sort="ascending"]::after { content: " ▲"; font-size: 10px; }
.mm-sort[aria-sort="descending"]::after { content: " ▼"; font-size: 10px; }
.mm-chip { display: inline-block; font: 600 12px var(--mono); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; color: var(--muted); background: var(--surface); vertical-align: middle; }
.mm-chip--ok { color: var(--ok); border-color: #bfe0cb; background: #e7f4ec; }
.mm-chip--lagging { color: #7a4a00; border-color: #efd29a; background: #fdf3df; }
.mm-chip--errors { color: #23406f; border-color: #c4d3ec; background: #eaf0fa; }
.mm-chip--down { color: #8a1c12; border-color: #f3c2bc; background: #fdecea; }
.mm-warn { color: #8a1c12; font-weight: 600; }
.mm-kind { font: 600 12px var(--mono); color: var(--accent-ink); }
.mm-example { display: block; white-space: pre-wrap; word-break: break-word; font-size: 12px; color: var(--muted); max-width: 640px; }
.mm-resolved td { opacity: .55; }
.mm-key--cpu { border-top-color: #b8670f; }
.mm-detail h3 { margin: 24px 0 8px; }
.mm-links { margin: 6px 0 14px; }
.mm-tiles .gi-tile b { font-size: 16px; line-height: 1.35; }
/* Developer payout setup: stage steps and the Stripe embedded components (Connect.js) mounted on /dev/jobs. */
.dev-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: devstep; }
.dev-steps li { counter-increment: devstep; display: flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font: 600 12.5px var(--font); color: var(--muted); background: var(--surface); }
.dev-steps li::before { content: counter(devstep); display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font: 700 11px var(--mono); }
.dev-steps li.is-done { color: var(--ok); border-color: #bfe0cb; }
.dev-steps li.is-done::before { content: "✓"; background: #e7f4ec; color: var(--ok); }
.dev-steps li.is-current { color: var(--ink); border-color: var(--ink); }
.dev-steps li.is-current::before { background: var(--ink); color: #fff; }
.dev-steps li.is-warn { color: #8a1c12; border-color: #f3c2bc; background: #fdecea; }
.dev-steps li.is-warn::before { content: "!"; background: #8a1c12; color: #fff; }
.dev-connect { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: var(--bg); min-height: 60px; }
.dev-connect--banner { border: 0; padding: 0; min-height: 0; background: none; }
.dev-connect--banner:empty { display: none; }

/* Pay one custom development invoice (/pay/<number>, public/pay.js). */
.pay-amount { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 14px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.pay-amount strong { font: 800 26px/1 var(--font); letter-spacing: -0.02em; }

/* Customers (/staff/customers, owners only: public/staff-customers.js, server/owner-customers.js). */
.oc-cats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 8px; }
.oc-cat { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.oc-filters { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(130px, 1fr)) auto; gap: 10px 14px; align-items: end; margin: 0 0 14px; }
.oc-filters .svc__actions { margin: 0; }
.oc-table td { vertical-align: top; }
.oc-row { cursor: pointer; }
.oc-row:hover, .oc-row:focus { background: var(--accent-soft); outline: none; }
.oc-badge { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); white-space: nowrap; }
.oc-badge--ok { color: var(--ok); border-color: #b9dcc7; background: #e9f5ee; }
.oc-badge--warn { color: var(--accent-ink); border-color: #e3c49f; background: var(--accent-soft); }
.oc-badge--bad { color: #a3361f; border-color: #e6b7ab; background: #fbeae5; }
.oc-badge--info { color: #23406f; border-color: #b8c6de; background: #e9eef7; }
.oc-pager { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 12px; }
.oc-pager:empty { display: none; }
.oc-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 18px; margin: 8px 0 18px; }
.oc-facts dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.oc-facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.oc-action .tk-toggle { margin: 6px 0 10px; }
.oc-notes { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.oc-notes li { border-left: 3px solid var(--line-strong); padding: 4px 0 4px 12px; }
.oc-notes p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) { .oc-filters { grid-template-columns: 1fr 1fr; } .oc-filters .field:first-child { grid-column: 1 / -1; } }

/* Client area: Warden Casino plans (public/account-casino.js) */
.casino-guilds { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.casino-guilds li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
