* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #060911;
  --bg-soft: #0a1020;
  --surface: rgba(13, 20, 34, .86);
  --surface-2: rgba(16, 26, 44, .72);
  --surface-3: rgba(255, 255, 255, .045);
  --line: rgba(158, 183, 255, .14);
  --line-strong: rgba(116, 158, 255, .28);
  --text: #f3f7ff;
  --soft: #c9d6ec;
  --muted: #8b9ab2;
  --dim: #65758d;
  --blue: #2b83ff;
  --blue-2: #1558d6;
  --blue-soft: rgba(43, 131, 255, .15);
  --green: #55e6a5;
  --amber: #ffbd4a;
  --red: #ff5266;
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, .20);
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(43, 131, 255, .18), transparent 34rem),
    radial-gradient(circle at 88% 10%, rgba(85, 230, 165, .065), transparent 28rem),
    radial-gradient(circle at 50% 110%, rgba(43, 131, 255, .10), transparent 34rem),
    linear-gradient(180deg, #060911 0%, #080d18 48%, #05070d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.055), transparent 42rem);
  opacity: .9;
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 22rem;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(2, 5, 10, .68));
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.045em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 12px 34px rgba(43, 131, 255, .12);
}

.brand-mark img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.nav,
.hero-actions,
.doc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn,
button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 15px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.btn:hover,
button:hover {
  transform: translateY(-1px);
  border-color: rgba(43, 131, 255, .42);
  background: rgba(43, 131, 255, .12);
}

.btn.primary,
button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 18px 42px rgba(43, 131, 255, .22);
}

.btn.ghost {
  background: transparent;
}

.btn.danger,
button.danger {
  border-color: rgba(255, 82, 102, .34);
  background: rgba(255, 82, 102, .10);
  color: #ffd3d9;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(129, 171, 255, .20);
  background: rgba(43, 131, 255, .13);
  color: #c8dcff;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
}

.badge.ok {
  border-color: rgba(85, 230, 165, .22);
  background: rgba(85, 230, 165, .10);
  color: #baf8dc;
}

.badge.warn {
  border-color: rgba(255, 189, 74, .24);
  background: rgba(255, 189, 74, .10);
  color: #ffe1a6;
}

.badge.off {
  border-color: rgba(255, 82, 102, .24);
  background: rgba(255, 82, 102, .10);
  color: #ffc2ca;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(46px, 7vw, 88px);
  line-height: .90;
  letter-spacing: -.08em;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.02;
  letter-spacing: -.055em;
  margin-bottom: 14px;
}

h3 {
  font-size: 19px;
  letter-spacing: -.035em;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--soft);
  line-height: 1.65;
}

.eyebrow,
.kicker {
  color: #91baff;
  font-weight: 950;
  letter-spacing: .145em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 13px;
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.030));
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.panel.strong {
  background: linear-gradient(180deg, rgba(19,29,49,.92), rgba(12,19,33,.84));
}

.panel.tight {
  padding: 18px;
}

.notice,
.error {
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.55;
}

.notice {
  border: 1px solid rgba(85, 230, 165, .22);
  background: rgba(85, 230, 165, .085);
  color: #d6ffea;
}

.error {
  border: 1px solid rgba(255, 82, 102, .24);
  background: rgba(255, 82, 102, .10);
  color: #ffd0d6;
}

/* Public landing */
.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr);
  gap: clamp(22px, 4vw, 38px);
  align-items: center;
  padding: clamp(42px, 9vw, 100px) 0 42px;
}

.hero-copy {
  max-width: 860px;
}

.hero-copy .lead {
  max-width: 720px;
}

.hero-actions {
  margin-top: 24px;
}

.public-card {
  min-height: 390px;
  border: 1px solid rgba(158,183,255,.16);
  background:
    radial-gradient(circle at 35% 12%, rgba(43,131,255,.20), transparent 16rem),
    linear-gradient(180deg, rgba(255,255,255,.070), rgba(255,255,255,.030));
  border-radius: 36px;
  padding: clamp(24px, 4vw, 38px);
  display: grid;
  align-content: center;
  gap: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.guard-device {
  width: 178px;
  height: 178px;
  border-radius: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.10);
}

.guard-device img {
  width: 126px;
  height: 126px;
  object-fit: contain;
  filter: drop-shadow(0 22px 44px rgba(43,131,255,.24));
}

.public-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0 30px;
}

.public-strip > div,
.public-grid article,
.feature {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.038);
  border-radius: 24px;
  padding: 19px;
}

.public-strip strong,
.public-strip span {
  display: block;
}

.public-strip span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.public-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 44px;
}

/* Layout grids */
.grid,
.mini-grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 26px 0 18px;
}

/* Dashboard cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.040);
  border-radius: 20px;
  padding: 16px;
}

.stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.055em;
  margin-bottom: 7px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.guild-card,
.event-row {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.038);
  border-radius: 22px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.guild-card small,
.event-row small,
.meta {
  color: var(--muted);
}

.card-list {
  display: grid;
  gap: 12px;
}

/* Forms */
.form {
  display: grid;
  gap: 16px;
}

.inline-form {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-form label {
  min-width: 190px;
}

label {
  display: grid;
  gap: 8px;
  color: #dce8ff;
  font-weight: 850;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(4, 8, 18, .82);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 13px;
  font: inherit;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(43, 131, 255, .52);
  box-shadow: 0 0 0 4px rgba(43, 131, 255, .10);
}

.help {
  color: var(--muted);
  font-size: 13px;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.025);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

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

.table th {
  color: #bcd3ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

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

.mono,
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.mono {
  font-size: 12px;
  color: #bdd1f1;
}

.action-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255,255,255,.060);
  color: #dbe8ff;
}

.action-pill.banned {
  background: rgba(255,82,102,.14);
  color: #ffc2ca;
}

.action-pill.unbanned {
  background: rgba(43,131,255,.16);
  color: #c6ddff;
}

.action-pill.deleted_only,
.action-pill.logged_only {
  background: rgba(255,189,74,.13);
  color: #ffe0a8;
}

/* Health */
.health-list,
.metric-list {
  display: grid;
  gap: 10px;
}

.health-item,
.metric-row {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 14px;
  background: rgba(255,255,255,.036);
}

.health-item.ok {
  border-color: rgba(85,230,165,.25);
}

.health-item.warn {
  border-color: rgba(255,189,74,.30);
}

.health-item.bad {
  border-color: rgba(255,82,102,.30);
}

.metric-row,
.chart-caption,
.pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.metric-row strong {
  color: #d7e6ff;
}

/* Charts */
.bar-chart {
  height: 230px;
  display: flex;
  align-items: end;
  gap: 6px;
  padding: 18px 10px 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.028);
  border-radius: 22px;
  overflow-x: auto;
}

.bar-day {
  min-width: 18px;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  position: relative;
}

.bar-fill {
  width: 100%;
  min-height: 4px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--green), var(--blue));
  box-shadow: 0 12px 32px rgba(43, 131, 255, .16);
}

.bar-day span {
  position: absolute;
  bottom: 8px;
  font-size: 10px;
  font-weight: 900;
  color: rgba(255,255,255,.82);
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

.chart-caption {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

/* Docs */
.doc-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 30px;
}

.doc-sidebar {
  position: sticky;
  top: 18px;
  border: 1px solid var(--line);
  background: rgba(14, 22, 38, .82);
  border-radius: 26px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.doc-sidebar-title {
  font-weight: 950;
  color: var(--text);
  margin: 4px 8px 12px;
  letter-spacing: -.035em;
}

.doc-sidebar a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 850;
}

.doc-sidebar a:hover,
.doc-sidebar a.active {
  color: var(--text);
  background: rgba(43, 131, 255, .14);
}

.doc-login-box {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: rgba(43, 131, 255, .08);
  border-radius: 20px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.doc-login-box span {
  color: var(--muted);
  line-height: 1.5;
}

.doc-page {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.030));
  border-radius: 32px;
  padding: clamp(24px, 4vw, 46px);
  box-shadow: var(--shadow-soft);
}

.doc-page h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: .94;
  max-width: 920px;
}

.doc-page h2 {
  margin-top: 34px;
}

.doc-page .lead {
  max-width: 860px;
}

.doc-callout {
  border: 1px solid rgba(85,230,165,.24);
  background: rgba(85,230,165,.085);
  color: #d9ffed;
  border-radius: 22px;
  padding: 16px 18px;
  margin: 24px 0;
  display: grid;
  gap: 6px;
}

.doc-steps {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  counter-reset: docs-step;
}

.doc-steps li {
  counter-increment: docs-step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.036);
  border-radius: 20px;
  padding: 16px;
}

.doc-steps li::before {
  content: counter(docs-step);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  font-weight: 950;
}

.doc-steps span,
.doc-list span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.6;
}

.doc-list {
  display: grid;
  gap: 12px;
}

.doc-list > div {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.036);
  border-radius: 20px;
  padding: 16px;
}

pre {
  white-space: pre-wrap;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.24);
  border-radius: 18px;
  padding: 16px;
  overflow-x: auto;
}

code {
  color: #d7e6ff;
}

/* Wizard/User */
.wizard-steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.wizard-step {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.036);
  border-radius: 20px;
  padding: 14px 15px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.wizard-step::before {
  counter-increment: step;
  content: counter(step);
  width: 30px;
  height: 30px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  font-weight: 950;
}

.risk {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  border: 1px solid var(--line);
}

.risk > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--red));
}

/* Footer */
.footer {
  padding: 36px 0;
  margin-top: 54px;
  border-top: 1px solid rgba(158,183,255,.10);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

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

/* Remove old decorative square/line layers from earlier builds */
.showcase::before {
  display: none;
}

/* Mobile */
@media (max-width: 920px) {
  .public-hero,
  .grid.two,
  .grid.three,
  .public-strip,
  .public-grid,
  .doc-shell,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    align-items: flex-start;
  }

  .public-card {
    min-height: auto;
  }

  .guard-device {
    width: 136px;
    height: 136px;
    border-radius: 32px;
  }

  .guard-device img {
    width: 98px;
    height: 98px;
  }

  .doc-sidebar {
    position: static;
  }

  .guild-card,
  .event-row {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    letter-spacing: -.065em;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 22px, 1180px);
  }

  .btn,
  button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .nav,
  .hero-actions,
  .doc-actions {
    width: 100%;
  }

  .brand {
    font-size: 17px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 54px);
  }

  .panel,
  .doc-page,
  .public-card {
    border-radius: 24px;
  }
}

.form-spaced,
.spaced-top {
  margin-top: 16px;
}

.nav-spaced {
  margin-top: 14px;
}

.spaced-top-lg {
  margin-top: 28px;
}

.section-spaced {
  margin-top: 22px;
}

.wide-panel {
  grid-column: 1 / -1;
}


/* V2.3.1 dashboard layout repair */
.dashboard-hero {
  margin: 30px 0 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 0%, rgba(43, 131, 255, .16), transparent 26rem),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.030));
  border-radius: 34px;
  padding: clamp(24px, 4vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  box-shadow: var(--shadow-soft);
}

.dashboard-hero h1 {
  margin: 12px 0 14px;
  max-width: 760px;
}

.dashboard-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--soft);
}

.dashboard-hero .nav {
  justify-content: flex-end;
  min-width: max-content;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 44px;
}

.server-tile {
  min-width: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.030));
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
}

.server-tile-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.server-tile strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -.035em;
  color: var(--text);
  overflow-wrap: anywhere;
}

.server-tile small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.server-tile .badge {
  white-space: nowrap;
}

.server-tile .nav {
  justify-content: flex-start;
  gap: 10px;
}

.server-tile .btn {
  width: auto;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(85,230,165,.22);
  background: rgba(85,230,165,.09);
  color: #baf8dc;
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 950;
  font-size: 12px;
}

@media (max-width: 920px) {
  .dashboard-hero,
  .server-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    align-items: start;
  }

  .dashboard-hero .nav {
    justify-content: flex-start;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .server-tile-top {
    grid-template-columns: 1fr;
  }

  .server-tile .nav,
  .dashboard-hero .nav {
    width: 100%;
  }

  .server-tile .btn,
  .dashboard-hero .btn {
    width: 100%;
  }
}


/* V2.4 frontend pass */
.v24-hero {
  min-height: calc(100vh - 210px);
  align-items: center;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.trust-row span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  color: var(--soft);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 800;
}

.hero-console {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 24% 10%, rgba(43,131,255,.20), transparent 18rem),
    linear-gradient(180deg, rgba(255,255,255,.060), rgba(255,255,255,.030));
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.console-head {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.13);
}

.console-head span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
}

.console-body {
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  gap: 12px;
}

.console-alert {
  border: 1px solid rgba(85,230,165,.22);
  background: rgba(85,230,165,.09);
  border-radius: 20px;
  padding: 16px;
  display: grid;
  gap: 5px;
}

.console-alert span {
  color: var(--muted);
}

.console-line {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-radius: 16px;
  padding: 12px 13px;
  color: var(--soft);
  display: flex;
  gap: 12px;
  align-items: center;
}

.console-line span {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 900;
}

.console-line.ok {
  border-color: rgba(85,230,165,.20);
}

.console-line.danger {
  border-color: rgba(255,82,102,.22);
}

.public-product-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 4px 0 28px;
}

.public-product-row article,
.quiet-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.036);
  border-radius: 26px;
  padding: 20px;
}

.mini-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(43,131,255,.14);
  color: #c8dcff;
  font-weight: 950;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.050), rgba(255,255,255,.026));
  border-radius: 32px;
  padding: clamp(22px, 4vw, 34px);
  margin-bottom: 46px;
}

.quiet-card ul {
  margin: 12px 0 0;
  padding-left: 19px;
  color: var(--muted);
  line-height: 1.75;
}

.doc-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0 28px;
}

.doc-card-grid a {
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-radius: 22px;
  padding: 18px;
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.doc-card-grid a:hover {
  transform: translateY(-2px);
  background: rgba(43,131,255,.10);
  border-color: rgba(43,131,255,.32);
}

.doc-card-grid span {
  color: #91baff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.doc-card-grid strong {
  font-size: 18px;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.v24-dashboard-hero {
  position: relative;
  overflow: hidden;
}

.v24-dashboard-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(43,131,255,.11);
  filter: blur(2px);
  pointer-events: none;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 18px;
}

.dashboard-summary > div {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.034);
  border-radius: 22px;
  padding: 17px;
}

.dashboard-summary strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.055em;
}

.dashboard-summary span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.server-tile {
  position: relative;
  overflow: hidden;
}

.server-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 0%, rgba(43,131,255,.08), transparent 18rem);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}

.server-tile:hover::before {
  opacity: 1;
}

.server-tile.is-protected {
  border-color: rgba(85,230,165,.20);
}

.server-tile.needs-setup {
  border-color: rgba(255,189,74,.20);
}

.server-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.server-meta-row span {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.12);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.server-actions {
  position: relative;
  z-index: 1;
}

.empty-state {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.feature-page {
  margin-top: 30px;
}

@media (max-width: 920px) {
  .v24-hero {
    min-height: auto;
  }

  .public-product-row,
  .split-section,
  .doc-card-grid,
  .dashboard-summary {
    grid-template-columns: 1fr;
  }

  .hero-console {
    order: -1;
  }
}

@media (max-width: 520px) {
  .trust-row span,
  .server-meta-row span {
    width: 100%;
  }

  .console-line {
    align-items: flex-start;
  }

  .doc-card-grid a {
    min-height: auto;
  }
}


/* V2.5 setup wizard + server icons */
.server-title-wrap {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.server-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
}

.server-avatar-fallback {
  display: grid;
  place-items: center;
  color: #d7e6ff;
  font-weight: 950;
  letter-spacing: -.05em;
  background: linear-gradient(135deg, rgba(43,131,255,.34), rgba(255,255,255,.055));
}

.setup-hero {
  margin: 30px 0 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 0%, rgba(43,131,255,.16), transparent 26rem),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.030));
  border-radius: 34px;
  padding: clamp(24px, 4vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: end;
  box-shadow: var(--shadow-soft);
}

.setup-hero h1 {
  margin: 12px 0 14px;
}

.setup-hero p {
  max-width: 760px;
  color: var(--soft);
  margin-bottom: 0;
}

.setup-score {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.040);
  border-radius: 24px;
  padding: 18px;
}

.setup-score strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.055em;
}

.setup-score span {
  display: block;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.45;
}

.setup-score.ready {
  border-color: rgba(85,230,165,.25);
  background: rgba(85,230,165,.085);
}

.setup-score.blocked {
  border-color: rgba(255,82,102,.26);
  background: rgba(255,82,102,.090);
}

.setup-wizard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
  margin-bottom: 42px;
}

.setup-form-panel {
  min-height: 100%;
}

.gate-list {
  display: grid;
  gap: 10px;
}

.gate-item {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-radius: 18px;
  padding: 13px;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: start;
}

.gate-item > span {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 950;
  background: rgba(255,255,255,.055);
  color: var(--soft);
}

.gate-item strong {
  display: block;
}

.gate-item small {
  display: block;
  color: var(--muted);
  line-height: 1.48;
  margin-top: 4px;
}

.gate-item.ok {
  border-color: rgba(85,230,165,.24);
}

.gate-item.ok > span {
  background: rgba(85,230,165,.12);
  color: #baf8dc;
}

.gate-item.warn {
  border-color: rgba(255,189,74,.26);
}

.gate-item.warn > span {
  background: rgba(255,189,74,.12);
  color: #ffe0a8;
}

.gate-item.bad {
  border-color: rgba(255,82,102,.28);
}

.gate-item.bad > span {
  background: rgba(255,82,102,.13);
  color: #ffc2ca;
}

.wizard-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.wizard-flow > div {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-radius: 18px;
  padding: 15px;
}

.wizard-flow strong,
.wizard-flow span {
  display: block;
}

.wizard-flow span {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}

@media (max-width: 920px) {
  .setup-hero,
  .setup-wizard-grid,
  .wizard-flow {
    grid-template-columns: 1fr;
  }

  .setup-score {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .server-title-wrap {
    align-items: center;
  }

  .server-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .gate-item {
    grid-template-columns: 1fr;
  }
}


/* V2.5.1 homepage cleanup + contrast fix */
.btn.primary,
button.primary,
.doc-sidebar .btn.primary,
.doc-login-box .btn.primary,
a.btn.primary {
  color: #ffffff;
}

.doc-sidebar .btn.primary:hover,
.doc-login-box .btn.primary:hover {
  color: #ffffff;
}

.doc-login-box .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.homepage-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 0%, rgba(43,131,255,.13), transparent 24rem),
    linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.028));
  border-radius: 32px;
  padding: clamp(22px, 4vw, 34px);
  margin: 0 0 46px;
  box-shadow: var(--shadow-soft);
}

.homepage-cta-panel h2 {
  max-width: 720px;
}

.homepage-cta-panel p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
}

.homepage-cta-panel .hero-actions {
  justify-content: flex-end;
  margin-top: 0;
}

@media (max-width: 920px) {
  .homepage-cta-panel {
    grid-template-columns: 1fr;
  }

  .homepage-cta-panel .hero-actions {
    justify-content: flex-start;
  }
}


/* V2.5.2 typography pass */
body {
  font-size: 15.5px;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: .94;
}

h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.08;
}

h3 {
  font-size: 18px;
  line-height: 1.22;
}

p {
  font-size: 15.5px;
  line-height: 1.68;
}

.lead {
  font-size: clamp(17px, 1.65vw, 20px);
  line-height: 1.62;
}

.btn,
button {
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.topbar .btn,
.topbar button {
  font-size: 13.5px;
}

.brand {
  font-size: 17px;
}

.badge {
  font-size: 12px;
  line-height: 1;
}

.eyebrow,
.kicker,
.version-badge {
  font-size: 11.5px;
  line-height: 1.2;
}

.hero-copy h1 {
  font-size: clamp(44px, 7vw, 82px);
}

.hero-copy .lead {
  font-size: clamp(17px, 1.8vw, 21px);
}

.public-product-row h2,
.public-grid h2,
.homepage-cta-panel h2,
.split-section h2 {
  font-size: clamp(24px, 2.2vw, 31px);
}

.public-product-row p,
.public-grid p,
.homepage-cta-panel p,
.split-section p {
  font-size: 15.5px;
}

.console-line,
.console-alert,
.public-strip,
.trust-row,
.server-meta-row,
.help,
small {
  font-size: 13px;
}

/* Legal pages should not inherit landing-page scale */
.legal,
.public-legal {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.legal h1,
.public-legal h1 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.02;
  letter-spacing: -.055em;
  max-width: 780px;
  margin-bottom: 16px;
}

.legal h2,
.public-legal h2 {
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.14;
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal .lead,
.public-legal .lead {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  max-width: 760px;
}

.legal p,
.public-legal p,
.legal li,
.public-legal li {
  font-size: 15.5px;
  line-height: 1.68;
}

.legal ul,
.public-legal ul {
  padding-left: 20px;
}

/* Docs get strong hierarchy, but less oversized */
.doc-page h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: .98;
  letter-spacing: -.065em;
}

.doc-page h2 {
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.1;
}

.doc-page .lead {
  font-size: clamp(16.5px, 1.7vw, 19px);
}

.doc-page p,
.doc-page li,
.doc-card-grid strong {
  font-size: 15.5px;
}

.doc-card-grid strong {
  line-height: 1.3;
}

.doc-card-grid span {
  font-size: 11.5px;
}

.doc-sidebar a {
  font-size: 14px;
}

.doc-sidebar-title {
  font-size: 15px;
}

/* Dashboard text scale */
.dashboard-hero h1,
.setup-hero h1 {
  font-size: clamp(36px, 4.8vw, 64px);
}

.dashboard-hero p,
.setup-hero p {
  font-size: 16px;
}

.server-tile strong {
  font-size: 17px;
}

.server-tile small,
.server-meta-row span {
  font-size: 12.5px;
}

.stat strong,
.dashboard-summary strong {
  font-size: 26px;
}

.stat span,
.dashboard-summary span {
  font-size: 12.5px;
}

.table th {
  font-size: 11.5px;
}

.table td {
  font-size: 14px;
}

.action-pill,
.mono {
  font-size: 12px;
}

.setup-score strong {
  font-size: 28px;
}

.gate-item strong,
.wizard-flow strong,
.metric-row strong {
  font-size: 14.5px;
}

.gate-item small,
.wizard-flow span,
.metric-row span,
.health-item small {
  font-size: 13px;
}

.footer {
  font-size: 13.5px;
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  h1,
  .hero-copy h1 {
    font-size: clamp(36px, 12vw, 52px);
    letter-spacing: -.062em;
  }

  .doc-page h1,
  .legal h1,
  .public-legal h1,
  .dashboard-hero h1,
  .setup-hero h1 {
    font-size: clamp(30px, 10vw, 44px);
  }

  h2,
  .doc-page h2,
  .legal h2,
  .public-legal h2 {
    font-size: clamp(21px, 7vw, 27px);
  }

  p,
  .lead,
  .doc-page p,
  .legal p,
  .public-legal p {
    font-size: 15px;
  }

  .btn,
  button {
    font-size: 14px;
  }
}


/* V2.5.3 logo display fix */
.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(43, 131, 255, .20));
}

.topbar .brand span:last-child {
  display: inline-block;
  transform: translateY(-1px);
  color: var(--text);
  text-shadow: none;
}

.guard-device {
  background: rgba(255,255,255,.035);
  border-color: rgba(158, 183, 255, .13);
}

.guard-device img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 22px 44px rgba(43,131,255,.24));
}

.hero-console .brand-mark,
.doc-sidebar .brand-mark,
.panel .brand-mark {
  background: transparent;
  border: 0;
}

@media (max-width: 520px) {
  .brand {
    font-size: 17px;
  }

  .brand-mark,
  .brand-mark img {
    width: 34px;
    height: 34px;
  }

  .guard-device img {
    width: 104px;
    height: 104px;
  }
}


/* V2.5.4 homepage fold fix */
body[data-public="true"] .topbar {
  min-height: 78px;
}

body[data-public="true"] .v24-hero {
  min-height: calc(100svh - 78px);
  padding-top: clamp(18px, 4vh, 44px);
  padding-bottom: clamp(42px, 7vh, 76px);
  display: grid;
  align-items: center;
}

body[data-public="true"] .public-product-row {
  margin-top: clamp(42px, 8vh, 86px);
}

body[data-public="true"] .hero-copy h1 {
  margin-bottom: 18px;
}

body[data-public="true"] .hero-copy .lead {
  margin-bottom: 0;
}

body[data-public="true"] .hero-actions {
  margin-top: 22px;
}

body[data-public="true"] .trust-row {
  margin-top: 18px;
}

body[data-public="true"] .hero-console {
  transform: translateY(10px);
}

@media (min-width: 1200px) and (max-height: 880px) {
  body[data-public="true"] .hero-copy h1 {
    font-size: clamp(54px, 5.6vw, 74px);
  }

  body[data-public="true"] .hero-console {
    max-width: 470px;
    justify-self: end;
  }

  body[data-public="true"] .console-body {
    padding: 22px;
  }

  body[data-public="true"] .console-line {
    padding: 10px 12px;
  }
}

@media (max-width: 920px) {
  body[data-public="true"] .v24-hero {
    min-height: auto;
    padding-top: 30px;
    padding-bottom: 44px;
  }

  body[data-public="true"] .hero-console {
    transform: none;
  }

  body[data-public="true"] .public-product-row {
    margin-top: 0;
  }
}


/* V2.5.5 use real uploaded logo */
.brand {
  gap: 11px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.topbar .brand span:last-child {
  transform: translateY(0);
}

.guard-device img {
  width: 138px;
  height: 138px;
  object-fit: contain;
  filter: none;
}

@media (max-width: 520px) {
  .brand-mark,
  .brand-mark img {
    width: 34px;
    height: 34px;
  }

  .guard-device img {
    width: 106px;
    height: 106px;
  }
}


/* V2.5.6 logo path hotfix */
.brand-mark {
  width: 38px;
  height: 38px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.brand-mark img {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.guard-device img {
  object-fit: contain;
  filter: none;
}


/* V2.6.1 staff audit + setup quality */
.setup-progress {
  height: 10px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
}

.setup-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--green));
}

.audit-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.staff-audit-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(43, 131, 255, .14);
  color: #c8dcff;
}

.gate-list + .nav,
.setup-form-panel .form {
  margin-top: 16px;
}

.nav form {
  margin: 0;
}

.nav form button {
  width: auto;
}


/* V2.6.2 server settings + public beta polish */
.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.faq-list article,
.note-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255,255,255,.04);
}

.faq-list h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.setting-checks {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.04);
}

.check-row input {
  width: auto;
  margin-top: 3px;
}

.compact-form {
  margin-bottom: 18px;
}

.note-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.note-card p {
  margin: 0 0 10px;
}

.note-card small {
  color: var(--muted);
}

textarea {
  resize: vertical;
}


/* V2.6.3 launch hardening */
input[type="hidden"] {
  display: none;
}

.progress-0 span { width: 0%; }
.bar-h-0 { height: 0%; }
.progress-5 span { width: 5%; }
.bar-h-5 { height: 5%; }
.progress-10 span { width: 10%; }
.bar-h-10 { height: 10%; }
.progress-15 span { width: 15%; }
.bar-h-15 { height: 15%; }
.progress-20 span { width: 20%; }
.bar-h-20 { height: 20%; }
.progress-25 span { width: 25%; }
.bar-h-25 { height: 25%; }
.progress-30 span { width: 30%; }
.bar-h-30 { height: 30%; }
.progress-35 span { width: 35%; }
.bar-h-35 { height: 35%; }
.progress-40 span { width: 40%; }
.bar-h-40 { height: 40%; }
.progress-45 span { width: 45%; }
.bar-h-45 { height: 45%; }
.progress-50 span { width: 50%; }
.bar-h-50 { height: 50%; }
.progress-55 span { width: 55%; }
.bar-h-55 { height: 55%; }
.progress-60 span { width: 60%; }
.bar-h-60 { height: 60%; }
.progress-65 span { width: 65%; }
.bar-h-65 { height: 65%; }
.progress-70 span { width: 70%; }
.bar-h-70 { height: 70%; }
.progress-75 span { width: 75%; }
.bar-h-75 { height: 75%; }
.progress-80 span { width: 80%; }
.bar-h-80 { height: 80%; }
.progress-85 span { width: 85%; }
.bar-h-85 { height: 85%; }
.progress-90 span { width: 90%; }
.bar-h-90 { height: 90%; }
.progress-95 span { width: 95%; }
.bar-h-95 { height: 95%; }
.progress-100 span { width: 100%; }
.bar-h-100 { height: 100%; }

.bar-fill {
  min-height: 4px;
}
