:root {
  --bg: #050505;
  --bg-page: #0a0a0a;
  --bg-soft: #090909;
  --panel: #101010;
  --panel-2: #141414;
  --panel-3: #1a1a1a;
  --text: #ffffff;
  --text-2: #e8e8e8;
  --text-3: #d6d6d6;
  --muted: #b7b7b7;
  --muted-2: #969696;
  --line: #242424;
  --line-strong: #3a3a3a;
  --brand: #f3e600;
  --brand-strong: #fff477;
  --brand-soft: rgba(243, 230, 0, 0.12);
  --ok: #91d585;
  --bad: #f08f8f;
  --radius: 14px;
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.5);

  /* Theme tokens. Dark is the default everywhere; only pages that opt into the
     theme toggle (currently the dashboard) ever get html.light. */
  --tint-rgb: 255, 255, 255;      /* surface + border overlays */
  --pane-deep-rgb: 8, 8, 8;       /* recessed panel fills */
  --pane-raise-rgb: 20, 20, 20;   /* raised panel fills */
  --pane-lift-rgb: 33, 33, 31;    /* icon tiles / lifted chips */
  --shade-rgb: 0, 0, 0;           /* drop shadows */
  --shade-mul: 1;
  --gold-rgb: 243, 230, 0;        /* brand-tinted glows and washes */
  --gold-hi-rgb: 255, 240, 0;
  --gold-mul: 1;
  --brand-ink: #f3e600;           /* brand used as a text/icon colour */
  --brand-ink-strong: #fff477;
  --brand-contrast: #080808;      /* text sitting on a solid brand fill */
  --scrim-rgb: 0, 0, 0;           /* modal scrims — full strength, never scaled */
  --grid-line: rgba(255, 255, 255, 0.018); /* the faint blueprint grid behind the dashboard */
}

html.light {
  --bg: #f7f7f9;
  --bg-page: #f7f7f9;
  --bg-soft: #eeeef1;
  --panel: #ffffff;
  --panel-2: #f4f4f6;
  --panel-3: #eaeaee;
  --text: #0b0b0c;
  --text-2: #26262b;
  --text-3: #4a4a53;
  --muted: #3f3f46;
  --muted-2: #6c6c74;
  --line: #e4e4e8;
  --line-strong: #cccdd3;
  --brand-soft: rgba(0, 0, 0, 0.04);
  --ok: #2f7d3a;
  --bad: #b3261e;
  --shadow: 0 22px 48px rgba(15, 15, 25, 0.08);

  --tint-rgb: 15, 15, 25;
  --pane-deep-rgb: 247, 247, 249;
  --pane-raise-rgb: 255, 255, 255;
  --pane-lift-rgb: 255, 255, 255;
  --shade-rgb: 15, 15, 25;
  --shade-mul: 0.22;
  --gold-rgb: 15, 15, 25;
  --gold-hi-rgb: 15, 15, 25;
  --gold-mul: 0.3;
  --brand-ink: #3f3f46;
  --brand-ink-strong: #52525b;
  --brand-contrast: #ffffff;
  --scrim-rgb: 15, 15, 25;
  /* Ink on paper needs a touch more alpha than chalk on slate to read as the
     same "barely there" grid. */
  --grid-line: rgba(15, 15, 25, 0.032);

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(20, 20, 20, 1) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(20, 20, 20, 1) 0%, transparent 52%);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

body::before {
  content: "";
  position: fixed;
  top: -200px;
  right: -180px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(var(--gold-rgb), calc(0.07 * var(--gold-mul))) 0%, transparent 72%);
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(var(--gold-rgb), calc(0.64 * var(--gold-mul)));
  outline-offset: 2px;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(7, 7, 7, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(140deg, rgba(var(--gold-rgb), calc(0.2 * var(--gold-mul))), rgba(var(--tint-rgb), 0.02));
}

.brand small {
  display: block;
  color: var(--muted-2);
  font-weight: 500;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.btn {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--panel);
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover,
.btn:hover {
  border-color: var(--line-strong);
  color: var(--brand);
  background: var(--panel-3);
}

.btn-primary {
  border-color: rgba(var(--gold-rgb), calc(0.38 * var(--gold-mul)));
  background: var(--brand);
  color: #000;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-primary:hover {
  border-color: rgba(var(--gold-rgb), calc(0.55 * var(--gold-mul)));
  color: #000;
  background: #fff;
  transform: translateY(-1px);
}

.nav-link-discord {
  border-color: rgba(145, 213, 133, 0.35);
  color: #c6e7bf;
}

.nav-link-discord:hover {
  border-color: rgba(145, 213, 133, 0.7);
  color: #d7f2d2;
  background: rgba(145, 213, 133, 0.12);
}

.hero {
  padding: 56px 0 30px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 22px;
  align-items: start;
}

.kicker {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 12px;
}

h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.lead {
  font-size: 1.04rem;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 74ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.contact-email {
  color: var(--brand);
  font-weight: 600;
  border-bottom: 1px solid rgba(var(--gold-rgb), calc(0.35 * var(--gold-mul)));
  transition: border-color 0.18s ease, color 0.18s ease;
}

.contact-email:hover {
  color: var(--brand-strong);
  border-bottom-color: rgba(var(--gold-rgb), calc(0.7 * var(--gold-mul)));
}

.hero-side {
  background: linear-gradient(180deg, #121212, #0c0c0c);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-side::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  opacity: 0.75;
}

.hero-side ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.search-intents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.intent-chip {
  font-size: 0.72rem;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  background: var(--panel);
}

.section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.section-tight {
  padding-top: 18px;
}

.section-intro {
  margin-bottom: 14px;
}

main > .section:first-of-type,
main > .hero + .section,
main > .page-hero + .section {
  border-top: 0;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(var(--gold-rgb), calc(0.26 * var(--gold-mul)));
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-overview .card {
  min-height: 182px;
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(var(--gold-rgb), calc(0.4 * var(--gold-mul)));
  text-underline-offset: 0.16em;
  font-weight: 600;
}

.text-link:hover {
  text-decoration-color: rgba(var(--gold-rgb), calc(0.72 * var(--gold-mul)));
}

.card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.list-links {
  margin: 0;
  padding-left: 18px;
}

.list-links li {
  margin-bottom: 7px;
}

.list-links a,
.resource-list a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(var(--gold-rgb), calc(0.38 * var(--gold-mul)));
  text-underline-offset: 0.16em;
}

.cta-band {
  margin: 34px 0 44px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--gold-rgb), calc(0.28 * var(--gold-mul)));
  background: linear-gradient(145deg, rgba(var(--gold-rgb), calc(0.15 * var(--gold-mul))), rgba(var(--gold-rgb), calc(0.06 * var(--gold-mul))));
  box-shadow: var(--shadow);
}

.cta-band .lead {
  margin-bottom: 0;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(var(--shade-rgb), calc(0.24 * var(--shade-mul)));
  padding: 30px 0 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.footer h3 {
  font-size: 0.98rem;
}

.footer ul {
  margin: 0;
  padding-left: 18px;
}

.footer li {
  margin-bottom: 5px;
}

.footer a:hover {
  color: var(--brand);
}

.footer-meta {
  margin: 18px 0 0;
}

.footer-meta a {
  color: var(--muted);
}

.footer-meta a:hover {
  color: var(--brand);
}

.footer-meta span {
  margin: 0 8px;
  color: var(--muted-2);
}

.muted {
  color: var(--muted-2);
}

.legal-copy > :first-child {
  margin-top: 0;
}

.legal-copy p {
  margin: 0 0 14px;
  color: var(--muted);
}

.legal-copy h3 {
  margin-top: 22px;
}

.legal-copy ul {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
}

.legal-copy li + li {
  margin-top: 7px;
}

.crumbs {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted-2);
  font-size: 0.79rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.notice {
  border-left: 2px solid rgba(var(--gold-rgb), calc(0.6 * var(--gold-mul)));
  background: rgba(var(--gold-rgb), calc(0.11 * var(--gold-mul)));
  border-radius: 10px;
  padding: 10px 12px;
  color: #e8e5bd;
}

.faq dt {
  font-weight: 700;
  margin-top: 14px;
}

.faq dd {
  margin: 5px 0 0;
  color: var(--muted);
}

.page-hero {
  padding: 52px 0 12px;
}

.page-hero h1 {
  margin-bottom: 10px;
  max-width: 24ch;
}

.answer-band {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(var(--gold-rgb), calc(0.3 * var(--gold-mul)));
  background: linear-gradient(140deg, rgba(var(--gold-rgb), calc(0.15 * var(--gold-mul))), rgba(var(--gold-rgb), calc(0.05 * var(--gold-mul))));
}

.answer-band h2 {
  font-size: 1.03rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.answer-band p {
  margin: 0;
  color: #f0f0e5;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), #0c0c0c);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.compare-table th {
  font-size: 0.73rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(var(--gold-rgb), calc(0.08 * var(--gold-mul)));
}

.compare-table td {
  color: var(--muted);
}

.compare-table tbody tr:nth-child(even) td {
  background: rgba(var(--tint-rgb), 0.01);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.scenario-card,
.proof-module,
.trust-item,
.real-server-card,
.testimonial-card,
.case-card,
.metric-card,
.cite-card,
.evidence-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel-2), var(--bg-soft));
}

.scenario-card,
.proof-module,
.trust-item,
.real-server-card,
.testimonial-card,
.case-card,
.metric-card,
.cite-card {
  padding: 14px;
}

.scenario-card {
  position: relative;
  overflow: hidden;
}

.scenario-card::after,
.proof-module::after,
.case-card::after,
.cite-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(var(--gold-rgb), calc(0.28 * var(--gold-mul)));
}

.scenario-card p,
.proof-module p,
.trust-item p,
.real-server-card p,
.case-card p,
.metric-note,
.cite-card p,
.testimonial-meta,
.evidence-card p {
  color: var(--muted);
}

.proof-module {
  position: relative;
  overflow: hidden;
}

.proof-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  background: var(--brand);
  border-radius: 999px;
  padding: 4px 9px;
  margin-bottom: 10px;
  font-weight: 700;
}

.proof-band {
  border: 1px solid rgba(var(--gold-rgb), calc(0.35 * var(--gold-mul)));
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(145deg, rgba(var(--gold-rgb), calc(0.14 * var(--gold-mul))), rgba(var(--gold-rgb), calc(0.05 * var(--gold-mul))));
}

.proof-band p {
  margin: 6px 0 0;
  color: #efecc8;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.real-server-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.example-stack {
  display: grid;
  gap: 12px;
}

.example-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #131313, #090909);
  overflow: hidden;
}

.example-label {
  display: block;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  font-weight: 700;
}

.example-block pre {
  margin: 0;
  padding: 12px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #f2f2f2;
  overflow-x: auto;
}

.example-block code {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

.evidence-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.evidence-card {
  padding: 12px;
}

.evidence-thumb {
  border: 1px dashed rgba(var(--gold-rgb), calc(0.35 * var(--gold-mul)));
  border-radius: 10px;
  min-height: 90px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--muted-2);
  font-size: 0.78rem;
  text-align: center;
  background: rgba(var(--gold-rgb), calc(0.05 * var(--gold-mul)));
}

.testimonial-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.testimonial-card blockquote {
  margin: 0 0 10px;
  color: #f0f0e0;
  font-weight: 500;
}

.case-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.metrics-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.metric-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-strong);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-note {
  margin: 0;
  font-size: 0.84rem;
}

.cite-card {
  position: relative;
  overflow: hidden;
}

.cite-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.cite-card li {
  margin-bottom: 6px;
}

.resource-list {
  margin: 0;
  padding-left: 18px;
}

.resource-list li {
  margin-bottom: 7px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .nav-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .page-hero h1 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1120px, calc(100% - 1.2rem));
  }

  .nav-links {
    gap: 6px;
  }

  .nav-link,
  .btn {
    font-size: 0.72rem;
    padding: 7px 10px;
  }

  .section {
    padding: 22px 0;
  }
}

/* ============================================================
   Homepage (modern landing) — hp-* namespace
   ============================================================ */

.hp-body {
  --font-sans: "Hanken Grotesk", "Space Grotesk", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --tracking-ui: -0.01em;
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: var(--tracking-ui);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(1100px 600px at 78% -12%, rgba(var(--gold-rgb), calc(0.06 * var(--gold-mul))), transparent 65%),
    radial-gradient(900px 520px at -5% 4%, rgba(var(--tint-rgb), 0.03), transparent 60%);
  background-repeat: no-repeat;
}

.hp-body h1,
.hp-body h2,
.hp-body h3,
.hp-section h2,
.hp-feature-copy h3,
.hp-tool-card h3,
.hp-card h3,
.hp-cta-band h2,
.hp-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.hp-body h1 em,
.hp-body h2 em {
  font-style: italic;
  color: var(--brand-strong);
  font-feature-settings: "ss01";
}

html {
  scroll-behavior: smooth;
}

.hp-main [id] {
  scroll-margin-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   Helios Premium checkout
   ============================================================ */
.premium-page {
  min-height: 100vh;
  background:
    radial-gradient(850px 520px at 50% -8%, rgba(var(--gold-rgb), calc(0.1 * var(--gold-mul))), transparent 68%),
    #080808;
}

.premium-page .hp-logo-mark {
  color: var(--brand);
  font-size: 1rem;
  line-height: 1;
}

.premium-shell {
  padding: 5.5rem 0 4rem;
}

.premium-intro {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.premium-intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.premium-intro > p:not(.hp-eyebrow) {
  max-width: 660px;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.premium-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.premium-trust span {
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 999px;
  color: #d8d8d8;
  background: rgba(var(--tint-rgb), 0.025);
  font-size: 0.82rem;
}

.premium-trust span::before {
  content: "✓";
  margin-right: 0.45rem;
  color: var(--ok);
}

.premium-purchase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.75fr);
  gap: 1.25rem;
  align-items: start;
}

.premium-plans,
.premium-server-card,
.premium-success {
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(21, 21, 21, 0.96), rgba(12, 12, 12, 0.98));
  box-shadow: 0 28px 70px rgba(var(--shade-rgb), calc(0.42 * var(--shade-mul)));
}

.premium-plans {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.premium-server-card {
  position: sticky;
  top: 90px;
  padding: 1.5rem;
}

.premium-section-label {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.premium-section-label > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid rgba(var(--gold-rgb), calc(0.32 * var(--gold-mul)));
  border-radius: 50%;
  color: var(--brand);
  background: rgba(var(--gold-rgb), calc(0.06 * var(--gold-mul)));
  font-size: 0.78rem;
  font-weight: 700;
}

.premium-section-label p {
  margin: 0 0 0.15rem;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.premium-section-label h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.05;
}

.premium-section-label-compact h2 {
  font-size: 1.55rem;
}

.premium-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.premium-plan {
  position: relative;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 18px;
  background: rgba(var(--tint-rgb), 0.018);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.premium-plan:hover {
  border-color: rgba(var(--gold-rgb), calc(0.28 * var(--gold-mul)));
  transform: translateY(-2px);
}

.premium-plan:focus-visible {
  outline: 2px solid rgba(var(--gold-rgb), calc(0.6 * var(--gold-mul)));
  outline-offset: 2px;
}

.premium-plan.is-selected {
  border-color: rgba(var(--gold-rgb), calc(0.55 * var(--gold-mul)));
  background:
    radial-gradient(400px 220px at 100% 0%, rgba(var(--gold-rgb), calc(0.14 * var(--gold-mul))), transparent 70%),
    rgba(var(--gold-rgb), calc(0.03 * var(--gold-mul)));
  box-shadow: 0 0 0 1px rgba(var(--gold-rgb), calc(0.3 * var(--gold-mul))) inset;
}

.premium-save {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.33rem 0.58rem;
  border-radius: 999px;
  color: #111100;
  background: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.premium-plan-name {
  margin: 0 0 1.35rem;
  color: #dedede;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-price {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  margin: 0;
}

.premium-price strong {
  font-size: clamp(2.15rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.premium-price span {
  color: var(--muted-2);
  font-size: 0.75rem;
  line-height: 1.25;
}

.premium-plan-note {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.premium-checkout-button {
  width: 100%;
  min-height: 44px;
}

.premium-checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  filter: grayscale(0.3);
  transform: none;
}

.premium-includes {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(var(--tint-rgb), 0.07);
}

.premium-includes p {
  margin: 0;
  font-weight: 700;
}

.premium-includes ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.premium-includes li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.premium-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
}

.premium-loading {
  padding: 2rem 0;
  color: var(--muted);
  text-align: center;
}

#account-signin {
  text-align: center;
}

.premium-discord-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border-radius: 16px;
  color: #fff;
  background: #5865f2;
  box-shadow: 0 8px 22px rgba(88, 101, 242, 0.28);
}

.premium-discord-mark svg {
  display: block;
}

#account-signin h3 {
  margin: 0;
  font-size: 1.15rem;
}

#account-signin p {
  margin: 0.65rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.premium-full-button {
  width: 100%;
}

.premium-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.07);
}

.premium-account-row div {
  display: flex;
  flex-direction: column;
}

.premium-account-label {
  color: var(--muted-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-account-row a {
  color: var(--brand);
  font-size: 0.78rem;
}

.premium-field {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.premium-field > span {
  font-size: 0.78rem;
  font-weight: 700;
}

.premium-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 0.85rem;
  border: 1px solid rgba(var(--tint-rgb), 0.13);
  border-radius: 10px;
  color: var(--text);
  background: #111;
  font: inherit;
  font-size: 0.88rem;
}

.premium-selected-server {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(145, 213, 133, 0.2);
  border-radius: 12px;
  background: rgba(145, 213, 133, 0.05);
}

.premium-selected-server span,
.premium-selected-server small {
  color: var(--muted-2);
  font-size: 0.72rem;
}

.premium-selected-server strong {
  font-size: 1rem;
}

.premium-fine-print {
  margin: 1rem 0 0;
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1.5;
}

.premium-fine-print a {
  color: #d8d8d8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.premium-alert {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(var(--tint-rgb), 0.12);
  border-radius: 12px;
  background: rgba(var(--tint-rgb), 0.04);
  font-size: 0.9rem;
}

.premium-alert-error {
  border-color: rgba(247, 25, 25, 0.35);
  color: #ffb0b0;
  background: rgba(247, 25, 25, 0.08);
}

.premium-alert-warning {
  border-color: rgba(var(--gold-rgb), calc(0.25 * var(--gold-mul)));
  color: #fff7a3;
  background: rgba(var(--gold-rgb), calc(0.05 * var(--gold-mul)));
}

.server-action-popover {
  position: fixed;
  z-index: 10050;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.8rem;
  width: min(410px, calc(100vw - 24px));
  padding: 1rem;
  border: 1px solid rgba(255, 89, 89, 0.48);
  border-radius: 16px;
  color: #ffd5d5;
  background:
    radial-gradient(260px 120px at 0% 0%, rgba(255, 82, 82, 0.16), transparent 72%),
    rgba(25, 8, 8, 0.97);
  box-shadow: 0 22px 64px rgba(var(--shade-rgb), calc(0.58 * var(--shade-mul))), 0 0 0 1px rgba(var(--shade-rgb), calc(0.4 * var(--shade-mul))), inset 0 1px 0 rgba(var(--tint-rgb), 0.05);
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(18px);
}

.server-action-popover.is-visible {
  opacity: 1;
  transform: none;
}

.server-action-popover-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 104, 104, 0.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 72, 72, 0.17);
  font-size: 0.82rem;
  font-weight: 900;
}

.server-action-popover-copy strong {
  display: block;
  color: #fff;
  font-size: 0.86rem;
}

.server-action-popover-copy p {
  margin: 0.3rem 0 0;
  color: #ffbcbc;
  font-size: 0.78rem;
  line-height: 1.5;
}

.server-action-popover-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(var(--gold-rgb), calc(0.34 * var(--gold-mul)));
  border-radius: 999px;
  color: #0a0a00;
  background: var(--brand);
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(var(--gold-rgb), calc(0.12 * var(--gold-mul)));
}

.server-action-popover-link:hover,
.server-action-popover-link:focus-visible {
  color: #000;
  background: #fff838;
  outline: 2px solid rgba(var(--gold-rgb), calc(0.35 * var(--gold-mul)));
  outline-offset: 2px;
}

.server-action-popover-close {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 50%;
  color: #e8baba;
  background: rgba(var(--tint-rgb), 0.04);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.server-action-popover-close:hover,
.server-action-popover-close:focus-visible {
  color: #fff;
  border-color: rgba(var(--tint-rgb), 0.24);
  background: rgba(var(--tint-rgb), 0.09);
  outline: none;
}

.server-success-toast {
  position: fixed;
  z-index: 10060;
  top: max(86px, calc(env(safe-area-inset-top) + 72px));
  right: max(20px, env(safe-area-inset-right));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.85rem;
  width: min(430px, calc(100vw - 32px));
  overflow: hidden;
  padding: 1rem 1rem 1.08rem;
  border: 1px solid rgba(116, 232, 130, 0.34);
  border-radius: 17px;
  color: #fff;
  background:
    radial-gradient(280px 140px at 0% 0%, rgba(95, 218, 111, 0.16), transparent 72%),
    rgba(9, 17, 10, 0.97);
  box-shadow: 0 24px 70px rgba(var(--shade-rgb), calc(0.62 * var(--shade-mul))), 0 0 0 1px rgba(var(--shade-rgb), calc(0.42 * var(--shade-mul))), inset 0 1px 0 rgba(var(--tint-rgb), 0.06);
  opacity: 0;
  transform: translateY(-10px) scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(20px);
}

.server-success-toast.is-visible {
  opacity: 1;
  transform: none;
}

.server-success-toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
}

.server-success-toast-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(126, 242, 141, 0.42);
  border-radius: 50%;
  color: #071008;
  background: #8bea97;
  box-shadow: 0 8px 24px rgba(91, 223, 108, 0.18);
  font-size: 0.9rem;
  font-weight: 900;
}

.server-success-toast-copy strong {
  display: block;
  color: #f5fff6;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.server-success-toast-copy p {
  margin: 0.3rem 0 0;
  color: #bcd6bf;
  font-size: 0.79rem;
  line-height: 1.5;
}

.server-success-toast-close {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 50%;
  color: #c7d5c9;
  background: rgba(var(--tint-rgb), 0.04);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.server-success-toast-close:hover,
.server-success-toast-close:focus-visible {
  color: #fff;
  border-color: rgba(var(--tint-rgb), 0.24);
  background: rgba(var(--tint-rgb), 0.09);
  outline: none;
}

.server-success-toast-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #64df76, #b9f7c1);
  transform-origin: left;
  animation: server-success-progress 6s linear forwards;
}

@keyframes server-success-progress {
  to { transform: scaleX(0); }
}

@media (max-width: 640px) {
  .server-success-toast {
    top: max(72px, calc(env(safe-area-inset-top) + 60px));
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .server-success-toast {
    transition: none;
  }

  .server-success-toast-progress {
    animation: none;
  }
}

.premium-success {
  max-width: 680px;
  margin: 1rem auto 3rem;
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
}

.premium-success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(145, 213, 133, 0.4);
  border-radius: 50%;
  color: #d8ffd1;
  background: rgba(145, 213, 133, 0.1);
  font-size: 1.6rem;
}

.premium-success h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
}

.premium-success > p:not(.hp-eyebrow) {
  margin: 0.85rem auto 1.5rem;
  color: var(--muted);
}

.premium-footer {
  padding: 1.5rem 0 2rem;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.premium-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--tint-rgb), 0.07);
}

.hp-premium-preview {
  position: relative;
}

.hp-premium-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 820px;
  margin: 0 auto;
}

.hp-premium-preview-plan {
  position: relative;
  padding: 1.4rem;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 18px;
  background: rgba(var(--tint-rgb), 0.02);
}

.hp-premium-preview-plan-featured {
  border-color: rgba(var(--gold-rgb), calc(0.36 * var(--gold-mul)));
  background: linear-gradient(140deg, rgba(var(--gold-rgb), calc(0.07 * var(--gold-mul))), rgba(var(--tint-rgb), 0.018));
}

.hp-premium-preview-plan > p:first-of-type {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hp-premium-preview-plan div {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
}

.hp-premium-preview-plan strong {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.hp-premium-preview-plan div span {
  color: var(--muted-2);
  font-size: 0.76rem;
}

.hp-premium-preview-plan > p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hp-premium-save {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: #111100;
  background: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hp-premium-preview-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.hp-premium-preview-action span {
  color: var(--muted-2);
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .premium-shell {
    padding-top: 3.5rem;
  }
  .premium-purchase-grid {
    grid-template-columns: 1fr;
  }
  .premium-server-card {
    position: static;
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  .premium-plan-grid,
  .premium-includes,
  .premium-includes ul {
    grid-template-columns: 1fr;
  }
  .premium-plan {
    min-height: 280px;
  }
  .premium-footer .container {
    flex-direction: column;
  }
  .hp-premium-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Top navigation ---- */
.hp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(var(--pane-deep-rgb), 0.62);
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.05);
}

.hp-nav-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.85rem 0;
  min-height: 58px;
}

.hp-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.hp-logo img {
  height: 30px;
  width: auto;
  display: block;
}

.hp-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(180deg, #181818, #0e0e0e);
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  box-shadow: 0 2px 8px rgba(var(--shade-rgb), calc(0.45 * var(--shade-mul))), 0 0 14px rgba(var(--gold-rgb), calc(0.12 * var(--gold-mul)));
}

.hp-logo-mark svg {
  display: block;
  filter: drop-shadow(0 0 5px rgba(var(--gold-rgb), calc(0.45 * var(--gold-mul))));
}

.hp-logo-word {
  font-family: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hp-nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 1.1rem;
}

.hp-nav-links a {
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.hp-nav-links a:hover {
  color: var(--text);
  background: rgba(var(--tint-rgb), 0.05);
}

.hp-nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* ---- Buttons (pill) ---- */
.hp-btn {
  --btn-bg: rgba(var(--tint-rgb), 0.04);
  --btn-border: rgba(var(--tint-rgb), 0.12);
  --btn-color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.2rem;
  border-radius: 9999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1;
  letter-spacing: var(--tracking-ui);
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.hp-btn:hover {
  transform: translateY(-1px);
}

.hp-btn-lg {
  padding: 0.85rem 1.55rem;
  font-size: 1rem;
}

.hp-btn-primary {
  --btn-bg: var(--brand);
  --btn-border: var(--brand);
  --btn-color: #0a0a00;
  box-shadow: 0 6px 20px rgba(var(--gold-rgb), calc(0.16 * var(--gold-mul)));
}

.hp-btn-primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 10px 28px rgba(var(--gold-rgb), calc(0.26 * var(--gold-mul)));
}

.hp-btn-ghost {
  --btn-bg: rgba(var(--tint-rgb), 0.03);
  --btn-border: rgba(var(--tint-rgb), 0.14);
  --btn-color: var(--text);
}

.hp-btn-ghost:hover {
  --btn-bg: rgba(var(--tint-rgb), 0.06);
  --btn-border: rgba(var(--tint-rgb), 0.24);
}

.hp-btn-discord {
  --btn-bg: #5865f2;
  --btn-border: #5865f2;
  --btn-color: #ffffff;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.2);
}

.hp-btn-discord:hover {
  --btn-bg: #4954e0;
  --btn-border: #4954e0;
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.32);
}

/* ---- Layout ---- */
.hp-main {
  padding-bottom: 3rem;
}

.hp-section {
  padding: 5rem 0 1.5rem;
}

.hp-section-head {
  max-width: 60ch;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.hp-eyebrow {
  margin: 0 0 0.7rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hp-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hp-section-sub {
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 56ch;
}

/* ---- Video hero (full-bleed) ---- */
.hp-video-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 58px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0a0a0a url("/hero-poster.jpg?v=rust-hero-2") center / cover no-repeat;
}

.hp-video-hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  filter: grayscale(0.1) saturate(0.72) contrast(1.04) brightness(0.72);
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 14%,
    #000 82%,
    transparent 100%
  );
          mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 14%,
    #000 82%,
    transparent 100%
  );
}

.hp-video-hero-media::-webkit-media-controls,
.hp-video-hero-media::-webkit-media-controls-panel,
.hp-video-hero-media::-webkit-media-controls-play-button,
.hp-video-hero-media::-webkit-media-controls-start-playback-button,
.hp-video-hero-media::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  appearance: none;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hp-video-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg,
      rgba(10, 10, 10, 1) 0%,
      rgba(10, 10, 10, 0.55) 14%,
      rgba(5, 5, 5, 0.32) 45%,
      rgba(5, 5, 5, 0.55) 82%,
      rgba(10, 10, 10, 1) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.35), transparent 45%, rgba(5, 5, 5, 0.3));
}

.hp-video-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, transparent 25%, rgba(var(--shade-rgb), calc(0.14 * var(--shade-mul))) 62%, rgba(var(--shade-rgb), calc(0.55 * var(--shade-mul))) 100%);
}

.hp-video-hero-content {
  width: min(100%, 1000px);
  padding: clamp(2rem, 5vw, 3.4rem) 24px 63px;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp-body .hp-vh-title {
  margin: 0;
  text-transform: uppercase;
  font-family: "Space Grotesk", "Hanken Grotesk", "Segoe UI", "Helvetica Neue", sans-serif;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.hp-body .hp-vh-name {
  position: relative;
  display: inline-block;
  padding: 0 0.06em;
}

.hp-vh-word {
  position: relative;
  display: inline-block;
  font-family: "Kanit", "Space Grotesk", "Hanken Grotesk", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(5rem, 13vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 2.5px #f0c817;
  filter:
    drop-shadow(0 0 18px rgba(255, 220, 100, 0.28))
    drop-shadow(0 0 30px rgba(70, 150, 255, 0.2));
}

.hp-vh-word::before,
.hp-vh-word::after {
  content: "Helios";
  position: absolute;
  top: 0;
  left: -0.12em;
  right: -0.12em;
  padding: 0 0.12em;
  color: transparent;
}

.hp-vh-word::after {
  -webkit-text-stroke: 2.5px #2f8ee8;
  clip-path: inset(-6% 0 -6% 50%);
  pointer-events: none;
}

.hp-vh-word::before {
  -webkit-text-stroke: 0;
  background:
    linear-gradient(180deg, rgba(var(--tint-rgb), 0.28) 0%, rgba(var(--tint-rgb), 0) 55%),
    linear-gradient(90deg,
      #fff1a8 0%,
      #f5d100 22%,
      #d29411 44%,
      #ffffff 50%,
      #a9e4ff 56%,
      #3aa2ff 76%,
      #1955ff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 1;
  clip-path: inset(-6% 100% -6% 0);
  animation: hp-vh-fill 5.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes hp-vh-fill {
  0%   { clip-path: inset(-6% 100% -6% 0); }
  14%  { clip-path: inset(-6% 100% -6% 0); }
  42%  { clip-path: inset(-6% 0 -6% 0); }
  74%  { clip-path: inset(-6% 0 -6% 0); }
  100% { clip-path: inset(-6% 0 -6% 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .hp-vh-word::before {
    animation: none;
    clip-path: inset(-6% 0 -6% 0);
  }
}

.hp-vh-tag {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35em 1.4em;
  margin-top: clamp(0.6rem, 1.4vw, 1.2rem);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: clamp(0.72rem, 1.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.4em;
  color: #f2ede0;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(var(--shade-rgb), calc(0.5 * var(--shade-mul)));
}

.hp-vh-tag > span {
  position: relative;
  padding-left: 0.4em;
}

.hp-vh-tag > span + span::before {
  content: "";
  position: absolute;
  left: -0.85em;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--brand);
  box-shadow: 0 0 10px rgba(var(--gold-rgb), calc(0.8 * var(--gold-mul)));
  transform: translateY(-50%) rotate(45deg);
}

.hp-vh-copy {
  max-width: 640px;
  margin: 24px auto 30px;
  color: rgba(var(--tint-rgb), 0.85);
  font-size: clamp(1rem, 1.3vw, 1.19rem);
  font-weight: 500;
  line-height: 1.55;
}

.hp-vh-benefits {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

.hp-vh-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(var(--tint-rgb), 0.13);
  background: rgba(10, 10, 10, 0.62);
  color: #e6e2d2;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hp-vh-benefits li::before {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / contain no-repeat;
}

.hp-vh-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hp-video-hero .hp-btn-ghost {
  --btn-bg: rgba(8, 8, 11, 0.72);
  --btn-border: rgba(var(--tint-rgb), 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .hp-video-hero-media {
    display: none;
  }
}

/* ---- Lightning storm flowing through the headline word ---- */
.hp-storm {
  font-style: italic;
  position: relative;
  display: inline-block;
  padding-right: 0.12em;
  margin-right: -0.1em;
  background-color: #e6c12a;
  background-image:
    /* lightning bolt — sharp bright sweep */
    linear-gradient(112deg, transparent 41%, rgba(255, 246, 190, 0) 43%, rgba(255, 248, 205, 0.97) 47%, #fffdf2 49%, rgba(255, 233, 120, 0.97) 51%, rgba(255, 246, 190, 0) 55%, transparent 59%),
    /* secondary fork */
    linear-gradient(72deg, transparent 46%, rgba(255, 238, 150, 0.8) 49.5%, rgba(255, 252, 225, 0.95) 50.5%, transparent 54%),
    /* upper storm cloud mass */
    radial-gradient(120% 150% at 18% 8%, #8a6a12 0%, rgba(138, 106, 18, 0) 46%),
    /* lower storm cloud mass */
    radial-gradient(130% 150% at 82% 96%, #5c4208 0%, rgba(92, 66, 8, 0) 52%),
    /* drifting mid haze */
    radial-gradient(90% 120% at 55% 50%, rgba(255, 224, 120, 0.5) 0%, rgba(255, 224, 120, 0) 60%),
    /* golden storm sky base */
    linear-gradient(178deg, #fff6c0 0%, #f3e600 36%, #e0b020 70%, #a9810f 100%);
  background-size: 280% 280%, 320% 320%, 220% 220%, 220% 220%, 200% 200%, 160% 160%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation:
    hp-storm-drift 17s ease-in-out infinite,
    hp-storm-flash 8.5s ease-in-out infinite;
}

@keyframes hp-storm-drift {
  0%   { background-position: 18% 28%; }
  50%  { background-position: 82% 72%; }
  100% { background-position: 18% 28%; }
}

@keyframes hp-storm-flash {
  0%, 9%, 13%, 18%, 52%, 100% {
    filter: brightness(1) contrast(1);
  }
  10.5% {
    filter: brightness(1.8) contrast(1.18) drop-shadow(0 0 18px rgba(255, 226, 110, 0.85));
  }
  15% {
    filter: brightness(2.05) contrast(1.22) drop-shadow(0 0 26px rgba(255, 234, 140, 0.9));
  }
  54.5% {
    filter: brightness(1.65) contrast(1.15) drop-shadow(0 0 16px rgba(255, 226, 110, 0.8));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-storm {
    animation: none;
    background-position: 50% 45%;
  }
}

/* ---- Scroll reveal (JS-gated; no-JS users see everything) ---- */
.hp-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.hp-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hp-lead {
  margin: 1.5rem 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.6;
}

.hp-cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.hp-cta-row-center {
  justify-content: center;
}

.hp-trust {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: center;
}

.hp-trust li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted-2);
  font-size: 0.9rem;
}

.hp-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / contain no-repeat;
}

/* ---- Stats strip ---- */
.hp-stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid rgba(var(--tint-rgb), 0.07);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(var(--tint-rgb), 0.05);
}

.hp-stat {
  padding: 2.1rem 1.2rem;
  background: linear-gradient(180deg, rgba(var(--tint-rgb), 0.025), rgba(var(--tint-rgb), 0.004)), #0a0a0a;
  text-align: center;
}

.hp-stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hp-stat-label {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted-2);
  font-size: 0.85rem;
  letter-spacing: 0;
}

.hp-stats-asof {
  grid-column: 1 / -1;
  margin: 0.9rem 0 0;
  color: var(--muted-2);
  font-size: 0.78rem;
  text-align: center;
  opacity: 0.8;
}

/* ---- Features ---- */
.hp-features {
  display: grid;
  gap: 1.4rem;
}

.hp-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid rgba(var(--tint-rgb), 0.06);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.6), rgba(10, 10, 10, 0.6));
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.hp-feature:hover {
  border-color: rgba(var(--tint-rgb), 0.12);
  transform: translateY(-2px);
}

.hp-feature:nth-child(even) .hp-feature-media {
  order: 2;
}

.hp-feature-media {
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
  aspect-ratio: 16 / 10;
  box-shadow: 0 20px 50px rgba(var(--shade-rgb), calc(0.4 * var(--shade-mul)));
}

.hp-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-feature-media-autokits {
  aspect-ratio: 16 / 13;
}

.hp-feature-copy h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hp-feature-copy h3 a:hover {
  color: var(--brand);
}

.hp-feature-copy p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.hp-link {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--brand-strong);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(var(--gold-rgb), calc(0.3 * var(--gold-mul)));
  padding-bottom: 1px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hp-link:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.hp-link:hover {
  color: var(--brand-strong);
}

/* ---- Dashboard hero (second hero, under the stats strip) ---- */
.hp-dash {
  padding-bottom: 0;
}

.hp-dash-stage {
  position: relative;
  isolation: isolate;
  margin: clamp(0.5rem, 3vw, 1.5rem) auto 0;
  max-width: 1100px;
  padding: 0 clamp(0px, 2vw, 24px);
}

.hp-dash-glow {
  position: absolute;
  inset: 6% 2% 12%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(var(--gold-rgb), calc(0.16 * var(--gold-mul))), transparent 70%),
    radial-gradient(45% 45% at 22% 70%, rgba(var(--gold-hi-rgb), calc(0.1 * var(--gold-mul))), transparent 72%);
  filter: blur(38px);
}

.hp-dash-shot {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 40px 70px rgba(var(--shade-rgb), calc(0.65 * var(--shade-mul))));
}

.hp-dash-panel {
  margin-top: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid rgba(var(--tint-rgb), 0.07);
  border-radius: 24px;
  background:
    radial-gradient(700px 260px at 50% -30%, rgba(var(--gold-rgb), calc(0.06 * var(--gold-mul))), transparent 70%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.6), rgba(10, 10, 10, 0.6));
}

.hp-dash-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-dash-facts li {
  min-width: 0;
}

.hp-dash-fact-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(var(--gold-rgb), calc(0.28 * var(--gold-mul)));
  border-radius: 10px;
  background: rgba(var(--gold-rgb), calc(0.08 * var(--gold-mul)));
}

.hp-dash-fact-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--brand-ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-body .hp-dash-facts h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hp-dash-facts p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hp-dash-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(1.4rem, 3vw, 2rem);
  padding-top: clamp(1.4rem, 3vw, 1.8rem);
  border-top: 1px solid rgba(var(--tint-rgb), 0.06);
}

.hp-dash-note {
  color: var(--muted-2);
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .hp-dash-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hp-dash-facts {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .hp-dash-actions .hp-btn {
    width: 100%;
    justify-content: center;
  }
  .hp-dash-note {
    width: 100%;
    text-align: center;
  }
}

/* ---- Use cases: horizontal rail ---- */
.hp-section-head-split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
}

.hp-section-head-split .hp-section-sub {
  margin-left: 0;
}

.hp-rail-nav {
  display: flex;
  gap: 0.5rem;
  flex: none;
}

.hp-rail-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 9999px;
  background: rgba(var(--tint-rgb), 0.03);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.hp-rail-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: rgba(var(--gold-rgb), calc(0.45 * var(--gold-mul)));
  background: rgba(var(--gold-rgb), calc(0.08 * var(--gold-mul)));
}

.hp-rail-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.hp-rail-wrap {
  position: relative;
}

.hp-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(272px, 1fr);
  gap: 1.1rem;
  margin: 0;
  padding: 0.25rem 0 1rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hp-rail::-webkit-scrollbar {
  display: none;
}

.hp-use {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  padding: 1.6rem;
  border: 1px solid rgba(var(--tint-rgb), 0.06);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.5), rgba(10, 10, 10, 0.5));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hp-use:hover {
  border-color: rgba(var(--tint-rgb), 0.14);
  transform: translateY(-2px);
}

.hp-use-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(var(--gold-rgb), calc(0.28 * var(--gold-mul)));
  border-radius: 11px;
  background: rgba(var(--gold-rgb), calc(0.08 * var(--gold-mul)));
}

.hp-use-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--brand-ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-use h3 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.hp-use > p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.hp-use-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-use-links a {
  display: inline-block;
  padding: 0.32rem 0.7rem;
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  border-radius: 9999px;
  background: rgba(var(--tint-rgb), 0.02);
  color: var(--muted-2);
  font-size: 0.82rem;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.hp-use-links a:hover {
  color: var(--text);
  border-color: rgba(var(--gold-rgb), calc(0.4 * var(--gold-mul)));
  background: rgba(var(--gold-rgb), calc(0.07 * var(--gold-mul)));
}

@media (max-width: 900px) {
  .hp-section-head-split {
    align-items: flex-start;
  }
  .hp-rail-nav {
    display: none;
  }
  /* Size cards so the next one peeks in and reads as scrollable. */
  .hp-rail {
    grid-auto-columns: minmax(258px, 82%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-rail {
    scroll-snap-type: none;
  }
}

/* ---- Use-case cards ---- */
.hp-grid-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.hp-card {
  padding: 1.8rem;
  border: 1px solid rgba(var(--tint-rgb), 0.06);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.5), rgba(10, 10, 10, 0.5));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hp-card:hover {
  border-color: rgba(var(--tint-rgb), 0.14);
  transform: translateY(-2px);
}

.hp-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.hp-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.hp-card a {
  color: var(--brand-strong);
  font-weight: 500;
  border-bottom: 1px solid rgba(var(--gold-rgb), calc(0.25 * var(--gold-mul)));
  transition: border-color 0.2s ease;
}

.hp-card a:hover {
  border-bottom-color: var(--brand);
}

/* ---- Tools ---- */
.hp-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.hp-tool-card {
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
  border: 1px solid rgba(var(--tint-rgb), 0.06);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.6), rgba(10, 10, 10, 0.6));
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-tool-card:hover {
  border-color: rgba(var(--tint-rgb), 0.16);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(var(--shade-rgb), calc(0.45 * var(--shade-mul)));
}

.hp-tool-card h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.hp-tool-card p {
  margin: 0.8rem 0 1.5rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.hp-tool-go {
  color: var(--brand-strong);
  font-weight: 500;
  font-size: 0.95rem;
}

.hp-tool-card-accent {
  background:
    linear-gradient(180deg, rgba(255, 79, 154, 0.05), rgba(83, 215, 255, 0.05)),
    linear-gradient(180deg, var(--panel-2), var(--bg-soft));
  border-color: rgba(159, 124, 255, 0.35);
}

.hp-tool-card-accent .hp-tool-go {
  background: linear-gradient(90deg, #ff4f9a, #ffd85a, #73f7a6, #53d7ff, #9f7cff);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- CTA band ---- */
.hp-cta-band {
  margin-top: 5rem;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  text-align: center;
  border: 1px solid rgba(var(--tint-rgb), 0.06);
  border-radius: 28px;
  background:
    radial-gradient(900px 380px at 50% -10%, rgba(var(--gold-rgb), calc(0.08 * var(--gold-mul))), transparent 65%),
    linear-gradient(180deg, #131313, #0a0a0a);
  box-shadow: 0 30px 80px rgba(var(--shade-rgb), calc(0.45 * var(--shade-mul)));
}

.hp-cta-band h2 {
  margin: 0 auto;
  max-width: 22ch;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.hp-cta-band p {
  margin: 1.2rem auto 0;
  max-width: 50ch;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.hp-cta-band .hp-cta-row {
  margin-top: 2.2rem;
}

/* ---- SEO links ---- */
.hp-seo {
  margin-top: 3.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.hp-seo ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hp-seo a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  border-radius: 9999px;
  background: rgba(var(--tint-rgb), 0.02);
  color: var(--muted-2);
  font-size: 0.86rem;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.hp-seo a:hover {
  color: var(--text);
  border-color: rgba(var(--gold-rgb), calc(0.4 * var(--gold-mul)));
  background: rgba(var(--gold-rgb), calc(0.07 * var(--gold-mul)));
}

/* ---- Footer ---- */
.hp-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(var(--gold-rgb), calc(0.05 * var(--gold-mul))), transparent 62%),
    rgba(5, 5, 5, 0.6);
  padding: clamp(2.8rem, 6vw, 4.5rem) 0 1.6rem;
}

.hp-footer-top {
  display: grid;
  grid-template-columns: 1.15fr 3fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.hp-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.hp-footer-logo-word {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hp-footer-brand p {
  margin: 1rem 0 1.4rem;
  max-width: 26ch;
  color: var(--muted-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hp-footer-brand-heading {
  margin: 1.4rem 0 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text);
}

.hp-footer-email {
  display: inline-block;
  color: var(--muted-2);
  font-size: 0.9rem;
  line-height: 1.45;
  transition: color 0.18s ease;
}

.hp-footer-email:hover {
  color: var(--text);
}

.hp-footer-discord {
  display: block;
  width: 26px;
  margin-top: 1rem;
  color: #5865f2;
  transition: color 0.18s ease, transform 0.18s ease;
}

.hp-footer-discord svg {
  display: block;
  fill: currentColor;
}

.hp-footer-discord:hover {
  color: #7f8bff;
  transform: translateY(-1px);
}

.hp-footer-cols {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem) 1.2rem;
}

.hp-footer-col h4 {
  margin: 0 0 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--text);
}

.hp-footer-col a {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--muted-2);
  font-size: 0.9rem;
  line-height: 1.45;
  transition: color 0.18s ease;
}

.hp-footer-col a:hover {
  color: var(--text);
}

/* Oversized wordmark washing out toward the bottom edge, behind the fine print. */
.hp-footer-wordmark {
  margin: clamp(1.2rem, 4vw, 2.4rem) 0 -0.06em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.5rem, 21vw, 19rem);
  line-height: 0.74;
  letter-spacing: -0.03em;
  text-align: center;
  user-select: none;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(var(--tint-rgb), 0.115) 0%,
    rgba(var(--tint-rgb), 0.06) 55%,
    rgba(var(--tint-rgb), 0) 100%
  );
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.hp-footer-bottom {
  margin-top: clamp(1.2rem, 3vw, 2rem);
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 1080px) {
  .hp-footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hp-footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hp-footer-wordmark {
    letter-spacing: -0.02em;
  }
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hp-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hp-nav-links {
    display: none;
  }
  .hp-feature,
  .hp-feature:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .hp-feature:nth-child(even) .hp-feature-media {
    order: 0;
  }
  .hp-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hp-footer-top {
    grid-template-columns: 1fr;
  }
  .hp-tools {
    grid-template-columns: 1fr;
  }
  .hp-section {
    padding: 3.5rem 0 1rem;
  }
}

@media (max-width: 620px) {
  .hp-nav-cta .hp-btn-discord {
    display: none;
  }
  /* Keep mobile playback on its own lightweight source and avoid costly video filters. */
  .hp-video-hero-media {
    display: block;
    filter: none;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hp-vh-word {
    letter-spacing: calc(-0.01em + 2px);
  }
  .hp-grid-2 {
    grid-template-columns: 1fr;
  }
  .hp-video-hero-content {
    padding-top: 1.8rem;
  }
  .hp-vh-tag {
    letter-spacing: 0.3em;
    gap: 0.25em 1.1em;
  }
  .hp-stats {
    margin-top: 2rem;
  }
}

/* Rainbow button — shared with /color-text-generator/ */
.home-v2-btn-rainbow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(var(--tint-rgb), 0.72);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(var(--tint-rgb), 0.28), rgba(var(--tint-rgb), 0.08)) padding-box,
    linear-gradient(105deg, #ff4f9a, #ffd85a, #73f7a6, #53d7ff, #9f7cff, #ff4f9a) border-box;
  background-size: 100% 100%, 320% 100%;
  box-shadow:
    0 0 0 1px rgba(var(--tint-rgb), 0.26) inset,
    0 10px 20px rgba(255, 79, 154, 0.18),
    0 0 28px rgba(255, 216, 90, 0.24),
    0 0 42px rgba(83, 215, 255, 0.18);
  text-shadow: 0 1px 0 rgba(var(--shade-rgb), calc(0.38 * var(--shade-mul)));
  animation: home-rainbow-button 5.6s linear infinite, home-rainbow-float 3.2s ease-in-out infinite;
}

.home-v2-btn-rainbow::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(var(--tint-rgb), 0.26), rgba(var(--tint-rgb), 0.04) 42%, rgba(var(--tint-rgb), 0.18) 100%),
    linear-gradient(180deg, rgba(var(--tint-rgb), 0.12), transparent 60%);
  opacity: 0.92;
  z-index: -1;
}

.home-v2-btn-rainbow::after {
  content: "";
  position: absolute;
  inset: -30% -70%;
  background: linear-gradient(115deg, transparent 25%, rgba(var(--tint-rgb), 0.52) 50%, transparent 75%);
  opacity: 0.52;
  transform: translateX(-45%) rotate(8deg);
  animation: home-rainbow-sheen 3.8s ease-in-out infinite;
  z-index: -1;
}

.home-v2-btn-rainbow:hover {
  color: #ffffff;
  border-color: rgba(var(--tint-rgb), 0.98);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(var(--tint-rgb), 0.42) inset,
    0 12px 24px rgba(255, 79, 154, 0.24),
    0 0 34px rgba(255, 216, 90, 0.34),
    0 0 54px rgba(83, 215, 255, 0.28);
}

@keyframes home-rainbow-button {
  0% { background-position: 0 0, 0% 50%; }
  100% { background-position: 0 0, 360% 50%; }
}

@keyframes home-rainbow-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@keyframes home-rainbow-sheen {
  0%, 100% { transform: translateX(-48%) rotate(8deg); opacity: 0.2; }
  45% { opacity: 0.56; }
  55% { transform: translateX(44%) rotate(8deg); opacity: 0.64; }
}

@media (prefers-reduced-motion: reduce) {
  .home-v2-btn-rainbow {
    animation: none;
  }
  .hp-btn:hover,
  .hp-feature:hover,
  .hp-card:hover,
  .hp-tool-card:hover {
    transform: none;
  }
}

.home-main {
  overflow: hidden;
}

.home-page .site-header {
  background: rgba(5, 5, 5, 0.72);
  border-bottom-color: rgba(var(--tint-rgb), 0.08);
}

.home-page .nav-row {
  padding: 16px 0;
}

.home-page .nav-links {
  gap: 8px;
}

.home-page .nav-link {
  border-color: rgba(var(--tint-rgb), 0.08);
  background: rgba(var(--tint-rgb), 0.02);
  color: var(--muted);
  padding-inline: 14px;
}

.home-page .nav-link:hover {
  background: rgba(var(--tint-rgb), 0.04);
  color: var(--text);
}

.home-page .nav-link-discord {
  border-color: rgba(145, 213, 133, 0.2);
  background: rgba(145, 213, 133, 0.06);
  color: #d7f2d2;
}

.home-page .btn {
  clip-path: none;
  border-radius: 999px;
  padding: 10px 15px;
}

.home-page .site-header .btn {
  padding: 9px 14px;
}

.home-page .btn-primary {
  border-color: rgba(var(--gold-rgb), calc(0.44 * var(--gold-mul)));
  background: linear-gradient(180deg, #fff16a, #f3e600);
}

.home-page .hero {
  display: block;
  padding: 84px 0 38px;
}

.home-page .lead {
  max-width: 62ch;
}

.hero-grid,
.story-grid,
.trust-shell,
.feature-showcase {
  display: grid;
  gap: 34px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
}

.hero-copy h1 {
  max-width: 12ch;
  margin-bottom: 16px;
  font-size: clamp(2.8rem, 6vw, 5.15rem);
}

.hero-copy .lead {
  font-size: 1.08rem;
  max-width: 58ch;
}

.hero-actions {
  gap: 12px;
  margin: 24px 0 14px;
}

.hero-subactions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.subtle-link {
  margin-top: 0;
  color: var(--muted);
  text-decoration: none;
}

.subtle-link:hover {
  color: var(--brand);
}

.hero-points,
.feature-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points {
  display: grid;
  gap: 10px;
  max-width: 40rem;
}

.hero-points li,
.feature-points li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.hero-points li::before,
.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(var(--gold-rgb), calc(0.9 * var(--gold-mul))), rgba(var(--tint-rgb), 0.42));
  box-shadow: 0 0 18px rgba(var(--gold-rgb), calc(0.26 * var(--gold-mul)));
}

.hero-stage {
  position: relative;
}

.visual-frame {
  position: relative;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.92), rgba(7, 7, 7, 0.96)),
    radial-gradient(circle at top left, rgba(var(--gold-rgb), calc(0.12 * var(--gold-mul))), transparent 32%);
  box-shadow: 0 36px 80px rgba(var(--shade-rgb), calc(0.48 * var(--shade-mul)));
  overflow: hidden;
}

.visual-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(var(--tint-rgb), 0.04);
  pointer-events: none;
}

.visual-frame-image {
  min-height: 0;
}

.visual-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-label {
  color: var(--brand);
  margin-bottom: 14px;
}

.visual-slot-name {
  color: var(--muted-2);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-screen {
  position: relative;
  min-height: 360px;
  border-radius: 22px;
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  background:
    linear-gradient(180deg, rgba(var(--tint-rgb), 0.03), rgba(var(--shade-rgb), calc(0.16 * var(--shade-mul)))),
    radial-gradient(circle at top, rgba(var(--gold-rgb), calc(0.09 * var(--gold-mul))) 0%, transparent 34%),
    linear-gradient(135deg, #151515, #0c0c0c);
  overflow: hidden;
}

.hero-screen {
  min-height: 430px;
}

.hero-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-section {
  padding-top: 34px;
}

.story-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.story-copy {
  color: var(--muted);
  font-size: 1.02rem;
}

.story-copy p {
  margin: 0;
}

.story-copy p + p {
  margin-top: 14px;
}

.feature-sequence {
  padding-top: 52px;
}

.feature-sequence-intro {
  max-width: 52rem;
}

.feature-stack {
  display: grid;
  gap: 72px;
  margin-top: 34px;
}

.feature-showcase {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
}

.feature-showcase.is-reversed .feature-copy {
  order: 2;
}

.feature-showcase.is-reversed .feature-visual {
  order: 1;
}

.feature-copy h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  margin-bottom: 14px;
  max-width: 12ch;
}

.feature-copy p {
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 36rem;
}

.feature-points {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.visual-caption {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 0.9rem;
}

.visual-screen-image {
  display: block;
  min-height: 0;
  padding: 0;
  background: #090909;
}

.visual-image {
  display: block;
  width: 100%;
  height: auto;
}

.visual-screen-feed,
.visual-screen-map,
.visual-screen-economy,
.visual-screen-alerts,
.visual-screen-setup {
  display: grid;
  place-items: center;
  padding: 24px;
}

.visual-screen-feed {
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 18px;
}

.feed-stack {
  width: 100%;
  display: grid;
  gap: 14px;
  padding-top: 56px;
}

.feed-line,
.progress-line,
.setup-line,
.setup-title,
.alert-banner,
.alert-card,
.economy-card,
.map-node,
.setup-sidebar span,
.feed-sidebar span {
  display: block;
  border-radius: 999px;
}

.feed-line {
  height: 16px;
  background: linear-gradient(90deg, rgba(var(--tint-rgb), 0.08), rgba(var(--gold-rgb), calc(0.22 * var(--gold-mul))));
}

.feed-line.strong {
  width: 100%;
}

.feed-line.short {
  width: 62%;
}

.feed-sidebar {
  width: 100%;
  display: grid;
  gap: 12px;
  align-self: stretch;
}

.feed-sidebar span {
  min-height: 74px;
  background: linear-gradient(180deg, rgba(var(--tint-rgb), 0.08), rgba(var(--shade-rgb), calc(0.16 * var(--shade-mul))));
  border: 1px solid rgba(var(--tint-rgb), 0.07);
  border-radius: 18px;
}

.visual-screen-map::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 1px dashed rgba(var(--tint-rgb), 0.08);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--tint-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--tint-rgb), 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.28;
}

.map-zone {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), calc(0.32 * var(--gold-mul)));
  background: radial-gradient(circle, rgba(var(--gold-rgb), calc(0.18 * var(--gold-mul))) 0%, transparent 70%);
  filter: blur(0.2px);
}

.map-zone-a {
  width: 210px;
  height: 210px;
  top: 48px;
  left: 42px;
}

.map-zone-b {
  width: 170px;
  height: 170px;
  right: 52px;
  bottom: 40px;
}

.map-node {
  position: absolute;
  width: 18px;
  height: 18px;
  background: linear-gradient(180deg, #fff16a, #f3e600);
  box-shadow: 0 0 22px rgba(var(--gold-rgb), calc(0.32 * var(--gold-mul)));
}

.map-node-a {
  top: 88px;
  left: 118px;
}

.map-node-b {
  right: 98px;
  top: 132px;
}

.map-node-c {
  right: 122px;
  bottom: 88px;
}

.visual-screen-economy {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.economy-column,
.economy-progress,
.alert-stack,
.setup-panel {
  width: 100%;
  display: grid;
  gap: 14px;
}

.economy-card {
  min-height: 92px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(var(--gold-rgb), calc(0.18 * var(--gold-mul))), rgba(var(--tint-rgb), 0.08));
  border: 1px solid rgba(var(--tint-rgb), 0.08);
}

.economy-card.small {
  min-height: 68px;
  width: 74%;
}

.progress-line {
  height: 18px;
  background: linear-gradient(90deg, rgba(var(--gold-rgb), calc(0.34 * var(--gold-mul))), rgba(var(--tint-rgb), 0.06));
}

.progress-line.full {
  width: 100%;
}

.progress-line.medium {
  width: 74%;
}

.progress-line.short {
  width: 58%;
}

.visual-screen-alerts {
  align-content: center;
}

.alert-banner {
  width: min(88%, 440px);
  height: 52px;
  background: linear-gradient(90deg, rgba(var(--gold-rgb), calc(0.24 * var(--gold-mul))), rgba(var(--tint-rgb), 0.08));
  border: 1px solid rgba(var(--gold-rgb), calc(0.25 * var(--gold-mul)));
  margin-bottom: 20px;
}

.alert-card {
  min-height: 88px;
  background: linear-gradient(180deg, rgba(var(--tint-rgb), 0.09), rgba(var(--shade-rgb), calc(0.12 * var(--shade-mul))));
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  border-radius: 22px;
}

.alert-card.small {
  width: 68%;
}

.visual-screen-setup {
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
}

.setup-sidebar {
  width: 100%;
  display: grid;
  gap: 12px;
}

.setup-sidebar span {
  min-height: 70px;
  background: linear-gradient(180deg, rgba(var(--tint-rgb), 0.08), rgba(var(--shade-rgb), calc(0.08 * var(--shade-mul))));
  border: 1px solid rgba(var(--tint-rgb), 0.07);
  border-radius: 20px;
}

.setup-panel {
  align-self: stretch;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  background: linear-gradient(180deg, rgba(var(--tint-rgb), 0.06), rgba(var(--shade-rgb), calc(0.14 * var(--shade-mul))));
}

.setup-title {
  width: 48%;
  height: 18px;
  background: linear-gradient(90deg, rgba(var(--gold-rgb), calc(0.34 * var(--gold-mul))), rgba(var(--tint-rgb), 0.06));
  margin-bottom: 6px;
}

.setup-line {
  height: 14px;
  background: rgba(var(--tint-rgb), 0.1);
}

.setup-line.medium {
  width: 78%;
}

.setup-line.short {
  width: 58%;
}

.trust-section {
  padding-top: 56px;
}

.trust-shell {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: start;
  gap: 40px;
  padding: 28px;
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0.96), rgba(8, 8, 8, 0.96)),
    radial-gradient(circle at top left, rgba(var(--gold-rgb), calc(0.12 * var(--gold-mul))), transparent 30%);
  box-shadow: var(--shadow);
}

.trust-list {
  display: grid;
  gap: 18px;
}

.trust-line {
  padding: 0 0 0 18px;
  border-left: 1px solid rgba(var(--gold-rgb), calc(0.28 * var(--gold-mul)));
}

.trust-line h3 {
  margin-bottom: 6px;
}

.trust-line p {
  margin: 0;
  color: var(--muted);
}

.final-cta {
  padding-top: 34px;
  padding-bottom: 48px;
}

.home-cta-band {
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(var(--gold-rgb), calc(0.16 * var(--gold-mul))), rgba(var(--gold-rgb), calc(0.06 * var(--gold-mul)))),
    linear-gradient(180deg, rgba(18, 18, 18, 0.94), rgba(8, 8, 8, 0.94));
}

.home-cta-band h2 {
  max-width: 18ch;
}

@media (max-width: 900px) {
  .home-page .hero {
    padding-top: 58px;
  }

  .hero-grid,
  .story-grid,
  .feature-showcase,
  .trust-shell {
    grid-template-columns: 1fr;
  }

  .feature-showcase.is-reversed .feature-copy,
  .feature-showcase.is-reversed .feature-visual {
    order: initial;
  }

  .hero-copy h1,
  .feature-copy h3,
  .home-cta-band h2 {
    max-width: none;
  }

  .trust-shell {
    padding: 24px;
  }
}

@media (max-width: 760px) {
  .home-page .nav-row {
    padding: 14px 0 12px;
  }

  .home-page .nav-links {
    row-gap: 8px;
  }

  .home-page .hero {
    padding-top: 42px;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 13vw, 3.6rem);
  }

  .hero-subactions,
  .hero-actions {
    gap: 10px;
  }

  .visual-frame,
  .trust-shell,
  .home-cta-band {
    padding: 18px;
    border-radius: 22px;
  }

  .visual-header {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .visual-screen,
  .hero-screen,
  .feature-visual .visual-frame {
    min-height: 290px;
  }

  .visual-frame-image,
  .visual-frame-image .visual-screen {
    min-height: 0;
  }

  .visual-screen-feed,
  .visual-screen-economy,
  .visual-screen-setup {
    grid-template-columns: 1fr;
  }

  .feed-sidebar,
  .setup-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feed-sidebar span,
  .setup-sidebar span {
    min-height: 56px;
  }

  .map-zone-a {
    width: 150px;
    height: 150px;
    top: 54px;
    left: 24px;
  }

  .map-zone-b {
    width: 126px;
    height: 126px;
    right: 24px;
    bottom: 42px;
  }

  .feature-stack {
    gap: 48px;
  }
}

/* ============================================================
   Marketing pages adopt homepage typography & controls
   Trigger: <body class="hp-body"> on any marketing page.
   Fonts (Hanken Grotesk + Instrument Serif + JetBrains Mono)
   must also be loaded in <head>.
   ============================================================ */

/* --- Page background matches homepage --- */
body.hp-body {
  background-color: var(--bg-page);
  background-image:
    radial-gradient(1100px 600px at 78% -12%, rgba(var(--gold-rgb), calc(0.06 * var(--gold-mul))), transparent 65%),
    radial-gradient(900px 520px at -5% 4%, rgba(var(--tint-rgb), 0.03), transparent 60%);
  background-repeat: no-repeat;
}
body.hp-body::before {
  display: none;
}

/* --- Header/nav: glassy, larger, pill links --- */
.hp-body .site-header {
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10, 10, 10, 0.62);
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.05);
}
.hp-body .nav-row {
  min-height: 58px;
  padding: 0.85rem 0;
}
.hp-body .brand small {
  letter-spacing: 0.08em;
}
.hp-body .nav-link {
  border: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  text-transform: none;
  letter-spacing: -0.01em;
}
.hp-body .nav-link:hover {
  color: var(--text);
  background: rgba(var(--tint-rgb), 0.05);
  border-color: transparent;
}

/* --- Buttons: pill-shaped, no uppercase (like hp-btn) --- */
.hp-body .btn {
  padding: 0.62rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  border: 1px solid rgba(var(--tint-rgb), 0.14);
  background: rgba(var(--tint-rgb), 0.04);
  color: var(--text);
  clip-path: none;
}
.hp-body .btn:hover {
  border-color: rgba(var(--tint-rgb), 0.24);
  background: rgba(var(--tint-rgb), 0.07);
  color: var(--text);
  transform: translateY(-1px);
}
.hp-body .btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #0a0a00;
  box-shadow: 0 6px 20px rgba(var(--gold-rgb), calc(0.16 * var(--gold-mul)));
  clip-path: none;
}
.hp-body .btn-primary:hover {
  filter: brightness(1.04);
  background: var(--brand);
  color: #0a0a00;
  box-shadow: 0 10px 28px rgba(var(--gold-rgb), calc(0.26 * var(--gold-mul)));
}
.hp-body .hero-actions .btn {
  padding: 0.85rem 1.55rem;
  font-size: 1rem;
}

/* --- Typography: serif display for headings --- */
.hp-body h1,
.hp-body h2,
.hp-body h3,
.hp-body .card h3,
.hp-body .faq dt {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hp-body .page-hero {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(1rem, 2vw, 1.6rem);
}
.hp-body .page-hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  max-width: 22ch;
  margin-bottom: 1.1rem;
}
.hp-body .section h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.hp-body .card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}
.hp-body .faq dt {
  font-size: 1.2rem;
  margin-top: 1.1rem;
}
.hp-body .lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 64ch;
}
.hp-body .kicker {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.hp-body .crumbs {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

/* --- Section rhythm --- */
.hp-body .section {
  padding: clamp(2.4rem, 4.5vw, 3.6rem) 0;
  border-top-color: rgba(var(--tint-rgb), 0.06);
}
.hp-body .section-intro {
  margin-bottom: 1.4rem;
}

/* --- Cards: softer, homepage-style --- */
.hp-body .card,
.hp-body .metric-card,
.hp-body .trust-item,
.hp-body .real-server-card,
.hp-body .testimonial-card,
.hp-body .case-card,
.hp-body .cite-card,
.hp-body .evidence-card {
  border-radius: 20px;
  border: 1px solid rgba(var(--tint-rgb), 0.06);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.55), rgba(10, 10, 10, 0.55));
}
.hp-body .card {
  padding: clamp(1.2rem, 2vw, 1.6rem);
}
.hp-body .card::after {
  display: none;
}
.hp-body .metric-card {
  padding: 1.2rem 1.3rem;
}
.hp-body .metric-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.1;
  text-transform: none;
  letter-spacing: -0.015em;
  color: var(--brand-strong);
  margin-bottom: 0.35rem;
}
.hp-body .metric-note {
  font-size: 0.9rem;
}

/* --- Answer & CTA bands --- */
.hp-body .answer-band {
  border-radius: 18px;
  padding: 1.15rem 1.35rem;
}
.hp-body .answer-band h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--brand);
}
.hp-body .cta-band {
  border-radius: 24px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  margin: 3rem 0 3.5rem;
}
.hp-body .cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

/* --- Code blocks --- */
.hp-body .example-block {
  border-radius: 16px;
}
.hp-body .example-block pre {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}
.hp-body .example-block code {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}
.hp-body .example-label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}
.hp-body code {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

/* --- Compare table --- */
.hp-body .compare-table th {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

/* --- Feature points bullet color/spacing --- */
.hp-body .feature-points li {
  color: var(--muted);
  font-size: 0.98rem;
}

/* --- Footer: reduce visual weight to match homepage feel --- */
.hp-body .footer {
  border-top: 1px solid rgba(var(--tint-rgb), 0.05);
  background: transparent;
}
.hp-body .footer h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   Helios account navigation and dashboard
   ============================================================ */
.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;
}

.helios-account-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.helios-account-loading {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 50%;
  background: linear-gradient(110deg, rgba(var(--tint-rgb), 0.03) 30%, rgba(var(--tint-rgb), 0.1) 46%, rgba(var(--tint-rgb), 0.03) 62%);
  background-size: 220% 100%;
  animation: account-shimmer 1.25s linear infinite;
}

@keyframes account-shimmer {
  to { background-position-x: -220%; }
}

.helios-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 43px;
  padding: 0.3rem 0.55rem 0.3rem 0.35rem;
  border: 1px solid rgba(var(--tint-rgb), 0.13);
  border-radius: 999px;
  color: var(--text);
  background: rgba(var(--tint-rgb), 0.035);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.helios-account-trigger:hover,
.helios-account-trigger[aria-expanded="true"] {
  border-color: rgba(var(--gold-rgb), calc(0.36 * var(--gold-mul)));
  background: rgba(var(--tint-rgb), 0.07);
  transform: translateY(-1px);
}

.helios-account-trigger img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 1px solid rgba(var(--tint-rgb), 0.13);
  border-radius: 50%;
  background: var(--panel-3);
}

.helios-account-chevron {
  margin: -0.18rem 0.1rem 0 0;
  color: var(--muted-2);
  font-size: 1rem;
}

.helios-account-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  z-index: 100;
  display: grid;
  width: 224px;
  padding: 0.45rem;
  border: 1px solid rgba(var(--tint-rgb), 0.12);
  border-radius: 16px;
  background: rgba(var(--pane-raise-rgb), 0.98);
  box-shadow: 0 24px 64px rgba(var(--shade-rgb), calc(0.58 * var(--shade-mul)));
}

.helios-account-menu[hidden] {
  display: none;
}

.helios-account-menu-identity {
  display: grid;
  gap: 0.08rem;
  margin-bottom: 0.35rem;
  padding: 0.7rem 0.75rem 0.8rem;
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);
}

.helios-account-menu-identity small {
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.helios-account-menu-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.helios-account-menu > a {
  padding: 0.64rem 0.75rem;
  border-radius: 9px;
  color: var(--text-3);
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.helios-account-menu > a:hover,
.helios-account-menu > a:focus-visible {
  color: var(--text);
  background: rgba(var(--tint-rgb), 0.065);
}

.helios-account-menu > a:last-child {
  margin-top: 0.25rem;
  border-top: 1px solid rgba(var(--tint-rgb), 0.07);
  border-radius: 0 0 9px 9px;
  color: #ffadad;
}

body.account-page {
  min-height: 100vh;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(900px 520px at 72% -8%, rgba(var(--gold-rgb), calc(0.11 * var(--gold-mul))), transparent 70%),
    var(--bg);
  background-size: 52px 52px, 52px 52px, auto, auto;
  /* The shorthand above resets background-repeat, so the grid and the gold wash
     have to be spelled out again. Only the grid tiles: a body background is
     painted across the whole canvas but positioned against the viewport-sized
     root box, so leaving the wash on `repeat` stamps it once per screen all the
     way down a long page instead of once behind the header. */
  background-repeat: repeat, repeat, no-repeat, no-repeat;
}

.account-page [hidden] {
  display: none !important;
}

.account-page .hp-logo-mark {
  color: var(--brand-ink);
}

.account-shell {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 5rem;
}

.account-shell-narrow {
  width: min(940px, 92vw);
}

.account-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

.account-heading > div {
  max-width: 720px;
}

.account-heading h1,
.account-auth-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.account-heading > div > p:last-child,
.account-auth-card > p:not(.hp-eyebrow) {
  max-width: 650px;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.account-heading-compact {
  align-items: start;
}

.account-heading-compact h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
}

.account-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 3.5rem;
  border-top: 1px solid rgba(var(--tint-rgb), 0.1);
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.1);
}

.account-metrics article {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-height: 108px;
  padding: 1.2rem 1.4rem;
}

.account-metrics article + article {
  border-left: 1px solid rgba(var(--tint-rgb), 0.1);
}

.account-metrics span,
.account-profile-stats span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-metrics strong {
  font-family: var(--font-display);
  color: var(--brand-ink);
  font-size: clamp(2.7rem, 5vw, 4.1rem);
  font-weight: 400;
  line-height: 1;
}

.account-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.3rem;
}

.account-section-heading h2,
.account-next-step h2,
.account-info-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.02;
}

.account-filter select {
  min-width: 155px;
  min-height: 43px;
  padding: 0 2.3rem 0 0.9rem;
  border: 1px solid rgba(var(--tint-rgb), 0.13);
  border-radius: 999px;
  color: var(--text);
  background: var(--bg-soft);
  font: inherit;
  font-size: 0.84rem;
}

.account-server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.account-server-card {
  position: relative;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(var(--pane-raise-rgb), 0.97), rgba(var(--pane-deep-rgb), 0.98));
  box-shadow: 0 20px 48px rgba(var(--shade-rgb), calc(0.26 * var(--shade-mul)));
}

.account-server-card::before {
  content: none;
}

.account-server-card.is-premium::before {
  content: none;
}

.account-server-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.account-server-guild {
  margin: 0 0 0.24rem;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-server-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.58rem;
  font-weight: 400;
}

.account-status {
  flex: 0 0 auto;
  padding: 0.34rem 0.58rem;
  border: 1px solid rgba(var(--tint-rgb), 0.11);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(var(--tint-rgb), 0.035);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-status.is-active {
  border-color: rgba(var(--gold-rgb), calc(0.3 * var(--gold-mul)));
  color: var(--brand-ink-strong);
  background: rgba(var(--gold-rgb), calc(0.07 * var(--gold-mul)));
}

/* Server tier badges show plain text, no pill */
#server-tier.account-status,
#server-sidebar-tier.account-status {
  padding: 0;
  border: 0;
  background: none;
}

.account-server-details {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem 1rem;
  margin: 1.45rem 0 1.2rem;
}

.account-server-details dt,
.account-server-details dd {
  margin: 0;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(var(--tint-rgb), 0.06);
  font-size: 0.82rem;
}

.account-server-details dt {
  color: var(--muted-2);
}

.account-server-details dd {
  color: var(--text-2);
  text-align: right;
}

.account-server-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  min-height: 43px;
  margin-top: auto;
}

.account-action-note {
  color: var(--muted-2);
  font-size: 0.78rem;
}

.account-filter-empty {
  grid-column: 1 / -1;
  padding: 2.5rem;
  border: 1px dashed rgba(var(--tint-rgb), 0.15);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.account-empty,
.account-auth-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.2rem);
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 28px;
  background:
    radial-gradient(460px 230px at 90% 0%, rgba(88, 101, 242, 0.15), transparent 72%),
    linear-gradient(150deg, rgba(var(--pane-raise-rgb), 0.97), rgba(var(--pane-deep-rgb), 0.98));
  box-shadow: 0 28px 70px rgba(var(--shade-rgb), calc(0.36 * var(--shade-mul)));
}

.account-empty {
  max-width: none;
  text-align: center;
}

.account-empty > span {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(var(--gold-rgb), calc(0.3 * var(--gold-mul)));
  border-radius: 50%;
  color: var(--brand-ink);
  font-size: 1.5rem;
}

.account-empty h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.4rem;
}

.account-empty p {
  max-width: 560px;
  margin: 0 auto 1.2rem;
  color: var(--muted);
}

.account-discord-badge {
  display: inline-flex;
  margin-bottom: 1.5rem;
  padding: 0.45rem 0.72rem;
  border-radius: 8px;
  color: #fff;
  background: #5865f2;
  font-size: 0.78rem;
  font-weight: 800;
}

.account-auth-card .hp-btn {
  margin-top: 1.7rem;
}

.account-next-step,
.account-info-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(var(--tint-rgb), 0.1);
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.1);
}

.account-next-step > p,
.account-info-panel > p {
  margin: 0;
  color: var(--muted);
}

.account-page-loading {
  display: flex;
  min-height: 45vh;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  color: var(--muted);
  text-align: center;
}

.account-page-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: account-pulse 1s ease-in-out infinite;
}

.account-page-loading span:nth-child(2) { animation-delay: 0.12s; }
.account-page-loading span:nth-child(3) { animation-delay: 0.24s; }
.account-page-loading p { flex-basis: 100%; margin: 0.5rem 0 0; }

.account-page-loading-gear {
  flex-direction: column;
  gap: 1rem;
}

.account-page-loading-gear .account-loading-gear {
  position: relative;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid rgba(var(--gold-rgb), calc(0.18 * var(--gold-mul)));
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(var(--tint-rgb), 0.08), transparent 56%),
    rgba(var(--pane-deep-rgb), 0.94);
  box-shadow:
    0 20px 54px rgba(var(--shade-rgb), calc(0.5 * var(--shade-mul))),
    0 0 42px rgba(var(--gold-rgb), calc(0.1 * var(--gold-mul))),
    inset 0 1px 0 rgba(var(--tint-rgb), 0.06);
}

.account-page-loading-gear .account-loading-gear::after {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(var(--gold-rgb), calc(0.09 * var(--gold-mul)));
  border-radius: 50%;
  content: "";
}

.account-page-loading-gear .account-loading-gear img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.88);
  animation: account-gear-spin 4.8s linear infinite;
  will-change: transform;
}

.account-page-loading-gear p {
  flex-basis: auto;
  margin: 0;
  color: var(--text-3);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

@keyframes account-pulse {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

@keyframes account-gear-spin {
  to { transform: rotate(360deg); }
}

.account-subnav {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 2.7rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);
}

.account-subnav a {
  padding: 0.52rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.account-subnav a:hover,
.account-subnav a[aria-current="page"] {
  color: #0d0d00;
  background: var(--brand);
}

.account-profile-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.6rem;
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(var(--pane-raise-rgb), 0.97), rgba(var(--pane-deep-rgb), 0.98));
}

.account-profile-card > img {
  width: 112px;
  height: 112px;
  border: 2px solid rgba(var(--gold-rgb), calc(0.38 * var(--gold-mul)));
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel-3);
  box-shadow: 0 0 0 7px rgba(var(--gold-rgb), calc(0.045 * var(--gold-mul)));
}

.account-profile-copy > span,
.account-setting-row > div:nth-child(2) > span {
  color: var(--muted-2);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.account-profile-copy h2 {
  margin: 0.15rem 0 0.1rem;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 400;
}

.account-profile-copy p {
  margin: 0;
  color: var(--muted);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.75rem;
}

.account-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.account-profile-stats article {
  display: flex;
  min-height: 128px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem;
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  border-radius: 16px;
  background: rgba(var(--tint-rgb), 0.022);
}

.account-profile-stats strong {
  color: var(--brand-ink);
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1;
}

.account-info-panel {
  grid-template-columns: 0.8fr 1.2fr;
}

.account-info-panel .hp-link {
  grid-column: 2;
  width: fit-content;
}

.account-settings-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.account-setting-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(var(--pane-raise-rgb), 0.95), rgba(var(--pane-deep-rgb), 0.96));
}

.account-setting-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--text);
  background: #5865f2;
  font-weight: 800;
}

.account-setting-icon-muted {
  color: var(--text-3);
  background: rgba(var(--tint-rgb), 0.09);
}

.account-setting-icon-brand {
  color: #111100;
  background: var(--brand);
}

.account-setting-row h2 {
  margin: 0.12rem 0;
  font-size: 1.08rem;
}

.account-setting-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.account-setting-row-future {
  opacity: 0.72;
}

.account-signout-button {
  --btn-color: #ffb2b2;
  --btn-border: rgba(255, 124, 124, 0.23);
}

@media (max-width: 900px) {
  .account-server-grid {
    grid-template-columns: 1fr;
  }
  .account-next-step,
  .account-info-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .account-info-panel .hp-link {
    grid-column: 1;
  }
}

@media (max-width: 720px) {
  .account-shell {
    padding-top: 3rem;
  }
  .account-heading,
  .account-section-heading {
    align-items: start;
    flex-direction: column;
  }
  .account-metrics {
    grid-template-columns: 1fr;
  }
  .account-metrics article {
    min-height: 84px;
  }
  .account-metrics article + article {
    border-top: 1px solid rgba(var(--tint-rgb), 0.1);
    border-left: 0;
  }
  .account-profile-card {
    grid-template-columns: auto 1fr;
  }
  .account-profile-card > .hp-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
  .account-profile-stats {
    grid-template-columns: 1fr;
  }
  .account-profile-stats article {
    min-height: 100px;
  }
  .account-setting-row {
    grid-template-columns: auto 1fr;
  }
  .account-setting-row > .hp-btn,
  .account-setting-row > .account-status {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .helios-account-trigger > span:not(.helios-account-chevron) {
    display: none;
  }
  .helios-account-trigger {
    padding-right: 0.35rem;
  }
  .helios-account-chevron {
    display: none;
  }
  .helios-account-login {
    display: inline-flex !important;
    padding-inline: 0.82rem;
    font-size: 0.8rem;
  }
  .account-page .hp-nav-inner {
    gap: 0.55rem;
  }
  .account-heading h1,
  .account-auth-card h1 {
    font-size: clamp(2.45rem, 14vw, 3.4rem);
  }
  .account-profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .account-profile-card > img {
    margin: 0 auto;
  }
  .account-server-top {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .hp-nav-cta > .hp-btn:not(.helios-account-login) {
    display: none;
  }
  .account-server-card {
    padding: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .helios-account-loading,
  .account-page-loading span {
    animation: none;
  }

  .account-page-loading-gear .account-loading-gear img {
    animation: none;
  }
}

/* ============================================================
   Secure server dashboard and Easy Binds
   ============================================================ */
.server-dashboard-page .account-shell {
  width: min(1440px, 94vw);
}

.server-workspace {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.server-workspace-content {
  min-width: 0;
}

.server-sidebar {
  position: sticky;
  top: 94px;
  isolation: isolate;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 22px;
  background:
    radial-gradient(320px 180px at 5% -5%, rgba(var(--gold-rgb), calc(0.07 * var(--gold-mul))), transparent 72%),
    linear-gradient(155deg, rgba(var(--pane-raise-rgb), 0.98), rgba(var(--pane-deep-rgb), 0.99));
  box-shadow: 0 22px 58px rgba(var(--shade-rgb), calc(0.34 * var(--shade-mul))), inset 0 1px 0 rgba(var(--tint-rgb), 0.025);
}

.server-sidebar::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 22px;
  left: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), calc(0.55 * var(--gold-mul))), transparent);
  content: "";
}

.server-sidebar-header .account-back-link {
  margin: 0;
}

.server-drawer-toggle,
.server-sidebar-scrim {
  display: none;
}

.home-mobile-drawer {
  display: none;
}

.server-sidebar-identity {
  position: relative;
  display: grid;
  width: 100%;
  gap: 0.25rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(var(--tint-rgb), 0.07);
  border-radius: 15px;
  background:
    linear-gradient(120deg, rgba(var(--gold-rgb), calc(0.045 * var(--gold-mul))), transparent 48%),
    rgba(var(--tint-rgb), 0.025);
  box-shadow: inset 0 1px 0 rgba(var(--tint-rgb), 0.025);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: default;
}

.server-sidebar-identity > span:first-child {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.server-sidebar-identity strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-sidebar-identity .account-status {
  width: fit-content;
  margin-top: 0.55rem;
}

.server-sidebar-nav {
  display: grid;
  gap: 0.28rem;
  margin-top: 1.5rem;
}

.server-sidebar-nav > p {
  margin: 1rem 0 0.35rem;
  padding: 0 0.55rem;
  color: var(--muted-2);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.server-sidebar-nav > p:first-child {
  margin-top: 0;
}

.server-sidebar-nav a,
.server-sidebar-nav button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.58rem;
  width: 100%;
  min-height: 48px;
  padding: 0.48rem 0.58rem;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 720;
  text-align: left;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.server-sidebar-nav a:hover {
  color: var(--text);
  background: rgba(var(--tint-rgb), 0.045);
  transform: translateX(2px);
}

.server-sidebar-nav a:focus-visible,
.server-sidebar-identity:focus-visible {
  outline: 2px solid rgba(var(--gold-rgb), calc(0.55 * var(--gold-mul)));
  outline-offset: 2px;
}

.server-sidebar-nav a.is-active {
  border-color: rgba(var(--gold-rgb), calc(0.16 * var(--gold-mul)));
  color: var(--text);
  background: linear-gradient(90deg, rgba(var(--gold-rgb), calc(0.105 * var(--gold-mul))), rgba(var(--gold-rgb), calc(0.035 * var(--gold-mul))));
  box-shadow: 0 10px 26px rgba(var(--shade-rgb), calc(0.16 * var(--shade-mul)));
}

.server-sidebar-nav button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.server-sidebar-icon {
  display: grid;
  overflow: hidden;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 45%, rgba(var(--gold-rgb), calc(0.09 * var(--gold-mul))), transparent 65%),
    rgba(var(--tint-rgb), 0.025);
  box-shadow: inset 0 1px 0 rgba(var(--tint-rgb), 0.035);
}

.server-sidebar-icon img {
  display: block;
  width: 31px;
  height: 31px;
  object-fit: contain;
  filter: saturate(0.72) brightness(0.88);
  transform: scale(1.15);
  transition: filter 160ms ease, transform 160ms ease;
}

.server-sidebar-icon-overview {
  color: var(--brand-ink);
  font-size: 1.1rem;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(var(--gold-rgb), calc(0.28 * var(--gold-mul)));
}

.server-sidebar-nav a.is-active .server-sidebar-icon {
  border-color: rgba(var(--gold-rgb), calc(0.22 * var(--gold-mul)));
  background: rgba(var(--gold-rgb), calc(0.07 * var(--gold-mul)));
  box-shadow: 0 0 22px rgba(var(--gold-rgb), calc(0.09 * var(--gold-mul))), inset 0 1px 0 rgba(var(--tint-rgb), 0.06);
}

.server-sidebar-nav a:hover .server-sidebar-icon img,
.server-sidebar-nav a.is-active .server-sidebar-icon img {
  filter: saturate(1) brightness(1.08);
  transform: scale(1.2);
}

.server-sidebar-badge {
  padding: 0.2rem 0.35rem;
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 0.53rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.server-sidebar-nav a.is-active .server-sidebar-badge {
  border-color: rgba(var(--gold-rgb), calc(0.18 * var(--gold-mul)));
  color: var(--brand-ink-strong);
}

.server-sidebar-security {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding: 0.85rem;
  border-top: 1px solid rgba(var(--tint-rgb), 0.07);
}

.server-sidebar-security > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(var(--tint-rgb), 0.12);
  border-radius: 50%;
  color: var(--brand-ink);
  font-size: 0.7rem;
  font-weight: 900;
}

.server-sidebar-security strong {
  display: block;
  color: var(--text-2);
  font-size: 0.72rem;
}

.server-sidebar-security p {
  margin: 0.25rem 0 0;
  color: var(--muted-2);
  font-size: 0.65rem;
  line-height: 1.45;
}

#server-overview,
.server-module-hero {
  scroll-margin-top: 110px;
}

.account-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.account-back-link:hover {
  color: var(--brand-ink);
}

.server-dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.server-dashboard-heading h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.server-dashboard-heading > div > p:last-child {
  max-width: 620px;
  margin: 1rem 0 0;
  color: var(--muted);
}

.server-module-hero {
  --module-art: url('/images/dashboard/modules/binds.webp?v=2');
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 176px;
  margin-top: 2rem;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid rgba(var(--gold-rgb), calc(0.16 * var(--gold-mul)));
  border-radius: 24px;
  background:
    radial-gradient(560px 240px at -4% -10%, rgba(var(--gold-rgb), calc(0.12 * var(--gold-mul))), transparent 68%),
    linear-gradient(145deg, rgba(var(--pane-raise-rgb), 0.985), rgba(var(--pane-deep-rgb), 0.99));
  box-shadow: 0 24px 64px rgba(var(--shade-rgb), calc(0.32 * var(--shade-mul))), inset 0 1px 0 rgba(var(--tint-rgb), 0.035);
}

.server-module-hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(46%, 460px);
  height: 100%;
  background:
    linear-gradient(90deg, rgba(var(--pane-deep-rgb), 0.98) 0%, rgba(var(--pane-deep-rgb), 0.26) 34%, rgba(var(--pane-deep-rgb), 0.04) 100%),
    var(--module-art) center / cover no-repeat;
  content: "";
  opacity: 0.42;
  filter: saturate(0.88) contrast(1.06);
  pointer-events: none;
}

.server-module-hero::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  opacity: 0.5;
  mask-image: linear-gradient(90deg, transparent 25%, #000 100%);
  pointer-events: none;
}

.server-battlepass-hero { --module-art: url('/images/dashboard/modules/battle-pass.webp?v=2'); }
.server-economy-hero { --module-art: url('/images/dashboard/modules/economy.webp?v=2'); }
.server-shop-hero { --module-art: url('/images/dashboard/modules/shop.webp?v=2'); }
.server-module-hero-treasure { --module-art: url('/images/dashboard/modules/treasure.webp?v=1'); }
.server-module-hero-server-settings { --module-art: url('/images/dashboard/modules/server-settings.webp?v=2'); }
.server-module-hero-player-tools { --module-art: url('/images/dashboard/modules/player-tools.webp?v=2'); }
.server-module-hero-automations { --module-art: url('/images/dashboard/modules/automations.webp?v=2'); }
.server-module-hero-killfeed { --module-art: url('/images/dashboard/modules/killfeed.webp?v=2'); }
.server-module-hero-tickets { --module-art: url('/images/dashboard/modules/tickets.webp?v=2'); }

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

.server-module-page[hidden] {
  display: none !important;
}

.server-overview-console {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(var(--gold-rgb), calc(0.15 * var(--gold-mul)));
  border-radius: 24px;
  background:
    radial-gradient(650px 300px at 5% -10%, rgba(var(--gold-rgb), calc(0.1 * var(--gold-mul))), transparent 65%),
    linear-gradient(145deg, rgba(var(--pane-raise-rgb), 0.99), rgba(var(--pane-deep-rgb), 0.99));
  box-shadow: 0 26px 70px rgba(var(--shade-rgb), calc(0.34 * var(--shade-mul))), inset 0 1px 0 rgba(var(--tint-rgb), 0.035);
}

.server-overview-console[hidden] {
  display: none !important;
}

.server-overview-setup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(248, 113, 113, 0.08), transparent 70%),
    rgba(var(--pane-deep-rgb), 0.96);
  box-shadow: 0 22px 58px rgba(var(--shade-rgb), calc(0.3 * var(--shade-mul))), inset 0 1px 0 rgba(var(--tint-rgb), 0.035);
}

.server-overview-setup[hidden] {
  display: none !important;
}

.server-overview-setup-icon {
  display: grid;
  overflow: hidden;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 16px;
  background: rgba(248, 113, 113, 0.055);
}

.server-overview-setup-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-overview-setup h2 {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.05;
}

.server-overview-setup p:last-child {
  max-width: 650px;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.server-overview-console::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  opacity: 0.5;
  mask-image: linear-gradient(120deg, transparent 10%, #000 100%);
  pointer-events: none;
}

.server-overview-console-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.server-overview-console-heading h2,
.server-overview-quick h2 {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.server-overview-console-heading > div:first-child > p:last-child {
  max-width: 620px;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.server-overview-refresh {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.server-live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.server-live-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.server-live-status.is-live {
  color: #68df92;
}

.server-live-status.is-stale,
.server-live-status.is-loading {
  color: var(--brand-ink-strong);
}

/* Live gets the same heartbeat as Connecting — a still dot next to "Live" reads
   as a stale screenshot rather than a running server. */
.server-live-status.is-loading i,
.server-live-status.is-live i {
  animation: overview-status-pulse 1.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .server-live-status i {
    animation: none;
  }
}

.server-live-status.is-offline,
.server-live-status.is-disabled {
  color: #f08f8f;
}

@keyframes overview-status-pulse {
  50% { opacity: 0.35; transform: scale(0.72); }
}

.server-overview-primary {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.25fr);
  gap: 1rem;
}

.server-overview-player-card,
.server-overview-stat-grid article,
.server-overview-detail-grid article {
  border: 1px solid rgba(var(--tint-rgb), 0.075);
  background: rgba(var(--tint-rgb), 0.025);
  box-shadow: inset 0 1px 0 rgba(var(--tint-rgb), 0.025);
}

.server-overview-player-card {
  padding: 1.35rem;
  border-radius: 18px;
}

.server-overview-player-card > div:first-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.server-overview-player-card > div:first-child > span,
.server-overview-stat-grid span,
.server-overview-detail-grid div > span {
  color: var(--muted-2);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.server-overview-player-card strong {
  display: flex;
  align-items: baseline;
  color: var(--text);
  line-height: 1;
}

.server-overview-player-card strong b {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.06em;
}

.server-overview-player-card strong small {
  margin-left: 0.45rem;
  color: var(--muted-2);
  font-size: 1rem;
  font-weight: 700;
}

.server-overview-occupancy {
  overflow: hidden;
  height: 6px;
  margin-top: 1.15rem;
  border-radius: 999px;
  background: rgba(var(--tint-rgb), 0.075);
}

.server-overview-occupancy span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d8cc00, var(--brand));
  box-shadow: 0 0 18px rgba(var(--gold-rgb), calc(0.26 * var(--gold-mul)));
  transition: width 300ms ease;
}

.server-overview-player-card > p {
  display: flex;
  gap: 1rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.server-overview-player-card > p b {
  color: var(--text);
}

.server-overview-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.server-overview-stat-grid article {
  display: flex;
  min-height: 146px;
  padding: 1.2rem;
  border-radius: 18px;
  flex-direction: column;
  justify-content: space-between;
}

.server-overview-stat-grid strong {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}

.server-overview-stat-grid small {
  margin-top: 0.35rem;
  color: var(--muted-2);
  font-size: 0.67rem;
}

.server-overview-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.server-overview-detail-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 76px;
  padding: 0.9rem 1rem;
  border-radius: 15px;
}

.server-overview-detail-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(var(--gold-rgb), calc(0.16 * var(--gold-mul)));
  border-radius: 10px;
  color: var(--brand-ink);
  background: rgba(var(--gold-rgb), calc(0.045 * var(--gold-mul)));
  font-size: 0.88rem;
}

.server-overview-detail-grid div {
  min-width: 0;
}

.server-overview-detail-grid strong {
  display: block;
  overflow: hidden;
  margin-top: 0.2rem;
  color: var(--text-2);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-overview-quick {
  margin-top: 2rem;
}

.server-overview-command {
  margin-top: 2rem;
  padding: clamp(1.1rem, 2.5vw, 1.65rem);
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 20px;
  background:
    radial-gradient(460px 180px at 0% 0%, rgba(var(--gold-rgb), calc(0.065 * var(--gold-mul))), transparent 72%),
    linear-gradient(145deg, rgba(var(--pane-raise-rgb), 0.97), rgba(var(--pane-deep-rgb), 0.99));
  box-shadow: 0 22px 58px rgba(var(--shade-rgb), calc(0.26 * var(--shade-mul))), inset 0 1px 0 rgba(var(--tint-rgb), 0.035);
}

.server-overview-command > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.server-overview-command h2 {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
}

.server-overview-command > header p:last-child {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.server-overview-command-form {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.server-overview-command-form > label {
  color: var(--text-2);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.server-overview-command-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
}

.server-overview-command-field {
  position: relative;
  min-width: 0;
}

/* Sits inside the field, so the input reserves room for it on the right. */
.server-overview-command-clear {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  outline: none;
  color: var(--muted-2);
  background: rgba(var(--tint-rgb), 0.08);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  place-items: center;
  transform: translateY(-50%);
  transition: color 140ms ease, background-color 140ms ease;
}

.server-overview-command-clear:hover {
  color: var(--text);
  background: rgba(var(--tint-rgb), 0.16);
}

.server-overview-command-clear:focus-visible {
  outline: 2px solid rgba(var(--gold-rgb), calc(0.64 * var(--gold-mul)));
  outline-offset: 2px;
}

.server-overview-command-form input {
  width: 100%;
  min-height: 46px;
  padding: 0.78rem 2.15rem 0.78rem 0.9rem;
  border: 1px solid rgba(var(--tint-rgb), 0.11);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: rgba(var(--shade-rgb), calc(0.24 * var(--shade-mul)));
  font: 500 0.8rem/1.4 "JetBrains Mono", monospace;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.server-overview-command-form input:focus {
  border-color: rgba(var(--gold-rgb), calc(0.5 * var(--gold-mul)));
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), calc(0.08 * var(--gold-mul)));
}

.server-overview-command-form .hp-btn {
  min-width: 132px;
}

.server-overview-command-form > small {
  color: var(--muted-2);
  font-size: 0.67rem;
}

.server-overview-command-form code {
  color: var(--brand-ink);
}

.server-overview-command-result {
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 14px;
  background: rgba(var(--shade-rgb), calc(0.27 * var(--shade-mul)));
}

.server-overview-command-result[hidden] {
  display: none !important;
}

.server-overview-command-result > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.07);
  color: var(--muted-2);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.server-overview-command-result strong {
  color: var(--brand-ink);
  font-size: 0.62rem;
}

.server-overview-command-result.is-error {
  border-color: rgba(248, 113, 113, 0.25);
}

.server-overview-command-result.is-error strong {
  color: #f08f8f;
}

.server-overview-command-result.is-loading strong {
  color: var(--muted);
}

.server-overview-command-result pre {
  max-height: 320px;
  overflow: auto;
  margin: 0;
  padding: 0.9rem;
  color: var(--text-2);
  font: 500 0.74rem/1.6 "JetBrains Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .server-overview-command > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .server-overview-command-form > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .server-overview-command-form .hp-btn {
    width: 100%;
  }
}

.server-overview-cooldown-manager {
  margin-top: 2rem;
}

.server-overview-cooldown-content {
  padding: 0.8rem;
}

.server-overview-cooldown-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.server-overview-cooldown-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 92px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(var(--tint-rgb), 0.085);
  border-radius: 14px;
  color: var(--text);
  background: rgba(var(--tint-rgb), 0.018);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.server-overview-cooldown-row:hover,
.server-overview-cooldown-row:focus-visible {
  border-color: rgba(var(--gold-rgb), calc(0.26 * var(--gold-mul)));
  background: rgba(var(--gold-rgb), calc(0.035 * var(--gold-mul)));
  transform: translateY(-1px);
}

.server-overview-cooldown-row:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.server-overview-cooldown-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(var(--gold-rgb), calc(0.18 * var(--gold-mul)));
  border-radius: 12px;
  color: var(--brand-ink);
  background: rgba(var(--gold-rgb), calc(0.05 * var(--gold-mul)));
  font-size: 1.25rem;
  font-weight: 700;
  overflow: hidden;
}

/* Each row carries the artwork of the module it resets, the same way the
   Quick Actions tiles do. */
.server-overview-cooldown-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.server-overview-cooldown-row > span:nth-child(2) {
  display: grid;
  gap: 0.3rem;
}

.server-overview-cooldown-row strong {
  font-size: 0.86rem;
}

.server-overview-cooldown-row small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.server-overview-cooldown-action {
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(var(--gold-rgb), calc(0.19 * var(--gold-mul)));
  border-radius: 999px;
  color: var(--brand-ink);
  background: rgba(var(--gold-rgb), calc(0.045 * var(--gold-mul)));
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  .server-overview-cooldown-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .server-overview-cooldown-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .server-overview-cooldown-icon {
    width: 38px;
    height: 38px;
  }

  .server-overview-cooldown-action {
    grid-column: 2;
    justify-self: start;
  }
}

.server-overview-guild-controls {
  margin-top: 2rem;
  padding: clamp(1.1rem, 2.5vw, 1.65rem);
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(var(--pane-raise-rgb), 0.97), rgba(var(--pane-deep-rgb), 0.99));
  box-shadow: 0 22px 58px rgba(var(--shade-rgb), calc(0.26 * var(--shade-mul))), inset 0 1px 0 rgba(var(--tint-rgb), 0.035);
}

.server-overview-guild-controls > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.server-overview-guild-controls h2 {
  margin: 0.28rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
}

.server-overview-guild-controls > header p:last-child,
.server-overview-role-sync p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.server-overview-guild-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.server-overview-guild-settings-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.server-overview-guild-setting,
.server-overview-role-sync {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 94px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(var(--tint-rgb), 0.085);
  border-radius: 14px;
  background: rgba(var(--tint-rgb), 0.018);
}

.server-overview-guild-setting h3,
.server-overview-role-sync h3 {
  margin: 0.18rem 0 0;
  font-family: var(--font-display);
  font-size: 1.17rem;
  font-weight: 400;
}

.server-overview-guild-setting p {
  max-width: 470px;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.server-overview-currency-row {
  grid-column: 1 / -1;
  border-color: rgba(var(--gold-rgb), calc(0.13 * var(--gold-mul)));
  background: linear-gradient(110deg, rgba(var(--gold-rgb), calc(0.035 * var(--gold-mul))), rgba(var(--tint-rgb), 0.015));
}

.server-overview-currency-controls,
.server-overview-currency-form {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
}

.server-overview-currency-controls[hidden],
.server-overview-currency-form[hidden] {
  display: none;
}

.server-overview-currency-value {
  min-width: 130px;
  max-width: 280px;
  overflow: hidden;
  padding: 0.58rem 0.8rem;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 11px;
  color: var(--text);
  background: rgba(var(--shade-rgb), calc(0.24 * var(--shade-mul)));
  font-size: 0.84rem;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-overview-currency-edit {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(var(--gold-rgb), calc(0.18 * var(--gold-mul)));
  border-radius: 11px;
  color: var(--brand-ink);
  background: rgba(var(--gold-rgb), calc(0.045 * var(--gold-mul)));
  font: 700 1rem/1 var(--font-sans);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.server-overview-currency-edit:hover,
.server-overview-currency-edit:focus-visible {
  border-color: rgba(var(--gold-rgb), calc(0.36 * var(--gold-mul)));
  background: rgba(var(--gold-rgb), calc(0.09 * var(--gold-mul)));
  transform: translateY(-1px);
}

.server-overview-currency-form input {
  width: min(260px, 32vw);
  min-height: 40px;
  padding: 0.58rem 0.72rem;
  border: 1px solid rgba(var(--gold-rgb), calc(0.24 * var(--gold-mul)));
  border-radius: 11px;
  color: var(--text);
  background: rgba(var(--pane-deep-rgb), 0.96);
  font: inherit;
  font-size: 0.84rem;
  outline: none;
}

.server-overview-currency-form input:focus {
  border-color: rgba(var(--gold-rgb), calc(0.55 * var(--gold-mul)));
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), calc(0.08 * var(--gold-mul)));
}

.server-overview-currency-form .hp-btn {
  min-height: 40px;
  padding-inline: 0.9rem;
}

.server-overview-role-sync {
  margin-top: 0.65rem;
  border-color: rgba(var(--gold-rgb), calc(0.13 * var(--gold-mul)));
  background: linear-gradient(110deg, rgba(var(--gold-rgb), calc(0.035 * var(--gold-mul))), rgba(var(--tint-rgb), 0.015));
}

.server-overview-role-sync .hp-btn:disabled,
.server-overview-role-sync .hp-btn.is-syncing {
  color: rgba(var(--tint-rgb), 0.48);
  border-color: rgba(var(--tint-rgb), 0.08);
  background: rgba(var(--shade-rgb), calc(0.48 * var(--shade-mul)));
  box-shadow: none;
  filter: saturate(0.35) brightness(0.72);
  opacity: 0.78;
  cursor: wait;
  pointer-events: none;
  transform: none;
}

.premium-destination-checkout {
  width: 100%;
  margin-top: 0.8rem;
}

.server-overview-quick > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.server-overview-quick > header > p {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.server-overview-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.server-overview-quick-grid a {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 92px;
  padding: 1rem;
  border: 1px solid rgba(var(--tint-rgb), 0.075);
  border-radius: 16px;
  color: var(--text);
  background: rgba(var(--tint-rgb), 0.02);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.server-overview-quick-grid a:hover {
  border-color: rgba(var(--gold-rgb), calc(0.2 * var(--gold-mul)));
  background: rgba(var(--gold-rgb), calc(0.035 * var(--gold-mul)));
  transform: translateY(-2px);
}

.server-overview-quick-grid a > span {
  display: grid;
  width: 38px;
  height: 38px;
  grid-row: 1 / span 2;
  place-items: center;
  border: 1px solid rgba(var(--gold-rgb), calc(0.16 * var(--gold-mul)));
  border-radius: 11px;
  color: var(--brand-ink);
  background: rgba(var(--gold-rgb), calc(0.045 * var(--gold-mul)));
}

.server-overview-quick-grid a > span img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.server-overview-quick-grid strong {
  align-self: end;
  font-size: 0.86rem;
}

.server-overview-quick-grid small {
  overflow: hidden;
  align-self: start;
  color: var(--muted-2);
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-overview-quick-grid i {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--muted-2);
  font-size: 0.75rem;
  font-style: normal;
  font-variant-emoji: text;
}

.server-module-heading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 1.35rem;
}

.server-module-icon {
  display: grid;
  overflow: hidden;
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(var(--gold-rgb), calc(0.24 * var(--gold-mul)));
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(var(--gold-rgb), calc(0.14 * var(--gold-mul))), transparent 66%),
    linear-gradient(145deg, rgba(var(--pane-lift-rgb), 0.94), rgba(var(--pane-deep-rgb), 0.96));
  box-shadow: 0 16px 34px rgba(var(--shade-rgb), calc(0.3 * var(--shade-mul))), 0 0 38px rgba(var(--gold-rgb), calc(0.07 * var(--gold-mul))), inset 0 1px 0 rgba(var(--tint-rgb), 0.055);
}

.server-module-icon img {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.16);
}

.server-module-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1;
}

.server-module-heading p:last-child {
  max-width: 620px;
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.server-module-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem;
  border: 1px solid rgba(var(--tint-rgb), 0.065);
  border-radius: 999px;
  background: rgba(var(--pane-deep-rgb), 0.66);
  box-shadow: 0 12px 34px rgba(var(--shade-rgb), calc(0.22 * var(--shade-mul))), inset 0 1px 0 rgba(var(--tint-rgb), 0.025);
  backdrop-filter: blur(10px);
}

.server-module-count {
  padding-left: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.server-bind-limit {
  margin: 1rem 0;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(var(--tint-rgb), 0.025);
  font-size: 0.82rem;
}

.server-bind-used-dot {
  color: #ff4d57;
  font-size: 0.82em;
  text-shadow: 0 0 10px rgba(255, 77, 87, 0.42);
}

.server-bind-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  margin-top: 1rem;
}

/* Quick-chat category break. Long bind lists blend together, so each category
   gets a labelled hairline; the margins sit on top of the list's own 0.65rem
   gap, which is what opens the group up. */
/* Scoped to the list so it outranks the `.hp-body h3` display-serif rule — the
   divider is a heading for semantics, not for looks. */
.server-bind-list .server-bind-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.7rem 0 0.65rem;
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: normal;
}

.server-bind-list .server-bind-group:first-child {
  margin-top: 0;
}

/* The whole label is the collapse control, so it has to look and behave like a
   button while inheriting the eyebrow treatment from the heading. */
.server-bind-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 4px;
  outline: none;
  color: inherit;
  background: none;
  font: inherit;
  cursor: pointer;
}

.server-bind-group-toggle:hover .server-bind-group-label {
  color: var(--brand-ink-strong);
}

.server-bind-group-toggle:focus-visible {
  outline: 2px solid rgba(var(--gold-rgb), calc(0.64 * var(--gold-mul)));
  outline-offset: 3px;
}

.server-bind-group-caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 160ms ease;
}

.server-bind-group-toggle[aria-expanded="false"] .server-bind-group-caret {
  transform: rotate(-45deg) translate(-1px, -1px);
}

.server-bind-group-label {
  color: var(--brand-ink);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.server-bind-group-count {
  color: var(--muted-2);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-weight: 700;
}

.server-bind-group-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(var(--gold-rgb), calc(0.4 * var(--gold-mul))),
    rgba(var(--tint-rgb), 0.07) 45%
  );
}

.server-module-row.is-paused {
  opacity: 0.72;
}

.server-module-row-content .server-bind-actions {
  margin-top: 1rem;
}

.server-module-row-content .server-bind-kit {
  margin-top: 0;
}

.server-bind-card {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(var(--pane-raise-rgb), 0.98), rgba(var(--pane-deep-rgb), 0.98));
  box-shadow: 0 18px 46px rgba(var(--shade-rgb), calc(0.25 * var(--shade-mul)));
}

.server-bind-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--brand);
  box-shadow: 0 0 22px rgba(var(--gold-rgb), calc(0.3 * var(--gold-mul)));
}

.server-bind-card.is-paused {
  opacity: 0.78;
}

.server-bind-card.is-paused::before {
  background: rgba(var(--tint-rgb), 0.2);
  box-shadow: none;
}

.server-bind-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.server-bind-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.06;
}

.server-bind-kit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(var(--gold-rgb), calc(0.13 * var(--gold-mul)));
  border-radius: 12px;
  background: rgba(var(--gold-rgb), calc(0.045 * var(--gold-mul)));
}

.server-bind-kit span {
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.server-bind-kit strong {
  overflow: hidden;
  color: var(--brand-ink-strong);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Emote kit binds read as a table: an index, the phrase, then one labelled
   column per setting. The compound selector is deliberate — it has to outrank
   the shared .economy-settings-summary grid defined further down. */
.economy-settings-summary.server-bind-summary {
  grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 2.1fr) auto;
  gap: 1.15rem;
}

.server-bind-index {
  color: var(--muted-2);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.server-bind-field {
  display: grid;
  min-width: 0;
  gap: 0.3rem;
  justify-items: start;
}

.server-bind-field-label {
  color: var(--muted-2);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.server-bind-phrase-field {
  padding-right: 1.15rem;
  border-right: 1px solid rgba(var(--tint-rgb), 0.09);
}

.server-bind-phrase {
  max-width: 100%;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Access carries the longest values (role and auth-group names), so it gets the
   widest share rather than an even quarter. */
.server-bind-stats {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.6fr) minmax(0, 1.5fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 0.9rem;
}

.server-bind-field-value {
  max-width: 100%;
  overflow: hidden;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-bind-chip {
  max-width: 100%;
  overflow: hidden;
  padding: 0.24rem 0.62rem;
  border: 1px solid rgba(var(--tint-rgb), 0.12);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.74rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-bind-chip-active {
  border-color: color-mix(in srgb, var(--ok) 42%, transparent);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  color: var(--ok);
}

.server-bind-chip-paused {
  color: var(--muted-2);
}

/* Same shape and weight as the Active chip, in red — page-2 emotes only fire
   after the player sends "I'm Out of Ammo", and used to be invisible in the
   collapsed list. */
.server-bind-chip-page2 {
  border-color: color-mix(in srgb, var(--bad) 42%, transparent);
  background: color-mix(in srgb, var(--bad) 12%, transparent);
  color: var(--bad);
}

/* Keeps the chip on the phrase's line while the phrase itself still ellipses. */
.server-bind-phrase-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.server-bind-phrase-line .server-bind-phrase {
  min-width: 0;
}

.server-bind-phrase-line .server-bind-chip-page2 {
  flex: 0 0 auto;
}

.server-bind-details {
  margin: 1rem 0;
}

.server-bind-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.server-bind-remove {
  margin-left: auto;
  padding: 0.55rem 0.2rem;
  border: 0;
  color: #ffaaaa;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.server-bind-remove:hover {
  color: #ffd0d0;
}

.server-bind-empty {
  margin-top: 1rem;
}

.server-battlepass-hero {
  margin-top: 2rem;
}

.server-economy-hero {
  margin-top: 2rem;
}

.server-shop-hero {
  margin-top: 2rem;
}

.shop-module-card-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.shop-module-card {
  overflow: visible;
}

.shop-module-summary-copy {
  min-width: 0;
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1.45;
}

.shop-module-summary-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-2);
  font-size: 0.72rem;
  white-space: nowrap;
}

.shop-module-card-content {
  padding: 1rem;
}

.shop-control-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem;
  margin-top: 0;
  padding: 1rem;
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  border-radius: 16px;
  background: rgba(var(--tint-rgb), 0.025);
}

.shop-control-search {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.8fr) minmax(170px, 0.8fr);
  gap: 0.7rem;
}

.shop-control-search label {
  display: grid;
  gap: 0.35rem;
}

.shop-control-search label > span,
.shop-quick-actions > span {
  color: var(--muted-2);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.shop-control-search input,
.shop-control-search select {
  width: 100%;
  min-height: 43px;
  padding: 0.66rem 0.75rem;
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 10px;
  color: var(--text);
  background: var(--bg-soft);
  font: inherit;
  font-size: 0.78rem;
}

.shop-control-search input:focus,
.shop-control-search select:focus {
  border-color: rgba(var(--gold-rgb), calc(0.5 * var(--gold-mul)));
  outline: none;
}

.shop-quick-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.shop-quick-actions > span {
  margin-right: 0.25rem;
}

.shop-category-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.shop-category-card {
  overflow: hidden;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(var(--pane-raise-rgb), 0.98), rgba(var(--pane-deep-rgb), 0.99));
  box-shadow: 0 16px 40px rgba(var(--shade-rgb), calc(0.2 * var(--shade-mul)));
}

.shop-category-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 4.6rem 1rem 1.1rem;
  background: rgba(var(--tint-rgb), 0.02);
  cursor: pointer;
  list-style: none;
}

.shop-category-heading::-webkit-details-marker {
  display: none;
}

.shop-category-row[open] > .shop-category-heading {
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.07);
}

.shop-category-heading:hover,
.shop-category-heading:focus-visible {
  background: rgba(var(--tint-rgb), 0.035);
  outline: none;
}

.shop-category-title {
  min-width: 0;
}

.shop-category-title-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.shop-category-name {
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1;
}

.shop-category-meta {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted-2);
  font-size: 0.68rem;
  line-height: 1.45;
}

.shop-easy-badge {
  padding: 0.2rem 0.42rem;
  border: 1px solid rgba(var(--gold-rgb), calc(0.19 * var(--gold-mul)));
  border-radius: 999px;
  color: var(--brand-ink-strong);
  background: rgba(var(--gold-rgb), calc(0.055 * var(--gold-mul)));
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-category-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
}

.shop-category-trash {
  position: absolute;
  z-index: 2;
  top: 0.85rem;
  right: 0.9rem;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #ff9b9b;
  background: rgba(255, 92, 92, 0.055);
  border: 1px solid rgba(255, 92, 92, 0.2);
  border-radius: 9px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ticket-settings-card {
  margin: 1rem 0 1.5rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(var(--gold-hi-rgb), calc(0.18 * var(--gold-mul)));
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--gold-hi-rgb), calc(0.07 * var(--gold-mul))), transparent 32%),
    rgba(var(--pane-raise-rgb), 0.92);
}

.ticket-settings-heading,
.ticket-dm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ticket-settings-heading {
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.09);
}

.ticket-settings-heading h3,
.ticket-category-heading h3,
.ticket-dm-row strong {
  margin: 0;
}

.ticket-settings-heading p:last-child,
.ticket-dm-row p {
  margin: 0.3rem 0 0;
  color: var(--hp-muted);
}

.ticket-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ticket-settings-card > .server-form-field,
.ticket-settings-card > .ticket-settings-grid,
.ticket-settings-card > .ticket-dm-row {
  margin-top: 1rem;
}

.ticket-settings-card textarea {
  min-height: 10rem;
  resize: vertical;
}

.ticket-dm-row {
  padding: 1rem;
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 14px;
  background: rgba(var(--tint-rgb), 0.025);
}

.ticket-settings-actions {
  margin-top: 1rem;
}

.ticket-stats-reset-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border-color: rgba(255, 92, 92, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 68, 68, 0.09), transparent 34%),
    rgba(var(--pane-raise-rgb), 0.92);
}

.ticket-stats-reset-copy {
  max-width: 760px;
}

.ticket-stats-reset-copy h3 {
  margin: 0.15rem 0 0;
}

.ticket-stats-reset-copy p:last-child {
  margin: 0.45rem 0 0;
  color: var(--hp-muted);
}

.ticket-stats-wipe-button {
  --btn-bg: #d52f36;
  --btn-border: #ef5960;
  --btn-color: #ffffff;
  box-shadow: 0 8px 24px rgba(213, 47, 54, 0.2);
}

.ticket-stats-wipe-button:hover:not(:disabled) {
  --btn-bg: #e43b42;
  --btn-border: #ff747a;
  box-shadow: 0 10px 28px rgba(213, 47, 54, 0.3);
}

.ticket-stats-wipe-button:disabled {
  opacity: 0.58;
  cursor: wait;
  pointer-events: none;
}

.ticket-category-heading {
  margin-top: 0.5rem;
}

.ticket-category-body {
  display: grid;
  gap: 0.9rem;
}

.ticket-category-role-list {
  margin: 0;
  color: var(--hp-muted);
  font-size: 0.85rem;
}

.ticket-role-picker-details {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--tint-rgb), 0.12);
  border-radius: 12px;
  background: var(--bg-soft);
}

.ticket-role-picker-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.ticket-role-picker-details[open] .ticket-role-picker-summary {
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);
  background: rgba(var(--gold-hi-rgb), calc(0.035 * var(--gold-mul)));
}

.ticket-role-picker-summary::-webkit-details-marker {
  display: none;
}

.ticket-role-picker-chevron {
  color: var(--hp-yellow);
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.ticket-role-picker-details[open] .ticket-role-picker-chevron {
  transform: rotate(180deg);
}

.server-form-field .ticket-role-search {
  width: calc(100% - 1rem);
  min-height: 40px;
  margin: 0 0.5rem 0.5rem;
}

.ticket-role-options {
  display: grid;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--gold-hi-rgb), calc(0.45 * var(--gold-mul))) rgba(var(--tint-rgb), 0.04);
}

.ticket-role-options::-webkit-scrollbar {
  width: 8px;
}

.ticket-role-options::-webkit-scrollbar-track {
  background: rgba(var(--tint-rgb), 0.04);
}

.ticket-role-options::-webkit-scrollbar-thumb {
  border: 2px solid var(--bg-soft);
  border-radius: 999px;
  background: rgba(var(--gold-hi-rgb), calc(0.45 * var(--gold-mul)));
}

.ticket-role-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.06);
  cursor: pointer;
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.25;
}

.ticket-role-option:hover {
  background: rgba(var(--gold-hi-rgb), calc(0.06 * var(--gold-mul)));
}

.server-form-field .ticket-role-option input[type="checkbox"] {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  appearance: auto;
  accent-color: var(--hp-yellow);
}

.ticket-role-option > span {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
}

.ticket-role-empty {
  margin: 0;
  padding: 0.8rem;
  color: var(--hp-muted);
}

@media (max-width: 720px) {
  .ticket-settings-grid {
    grid-template-columns: 1fr;
  }

  .ticket-settings-heading,
  .ticket-dm-row {
    align-items: flex-start;
  }

  .ticket-stats-reset-card {
    align-items: stretch;
    flex-direction: column;
  }

  .ticket-stats-reset-card .hp-btn {
    width: 100%;
  }

  .ticket-settings-actions .hp-btn {
    width: 100%;
  }
}

.shop-category-trash:hover,
.shop-category-trash:focus-visible {
  color: #fff;
  background: rgba(255, 92, 92, 0.16);
  border-color: rgba(255, 92, 92, 0.55);
  outline: none;
  transform: translateY(-1px);
}

.shop-category-chevron {
  margin-left: 0.25rem;
}

.shop-category-row[open] .shop-category-chevron {
  transform: rotate(225deg);
}

.shop-product-list {
  display: grid;
  gap: 0.6rem;
  padding: 0.75rem;
}

.shop-product-row {
  box-shadow: none;
}

.shop-builder-content {
  display: grid;
  gap: 1rem;
}

.shop-builder-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(var(--gold-hi-rgb), calc(0.15 * var(--gold-mul)));
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--gold-rgb), calc(0.045 * var(--gold-mul))), rgba(var(--tint-rgb), 0.02));
}

.shop-builder-intro h3,
.shop-builder-intro p {
  margin: 0;
}

.shop-builder-intro h3 {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}

.shop-builder-intro p:last-child {
  max-width: 760px;
  margin-top: 0.35rem;
  color: var(--muted-2);
  font-size: 0.75rem;
  line-height: 1.5;
}

.shop-builder-list {
  display: grid;
  gap: 0.75rem;
}

.shop-builder-category {
  overflow: hidden;
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 15px;
  background: rgba(var(--pane-raise-rgb), 0.76);
}

.shop-builder-category-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
}

.shop-builder-category-summary::-webkit-details-marker,
.shop-builder-picker-summary::-webkit-details-marker {
  display: none;
}

.shop-builder-category-summary:hover,
.shop-builder-category-summary:focus-visible {
  background: rgba(var(--tint-rgb), 0.035);
  outline: none;
}

.shop-builder-category[open] > .shop-builder-category-summary {
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);
}

.shop-builder-category-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.shop-builder-category-copy strong {
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}

.shop-builder-category-copy small,
.shop-builder-category-summary-action {
  color: var(--muted-2);
  font-size: 0.68rem;
}

.shop-builder-category-summary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
}

.shop-builder-category[open] .shop-builder-category-summary-action .economy-settings-chevron {
  transform: rotate(225deg);
}

.shop-builder-category-content {
  display: grid;
  gap: 0.9rem;
  padding: 0.9rem;
}

.shop-builder-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  align-items: start;
  gap: 0.6rem;
}

.shop-builder-toolbar > .hp-btn:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  filter: saturate(0.45);
}

.shop-builder-picker {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(var(--tint-rgb), 0.11);
  border-radius: 11px;
  background: var(--bg-soft);
}

.shop-builder-picker-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 43px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-size: 0.76rem;
}

.shop-builder-picker-summary strong {
  color: var(--brand-ink-strong);
  font-size: 0.66rem;
}

.shop-builder-picker-chevron {
  color: var(--hp-yellow);
  font-size: 1rem;
  transition: transform 160ms ease;
}

.shop-builder-picker[open] .shop-builder-picker-chevron {
  transform: rotate(180deg);
}

.shop-builder-picker-panel {
  border-top: 1px solid rgba(var(--tint-rgb), 0.08);
  padding: 0.65rem;
}

.shop-builder-picker-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.35fr);
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.shop-builder-picker-filters input,
.shop-builder-picker-filters select {
  width: 100%;
  min-height: 40px;
  padding: 0.58rem 0.65rem;
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 9px;
  color: var(--text);
  background: rgba(var(--pane-deep-rgb), 0.92);
  font: inherit;
  font-size: 0.74rem;
}

.shop-builder-picker-options {
  display: grid;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid rgba(var(--tint-rgb), 0.07);
  border-radius: 9px;
  scrollbar-width: thin;
}

.shop-builder-picker-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.055);
  cursor: pointer;
}

.shop-builder-picker-option:last-child {
  border-bottom: 0;
}

.shop-builder-picker-option:hover {
  background: rgba(var(--gold-hi-rgb), calc(0.05 * var(--gold-mul)));
}

.shop-builder-picker-option input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--hp-yellow);
}

.shop-builder-picker-option > span {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.shop-builder-picker-option strong {
  color: var(--text);
  font-size: 0.75rem;
}

.shop-builder-picker-option small {
  overflow-wrap: anywhere;
  color: var(--muted-2);
  font-size: 0.62rem;
}

.shop-builder-picker-note,
.shop-builder-picker-empty,
.shop-builder-products-empty {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.67rem;
}

.shop-builder-picker-note {
  margin-top: 0.45rem;
}

.shop-builder-picker-empty,
.shop-builder-products-empty {
  padding: 0.85rem;
}

.shop-builder-products-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-2);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-builder-products {
  display: grid;
  gap: 0.5rem;
}

.shop-builder-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, auto) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(var(--tint-rgb), 0.075);
  border-radius: 10px;
  background: rgba(var(--tint-rgb), 0.018);
}

.shop-builder-product-copy,
.shop-builder-product-price {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.shop-builder-product-price {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
}

.shop-builder-product-price-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.shop-builder-product-copy strong {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.shop-builder-product-copy small,
.shop-builder-product-price small {
  color: var(--muted-2);
  font-size: 0.61rem;
}

.shop-builder-product-price-copy strong {
  font-size: 0.76rem;
}

.shop-builder-price-edit {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(var(--tint-rgb), 0.12);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(var(--tint-rgb), 0.035);
  cursor: pointer;
}

.shop-builder-price-edit:hover,
.shop-builder-price-edit:focus-visible,
.shop-builder-price-edit[aria-expanded="true"] {
  border-color: rgba(255, 241, 0, 0.55);
  color: var(--text);
  background: rgba(255, 241, 0, 0.09);
  outline: none;
}

.shop-builder-price-form {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto;
  gap: 0.45rem;
  min-width: 210px;
}

.shop-builder-price-form[hidden],
.shop-builder-product-price-copy[hidden] {
  display: none;
}

.shop-builder-price-form input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 0.65rem;
  border: 1px solid rgba(var(--tint-rgb), 0.14);
  border-radius: 9px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
}

.shop-builder-price-form input:focus {
  border-color: rgba(255, 241, 0, 0.65);
  outline: 2px solid rgba(255, 241, 0, 0.12);
}

.shop-builder-price-save {
  min-height: 38px;
  padding-inline: 0.85rem;
}

.shop-builder-product-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.shop-builder-product-remove {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 92, 92, 0.2);
  border-radius: 9px;
  color: #ff9b9b;
  background: rgba(255, 92, 92, 0.055);
  cursor: pointer;
}

.shop-builder-product-remove:hover,
.shop-builder-product-remove:focus-visible {
  border-color: rgba(255, 92, 92, 0.55);
  color: #fff;
  background: rgba(255, 92, 92, 0.16);
  outline: none;
}

.shop-category-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.8rem 1rem;
  border: 1px dashed rgba(var(--tint-rgb), 0.1);
  border-radius: 12px;
}

.shop-category-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.shop-no-results {
  margin-top: 0;
}

.shop-product-dialog {
  width: min(780px, calc(100vw - 2rem));
}

.shop-product-dialog > form {
  max-height: min(88vh, 980px);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.shop-product-dialog .server-dialog-heading {
  position: sticky;
  z-index: 2;
  top: 0;
  margin: -1.35rem -1.35rem 1.25rem;
  padding: 1.25rem 1.35rem 1rem;
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);
  background: rgba(var(--pane-deep-rgb), 0.97);
  backdrop-filter: blur(14px);
}

.shop-product-dialog .server-dialog-actions {
  position: sticky;
  z-index: 2;
  bottom: 0;
  margin: 1.25rem -1.35rem -1.35rem;
  padding: 1rem 1.35rem 1.25rem;
  border-top: 1px solid rgba(var(--tint-rgb), 0.08);
  background: rgba(var(--pane-deep-rgb), 0.97);
  backdrop-filter: blur(14px);
}

.server-module-heading code {
  color: var(--brand-ink-strong);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.82em;
}

.economy-section {
  margin-top: 2.5rem;
}

.economy-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1rem;
}

.economy-section-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
}

.economy-section-heading > p,
.economy-section-heading > div > p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.economy-section-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.economy-section-heading-actions > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: right;
}

.economy-section-heading > div > p:last-child {
  margin-top: 0.55rem;
}

.economy-settings-grid,
.economy-game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}

.economy-playtime-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}

.server-settings-list {
  margin-top: 1rem;
}

.server-settings-unsaved {
  margin: 1rem 0 0;
  color: var(--brand-ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.server-setting-switch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 104px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(var(--pane-raise-rgb), 0.97), rgba(var(--pane-deep-rgb), 0.98));
  box-shadow: 0 12px 30px rgba(var(--shade-rgb), calc(0.18 * var(--shade-mul)));
}

.server-setting-switch-copy {
  min-width: 0;
}

.server-setting-switch-copy h3 {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.server-setting-switch-copy .server-setting-description {
  max-width: 720px;
  margin: 0.45rem 0 0;
}

.server-setting-switch-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.server-setting-channel-field {
  display: grid;
  gap: 0.35rem;
  min-width: min(330px, 34vw);
  color: var(--muted-2);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.server-setting-channel-select {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 2.2rem 0.65rem 0.75rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid rgba(var(--tint-rgb), 0.13);
  border-radius: 9px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.server-setting-channel-select:focus-visible {
  border-color: var(--brand);
  outline: 2px solid rgba(var(--gold-hi-rgb), calc(0.18 * var(--gold-mul)));
  outline-offset: 2px;
}

.server-setting-channel-select:disabled {
  color: var(--muted-2);
  cursor: not-allowed;
  opacity: 0.7;
}

.server-setting-channel-error {
  max-width: 330px;
  color: #ff9c9c;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.server-setting-configure {
  min-width: 104px;
}

.server-toggle {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}

.server-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.server-toggle-track {
  position: relative;
  display: block;
  width: 54px;
  height: 30px;
  border: 1px solid rgba(var(--tint-rgb), 0.16);
  border-radius: 999px;
  background: #252830;
  box-shadow: inset 0 0 0 1px rgba(var(--shade-rgb), calc(0.2 * var(--shade-mul)));
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.server-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0b0b0b;
  box-shadow: 0 2px 8px rgba(var(--shade-rgb), calc(0.5 * var(--shade-mul)));
  transition: transform 180ms ease, background 180ms ease;
}

.server-toggle input:checked + .server-toggle-track {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 20px rgba(var(--gold-hi-rgb), calc(0.16 * var(--gold-mul)));
}

.server-toggle input:checked + .server-toggle-track .server-toggle-thumb {
  transform: translateX(24px);
}

.server-toggle input:focus-visible + .server-toggle-track {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.server-setting-description {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.is-setting-on {
  color: #7ee89a;
}

.player-tools-toolbar {
  margin-top: 0;
  padding: 0.9rem;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 14px;
  background: rgba(var(--pane-deep-rgb), 0.9);
}

.player-tools-toolbar label {
  display: grid;
  gap: 0.45rem;
}

.player-tools-toolbar label > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player-tools-toolbar input {
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid rgba(var(--tint-rgb), 0.12);
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--text);
}

.player-link-member-picker {
  position: relative;
}

.player-link-member-picker > input[type="search"] {
  padding-right: 2.5rem;
}

.player-link-member-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.45rem);
  left: 0;
  width: 100%;
  max-height: 260px;
  padding: 0.4rem;
  overflow-y: auto;
  border: 1px solid rgba(var(--tint-rgb), 0.16);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 18px 46px rgba(var(--shade-rgb), calc(0.58 * var(--shade-mul)));
}

.player-link-member-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 54px;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.player-link-member-option:hover,
.player-link-member-option:focus-visible,
.player-link-member-option.is-active {
  border-color: rgba(var(--gold-rgb), calc(0.34 * var(--gold-mul)));
  outline: none;
  background: rgba(var(--gold-rgb), calc(0.08 * var(--gold-mul)));
}

.player-link-member-option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.player-link-member-identity {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.player-link-member-identity strong,
.player-link-member-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-link-member-identity strong {
  color: var(--text);
  font-size: 0.86rem;
}

.player-link-member-identity small,
.player-link-member-message {
  color: var(--muted-2);
  font-size: 0.72rem;
}

.player-link-member-state {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.player-link-member-message {
  margin: 0;
  padding: 0.75rem;
  line-height: 1.5;
}

.player-tools-directory-card {
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 17px;
  background: linear-gradient(150deg, rgba(var(--pane-raise-rgb), 0.98), rgba(var(--pane-deep-rgb), 0.99));
}

.player-tools-directory-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 88px;
  padding: 1rem 1.15rem;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease;
}

.player-tools-directory-toggle:hover,
.player-tools-directory-toggle[aria-expanded="true"] {
  background: rgba(var(--gold-rgb), calc(0.045 * var(--gold-mul)));
}

.player-tools-directory-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -3px;
}

.player-tools-directory-toggle > span:first-child {
  display: grid;
  gap: 0.3rem;
}

.player-tools-directory-toggle small {
  color: var(--brand-ink);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.player-tools-directory-toggle strong {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 400;
}

.player-tools-directory-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.player-tools-directory-meta i {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.player-tools-directory-toggle[aria-expanded="true"] .player-tools-directory-meta i {
  transform: rotate(225deg);
}

.player-tools-directory-panel {
  padding: 1rem;
  border-top: 1px solid rgba(var(--tint-rgb), 0.08);
}

.player-tools-directory {
  min-width: 0;
  margin-top: 1rem;
}

.player-tools-list {
  display: grid;
  gap: 0.7rem;
}

.player-tools-player-card {
  overflow: hidden;
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(var(--pane-raise-rgb), 0.98), rgba(var(--pane-deep-rgb), 0.99));
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.player-tools-player-card.is-expanded {
  border-color: rgba(var(--gold-rgb), calc(0.38 * var(--gold-mul)));
  box-shadow: 0 16px 45px rgba(var(--shade-rgb), calc(0.28 * var(--shade-mul))), inset 0 1px rgba(var(--tint-rgb), 0.025);
}

.player-tools-player-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 82px;
  padding: 0.95rem 1rem;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.player-tools-player-row:hover,
.player-tools-player-card.is-expanded .player-tools-player-row {
  background: rgba(var(--gold-hi-rgb), calc(0.055 * var(--gold-mul)));
}

.player-tools-player-row:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -3px;
}

.player-tools-player-copy,
.player-tools-player-activity {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}

.player-tools-player-copy strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-tools-player-copy span,
.player-tools-player-activity span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-tools-player-activity {
  text-align: right;
}

.player-tools-player-activity strong {
  font-size: 0.78rem;
}

.player-tools-player-arrow {
  color: var(--brand-ink);
  font-size: 1.5rem;
  line-height: 1;
  transform: rotate(-90deg);
  transition: transform 160ms ease;
}

.player-tools-player-card.is-expanded .player-tools-player-arrow {
  transform: rotate(0);
}

.player-tools-player-panel {
  border-top: 1px solid rgba(var(--tint-rgb), 0.08);
}

.player-tools-detail {
  overflow: hidden;
}

.player-tools-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);
  background: radial-gradient(circle at top right, rgba(var(--gold-hi-rgb), calc(0.08 * var(--gold-mul))), transparent 44%);
}

.player-tools-profile-header h2 {
  margin: 0.25rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 400;
}

.player-tools-profile-header p,
.player-tools-detail-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.player-tools-unlink {
  flex: 0 0 auto;
}

.player-tools-detail-section {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.07);
}

.player-tools-detail-section:last-child {
  border-bottom: 0;
}

.player-tools-detail-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.player-tools-detail-heading h3 {
  margin: 0;
  font-size: 0.98rem;
}

.player-tools-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.player-tools-metric {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  border-radius: 10px;
  background: rgba(var(--tint-rgb), 0.025);
}

.player-tools-metric span {
  color: var(--muted);
  font-size: 0.66rem;
}

.player-tools-metric strong {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.server-setting-events-card {
  overflow: hidden;
}

.server-events-content {
  display: grid;
  gap: 1rem;
}

.server-events-intro {
  display: grid;
  gap: 0.35rem;
}

.server-events-intro > strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
}

.server-events-intro > p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.server-events-discord-card,
.server-event-setting {
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 12px;
  background: rgba(var(--pane-deep-rgb), 0.44);
}

.server-events-discord-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.server-events-control-copy {
  display: grid;
  min-width: 0;
  gap: 0.22rem;
}

.server-events-control-copy > strong {
  font-size: 0.9rem;
}

.server-events-control-copy > small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.server-events-discord-controls {
  display: flex;
  min-width: min(430px, 46vw);
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.server-events-discord-controls select {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 2.2rem 0.65rem 0.75rem;
  border: 1px solid rgba(var(--tint-rgb), 0.13);
  border-radius: 9px;
  color: var(--text);
  background: var(--bg-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.server-events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.server-event-setting {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 0.9rem;
}

.server-event-setting-heading {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.server-event-message-field textarea {
  min-height: 84px;
  resize: vertical;
}

.player-tools-cooldowns {
  display: grid;
  gap: 0.6rem;
}

.player-tools-cooldown-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(360px, 1.3fr);
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  border-radius: 10px;
  background: rgba(var(--tint-rgb), 0.025);
}

.player-tools-cooldown-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.player-tools-cooldown-copy strong {
  font-size: 0.84rem;
}

.player-tools-cooldown-copy span {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.player-tools-cooldown-controls {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem;
}

.player-tools-cooldown-select {
  min-width: 0;
  height: 40px;
  padding: 0 2rem 0 0.75rem;
  border: 1px solid rgba(var(--tint-rgb), 0.13);
  border-radius: 10px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  font-size: 0.74rem;
}

.player-tools-cooldown-select:focus-visible {
  border-color: rgba(255, 239, 0, 0.65);
  outline: 2px solid rgba(255, 239, 0, 0.13);
  outline-offset: 1px;
}

.player-tools-cooldown-select:disabled,
.player-tools-cooldown-reset:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.player-tools-cooldown-controls .hp-btn {
  min-height: 40px;
  white-space: nowrap;
}

.player-tools-inventory {
  display: grid;
  gap: 0.45rem;
}

.player-tools-inventory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(var(--tint-rgb), 0.07);
  border-radius: 9px;
  background: rgba(var(--tint-rgb), 0.02);
}

.player-tools-inventory-row > div {
  display: grid;
  gap: 0.2rem;
}

.player-tools-inventory-row .player-tools-inventory-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.player-tools-inventory-row span,
.player-tools-item-uses,
.player-tools-no-items {
  color: var(--muted);
  font-size: 0.7rem;
}

.player-tools-item-uses {
  white-space: nowrap;
}

.player-tools-item-trash {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 115, 115, 0.22);
  border-radius: 10px;
  color: #ffb2b2;
  background: rgba(255, 88, 88, 0.055);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.player-tools-item-trash:hover,
.player-tools-item-trash:focus-visible {
  border-color: rgba(255, 115, 115, 0.5);
  background: rgba(255, 88, 88, 0.12);
  outline: 0;
  transform: translateY(-1px);
}

.player-tools-empty,
.player-tools-detail-empty {
  border: 0;
  background: transparent;
}

.player-tools-empty-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.player-tools-detail-loading {
  position: static;
  min-height: 360px;
}

.player-tools-pagination {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--tint-rgb), 0.08);
}

.player-tools-pagination span {
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

/* Automation Center */
.automation-section-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0 24px;
}

.killfeed-section-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
}

.automation-section-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  min-height: 88px;
  padding: 15px 16px;
  color: var(--text);
  text-align: left;
  /* Same opaque panel as .economy-settings-card — the old near-transparent tint
     let the page grid show straight through these cards. */
  background: linear-gradient(150deg, rgba(var(--pane-raise-rgb), 0.97), rgba(var(--pane-deep-rgb), 0.98));
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(var(--shade-rgb), calc(0.18 * var(--shade-mul)));
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.automation-section-card::-webkit-details-marker {
  display: none;
}

.automation-feature-card {
  overflow: hidden;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(var(--pane-raise-rgb), 0.97), rgba(var(--pane-deep-rgb), 0.98));
  box-shadow: 0 12px 30px rgba(var(--shade-rgb), calc(0.18 * var(--shade-mul)));
}

.automation-feature-card > .automation-section-card {
  padding: 15px 48px 15px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.automation-feature-card[open] {
  border-color: rgba(var(--gold-hi-rgb), calc(0.56 * var(--gold-mul)));
  background: rgba(var(--gold-hi-rgb), calc(0.025 * var(--gold-mul)));
}

.automation-feature-card > .automation-section-card:hover,
.automation-feature-card[open] > .automation-section-card {
  background: rgba(var(--gold-hi-rgb), calc(0.045 * var(--gold-mul)));
  transform: none;
}

/* --brand, matching .economy-settings-chevron in every other module. */
.automation-feature-chevron,
.automation-kit-picker-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.automation-feature-chevron {
  position: absolute;
  right: 20px;
  bottom: 20px;
}

.automation-feature-card[open] > .automation-section-card .automation-feature-chevron,
.automation-kit-picker[open] .automation-kit-picker-chevron {
  transform: rotate(225deg);
}

.automation-feature-content {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-top: 1px solid rgba(var(--tint-rgb), 0.08);
}

.automation-feature-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.automation-feature-heading h3 {
  margin: 3px 0 5px;
  color: var(--hp-white);
  font-family: var(--hp-display);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 500;
}

.automation-feature-heading p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--hp-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.automation-feature-empty {
  margin-top: 0;
}

.automation-section-card:hover,
.automation-section-card.is-active {
  border-color: rgba(var(--gold-hi-rgb), calc(0.75 * var(--gold-mul)));
  background: rgba(var(--gold-hi-rgb), calc(0.055 * var(--gold-mul)));
  transform: translateY(-1px);
}

.automation-section-card:focus-visible {
  outline: 2px solid var(--hp-yellow);
  outline-offset: 2px;
}

.automation-section-card-title {
  align-self: center;
  font-size: 0.86rem;
  font-weight: 780;
}

.automation-section-card strong {
  align-self: center;
  min-width: 28px;
  color: var(--hp-yellow);
  font-size: 1.3rem;
  text-align: right;
}

.automation-section-card small {
  grid-column: 1 / -1;
  color: var(--hp-muted);
  font-size: 0.67rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.automation-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.automation-section-heading h3 {
  margin: 3px 0 5px;
  color: var(--hp-white);
  font-family: var(--hp-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 500;
}

.automation-section-heading > div > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--hp-muted);
  line-height: 1.55;
}

.automation-list {
  display: grid;
  gap: 9px;
}

.automation-row-content {
  gap: 18px;
}

.automation-details {
  margin: 0;
}

.automation-row-actions {
  margin-top: 2px;
}

.automation-group-commands {
  display: grid;
  gap: 8px;
}

.automation-command-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  background: rgba(var(--shade-rgb), calc(0.28 * var(--shade-mul)));
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 9px;
}

.automation-command-line > div:first-child {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.automation-command-line strong {
  color: var(--hp-white);
  font-size: 0.83rem;
}

.automation-command-line code {
  overflow-wrap: anywhere;
  color: #bfc4ca;
  font-size: 0.74rem;
}

.automation-command-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.automation-command-actions button {
  padding: 7px 10px;
  font-size: 0.7rem;
}

.automation-muted,
.automation-form-note {
  margin: 0;
  color: var(--hp-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.automation-kit-picker {
  overflow: hidden;
  border: 1px solid rgba(var(--tint-rgb), 0.12);
  border-radius: 10px;
  background: var(--bg-soft);
}

.automation-kit-picker-summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0.72rem 0.85rem;
  color: var(--hp-white);
  cursor: pointer;
}

.automation-kit-picker-summary::-webkit-details-marker {
  display: none;
}

.automation-kit-picker-panel {
  display: grid;
  gap: 8px;
  padding: 9px;
  border-top: 1px solid rgba(var(--tint-rgb), 0.08);
}

.server-form-field .automation-kit-search {
  min-height: 40px;
  padding: 0.58rem 0.72rem;
}

.automation-kit-options {
  display: grid;
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  border-radius: 8px;
}

.automation-kit-option {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.06);
  color: var(--text-2);
  font-size: 0.78rem;
  cursor: pointer;
}

.automation-kit-option:last-child {
  border-bottom: 0;
}

.automation-kit-option:hover {
  background: rgba(var(--gold-hi-rgb), calc(0.045 * var(--gold-mul)));
}

.automation-kit-option span {
  overflow-wrap: anywhere;
}

.server-form-field .automation-kit-option input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 0;
  padding: 0;
  border: initial;
  border-radius: 3px;
  accent-color: var(--hp-yellow);
  appearance: auto;
}

.automation-form-toggle {
  align-self: center;
  margin: 2px 0;
}

.automation-form-note {
  padding: 12px 14px;
  background: rgba(var(--gold-hi-rgb), calc(0.045 * var(--gold-mul)));
  border: 1px solid rgba(var(--gold-hi-rgb), calc(0.18 * var(--gold-mul)));
  border-radius: 9px;
}

.automation-color-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.server-form-field .automation-color-control > input.automation-color-picker {
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(var(--tint-rgb), 0.08);
  cursor: pointer;
}

.automation-color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.automation-color-picker::-webkit-color-swatch {
  border: 0;
  border-radius: 0;
}

.automation-color-picker::-moz-color-swatch {
  border: 0;
  border-radius: 0;
}

.automation-color-picker.is-invalid {
  opacity: 0.45;
}

.auto-event-setup,
.auto-event-locations,
.auto-event-custom-list {
  display: grid;
  gap: 10px;
}

.auto-event-options-card,
.auto-event-location-set {
  padding: 14px;
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(var(--pane-raise-rgb), 0.98), rgba(var(--pane-deep-rgb), 0.98));
}

.auto-event-options-title {
  color: var(--hp-yellow);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auto-event-builder-heading,
.auto-event-location-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auto-event-builder-heading > div {
  display: grid;
  gap: 3px;
}

.auto-event-builder-heading strong,
.auto-event-location-title strong {
  color: var(--hp-white);
  font-size: 0.84rem;
}

.auto-event-builder-heading small {
  color: var(--hp-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.auto-event-location-set {
  display: grid;
  gap: 11px;
}

.auto-event-captured-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 240, 0, 0.14);
  border-radius: 9px;
  background: rgba(255, 240, 0, 0.035);
}

.auto-event-captured-location > span:first-child {
  display: grid;
  gap: 3px;
}

.auto-event-captured-location strong,
.auto-event-custom-item-copy strong {
  color: var(--hp-white);
  font-size: 0.8rem;
}

.auto-event-captured-location small {
  color: var(--hp-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.auto-event-location-check,
.auto-event-custom-position {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  color: #090909;
  background: var(--hp-yellow);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
}

.auto-event-remove-set {
  padding: 6px 9px;
  border-radius: 8px;
}

.auto-event-add-set {
  justify-self: start;
}

.auto-event-location-actions,
.auto-event-manual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.auto-event-add-set:disabled,
.auto-event-manual-button:disabled {
  cursor: not-allowed;
  filter: saturate(0.35) brightness(0.62);
  box-shadow: none;
}

.auto-event-add-set:disabled[data-original-label] {
  cursor: wait;
}

.auto-event-manual-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 240, 0, 0.2);
  border-radius: 12px;
  background: rgba(255, 240, 0, 0.035);
}

.auto-event-manual-panel[hidden] {
  display: none;
}

.auto-event-manual-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.auto-event-manual-coordinate {
  display: grid;
  gap: 5px;
}

.auto-event-manual-coordinate > span {
  color: var(--hp-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auto-event-manual-coordinate input {
  width: 100%;
  min-width: 0;
}

.auto-event-custom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.auto-event-custom-item-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-dialog.automation-dialog {
  width: min(680px, calc(100vw - 2rem));
}

.killfeed-list {
  display: grid;
  gap: 9px;
}

.killfeed-pve-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 0 1rem;
  min-height: 104px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(var(--pane-raise-rgb), 0.97), rgba(var(--pane-deep-rgb), 0.98));
  box-shadow: 0 12px 30px rgba(var(--shade-rgb), calc(0.18 * var(--shade-mul)));
}

.killfeed-pve-control h3,
.killfeed-placeholders h3 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 400;
}

.killfeed-pve-control p:last-child,
.killfeed-placeholders p:last-child {
  max-width: 720px;
  margin: 0.35rem 0 0;
  color: var(--hp-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.killfeed-template-body {
  display: grid;
  gap: 1rem;
}

.killfeed-template-code {
  display: block;
  padding: 0.85rem 1rem;
  overflow-wrap: anywhere;
  color: #d9d4c9;
  background: rgba(var(--shade-rgb), calc(0.3 * var(--shade-mul)));
  border: 1px solid rgba(var(--gold-hi-rgb), calc(0.12 * var(--gold-mul)));
  border-radius: 9px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.killfeed-placeholders {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  gap: 1.4rem;
  margin-top: 1.15rem;
  padding: 1.15rem;
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  border-radius: 14px;
  background: rgba(var(--tint-rgb), 0.018);
}

.killfeed-placeholder-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 7px;
}

.killfeed-placeholder {
  padding: 7px 9px;
  color: #cbc7bd;
  background: rgba(var(--shade-rgb), calc(0.28 * var(--shade-mul)));
  border: 1px solid rgba(var(--tint-rgb), 0.1);
  border-radius: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.69rem;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.killfeed-placeholder:hover,
.killfeed-placeholder:focus-visible {
  color: var(--brand-ink);
  background: rgba(var(--gold-hi-rgb), calc(0.055 * var(--gold-mul)));
  border-color: rgba(var(--gold-hi-rgb), calc(0.38 * var(--gold-mul)));
}

.server-dialog.killfeed-dialog {
  width: min(680px, calc(100vw - 2rem));
}

/* Collapsed by default and styled as a module row, so the style library reads
   as one more expandable card rather than a wall of previews. */
.killfeed-form-presets {
  min-width: 0;
}

.killfeed-form-presets:empty {
  display: none;
}

.killfeed-preset-library {
  margin-top: 1rem;
  min-width: 0;
}

.killfeed-preset-hint {
  margin: 0;
  max-width: 560px;
  color: var(--hp-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.killfeed-preset-content {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.killfeed-preset-list {
  display: grid;
  gap: 7px;
}

.killfeed-preset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 11px;
  background: rgba(var(--tint-rgb), 0.025);
  transition: border-color 160ms ease, background 160ms ease;
}

.killfeed-preset-row:hover {
  border-color: rgba(var(--gold-hi-rgb), calc(0.24 * var(--gold-mul)));
  background: rgba(var(--gold-hi-rgb), calc(0.03 * var(--gold-mul)));
}

.killfeed-preset-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.killfeed-preset-name {
  color: var(--hp-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.killfeed-preset-message {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--hp-white);
  font-size: 0.78rem;
  font-weight: 680;
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.killfeed-preset-button {
  min-width: 74px;
  min-height: 38px;
  padding: 0.55rem 0.8rem;
}

@media (max-width: 720px) {
  .killfeed-pve-control {
    align-items: flex-start;
  }

  .killfeed-placeholders {
    grid-template-columns: 1fr;
  }

  .killfeed-preset-row {
    gap: 9px;
    padding-left: 10px;
  }

  .killfeed-preset-button {
    min-width: 68px;
    padding-inline: 0.65rem;
  }
}

@media (max-width: 620px) {
  .automation-section-card {
    min-height: 70px;
  }

  .automation-feature-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .automation-feature-heading .hp-btn {
    width: 100%;
  }

  .automation-command-line {
    align-items: stretch;
    flex-direction: column;
  }

  .automation-command-actions {
    justify-content: flex-end;
  }

  .auto-event-add-set {
    width: 100%;
  }

  .auto-event-location-actions,
  .auto-event-manual-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auto-event-location-actions .hp-btn,
  .auto-event-manual-actions .hp-btn {
    width: 100%;
  }

  .auto-event-manual-fields {
    grid-template-columns: 1fr;
  }
}

.economy-settings-card {
  overflow: hidden;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(var(--pane-raise-rgb), 0.97), rgba(var(--pane-deep-rgb), 0.98));
  box-shadow: 0 12px 30px rgba(var(--shade-rgb), calc(0.18 * var(--shade-mul)));
}

.economy-settings-summary {
  display: grid;
  grid-template-columns: minmax(145px, 0.7fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 74px;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  list-style: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.economy-settings-summary::-webkit-details-marker {
  display: none;
}

.economy-settings-summary::marker {
  content: "";
}

.economy-settings-summary:hover {
  background: rgba(var(--tint-rgb), 0.035);
}

.economy-settings-summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -3px;
}

.economy-settings-row[open] > .economy-settings-summary {
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.08);
  background: rgba(var(--tint-rgb), 0.025);
}

.economy-settings-title-block {
  display: grid;
  gap: 0.2rem;
}

.economy-settings-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.05;
}

.economy-settings-preview {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.economy-summary-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}

.economy-summary-item + .economy-summary-item::before {
  margin: 0 0.7rem 0 0.35rem;
  color: rgba(var(--tint-rgb), 0.22);
  content: "|";
}

.economy-summary-item strong {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
}

.economy-settings-chevron {
  width: 9px;
  height: 9px;
  margin-right: 0.2rem;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.economy-settings-row[open] .economy-settings-chevron {
  transform: rotate(225deg);
}

.economy-settings-content {
  padding: 1rem 1.1rem 1.1rem;
}

.economy-bulk-copy {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.economy-playtime-card {
  display: flex;
  min-height: 315px;
  flex-direction: column;
  padding: 1.2rem;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(var(--pane-raise-rgb), 0.97), rgba(var(--pane-deep-rgb), 0.98));
  box-shadow: 0 18px 42px rgba(var(--shade-rgb), calc(0.22 * var(--shade-mul)));
}

.economy-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.economy-card-heading h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.05;
}

.economy-card-copy {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.economy-card-form {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.economy-card-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.economy-card-fields .server-form-field:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.economy-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 1rem;
}

.economy-playtime-heading {
  align-items: center;
}

.economy-playtime-card {
  min-height: 250px;
}

.economy-playtime-details {
  margin: 1.1rem 0;
}

.economy-playtime-list + .account-empty {
  margin-top: 0;
}

.battle-pass-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.35fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.battle-pass-toolbar label {
  display: grid;
  gap: 0.4rem;
}

.battle-pass-toolbar label > span {
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.battle-pass-toolbar input,
.battle-pass-toolbar select {
  min-height: 44px;
  padding: 0 0.82rem;
  border: 1px solid rgba(var(--tint-rgb), 0.11);
  border-radius: 11px;
  color: var(--text);
  background: var(--bg-soft);
  font: inherit;
  font-size: 0.84rem;
}

.battle-pass-toolbar input:focus,
.battle-pass-toolbar select:focus {
  border-color: rgba(var(--gold-rgb), calc(0.42 * var(--gold-mul)));
  outline: 2px solid rgba(var(--gold-rgb), calc(0.08 * var(--gold-mul)));
}

.battle-pass-levels {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.battle-pass-level {
  padding: 1.1rem;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 19px;
  background: linear-gradient(150deg, rgba(var(--pane-raise-rgb), 0.96), rgba(var(--pane-deep-rgb), 0.98));
}

.battle-pass-level-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.battle-pass-level-heading > div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.battle-pass-level-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
}

.battle-pass-level-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(var(--gold-rgb), calc(0.24 * var(--gold-mul)));
  border-radius: 10px;
  color: var(--brand-ink);
  background: rgba(var(--gold-rgb), calc(0.055 * var(--gold-mul)));
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
}

.battle-pass-level-add {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(var(--gold-rgb), calc(0.24 * var(--gold-mul)));
  border-radius: 9px;
  color: var(--brand-ink);
  background: rgba(var(--gold-rgb), calc(0.055 * var(--gold-mul)));
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.battle-pass-level-add:hover,
.battle-pass-level-add:focus-visible {
  border-color: rgba(var(--gold-rgb), calc(0.62 * var(--gold-mul)));
  background: rgba(var(--gold-rgb), calc(0.12 * var(--gold-mul)));
  outline: 0;
  transform: translateY(-1px);
}

.battle-pass-reward-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}

.battle-pass-reward-row.is-premium-track {
  border-color: rgba(var(--gold-rgb), calc(0.16 * var(--gold-mul)));
}

.battle-pass-reward-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 1.1rem;
  border: 1px solid rgba(var(--tint-rgb), 0.09);
  border-radius: 15px;
  background: rgba(var(--tint-rgb), 0.025);
}

.battle-pass-reward-card.is-premium-track {
  border-color: rgba(var(--tint-rgb), 0.12);
  background: rgba(var(--tint-rgb), 0.035);
}

.battle-pass-reward-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
}

.battle-pass-reward-heading h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.06;
}

.battle-pass-reward-target {
  display: grid;
  gap: 0.28rem;
  margin-top: 1rem;
  padding: 0.75rem 0.82rem;
  border: 1px solid rgba(var(--tint-rgb), 0.07);
  border-radius: 11px;
  background: rgba(var(--shade-rgb), calc(0.18 * var(--shade-mul)));
}

.battle-pass-reward-target span {
  color: var(--muted-2);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.battle-pass-reward-target strong {
  overflow: hidden;
  color: var(--text-2);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-pass-reward-details {
  margin: 0.8rem 0;
}

.battle-pass-premium-checkbox {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(var(--gold-rgb), calc(0.15 * var(--gold-mul)));
  border-radius: 11px;
  background: rgba(var(--gold-rgb), calc(0.035 * var(--gold-mul)));
}

.treasure-toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(300px, 1.2fr);
  align-items: end;
  gap: 0.9rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  border-radius: 16px;
  background: rgba(var(--tint-rgb), 0.018);
}

.treasure-toolbar > label,
.treasure-scope-copy {
  display: grid;
  gap: 0.42rem;
}

.treasure-toolbar > label > span,
.treasure-scope-copy > span {
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.treasure-toolbar input {
  min-height: 44px;
  padding: 0 0.82rem;
  border: 1px solid rgba(var(--tint-rgb), 0.11);
  border-radius: 11px;
  color: var(--text);
  background: var(--bg-soft);
  font: inherit;
  font-size: 0.84rem;
}

.treasure-toolbar input:focus {
  border-color: rgba(var(--gold-rgb), calc(0.42 * var(--gold-mul)));
  outline: 2px solid rgba(var(--gold-rgb), calc(0.08 * var(--gold-mul)));
}

.treasure-scope-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.treasure-chest-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.treasure-chest-row {
  border-color: rgba(var(--tint-rgb), 0.1);
}

.treasure-chest-row[open] {
  border-color: rgba(var(--gold-rgb), calc(0.18 * var(--gold-mul)));
  box-shadow: 0 18px 46px rgba(var(--shade-rgb), calc(0.24 * var(--shade-mul)));
}

.treasure-chest-content {
  display: grid;
  gap: 1rem;
}

.treasure-key-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(var(--gold-rgb), calc(0.14 * var(--gold-mul)));
  border-radius: 13px;
  background: linear-gradient(110deg, rgba(var(--gold-rgb), calc(0.065 * var(--gold-mul))), rgba(var(--gold-rgb), calc(0.018 * var(--gold-mul))));
}

.treasure-key-card > div {
  display: grid;
  gap: 0.2rem;
}

.treasure-key-card strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.treasure-key-card code {
  overflow: hidden;
  max-width: 50%;
  padding: 0.45rem 0.62rem;
  border: 1px solid rgba(var(--tint-rgb), 0.08);
  border-radius: 9px;
  color: var(--brand-ink-strong);
  background: rgba(var(--shade-rgb), calc(0.25 * var(--shade-mul)));
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.treasure-chest-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.treasure-remove-button {
  margin-left: auto;
}

.treasure-reward-list {
  display: grid;
  gap: 0.58rem;
}

.treasure-reward-row {
  overflow: hidden;
  border: 1px solid rgba(var(--tint-rgb), 0.075);
  border-radius: 12px;
  background: rgba(var(--shade-rgb), calc(0.2 * var(--shade-mul)));
}

.treasure-reward-summary {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  padding: 0.78rem 0.9rem;
  cursor: pointer;
  list-style: none;
}

.treasure-reward-summary::-webkit-details-marker {
  display: none;
}

.treasure-reward-summary::marker {
  content: "";
}

.treasure-reward-summary:hover {
  background: rgba(var(--tint-rgb), 0.025);
}

.treasure-reward-summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -3px;
}

.treasure-reward-row[open] > .treasure-reward-summary {
  border-bottom: 1px solid rgba(var(--tint-rgb), 0.07);
}

.treasure-reward-row[open] .economy-settings-chevron {
  transform: rotate(225deg);
}

.treasure-reward-content {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
}

.treasure-reward-details {
  margin: 0;
}

.treasure-reward-empty {
  padding: 1rem;
  border: 1px dashed rgba(var(--tint-rgb), 0.11);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.treasure-reward-empty strong {
  color: var(--text);
}

.treasure-reward-empty p,
.treasure-orphan-copy {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.treasure-orphan-row {
  border-style: dashed;
}

.treasure-orphan-copy {
  margin-top: 0;
}

.server-alert-link {
  display: inline-flex;
  margin-left: 0.7rem;
}

.server-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(var(--tint-rgb), 0.13);
  border-radius: 24px;
  color: var(--text);
  background:
    radial-gradient(480px 220px at 100% 0%, rgba(var(--gold-rgb), calc(0.08 * var(--gold-mul))), transparent 70%),
    var(--panel);
  box-shadow: 0 32px 90px rgba(var(--shade-rgb), calc(0.72 * var(--shade-mul)));
}

.server-dialog::backdrop {
  background: rgba(var(--shade-rgb), calc(0.76 * var(--shade-mul)));
  backdrop-filter: blur(7px);
}

.server-dialog > form {
  padding: clamp(1.35rem, 4vw, 2rem);
}

.server-dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.server-dialog h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.server-dialog-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(var(--tint-rgb), 0.12);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(var(--tint-rgb), 0.035);
  font-size: 1.4rem;
  cursor: pointer;
}

.server-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.server-form-field {
  display: grid;
  align-content: start;
  gap: 0.42rem;
}

.server-form-field-wide {
  grid-column: 1 / -1;
}

.server-form-field > span,
.server-checkbox span {
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 750;
}

.server-form-field input,
.server-form-field select,
.server-form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(var(--tint-rgb), 0.13);
  border-radius: 11px;
  color: var(--text);
  background: var(--bg-soft);
  font: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.server-form-field input:focus,
.server-form-field select:focus,
.server-form-field textarea:focus {
  border-color: rgba(var(--gold-rgb), calc(0.5 * var(--gold-mul)));
  outline: 2px solid rgba(var(--gold-rgb), calc(0.1 * var(--gold-mul)));
}

.server-form-field select:disabled {
  opacity: 0.55;
}

.server-form-field small {
  color: var(--muted-2);
  font-size: 0.7rem;
}

.server-form-field small.is-warning {
  color: #ffcd8f;
}

.server-kit-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.server-teleport-coordinate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

[data-bind-action-field][hidden] {
  display: none !important;
}

.server-teleport-coordinate-grid label {
  display: grid;
  gap: 0.35rem;
}

.server-teleport-coordinate-grid label > span {
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

#bind-teleport-field .server-kit-input-row {
  align-items: center;
}

#bind-teleport-status {
  line-height: 1.45;
}

.server-inline-button {
  min-height: 46px;
  padding: 0 0.8rem;
  border: 1px solid rgba(var(--tint-rgb), 0.13);
  border-radius: 11px;
  color: var(--text);
  background: rgba(var(--tint-rgb), 0.045);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.server-inline-button:hover:not(:disabled) {
  border-color: rgba(var(--tint-rgb), 0.24);
  background: rgba(var(--tint-rgb), 0.075);
}

.server-inline-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.server-role-note {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(88, 101, 242, 0.25);
  border-radius: 11px;
  color: #cbd0ff;
  background: rgba(88, 101, 242, 0.07);
  font-size: 0.78rem;
}

.server-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  margin-top: 1.1rem;
}

.server-checkbox input {
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
}

.server-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.server-dialog-small {
  width: min(520px, calc(100vw - 2rem));
}

.server-dialog-small > form > p:not(.hp-eyebrow) {
  color: var(--muted);
}

@media (max-width: 900px) {
  .server-overview-primary {
    grid-template-columns: 1fr;
  }
  .server-overview-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .server-module-hero,
  .server-dashboard-heading {
    align-items: start;
    flex-direction: column;
  }
  .server-module-hero::before {
    right: 0;
    width: 58%;
    opacity: 0.28;
  }
  .server-module-actions {
    width: 100%;
    justify-content: space-between;
  }
  .server-bind-list {
    grid-template-columns: 1fr;
  }
  .battle-pass-reward-grid {
    grid-template-columns: 1fr;
  }
  .economy-settings-grid,
  .economy-game-grid,
  .economy-playtime-list {
    grid-template-columns: 1fr;
  }
  .shop-control-bar {
    grid-template-columns: 1fr;
  }
  .treasure-toolbar {
    grid-template-columns: 1fr;
  }
  .shop-quick-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .server-teleport-coordinate-grid {
    grid-template-columns: 1fr;
  }

  #bind-teleport-field .server-kit-input-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .treasure-toolbar {
    padding: 0.85rem;
  }

  .treasure-reward-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
  }

  .treasure-reward-summary .economy-settings-preview {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .treasure-key-card,
  .treasure-chest-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .treasure-key-card code {
    max-width: none;
  }

  .treasure-chest-actions .hp-btn,
  .treasure-chest-actions .server-bind-remove {
    justify-content: center;
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 960px) {
  .server-dashboard-page .hp-nav,
  .home-page .hp-nav {
    z-index: 100;
  }
  .server-dashboard-page .hp-nav-inner,
  .home-page .hp-nav-inner {
    position: relative;
    min-height: 64px;
    padding-block: 0.55rem;
  }
  .server-dashboard-page .hp-logo,
  .home-page .hp-logo {
    position: absolute;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
  }
  .server-dashboard-page .hp-nav-links,
  .home-page .hp-nav-links {
    display: none;
  }
  .server-dashboard-page .hp-nav-cta,
  .home-page .hp-nav-cta {
    position: relative;
    z-index: 2;
    margin-left: auto;
  }
  .server-drawer-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(var(--tint-rgb), 0.09);
    border-radius: 12px;
    color: var(--text);
    background: rgba(var(--tint-rgb), 0.025);
    box-shadow: inset 0 1px 0 rgba(var(--tint-rgb), 0.035);
    cursor: pointer;
  }
  .server-drawer-toggle[hidden] {
    display: none;
  }
  .server-drawer-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 140ms ease, background-color 180ms ease;
  }
  .server-drawer-toggle:hover,
  .server-drawer-toggle:focus-visible,
  .server-drawer-toggle.is-open {
    border-color: rgba(var(--gold-rgb), calc(0.24 * var(--gold-mul)));
    color: var(--brand-ink);
    background: rgba(var(--gold-rgb), calc(0.065 * var(--gold-mul)));
  }
  .server-drawer-toggle:focus-visible {
    outline: 2px solid rgba(var(--gold-rgb), calc(0.42 * var(--gold-mul)));
    outline-offset: 2px;
  }
  .server-drawer-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .server-drawer-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .server-drawer-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .server-sidebar-scrim {
    position: fixed;
    z-index: 80;
    inset: 64px 0 0;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: rgba(var(--shade-rgb), calc(0.7 * var(--shade-mul)));
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    cursor: default;
  }
  .server-sidebar-scrim[hidden] {
    display: none;
  }
  body.server-drawer-open {
    overflow: hidden;
  }
  body.home-drawer-open {
    overflow: hidden;
  }
  .home-mobile-drawer {
    position: fixed;
    z-index: 90;
    top: 64px;
    bottom: 0;
    left: 0;
    display: flex;
    width: min(370px, 90vw);
    max-height: calc(100dvh - 64px);
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
    padding: 1.2rem 1rem 1.35rem;
    border: 1px solid rgba(var(--tint-rgb), 0.085);
    border-width: 0 1px 0 0;
    border-radius: 0 22px 22px 0;
    background:
      radial-gradient(360px 220px at 38% -5%, rgba(var(--gold-rgb), calc(0.08 * var(--gold-mul))), transparent 68%),
      linear-gradient(155deg, rgba(var(--pane-raise-rgb), 0.995), rgba(var(--pane-deep-rgb), 0.998));
    box-shadow: 24px 0 70px rgba(var(--shade-rgb), calc(0.62 * var(--shade-mul))), inset 0 1px 0 rgba(var(--tint-rgb), 0.035);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-104%);
    transition: transform 220ms ease, opacity 180ms ease, visibility 0s linear 220ms;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .home-mobile-drawer::before {
    position: absolute;
    top: 0;
    right: 22px;
    left: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), calc(0.62 * var(--gold-mul))), transparent);
    content: "";
  }
  .home-mobile-drawer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
  }
  .home-mobile-drawer-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    padding: 0.25rem 0.35rem 1.15rem;
    border-bottom: 1px solid rgba(var(--tint-rgb), 0.075);
  }
  .home-mobile-drawer-heading > div {
    display: grid;
    gap: 0.08rem;
  }
  .home-mobile-drawer-heading > div > span {
    color: var(--muted-2);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }
  .home-mobile-premium-cta {
    display: inline-flex;
    width: fit-content;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin-top: 0.3rem;
    padding: 0.6rem 1.05rem;
    border: 1px solid rgba(255, 244, 119, 0.55);
    border-radius: 999px;
    color: #090900;
    background: var(--brand);
    font-size: 0.8rem;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 7px 24px rgba(var(--gold-rgb), calc(0.18 * var(--gold-mul)));
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  }
  .home-mobile-premium-cta:hover,
  .home-mobile-premium-cta:focus-visible {
    color: #090900;
    background: #fff23e;
    box-shadow: 0 9px 28px rgba(var(--gold-rgb), calc(0.25 * var(--gold-mul)));
    transform: translateY(-1px);
  }
  .home-mobile-premium-cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
  }
  .home-mobile-nav {
    display: grid;
    gap: 0.28rem;
    margin-top: 0.75rem;
  }
  .home-mobile-nav > p {
    margin: 0.7rem 0 0.35rem;
    padding: 0 0.55rem;
    color: var(--muted-2);
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }
  .home-mobile-nav > a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 58px;
    padding: 0.6rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--text-2);
    background: transparent;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
  }
  .home-mobile-nav > a:hover,
  .home-mobile-nav > a:focus-visible {
    border-color: rgba(var(--gold-rgb), calc(0.2 * var(--gold-mul)));
    color: var(--text);
    background: rgba(var(--gold-rgb), calc(0.055 * var(--gold-mul)));
    transform: translateX(2px);
  }
  .home-mobile-nav > a:focus-visible {
    outline: 2px solid rgba(var(--gold-rgb), calc(0.38 * var(--gold-mul)));
    outline-offset: 2px;
  }
  .home-mobile-nav > a > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
  }
  .home-mobile-nav > a strong {
    overflow: hidden;
    font-size: 0.88rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .home-mobile-nav > a small {
    overflow: hidden;
    color: var(--muted-2);
    font-size: 0.67rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .home-mobile-nav > a > i {
    color: var(--muted-2);
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-style: normal;
    line-height: 1;
  }
  .home-mobile-nav-icon {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid rgba(var(--tint-rgb), 0.095);
    border-radius: 10px;
    color: var(--brand-ink);
    background: rgba(var(--tint-rgb), 0.035);
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(var(--tint-rgb), 0.025);
  }
  .home-mobile-nav-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .home-mobile-nav-icon .home-mobile-icon-fill {
    fill: currentColor;
    stroke: none;
  }
  .home-mobile-nav-icon-dashboard {
    color: var(--text-2);
    background: rgba(var(--tint-rgb), 0.055);
  }
  .home-mobile-nav-icon-premium {
    color: #fff04a;
    border-color: rgba(var(--gold-rgb), calc(0.16 * var(--gold-mul)));
    background: rgba(var(--gold-rgb), calc(0.055 * var(--gold-mul)));
  }
  .home-mobile-nav-icon-docs {
    color: #8fc2ff;
    border-color: rgba(94, 167, 255, 0.16);
    background: rgba(94, 167, 255, 0.055);
  }
  .home-mobile-nav-icon-brand {
    color: #0b0b00;
    background: var(--brand);
    box-shadow: 0 0 18px rgba(var(--gold-rgb), calc(0.17 * var(--gold-mul)));
  }
  .home-mobile-nav-icon-discord {
    color: #fff;
    background: #5865f2;
  }
  .home-mobile-nav-icon-discord .home-mobile-icon-discord {
    width: 21px;
    height: 21px;
    fill: currentColor;
    stroke: none;
  }
  .home-mobile-nav-icon-kit {
    color: #88e2c4;
    border-color: rgba(96, 220, 178, 0.15);
    background: rgba(96, 220, 178, 0.05);
  }
  .home-mobile-nav-icon-parse {
    color: #ffb46b;
    border-color: rgba(255, 160, 73, 0.15);
    background: rgba(255, 160, 73, 0.05);
  }
  .home-mobile-nav-icon-color {
    color: #ee8cff;
    border-color: rgba(224, 102, 255, 0.16);
    background: rgba(224, 102, 255, 0.05);
  }
  .home-mobile-drawer-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.7rem;
    margin-top: auto;
    padding: 1rem 0.55rem 0.2rem;
    border-top: 1px solid rgba(var(--tint-rgb), 0.07);
  }
  .home-mobile-drawer-footer > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(var(--gold-rgb), calc(0.18 * var(--gold-mul)));
    border-radius: 50%;
    color: var(--brand-ink);
    background: rgba(var(--gold-rgb), calc(0.04 * var(--gold-mul)));
    font-size: 0.72rem;
  }
  .home-mobile-drawer-footer p {
    display: grid;
    gap: 0.12rem;
    margin: 0;
  }
  .home-mobile-drawer-footer strong {
    font-size: 0.76rem;
  }
  .home-mobile-drawer-footer small {
    color: var(--muted-2);
    font-size: 0.64rem;
    line-height: 1.35;
  }
  .server-workspace {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .server-sidebar {
    position: fixed;
    z-index: 90;
    top: 64px;
    bottom: 0;
    left: 0;
    width: min(350px, 88vw);
    max-height: calc(100dvh - 64px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem 1rem 1.5rem;
    border-width: 0 1px 0 0;
    border-radius: 0 22px 22px 0;
    overscroll-behavior: contain;
    box-shadow: 24px 0 70px rgba(var(--shade-rgb), calc(0.55 * var(--shade-mul))), inset 0 1px 0 rgba(var(--tint-rgb), 0.025);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-104%);
    transition: transform 220ms ease, opacity 180ms ease, visibility 0s linear 220ms;
    -webkit-overflow-scrolling: touch;
  }
  .server-sidebar.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
  }
  .server-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
  }
  .server-sidebar-header .account-back-link {
    min-height: 40px;
    align-items: center;
  }
  .server-sidebar-identity {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin-top: 0.75rem;
    padding: 1rem 1rem 2.1rem;
  }
  .server-sidebar-identity > span:first-child {
    grid-column: 1;
  }
  .server-sidebar-identity strong {
    grid-column: 1;
  }
  .server-sidebar-identity .account-status {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }
  .server-sidebar-menu {
    display: block;
  }
  .server-sidebar-nav {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }
  .server-sidebar-nav > p {
    grid-column: 1;
  }
}

@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .server-sidebar,
  .server-drawer-toggle span,
  .home-mobile-drawer,
  .home-mobile-nav > a {
    transition: none;
  }
}

@media (max-width: 680px) {
  .server-overview-setup {
    grid-template-columns: 1fr;
  }
  .server-overview-setup .hp-btn {
    justify-content: center;
    width: 100%;
  }
  .server-overview-console-heading,
  .server-overview-quick > header,
  .server-overview-guild-controls > header {
    align-items: stretch;
    flex-direction: column;
  }
  .server-overview-guild-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
  .server-overview-guild-actions .hp-btn,
  .server-overview-role-sync .hp-btn {
    width: 100%;
  }
  .server-overview-guild-settings-list {
    grid-template-columns: 1fr;
  }
  .server-overview-role-sync {
    align-items: stretch;
    flex-direction: column;
  }
  .server-overview-currency-row {
    align-items: stretch;
    flex-direction: column;
  }
  .server-overview-currency-controls,
  .server-overview-currency-form {
    width: 100%;
  }
  .server-overview-currency-value,
  .server-overview-currency-form input {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    text-align: left;
  }
  .server-overview-currency-form {
    flex-wrap: wrap;
  }
  .server-overview-currency-form input {
    flex-basis: 100%;
  }
  .server-overview-currency-form .hp-btn {
    flex: 1 1 0;
    justify-content: center;
  }
  .server-overview-refresh {
    justify-content: space-between;
  }
  .server-overview-player-card > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }
  .server-overview-stat-grid,
  .server-overview-detail-grid,
  .server-overview-quick-grid {
    grid-template-columns: 1fr;
  }
  .server-overview-stat-grid article {
    min-height: 118px;
  }
  .server-overview-quick > header > p {
    max-width: none;
    text-align: left;
  }
  .server-setting-switch-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 1rem;
  }
  .server-setting-switch-controls {
    align-items: flex-end;
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
  }
  .server-setting-channel-field {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }
  .server-setting-channel-select {
    min-width: 0;
    font-size: 0.8rem;
  }
  .server-setting-configure {
    min-width: 0;
    padding-inline: 0.75rem;
  }
  .player-tools-player-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .player-tools-player-activity {
    display: none;
  }
  .player-tools-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .server-events-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .server-events-discord-card {
    align-items: stretch;
    flex-direction: column;
  }
  .server-events-discord-controls {
    width: 100%;
    min-width: 0;
  }
  .player-tools-cooldown-row,
  .player-tools-cooldown-controls {
    grid-template-columns: 1fr;
  }
  .player-tools-cooldown-controls .hp-btn {
    width: 100%;
  }
  .player-tools-detail-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
  }
  .player-tools-profile-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .player-tools-unlink {
    width: 100%;
  }
  .player-tools-inventory-row {
    align-items: flex-start;
  }
  .player-tools-directory-toggle {
    min-height: 78px;
    padding: 0.9rem;
  }
  .player-tools-directory-meta {
    gap: 0.65rem;
  }
  .player-tools-pagination {
    grid-template-columns: 1fr 1fr;
  }
  .player-tools-pagination span {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .player-tools-pagination .hp-btn {
    width: 100%;
  }
  .server-sidebar-nav {
    grid-template-columns: 1fr;
  }
  .server-module-heading {
    align-items: start;
  }
  .server-module-icon {
    width: 68px;
    height: 68px;
    border-radius: 19px;
  }
  .server-module-icon img {
    width: 67px;
    height: 67px;
  }
  .server-module-actions {
    align-items: stretch;
    flex-direction: column;
    border-radius: 18px;
  }
  .battle-pass-toolbar {
    grid-template-columns: 1fr;
  }
  .economy-section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 0.8rem;
  }
  .economy-section-heading-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .economy-section-heading-actions > p {
    max-width: none;
    text-align: left;
  }
  .economy-section-heading-actions .hp-btn {
    justify-content: center;
    width: 100%;
  }
  .economy-playtime-heading .hp-btn {
    justify-content: center;
    width: 100%;
  }
  .economy-card-fields {
    grid-template-columns: 1fr;
  }
  .economy-card-fields .server-form-field:last-child:nth-child(odd) {
    grid-column: 1;
  }
  .economy-settings-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem 1rem;
  }
  .economy-settings-preview {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }
  .economy-settings-chevron {
    grid-column: 2;
    grid-row: 1;
  }
  .economy-summary-item {
    white-space: normal;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    min-width: 0;
    padding: 0.5rem 0.62rem;
    border-radius: 11px;
    background: rgba(var(--tint-rgb), 0.035);
    border: 1px solid rgba(var(--tint-rgb), 0.06);
  }
  .economy-summary-item + .economy-summary-item::before {
    content: none;
  }
  .economy-summary-item .economy-summary-label {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted-2);
  }
  .economy-summary-item strong {
    font-size: 0.82rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .economy-settings-summary.server-bind-summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem 0.9rem;
  }
  .server-bind-index {
    grid-column: 1;
    grid-row: 1;
  }
  .server-bind-phrase-field {
    grid-column: 2;
    grid-row: 1;
    padding-right: 0;
    border-right: 0;
  }
  .server-bind-summary > .economy-settings-chevron {
    grid-column: 3;
    grid-row: 1;
  }
  .server-bind-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .server-bind-stats .server-bind-field {
    padding: 0.5rem 0.62rem;
    border: 1px solid rgba(var(--tint-rgb), 0.06);
    border-radius: 11px;
    background: rgba(var(--tint-rgb), 0.035);
  }
  .shop-control-search {
    grid-template-columns: 1fr;
  }
  .shop-module-summary,
  .shop-builder-intro,
  .shop-builder-product {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
  .shop-module-summary {
    display: grid;
  }
  .shop-module-summary-copy {
    display: none;
  }
  .shop-module-summary-actions {
    justify-content: space-between;
  }
  .shop-builder-intro {
    flex-direction: column;
  }
  .shop-builder-intro .hp-btn {
    width: 100%;
  }
  .shop-builder-toolbar,
  .shop-builder-picker-filters {
    grid-template-columns: 1fr;
  }
  .shop-builder-toolbar > .hp-btn {
    width: 100%;
  }
  .shop-builder-product-price {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .shop-builder-product-actions .hp-btn {
    flex: 1 1 auto;
  }
  .shop-quick-actions,
  .shop-category-heading,
  .shop-category-actions,
  .shop-category-empty {
    align-items: stretch;
    flex-direction: column;
  }
  .shop-category-heading {
    padding-right: 1.1rem;
  }
  .shop-category-title {
    padding-right: 3.65rem;
  }
  .shop-quick-actions .hp-btn,
  .shop-category-actions .hp-btn {
    justify-content: center;
    width: 100%;
  }
  .shop-category-actions .server-bind-remove {
    margin-left: 0;
  }
  .battle-pass-level {
    padding: 0.85rem;
  }
  .server-form-grid {
    grid-template-columns: 1fr;
  }
  .server-form-field-wide {
    grid-column: 1;
  }
  .server-dialog-actions {
    flex-direction: column-reverse;
  }
  .server-dialog-actions .hp-btn {
    justify-content: center;
    width: 100%;
  }
}

/* ============================================================
   Theme switch (sun / moon) — dashboard top nav
   ============================================================ */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(var(--tint-rgb), 0.12);
  border-radius: 999px;
  background: rgba(var(--tint-rgb), 0.04);
}

.theme-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.theme-switch-btn:hover {
  color: var(--text);
}

.theme-switch-btn[aria-pressed="true"] {
  color: var(--text);
  background: rgba(var(--tint-rgb), 0.1);
  box-shadow: 0 1px 2px rgba(var(--shade-rgb), calc(0.3 * var(--shade-mul)));
}

.theme-switch-btn svg {
  display: block;
}

/* ============================================================
   Light mode — dashboard only. Mirrors the docs site: monochrome,
   no brand yellow, white panels on a soft grey page.
   Dark mode is untouched.
   ============================================================ */
html.light {
  /* Brand yellow reads as glare on white, so solid brand fills and
     "on" states become near-black, exactly like the docs light theme. */
  --brand: #12121a;
  --brand-strong: #2c2c36;
}

/* The plain-page radial washes are tuned for a black page and turn to mud on a
   white one — but the dashboard's blueprint grid is part of its identity, so
   body.account-page keeps its own background (re-tinted via --grid-line). */
html.light body:not(.account-page) {
  background-image: none;
}

html.light body::before {
  display: none;
}

/* Text that sits on top of a (now near-black) brand fill */
html.light .hp-btn-primary,
html.light .account-subnav a:hover,
html.light .account-subnav a[aria-current="page"],
html.light .account-setting-icon-brand,
html.light .home-mobile-nav-icon-brand,
html.light .home-mobile-premium-cta,
html.light .home-mobile-premium-cta:hover,
html.light .home-mobile-premium-cta:focus-visible {
  --btn-color: var(--brand-contrast);
  color: var(--brand-contrast);
}

html.light .home-mobile-premium-cta:hover,
html.light .home-mobile-premium-cta:focus-visible {
  background: var(--brand-strong);
}

html.light .hp-nav {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: var(--line);
}

html.light .hp-logo-mark {
  background: linear-gradient(180deg, #ffffff, #f1f1f4);
  border-color: var(--line-strong);
}

html.light .hp-logo-mark svg {
  filter: none;
}

/* Scrims and dialog backdrops need real opacity, not the scaled-down
   shadow alpha the rest of the light theme uses. */
html.light .server-sidebar-scrim,
html.light .server-dialog::backdrop {
  background: rgba(15, 15, 25, 0.42);
}

/* Toggles: light track, white thumb */
html.light .server-toggle-track {
  background: #dcdce2;
  border-color: var(--line-strong);
}

html.light .server-toggle-thumb {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 15, 25, 0.28);
}

html.light .server-toggle input:checked + .server-toggle-track .server-toggle-thumb {
  background: #ffffff;
}

html.light .server-overview-occupancy span {
  background: linear-gradient(90deg, #52525b, #12121a);
}

/* Status colours are tuned for a dark surface; darken them for white. */
html.light .server-live-status.is-live,
html.light .is-setting-on {
  color: #1f7a3d;
}

html.light .server-live-status.is-offline,
html.light .server-live-status.is-disabled,
html.light .server-bind-remove,
html.light .shop-category-trash,
html.light .player-tools-item-trash,
html.light .server-setting-channel-error,
html.light .helios-account-menu > a:last-child,
html.light .account-signout-button {
  --btn-color: #b23b3b;
  color: #b23b3b;
}

html.light .server-bind-remove:hover {
  color: #8f2c2c;
}

html.light .shop-category-trash:hover,
html.light .shop-category-trash:focus-visible {
  color: #8f2c2c;
}

/* Preset previews render Rust's in-game palette (sky blue, lime, silver), which
   is built for a dark game screen and washes out on white. Keep the preview
   rows dark in light mode so the sample reads the way it will in game. */
html.light .killfeed-preset-row {
  border-color: rgba(255, 255, 255, 0.1);
  background: #14141a;
}

html.light .killfeed-preset-row:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #1c1c24;
}

html.light .killfeed-preset-name {
  color: rgba(255, 255, 255, 0.55);
}

html.light .killfeed-preset-message {
  color: #ffffff;
}

/* Copy sits on the dark preview row, so it needs the dark-mode ghost treatment
   rather than the light one it would otherwise inherit. */
html.light .killfeed-preset-button {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-border: rgba(255, 255, 255, 0.18);
  --btn-color: #ffffff;
}

html.light .killfeed-preset-button:hover,
html.light .killfeed-preset-button:focus-visible {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-border: rgba(255, 255, 255, 0.3);
}

html.light .server-form-field small.is-warning {
  color: #9a6206;
}

html.light .server-role-note {
  color: #3b459c;
}

html.light .automation-command-line code,
html.light .killfeed-template-code,
html.light .killfeed-placeholder {
  color: #35353c;
}

/* Monochrome mobile nav icons */
html.light .home-mobile-nav-icon-dashboard,
html.light .home-mobile-nav-icon-premium,
html.light .home-mobile-nav-icon-docs,
html.light .home-mobile-nav-icon-kit,
html.light .home-mobile-nav-icon-parse,
html.light .home-mobile-nav-icon-color {
  color: #3f3f46;
}

/* The secure server dashboard also carries a drawer toggle in the nav, so the
   wordmark gives way to the theme switch on narrow screens. */
@media (max-width: 560px) {
  .server-dashboard-page .hp-logo-word {
    display: none;
  }
}
