/* ============================================================
   L II Integrity — design system
   Dark fantasy, gold-on-dark. Display: Cinzel, body: Inter.
   ============================================================ */

:root {
  --bg: #090e0c;
  --bg-raise: #0e1512;
  --panel: #101814;
  --panel-edge: #1d2a23;
  --teal-dim: #85a898;
  --line: rgba(201, 162, 75, 0.18);
  --line-strong: rgba(201, 162, 75, 0.40);
  --gold: #c9a24b;
  --gold-bright: #e8c56a;
  --gold-deep: #8a6a2a;
  --text: #d8d5cc;
  --text-dim: #98a0b0;
  --text-faint: #6b7280;
  --danger: #e0564b;
  --success: #4bbf73;
  --info: #5b9bd5;
  --radius: 10px;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Subtle fixed backdrop, echoing the launcher keyart: a teal night-sky glow
   up top and a faint warm gold below, so every page shares the hero's world. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 520px at 50% -10%, rgba(74, 122, 104, 0.16), transparent 62%),
    radial-gradient(900px 600px at 85% 110%, rgba(201, 162, 75, 0.07), transparent 60%),
    var(--bg);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #efeadd;
}

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: #f5d98c; }

code {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.15em 0.5em;
  color: var(--gold-bright);
  font-size: 0.95em;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 14, 12, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
}

.brand-emblem { height: 34px; width: auto; display: block; }

.brand-name {
  /* launcher window-title treatment: spaced small caps */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #efeadd;
  white-space: nowrap;
}

.brand-name em {
  font-style: normal;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 1.25rem; }

.nav-links a, .nav-auth a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.15s;
}

.nav-links a:hover, .nav-auth a:hover { color: var(--gold-bright); }

.nav-auth { display: flex; align-items: center; gap: 1rem; }

.nav-user { color: var(--gold-bright) !important; font-weight: 600; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: #14100a !important;
  box-shadow: 0 2px 14px rgba(201, 162, 75, 0.25);
}

.btn-gold:hover {
  box-shadow: 0 4px 22px rgba(201, 162, 75, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text) !important;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright) !important;
  background: rgba(201, 162, 75, 0.06);
}

.btn-sm { padding: 0.42rem 1rem; font-size: 0.85rem; }

/* default form buttons */
button {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  border: none;
  color: #14100a;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.12s;
}

button:hover { box-shadow: 0 3px 18px rgba(201, 162, 75, 0.4); transform: translateY(-1px); }
button:active { transform: translateY(0); }

button:disabled, .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-danger, button.btn-danger {
  background: transparent;
  border: 1px solid rgba(224, 86, 75, 0.5);
  color: var(--danger);
  box-shadow: none;
}

.btn-danger:hover, button.btn-danger:hover {
  background: rgba(224, 86, 75, 0.1);
  box-shadow: none;
}

/* ---------- layout ---------- */

main { min-height: 60vh; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4.5rem 0; }

.section-head { text-align: center; margin-bottom: 2.75rem; }

.section-head h2 { font-size: 1.9rem; }

.section-head .sub {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0.6rem auto 0;
}

/* ornamental divider under section headings */
.section-head h2::after {
  content: "";
  display: block;
  width: 180px;
  height: 13px;
  margin: 0.9rem auto 0;
  background:
    linear-gradient(90deg, transparent, var(--line-strong) 35%, var(--line-strong) 65%, transparent) center / 100% 1px no-repeat;
  position: relative;
}

.section-head .diamond {
  display: block;
  width: 7px;
  height: 7px;
  margin: -10px auto 0;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(201, 162, 75, 0.8);
  position: relative;
}

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding: 6.5rem 1.25rem 4.5rem;
  position: relative;
  overflow: hidden;
  /* launcher keyart atmosphere: warm stars over a teal night sky */
  background:
    radial-gradient(1.5px 1.5px at 12% 28%, rgba(226, 214, 172, 0.9), transparent 100%),
    radial-gradient(1px 1px at 26% 62%, rgba(226, 214, 172, 0.55), transparent 100%),
    radial-gradient(2px 2px at 34% 18%, rgba(232, 222, 184, 0.75), transparent 100%),
    radial-gradient(1px 1px at 47% 44%, rgba(226, 214, 172, 0.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 58% 24%, rgba(226, 214, 172, 0.8), transparent 100%),
    radial-gradient(1px 1px at 66% 58%, rgba(226, 214, 172, 0.45), transparent 100%),
    radial-gradient(2px 2px at 76% 34%, rgba(232, 222, 184, 0.7), transparent 100%),
    radial-gradient(1px 1px at 86% 15%, rgba(226, 214, 172, 0.6), transparent 100%),
    radial-gradient(1.5px 1.5px at 92% 52%, rgba(226, 214, 172, 0.65), transparent 100%),
    radial-gradient(1px 1px at 8% 74%, rgba(226, 214, 172, 0.4), transparent 100%),
    radial-gradient(ellipse 90% 65% at 50% 8%, rgba(74, 122, 104, 0.30), transparent 68%),
    linear-gradient(180deg, #17251f 0%, #101a16 48%, #080d0b 100%);
}

.hero::before {
  /* soft mountain ridges along the bottom, as in the launcher art */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 240px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23101b15' d='M0 215 L170 148 L330 206 L520 118 L710 192 L900 138 L1090 202 L1270 152 L1440 196 L1440 320 L0 320 Z'/%3E%3Cpath fill='%23090f0b' d='M0 262 L210 216 L430 258 L650 202 L870 252 L1090 212 L1310 254 L1440 228 L1440 320 L0 320 Z'/%3E%3C/svg%3E")
    bottom / 100% 100% no-repeat;
  filter: blur(3px);
  opacity: 0.9;
  pointer-events: none;
}

.hero::after {
  /* gold bar at the hero's base — the launcher's loaded progress bar */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(680px, 72%);
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, transparent, var(--gold-bright) 18%, var(--gold-bright) 82%, transparent);
  box-shadow: 0 0 18px rgba(232, 197, 106, 0.45);
}

.hero > * { position: relative; z-index: 1; }

.hero-wordmark {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.hero-wordmark .wm-l {
  background: linear-gradient(180deg, #f4f2ea 10%, #d9d5c8 50%, #9a968a 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-wordmark .wm-ii {
  margin-left: 0.18em;
  background: linear-gradient(180deg, #f5e5b8 12%, var(--gold-bright) 45%, var(--gold-deep) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-wm-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.52em;
  padding-left: 0.52em; /* recenter: letter-spacing trails the last glyph */
  margin-top: 0.75rem;
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  text-transform: uppercase;
  color: var(--teal-dim);
  margin-top: 1.1rem;
}

.hero-cta .btn {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-tagline {
  max-width: 620px;
  margin: 1.1rem auto 0;
  font-size: 1.12rem;
  color: var(--text-dim);
  text-wrap: balance;
}

.hero-cta {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

/* ---------- status strip ---------- */

.status-strip {
  max-width: 880px;
  margin: 3.2rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  /* glassy panel, like the launcher's news card */
  background: linear-gradient(180deg, rgba(13, 20, 16, 0.72), rgba(8, 13, 11, 0.78));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}

.status-cell {
  padding: 1.15rem 0.75rem;
  border-left: 1px solid var(--line);
}

.status-cell:first-child { border-left: none; }

.status-cell .k {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.status-cell .v {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #efeadd;
  margin-top: 0.2rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.status-pill .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.status-pill.online { color: var(--success); }
.status-pill.online .dot { background: var(--success); box-shadow: 0 0 10px var(--success); }
.status-pill.offline { color: var(--danger); }
.status-pill.offline .dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }

/* ---------- feature cards ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-raise));
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: border-color 0.2s, transform 0.15s;
}

.feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(201, 162, 75, 0.1);
  border: 1px solid var(--line);
  color: var(--gold-bright);
  margin-bottom: 1rem;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }

.feature-card p { color: var(--text-dim); font-size: 0.93rem; }

/* ---------- VIP section ---------- */

.vip-panel {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(201, 162, 75, 0.12), transparent 70%),
    linear-gradient(180deg, var(--panel), var(--bg-raise));
  box-shadow: 0 0 60px rgba(201, 162, 75, 0.08);
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #14100a;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.1rem;
}

.vip-panel h2 { font-size: 1.8rem; margin-bottom: 0.7rem; }

.vip-panel .vip-desc { color: var(--text-dim); }

.vip-note {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--text-faint);
}

.vip-benefits { display: grid; gap: 0.8rem; }

.vip-benefit {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(9, 14, 12, 0.55);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.8rem 1.1rem;
}

.vip-benefit .mult {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-bright);
  min-width: 3.2rem;
  text-align: center;
}

.vip-benefit .what { font-size: 0.95rem; }

.vip-benefit .what small { display: block; color: var(--text-faint); }

/* ---------- connect steps ---------- */

.steps { max-width: 720px; margin: 0 auto; display: grid; gap: 1rem; }

.step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: linear-gradient(180deg, var(--panel), var(--bg-raise));
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-bright);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step h3 { font-size: 1rem; margin-bottom: 0.25rem; }

.step p { color: var(--text-dim); font-size: 0.93rem; }

/* ---------- panels / cards (account, admin, auth) ---------- */

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 4rem;
}

.page-title { font-size: 1.75rem; margin-bottom: 0.4rem; }

.page-sub { color: var(--text-dim); margin-bottom: 2rem; }

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-raise));
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}

.card > h2 {
  font-size: 1.1rem;
  padding-bottom: 0.8rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.card-grid {
  display: grid;
  /* minmax(0, 1fr) lets tracks shrink below content min-width so wide cards
     (tables, the VIP banner) don't blow the grid past the viewport on mobile */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}

.card-grid .span-2 { grid-column: span 2; }

/* VIP status card */
.vip-status-card { border-color: var(--line-strong); }

.vip-state {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.vip-state.active { color: var(--gold-bright); }
.vip-state.inactive { color: var(--text-faint); }

.vip-until { color: var(--text-dim); font-size: 0.92rem; margin-top: 0.4rem; }

/* VIP status banner (full-width top card) */
.vip-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.vip-banner-main { flex: 1 1 320px; }
.vip-banner-main .vip-until { margin-top: 0.5rem; max-width: 46ch; }
.vip-banner-aside { flex: 0 0 auto; }

.vip-expiry { text-align: right; line-height: 1.25; }
.vip-expiry .k {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.vip-expiry .v {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-bright);
}
.vip-expiry .t { display: block; font-size: 0.82rem; color: var(--text-dim); }

@media (max-width: 560px) {
  .vip-banner { align-items: flex-start; }
  .vip-expiry { text-align: left; }
}

/* ---------- auth card ---------- */

.auth-wrap { display: grid; place-items: center; padding: 4rem 1.25rem; }

.auth-card {
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, var(--panel), var(--bg-raise));
  border: 1px solid var(--panel-edge);
  border-radius: 14px;
  padding: 2.5rem 2.25rem;
  text-align: center;
}

.auth-card .auth-emblem { height: 72px; margin-bottom: 1rem; filter: drop-shadow(0 0 16px rgba(201, 162, 75, 0.3)); }

.auth-card h1 { font-size: 1.5rem; margin-bottom: 0.4rem; }

.auth-card .auth-sub { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1.6rem; }

.auth-card form { text-align: left; }

.auth-alt {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---------- forms ---------- */

form { display: flex; flex-direction: column; gap: 1.05rem; }

label {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
  display: block;
  color: var(--text-dim);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  background: rgba(9, 14, 12, 0.7);
  border: 1px solid var(--panel-edge);
  color: var(--text);
  padding: 0.72rem 0.9rem;
  border-radius: 8px;
  font-size: 0.98rem;
  font-family: var(--font-body);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.15);
}

.form-hint { font-size: 0.8rem; color: var(--text-faint); margin-top: 0.3rem; }

.form-error {
  background: rgba(224, 86, 75, 0.1);
  border: 1px solid rgba(224, 86, 75, 0.4);
  border-radius: 8px;
  color: #f0a8a2;
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
  text-align: left;
}

/* flex-direction:row is explicit so `.form-row` also wins on <form> elements,
   which default to flex-direction:column (see the `form` rule above). */
.form-row { display: flex; flex-direction: row; gap: 0.9rem; align-items: flex-end; }
.form-row > div { flex: 1; }

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

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }

thead th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

tbody td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

tbody tr:hover { background: rgba(201, 162, 75, 0.04); }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.14rem 0.7rem;
}

.tag-on { background: rgba(75, 191, 115, 0.12); color: var(--success); border: 1px solid rgba(75, 191, 115, 0.35); }
.tag-off { background: rgba(255, 255, 255, 0.04); color: var(--text-faint); border: 1px solid rgba(255, 255, 255, 0.08); }
.tag-gold { background: rgba(201, 162, 75, 0.12); color: var(--gold-bright); border: 1px solid var(--line-strong); }

/* ---------- flash ---------- */

.flash-wrap { max-width: 1080px; margin: 1rem auto 0; padding: 0 1.25rem; }

.flash {
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
  border-radius: 8px;
  border: 1px solid;
  font-size: 0.94rem;
}

.flash-info { background: rgba(91, 155, 213, 0.1); border-color: rgba(91, 155, 213, 0.4); color: #a8d4f7; }
.flash-error { background: rgba(224, 86, 75, 0.1); border-color: rgba(224, 86, 75, 0.4); color: #f0a8a2; }
.flash-success { background: rgba(75, 191, 115, 0.1); border-color: rgba(75, 191, 115, 0.4); color: #9fe8bb; }

/* ---------- launcher download ---------- */

.launcher-card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.launcher-preview {
  flex: 1 1 380px;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.launcher-preview img { display: block; width: 100%; height: auto; }

.launcher-info { flex: 1 1 300px; color: var(--text-dim); font-size: 0.95rem; }

.launcher-info p { margin: 0 0 0.7rem; }

.launcher-cta {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.launcher-cta .btn { white-space: nowrap; }

.launcher-meta { font-size: 0.8rem; color: var(--text-faint); margin: 0; }

.launcher-home-card { max-width: 720px; margin: 0 auto 1.4rem; }

.launcher-login-hint {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: -0.8rem 0 1.6rem;
}

/* ---------- admin ---------- */

.admin-nav {
  display: flex;
  gap: 0.5rem;
  margin: 0.4rem 0 1.6rem;
  flex-wrap: wrap;
}

.admin-nav a {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--panel-edge);
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-nav a:hover { border-color: var(--line-strong); color: var(--gold-bright); }

.admin-nav a.active {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  color: #14100a;
  border-color: transparent;
}

/* ---------- admin overview ---------- */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.stat-tile {
  background: linear-gradient(180deg, var(--panel), var(--bg-raise));
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: #efeadd;
  margin-top: 0.35rem;
  line-height: 1.15;
}

.stat-sub { display: block; font-size: 0.78rem; color: var(--text-dim); margin-top: 0.15rem; }
a.stat-sub { color: var(--gold-bright); }

.status-list { list-style: none; margin: 0.4rem 0 0; }
.status-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.status-list li:last-child { border-bottom: none; }
.status-list li > span:first-child { color: var(--text-dim); }

.overview-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }

.activity-list { list-style: none; margin: 0.4rem 0 0; }
.activity-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.activity-list li:last-child { border-bottom: none; }
.activity-when { color: var(--text-faint); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.activity-target { color: var(--text); }
.activity-admin { color: var(--text-faint); font-size: 0.82rem; margin-left: auto; }

@media (max-width: 860px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

/* users list: header row, clickable rows, pager */
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
}
.list-count { color: var(--text-faint); font-size: 0.85rem; }

tr.row-link { cursor: pointer; }
tr.row-link:hover td { background: rgba(201, 162, 75, 0.05); }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}
.pager-info { color: var(--text-dim); font-size: 0.88rem; }
.pager-disabled { opacity: 0.35; pointer-events: none; }

.log-files { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.log-view {
  background: rgba(5, 6, 9, 0.9);
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #b7bfcc;
  overflow-x: auto;
  max-height: 60vh;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* launcher news editor */
.news-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.news-item-controls { display: flex; gap: 0.4rem; }

.news-item-controls .btn { padding: 0.3rem 0.7rem; }

.maint-banner {
  background: linear-gradient(90deg, rgba(224, 86, 75, 0.18), rgba(224, 86, 75, 0.08));
  border-bottom: 1px solid rgba(224, 86, 75, 0.4);
  color: #f0a8a2;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(9, 14, 12, 0.6);
  margin-top: 4rem;
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #efeadd;
}

.footer-brand img { height: 30px; }

.footer-links { display: flex; gap: 1.4rem; align-items: center; }

.footer-links a { color: var(--text-dim); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold-bright); }

.footer-legal {
  max-width: 1080px;
  margin: 1.6rem auto 0;
  padding: 1.4rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-faint);
  font-size: 0.78rem;
}

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

@media (max-width: 860px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .vip-panel { grid-template-columns: 1fr; padding: 2.2rem 1.5rem; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .card-grid .span-2 { grid-column: span 1; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .status-strip { grid-template-columns: repeat(2, 1fr); }
  .status-cell:nth-child(3) { border-left: none; }
  .status-cell { border-top: 1px solid var(--line); }
  .status-cell:nth-child(-n+2) { border-top: none; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .hero-wm-name { letter-spacing: 0.4em; padding-left: 0.4em; }
  /* the logged-in nav (Report Bug / user / Admin / Logout) is too wide for a
     phone: let it wrap to a second row and tighten spacing/typography */
  .nav { flex-wrap: wrap; gap: 0.5rem 0.8rem; padding: 0.6rem 1rem; }
  .nav-auth { gap: 0.85rem; margin-left: auto; }
  .nav-auth a, .nav-user { font-size: 0.85rem; }
  .brand-name { font-size: 0.82rem; letter-spacing: 0.12em; }
}

/* logout is a POST form styled like the old nav link */
.nav-logout { display: inline-flex; margin: 0; }
.nav-logout button:hover { box-shadow: none; }

/* ---------- error pages (404 / 403 / 500 …) ---------- */
.error-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 7rem;
  text-align: center;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 17vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-heading {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin: 1rem 0 0.7rem;
}
.error-message {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto 2rem;
  max-width: 46ch;
}
.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
