/* Opus — license site
   Tokens mapped from client QML theme (obsidian / gold) */

:root {
  --bg0: #12161c;
  --bg1: #1a222c;
  --bg2: #222a34;
  --panel: #181c24;
  --panel-deep: #14181e;
  --stroke: #3a4550;
  --stroke-hot: #5a6a7a;
  --hairline: rgba(232, 208, 112, 0.25);
  --text: #e8ecf2;
  --muted: #8a929e;
  --faint: #5c6570;
  --gold: #e8d070;
  --gold-soft: #f2e8c8;
  --gold-deep: #c9a84a;
  --gold-dim: #6a5018;
  --ok: #4a8f68;
  --ok-soft: #6fcf97;
  --err: #a05050;
  --err-soft: #e88888;
  --info: #5aa8c8;
  --radius: 6px;
  --radius-sm: 4px;
  --font-display: "Syne", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 72rem;
  --nav-h: 4rem;

  /* Admin / legacy aliases */
  --bg-deep: var(--bg0);
  --bg: var(--bg0);
  --bg-raised: var(--bg1);
  --bg-form: var(--panel);
  --ink: var(--text);
  --ink-muted: var(--muted);
  --ink-faint: var(--faint);
  --copper: var(--gold);
  --copper-hot: var(--gold-soft);
  --copper-dim: var(--gold-deep);
  --line: var(--hairline);
  --line-soft: rgba(232, 236, 242, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  background: var(--bg0);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
select,
.allow-select {
  -webkit-user-select: text;
  user-select: text;
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

a,
button,
input,
textarea,
select,
label,
.hero-dot {
  pointer-events: auto;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--gold-soft);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Motion —— */

@keyframes word-in {
  from {
    opacity: 0;
    letter-spacing: 0.35em;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    letter-spacing: 0.18em;
    transform: scale(1);
  }
}

@keyframes rule-grow {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sheen {
  0% {
    transform: translateX(-60%);
    opacity: 0;
  }
  30% {
    opacity: 0.55;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes veil-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.anim-word {
  animation: word-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-rule {
  animation: rule-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
  transform-origin: left center;
}

.anim-rise {
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.anim-d1 {
  animation-delay: 0.45s;
}
.anim-d2 {
  animation-delay: 0.58s;
}
.anim-d3 {
  animation-delay: 0.72s;
}

@media (prefers-reduced-motion: reduce) {
  .anim-word,
  .anim-rule,
  .anim-rise,
  .anim-stage,
  .hero-sheen {
    animation: none !important;
  }
}

/* —— Header —— */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max));
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.nav-brand:hover {
  color: var(--gold);
}

.nav-logo {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  flex-shrink: 0;
  pointer-events: none;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.1rem;
}

.brand-logo {
  width: clamp(3.25rem, 8vw, 4.5rem);
  height: clamp(3.25rem, 8vw, 4.5rem);
  border-radius: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 0 40px rgba(51, 211, 254, 0.18);
  pointer-events: none;
}

.brand-row .wordmark {
  margin: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold);
}

/* —— Hero (full-bleed cinematic) —— */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--nav-h) + 1.5rem) 0 3rem;
}

.hero-bleed {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bleed img,
.hero-atmosphere {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: veil-in 1.2s ease both;
  opacity: 0.4;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.55) 0%, rgba(18, 22, 28, 0.55) 50%, var(--bg0) 100%),
    linear-gradient(90deg, rgba(10, 14, 20, 0.55) 0%, rgba(10, 14, 20, 0.25) 100%);
  pointer-events: none;
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-stage {
  animation: stage-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.hero-sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 35%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(232, 208, 112, 0.06) 45%,
    transparent 70%
  );
  pointer-events: none;
  animation: sheen 3.2s ease-in-out 0.8s both;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  width: min(100% - 2.5rem, var(--max));
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
    gap: 3.5rem;
  }
}

.hero-content {
  max-width: 34rem;
}

.hero-visual {
  margin: 0;
  justify-self: center;
  width: min(100%, 22rem);
}

.hero-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 520 / 780;
  max-height: min(72vh, 38rem);
  border: 1px solid var(--stroke);
  background: var(--panel-deep);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.hero-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--stroke);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.is-active {
  background: var(--gold);
  transform: scale(1.15);
}

.hero-dot:hover {
  background: var(--gold-deep);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

.hero-micro {
  margin: 0.85rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.feature-lines {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.feature-lines li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--gold);
}

.wordmark {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.75rem, 12vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-shadow: 0 0 80px rgba(232, 208, 112, 0.18);
}

.gold-rule {
  width: min(12rem, 40vw);
  height: 2px;
  margin: 0 0 1.5rem;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep), transparent);
}

.hero-headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 18ch;
}

.hero-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 36ch;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

/* Account hero (not full-bleed splash) */
.hero-account {
  min-height: auto;
  padding: calc(var(--nav-h) + 2.5rem) 0 3.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(232, 208, 112, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(36, 48, 64, 0.5), transparent 55%),
    var(--bg0);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.hero-account .hero-bleed,
.hero-account .hero-veil,
.hero-account .hero-sheen {
  display: none;
}

.hero-account .wordmark {
  font-size: clamp(3rem, 8vw, 4.5rem);
  letter-spacing: 0.14em;
}

@media (min-width: 900px) {
  .hero-account {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    padding-bottom: 4.5rem;
  }
}

.hero-account .hero-copy {
  padding-top: 0.5rem;
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #12161c;
  background: linear-gradient(180deg, #fff0a8 0%, var(--gold) 38%, var(--gold-deep) 100%);
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset, 0 8px 24px rgba(201, 168, 74, 0.18);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-inline {
  width: auto;
  min-width: 10rem;
  margin-top: 0;
}

a.btn {
  color: #12161c;
}

a.btn:hover {
  color: #12161c;
}

.btn-ghost {
  color: var(--gold-soft);
  background: rgba(18, 22, 28, 0.45);
  border: 1px solid var(--stroke);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover:not(:disabled) {
  filter: none;
  color: var(--text);
  border-color: var(--gold-deep);
  background: rgba(232, 208, 112, 0.08);
}

a.btn-ghost,
a.btn-ghost:hover {
  color: var(--gold-soft);
}

a.btn-ghost:hover {
  color: var(--text);
}

.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-row .btn {
  width: auto;
  flex: 1 1 auto;
  min-width: 8rem;
}

/* —— Sections —— */

.section {
  padding: 4.5rem 0;
  border-top: 1px solid rgba(232, 236, 242, 0.06);
  background: var(--bg0);
}

.section-intro {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-intro h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 42ch;
}

.register-section {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .register-section {
    grid-template-columns: 1fr min(22.5rem, 100%);
    gap: 3.5rem;
    align-items: start;
  }
}

.register-foot {
  margin: 1.1rem 0 0;
}

/* —— Pricing strip —— */

.price-row {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(232, 236, 242, 0.08);
}

@media (min-width: 720px) {
  .price-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(232, 236, 242, 0.08);
  color: inherit;
}

@media (min-width: 720px) {
  .price-item {
    padding: 2rem 1.5rem 2rem 0;
    border-bottom: none;
    border-right: 1px solid rgba(232, 236, 242, 0.08);
  }

  .price-item:last-child {
    border-right: none;
    padding-right: 0;
  }
}

.price-item:hover .price-amount {
  color: var(--gold-soft);
}

.price-term {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.price-amount {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  transition: color 0.15s ease;
}

.price-item.is-focus .price-amount {
  color: var(--gold);
}

.pricing-note {
  margin: 1.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--faint);
}

/* —— How it works —— */

.how-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .how-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    gap: 3rem;
  }
}

.how-visuals {
  display: grid;
  gap: 0.85rem;
  width: 100%;
}

.how-visual {
  margin: 0;
  width: 100%;
}

.how-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  border: 1px solid var(--stroke);
  background: var(--panel-deep);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

.how-visual.is-wide img {
  aspect-ratio: 2 / 1;
  object-fit: contain;
  background: #0a0e14;
}

.captcha-box {
  margin: 0.85rem 0 0.35rem;
  min-height: 1.5rem;
}

.captcha-box .g-recaptcha {
  transform-origin: left top;
}

.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(232, 236, 242, 0.08);
}

.rule-list li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1.15rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(232, 236, 242, 0.08);
  font-size: 0.95rem;
  color: var(--muted);
}

.rule-list .n {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding: 1.75rem 0 2.75rem;
  border-top: 1px solid rgba(232, 236, 242, 0.06);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  background: var(--bg0);
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--gold);
}

/* —— Forms —— */

.form-panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}

.form-panel h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1.15rem;
  letter-spacing: -0.01em;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg0);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
}

.field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.msg {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.msg:empty {
  display: none;
}

.msg.ok {
  color: var(--ok-soft);
  background: rgba(74, 143, 104, 0.12);
  border-color: rgba(74, 143, 104, 0.35);
}

.msg.err {
  color: var(--err-soft);
  background: rgba(160, 80, 80, 0.12);
  border-color: rgba(160, 80, 80, 0.35);
}

.fineprint {
  font-size: 0.8rem;
  color: var(--faint);
  line-height: 1.5;
}

.linkish {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold);
  font: inherit;
  cursor: pointer;
}

.linkish:hover {
  color: var(--gold-soft);
}

.hidden {
  display: none !important;
}

/* —— Account dashboard —— */

.dash-panel {
  display: grid;
  gap: 1rem;
}

.dash-panel.hidden {
  display: none !important;
}

.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.dash-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.dash-email {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.lic-card {
  padding: 1.25rem 1.35rem;
  background: var(--bg1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.lic-status {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.lic-status.ok {
  color: var(--ok-soft);
}

.lic-meta {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.plans-title {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  text-align: left;
  cursor: pointer;
  color: inherit;
  background: var(--bg0);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  font-family: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.plan-card:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.plan-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.plan-price {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gold);
}

.plan-cta {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* —— Admin —— */

.admin-page {
  padding: calc(var(--nav-h) + 1.5rem) 0 4rem;
}

.admin-page .page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.admin-page .page-lede {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.admin-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 780px) {
  .admin-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.admin-grid .span-full {
  grid-column: 1 / -1;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin: 0 0 0.75rem;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .summary-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .summary-cards {
    grid-template-columns: repeat(6, 1fr);
  }
}

.stat-card {
  background: var(--bg1);
  border: 1px solid rgba(232, 236, 242, 0.08);
  border-radius: var(--radius);
  padding: 1rem 0.9rem;
}

.stat-card .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 0.35rem;
}

.stat-card .value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.stat-card.accent .value {
  color: var(--gold);
}

.tables {
  display: grid;
  gap: 1.5rem;
}

.table-block h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.table-block .count {
  color: var(--faint);
  font-weight: 400;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid rgba(232, 236, 242, 0.08);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

th,
td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(232, 236, 242, 0.08);
  white-space: nowrap;
}

th {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.62rem;
  background: var(--bg1);
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  color: var(--gold);
}

.badge.on {
  border-color: rgba(74, 143, 104, 0.4);
  color: var(--ok-soft);
}

.badge.off {
  border-color: rgba(232, 236, 242, 0.08);
  color: var(--faint);
}

.empty-hint {
  margin: 0;
  padding: 1rem 0.75rem;
  color: var(--faint);
  font-size: 0.85rem;
  border: 1px dashed rgba(232, 236, 242, 0.12);
  border-radius: var(--radius);
}

.server-meta {
  margin: 0.5rem 0 0;
  font-size: 0.7rem;
  color: var(--faint);
  font-family: var(--font-mono);
}

/* Admin header not absolute */
body:has(.admin-page) .site-header {
  position: relative;
  border-bottom: 1px solid rgba(232, 236, 242, 0.06);
  background: var(--bg0);
}
