:root {
  --v3-bg: #05080d;
  --v3-bg-raised: #0a1119;
  --v3-panel: rgba(10, 18, 27, 0.9);
  --v3-panel-soft: rgba(13, 23, 34, 0.78);
  --v3-panel-solid: #0c151f;
  --v3-line: rgba(126, 226, 218, 0.16);
  --v3-line-strong: rgba(48, 211, 196, 0.38);
  --v3-text: #f4f8f8;
  --v3-muted: #9bacb2;
  --v3-cyan: #38d6ce;
  --v3-teal: #18ad9f;
  --v3-green: #45cb85;
  --v3-gold: #e5b754;
  --v3-purple: #9b7ad8;
  --v3-red: #e16161;
  --v3-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  --v3-shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.22);
  --v3-max: 1240px;
  --v3-radius: 8px;
  --v3-radius-sm: 5px;
}

html,
body.v3 {
  overflow-x: hidden;
  overflow-x: clip;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  background: var(--v3-bg);
}

body.v3 {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--v3-text);
  background: var(--v3-bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.v3::selection {
  color: #02110f;
  background: var(--v3-cyan);
}

body.v3 a {
  color: inherit;
  text-decoration: none;
}

body.v3 img {
  display: block;
  max-width: 100%;
}

body.v3 h1,
body.v3 h2,
body.v3 h3,
body.v3 h4,
body.v3 p {
  margin-top: 0;
}

body.v3 h1,
body.v3 h2,
body.v3 h3,
body.v3 .brand-wordmark {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
}

body.v3 h1 {
  font-size: 34px;
  line-height: 1.08;
}

body.v3 h2 {
  font-size: 28px;
  line-height: 1.14;
}

body.v3 h3 {
  font-size: 18px;
  line-height: 1.24;
}

body.v3 p,
body.v3 li,
body.v3 label,
body.v3 input,
body.v3 select,
body.v3 textarea,
body.v3 button {
  letter-spacing: 0;
}

body.v3 .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;
}

.v3-site-background,
.site-background-overlay {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.v3-site-background {
  background:
    linear-gradient(180deg, rgba(3, 8, 13, 0.26), rgba(3, 8, 13, 0.94) 72%),
    url("/public/images/v2/35-v2-hero-background-clean.webp") center top / cover no-repeat;
  transform: scale(1.01);
}

body[data-surface="guest"] .v3-site-background {
  background:
    linear-gradient(180deg, rgba(4, 8, 13, 0.7), rgba(4, 8, 13, 0.98)),
    url("/public/images/ancient-fortress-cavern.webp") center / cover no-repeat;
}

body[data-surface="dashboard"] .v3-site-background,
body[data-surface="app"] .v3-site-background {
  background:
    linear-gradient(120deg, rgba(4, 10, 15, 0.96), rgba(4, 10, 15, 0.78)),
    url("/public/images/landing-cavern-v2.jpg") center / cover no-repeat;
}

body[data-surface="admin"] .v3-site-background {
  background:
    linear-gradient(120deg, rgba(3, 8, 13, 0.96), rgba(5, 13, 19, 0.88)),
    url("/public/images/ancient-fortress-cavern.webp") center / cover no-repeat;
}

.site-background-overlay {
  z-index: -2;
  opacity: 0.68;
  background-image:
    linear-gradient(rgba(72, 213, 201, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 213, 201, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

body.v3 .cursor-light,
body.v3 .ambient,
body.v3 .v2-site-background {
  display: none !important;
}

body.v3 [data-reveal] {
  opacity: 1;
  transform: none;
}

.js body.v3 [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

body.v3 [data-reveal] {
  transition: opacity 520ms ease, transform 520ms ease;
}

body.v3 [data-depth] {
  transform: translate3d(0, var(--v3-depth-y, 0), 0);
  will-change: transform;
}

body.v3 :focus-visible {
  outline: 2px solid var(--v3-cyan);
  outline-offset: 3px;
}

body.v3 .muted,
body.v3 small {
  color: var(--v3-muted);
}

body.v3 .eyebrow {
  margin-bottom: 8px;
  color: var(--v3-cyan);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

body.v3 .lead {
  max-width: 68ch;
  color: #c4d0d3;
  font-size: 16px;
  line-height: 1.7;
}

/* Buttons */
body.v3 .button,
body.v3 button.button,
body.v3 .btn,
body.v3 button[type="submit"]:not(.user-menu-link-button):not(.sidebar-link-button) {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid var(--v3-line-strong);
  border-radius: var(--v3-radius-sm);
  color: var(--v3-text);
  background: rgba(13, 24, 34, 0.88);
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

body.v3 .button:hover,
body.v3 button.button:hover,
body.v3 .btn:hover {
  transform: translateY(-2px);
  border-color: rgba(71, 222, 209, 0.66);
  box-shadow: 0 10px 26px rgba(16, 173, 159, 0.14);
}

body.v3 .button-primary,
body.v3 button.button-primary,
body.v3 .btn-primary {
  color: #031310;
  border-color: #58dfd3;
  background: linear-gradient(135deg, #53dfc9, #25bdb4);
  box-shadow: 0 10px 28px rgba(32, 195, 181, 0.18);
}

body.v3 .button-secondary,
body.v3 button.button-secondary {
  color: #eafefd;
  border-color: rgba(69, 210, 200, 0.48);
  background: rgba(16, 45, 52, 0.72);
}

body.v3 .button-ghost,
body.v3 button.button-ghost {
  color: #c5d1d4;
  border-color: rgba(145, 169, 177, 0.2);
  background: rgba(11, 17, 24, 0.54);
}

body.v3 .button-danger {
  color: #fff;
  border-color: rgba(225, 97, 97, 0.54);
  background: rgba(113, 35, 43, 0.76);
}

body.v3 button:disabled,
body.v3 .button[aria-disabled="true"] {
  opacity: 0.44;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

body.v3 .button-row,
body.v3 .workspace-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Public shell */
body.v3 .guest-shell {
  width: min(calc(100% - 32px), var(--v3-max));
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 0 32px;
  background: transparent;
}

body.v3 .site-announcement {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(76, 207, 195, 0.2);
  border-radius: var(--v3-radius-sm);
  color: #b9c9cd;
  background: rgba(3, 11, 16, 0.78);
  backdrop-filter: blur(16px);
  font-size: 12px;
}

body.v3 .site-announcement strong,
body.v3 .site-announcement a {
  color: #ecffff;
}

body.v3 .site-announcement a {
  font-weight: 750;
}

body.v3 .site-announcement-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v3-green);
  box-shadow: 0 0 0 4px rgba(69, 203, 133, 0.1);
}

body.v3 .guest-nav {
  position: sticky;
  top: 10px;
  z-index: 50;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 10px 14px;
  border: 1px solid rgba(112, 208, 200, 0.16);
  border-radius: var(--v3-radius);
  background: rgba(5, 12, 18, 0.84);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px) saturate(130%);
}

body.v3 .brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body.v3 .brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(69, 210, 200, 0.22);
  border-radius: 7px;
  color: var(--v3-cyan);
  background: #0b1720;
}

body.v3 .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.v3 .brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.v3 .brand-wordmark {
  color: #f1f8f8;
  font-size: 18px;
  line-height: 1;
}

body.v3 .guest-brand-tagline {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

body.v3 .guest-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

body.v3 .guest-links > a {
  padding: 9px 11px;
  border-radius: 5px;
  color: #b8c6ca;
  font-size: 13px;
  font-weight: 650;
  transition: color 160ms ease, background-color 160ms ease;
}

body.v3 .guest-links > a:hover,
body.v3 .guest-links > a[aria-current="page"] {
  color: #f4ffff;
  background: rgba(57, 204, 193, 0.1);
}

body.v3 .guest-auth-actions,
body.v3 .guest-auth-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.v3 .guest-auth-actions > a:not(.button) {
  padding: 9px;
  color: #d5dfe1;
  font-size: 13px;
  font-weight: 700;
}

body.v3 .guest-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--v3-line);
  border-radius: 6px;
  background: #0d1821;
}

body.v3 .guest-menu-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: #dce8ea;
}

body.v3 .guest-page {
  min-height: 64vh;
  padding-top: 14px;
}

body.v3 .guest-footer {
  width: 100%;
  margin-top: 18px;
  border-radius: var(--v3-radius);
}

body.v3 .guest-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.8fr) minmax(220px, 0.7fr);
  gap: 34px;
}

body.v3 .guest-footer-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

body.v3 .guest-footer a {
  color: #aebfc3;
  font-size: 13px;
}

body.v3 .guest-footer a:hover {
  color: var(--v3-cyan);
}

/* Foundation surfaces */
body.v3 .panel-card,
body.v3 .nested-panel,
body.v3 .metric-card,
body.v3 .server-card,
body.v3 .public-section-card,
body.v3 .auth-card,
body.v3 .content-card,
body.v3 .pricing-card,
body.v3 .plan-card,
body.v3 .section-nav-card,
body.v3 .admin-stable-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  background: var(--v3-panel);
  box-shadow: var(--v3-shadow-soft);
  backdrop-filter: blur(16px) saturate(115%);
}

body.v3 .panel-card::before,
body.v3 .nested-panel::before,
body.v3 .metric-card::before,
body.v3 .server-card::before {
  display: none !important;
  content: none !important;
}

body.v3 .panel-card {
  padding: 22px;
}

body.v3 .nested-panel {
  padding: 17px;
  background: rgba(12, 22, 31, 0.74);
  box-shadow: none;
}

body.v3 .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

body.v3 .panel-header h2,
body.v3 .panel-header h3 {
  margin-bottom: 0;
}

body.v3 .stats-grid,
body.v3 .metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.v3 .metric-card {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
  box-shadow: none;
}

body.v3 .metric-card strong {
  color: #f5ffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
}

body.v3 .metric-card span {
  color: var(--v3-muted);
  font-size: 12px;
}

body.v3 .section-grid,
body.v3 .card-grid,
body.v3 .public-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.v3 .stack-list,
body.v3 .info-stack,
body.v3 .compact-stack {
  display: grid;
  gap: 9px;
}

body.v3 .list-row {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(127, 163, 170, 0.12);
}

body.v3 .list-row:last-child {
  border-bottom: 0;
}

body.v3 .list-row > div {
  min-width: 0;
}

body.v3 .list-row strong,
body.v3 .list-row small {
  display: block;
  overflow-wrap: anywhere;
}

body.v3 .list-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(126, 226, 218, 0.12);
  border-radius: 5px;
  color: #c9d7da;
  background: rgba(6, 14, 20, 0.5);
}

body.v3 .list-link::after {
  content: "→";
  color: var(--v3-cyan);
}

body.v3 .status-pill,
body.v3 .status-badge,
body.v3 .pill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid rgba(126, 226, 218, 0.16);
  border-radius: 999px;
  color: #bfd0d4;
  background: rgba(8, 18, 25, 0.76);
  font-size: 11px;
  font-weight: 750;
}

body.v3 .status-pill.success,
body.v3 .server-card.active .status-badge {
  color: #bdf4d2;
  border-color: rgba(69, 203, 133, 0.3);
  background: rgba(30, 112, 71, 0.24);
}

body.v3 .positive-text { color: var(--v3-green); }
body.v3 .negative-text,
body.v3 .warning-text { color: #ff8d8d; }

body.v3 .inline-code,
body.v3 code,
body.v3 pre,
body.v3 .console-lines {
  font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
}

body.v3 .inline-code {
  max-width: 100%;
  overflow: auto;
  padding: 11px 12px;
  border: 1px solid rgba(56, 214, 206, 0.18);
  border-radius: 5px;
  color: #7ee8df;
  background: #061016;
  font-size: 12px;
}

/* Public cinematic pages */
.v3-home-hero,
.v3-route-hero,
body.v3 .landing-hero,
body.v3 .public-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(109, 217, 207, 0.18);
  border-radius: var(--v3-radius);
  background: transparent !important;
  box-shadow: var(--v3-shadow);
}

.v3-home-hero--infrastructure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.58;
  background:
    linear-gradient(115deg, transparent 42%, rgba(60, 224, 211, 0.08) 42.2%, transparent 42.6%),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(119, 238, 224, 0.055) 119px 120px),
    linear-gradient(0deg, rgba(4, 13, 18, 0.42), transparent 46%);
}

.v3-home-hero::before,
.v3-route-hero::before,
body.v3 .landing-hero::before,
body.v3 .public-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(3, 8, 13, 0.94) 0%, rgba(3, 8, 13, 0.75) 43%, rgba(3, 8, 13, 0.22) 72%, rgba(3, 8, 13, 0.5) 100%),
    url("/public/images/v2/35-v2-hero-background-clean.webp") center / cover no-repeat;
}

.v3-home-hero > *,
.v3-route-hero > *,
body.v3 .landing-hero > *,
body.v3 .public-hero > * {
  position: relative;
  z-index: 1;
}

.v3-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: 30px;
  padding: 58px 48px;
}

.v3-hero-copy {
  max-width: 610px;
}

.v3-hero-kicker,
.v3-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v3-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(70, 216, 203, 0.24);
  border-radius: 999px;
  color: #cfe3e5;
  background: rgba(7, 17, 23, 0.68);
  font-size: 11px;
  font-weight: 750;
}

.v3-chip.is-primary {
  color: #d8fff8;
  border-color: rgba(69, 203, 133, 0.38);
  background: rgba(25, 107, 71, 0.34);
}

.v3-home-hero h1 {
  max-width: 680px;
  margin: 22px 0 17px;
  font-size: 54px;
  line-height: 1.02;
}

.v3-home-hero .v3-hero-lead {
  max-width: 600px;
  margin-bottom: 22px;
  color: #c8d5d8;
  font-size: 16px;
  line-height: 1.68;
}

.v3-hero-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.v3-trust-item {
  display: grid;
  gap: 4px;
  padding: 11px;
  border-left: 2px solid rgba(56, 214, 206, 0.42);
  color: #aebfc3;
  background: rgba(5, 13, 18, 0.5);
  font-size: 11px;
}

.v3-trust-item strong {
  color: #eefafa;
  font-size: 13px;
}

.v3-console-stage {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.v3-console-stage::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 52%;
  border-radius: 50%;
  background: rgba(22, 184, 170, 0.14);
  filter: blur(55px);
}

.v3-console {
  position: relative;
  width: min(100%, 560px);
  min-height: 410px;
  padding: 24px;
  border: 1px solid rgba(69, 228, 214, 0.52);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(8, 20, 27, 0.94), rgba(5, 12, 18, 0.9));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42), 0 0 34px rgba(35, 210, 194, 0.12);
  transform: rotateY(-5deg) rotateX(1deg) translate3d(0, var(--v3-depth-y, 0), 0);
}

.v3-console::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid rgba(89, 221, 209, 0.09);
}

.v3-console-head,
.v3-console-status,
.v3-console-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.v3-console-head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(111, 225, 216, 0.14);
}

.v3-console-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #dffffb;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
}

.v3-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v3-green);
  box-shadow: 0 0 12px rgba(69, 203, 133, 0.7);
}

.v3-console-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.v3-console-stat {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(85, 211, 202, 0.15);
  border-radius: 5px;
  background: rgba(6, 15, 21, 0.76);
}

.v3-console-stat span {
  color: #899da3;
  font-size: 10px;
  text-transform: uppercase;
}

.v3-console-stat strong {
  color: var(--v3-cyan);
  font: 700 20px/1 "Space Grotesk", sans-serif;
}

.v3-console-lines {
  min-height: 148px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(66, 201, 190, 0.16);
  border-radius: 5px;
  color: #78d9c1;
  background: #03090d;
  font: 12px/1.7 "IBM Plex Mono", Consolas, monospace;
}

.v3-console-lines span {
  display: block;
  white-space: nowrap;
}

.v3-console-actions {
  justify-content: flex-start;
  margin-top: 14px;
}

.v3-section {
  position: relative;
  padding: 76px 0;
}

.v3-section + .v3-section {
  border-top: 1px solid rgba(116, 192, 189, 0.1);
}

.v3-section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.v3-section-head h2 {
  margin-bottom: 12px;
  font-size: 34px;
}

.v3-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.v3-feature-card {
  min-height: 178px;
  padding: 20px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  background: linear-gradient(155deg, rgba(14, 26, 36, 0.86), rgba(8, 15, 22, 0.86));
  transition: transform 180ms ease, border-color 180ms ease;
}

.v3-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 211, 200, 0.38);
}

.v3-feature-card svg,
.v3-icon-box svg {
  width: 22px;
  height: 22px;
  color: var(--v3-cyan);
}

.v3-feature-card h3 {
  margin: 18px 0 8px;
}

.v3-feature-card p {
  margin-bottom: 0;
  color: var(--v3-muted);
  font-size: 13px;
  line-height: 1.6;
}

.v3-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 46px;
}

.v3-media-stage {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(107, 220, 210, 0.18);
  border-radius: var(--v3-radius);
  background:
    linear-gradient(150deg, rgba(5, 11, 16, 0.16), rgba(5, 11, 16, 0.76)),
    url("/public/images/landing-cavern-v2.jpg") center / cover no-repeat;
  box-shadow: var(--v3-shadow);
}

.v3-media-stage .v3-console {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(78%, 420px);
  min-height: 0;
  padding: 18px;
  transform: rotateY(-3deg) rotateX(1deg);
}

/* Public route template */
body.v3 .v2-public-page,
body.v3 .public-page-stack,
body.v3 .v2-public-section-stack {
  display: grid;
  gap: 16px;
}

body.v3 .v2-public-route-hero,
body.v3 .v2-public-hero {
  min-height: 500px;
  padding: 46px;
  background: transparent !important;
}

body.v3 .v2-public-route-hero::before,
body.v3 .v2-public-hero::before {
  background:
    linear-gradient(90deg, rgba(4, 9, 14, 0.94), rgba(4, 9, 14, 0.7) 52%, rgba(4, 9, 14, 0.28)),
    url("/public/images/ancient-fortress-cavern.webp") center / cover no-repeat !important;
}

body.v3 .v2-public-route-hero::after,
body.v3 .v2-public-hero::after,
body.v3 .v2-public-art-stage,
body.v3 .v2-public-section-visual::before,
body.v3 .v2-public-signal-section::before,
body.v3 .v2-public-faq-section::before,
body.v3 [style*="--v2-page-art"]::before,
body.v3 [style*="--v2-section-art"]::before {
  background-image: none !important;
}

body.v3 .v2-public-hero-grid {
  min-height: 400px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
  align-items: center;
  gap: 36px;
}

body.v3 .v2-public-copy {
  max-width: 620px;
}

body.v3 .v2-public-copy h2 {
  margin-bottom: 16px;
  font-size: 42px;
}

body.v3 .v2-public-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

body.v3 .v2-public-stat-row span {
  padding: 7px 10px;
  border: 1px solid rgba(79, 215, 203, 0.2);
  border-radius: 999px;
  color: #bdd0d3;
  background: rgba(7, 17, 24, 0.7);
  font-size: 11px;
}

body.v3 .v2-public-art-stage {
  min-height: 330px;
  display: grid;
  align-content: end;
  padding: 0;
}

body.v3 .v2-public-art-frame,
body.v3 .v2-public-art-frame img {
  display: none !important;
}

body.v3 .v2-public-console-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(74, 211, 200, 0.3);
  border-radius: 7px;
  background: rgba(5, 14, 20, 0.88);
  box-shadow: var(--v3-shadow);
  transform: rotateY(-4deg) translate3d(0, var(--v3-depth-y, 0), 0);
}

body.v3 .v2-public-console-strip span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(105, 209, 201, 0.12);
  color: var(--v3-muted);
  font-size: 10px;
}

body.v3 .v2-public-console-strip strong {
  color: var(--v3-cyan);
  font-size: 18px;
}

body.v3 .v2-public-contact-band,
body.v3 .v2-public-signal-section,
body.v3 .v2-public-faq-section,
body.v3 .v2-public-followup,
body.v3 .v2-public-section-row {
  padding: 30px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  background: rgba(8, 16, 24, 0.88) !important;
  box-shadow: var(--v3-shadow-soft);
}

body.v3 .v2-public-section-row,
body.v3 .v2-public-section-row.reverse {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.v3 .v2-public-section-row.reverse .public-section-card,
body.v3 .v2-public-section-row.reverse .v2-public-section-visual {
  order: initial;
}

body.v3 .v2-public-section-visual {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(111, 219, 210, 0.14);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(11, 33, 39, 0.62), rgba(7, 16, 23, 0.8)) !important;
}

body.v3 .v2-public-visual-lines {
  display: grid;
  gap: 10px;
}

body.v3 .v2-public-visual-lines span {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--v3-teal), rgba(24, 173, 159, 0.08));
}

body.v3 .v2-public-checklist {
  margin: 0;
  padding-left: 18px;
  color: #c5d2d4;
}

/* Pricing */
body.v3 .v2-pricing-page,
body.v3 .pricing-page {
  display: grid;
  gap: 18px;
  padding: 0;
  background: transparent !important;
}

body.v3 .v2-pricing-page::before,
body.v3 .v2-pricing-page::after,
body.v3 .pricing-page::before,
body.v3 .pricing-page::after {
  content: none !important;
  background-image: none !important;
}

body.v3 .v2-pricing-hero,
body.v3 .pricing-hero {
  min-height: 390px;
  display: grid;
  align-content: end;
  padding: 46px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  background:
    linear-gradient(90deg, rgba(4, 9, 14, 0.96), rgba(4, 9, 14, 0.55)),
    url("/public/images/landing-cavern-v2.jpg") center / cover no-repeat !important;
  box-shadow: var(--v3-shadow);
}

body.v3 .v2-tier-tabs,
body.v3 .tier-tabs {
  position: sticky;
  top: 92px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  background: rgba(5, 12, 18, 0.92);
  backdrop-filter: blur(16px);
}

body.v3 .v2-tier-tab,
body.v3 .tier-tab {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #c2cfd2;
  background: transparent;
  font-weight: 750;
}

body.v3 .v2-tier-tab:hover,
body.v3 .v2-tier-tab[aria-selected="true"],
body.v3 .tier-tab:hover,
body.v3 .tier-tab[aria-selected="true"] {
  color: #f3ffff;
  border-color: rgba(62, 214, 202, 0.28);
  background: rgba(34, 143, 133, 0.15);
}

body.v3 .v2-tier-section,
body.v3 .tier-section {
  scroll-margin-top: 162px;
  padding: 28px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  background: rgba(8, 16, 24, 0.9);
}

body.v3 .v2-tier-heading,
body.v3 .tier-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

body.v3 .v2-plan-grid,
body.v3 .plan-grid,
body.v3 .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.v3 .v2-plan-card,
body.v3 .plan-card,
body.v3 .pricing-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
  box-shadow: none;
  background: linear-gradient(155deg, rgba(13, 25, 35, 0.96), rgba(7, 14, 20, 0.96));
}

body.v3 .v2-plan-card:hover,
body.v3 .plan-card:hover {
  border-color: rgba(62, 214, 202, 0.42);
  transform: translateY(-3px);
}

body.v3 .v2-plan-card.is-popular,
body.v3 .plan-card.is-popular {
  border-color: rgba(229, 183, 84, 0.48);
  box-shadow: 0 18px 42px rgba(112, 82, 18, 0.12);
}

body.v3 .v2-plan-price,
body.v3 .plan-price {
  margin: 12px 0;
  color: #fff7e0;
  font: 700 34px/1 "Space Grotesk", sans-serif;
}

body.v3 .v2-plan-specs,
body.v3 .plan-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

body.v3 .v2-plan-specs span,
body.v3 .plan-specs span {
  padding: 9px;
  border: 1px solid rgba(89, 202, 195, 0.12);
  border-radius: 5px;
  color: #dce7e9;
  background: rgba(5, 13, 18, 0.66);
  font-size: 11px;
  text-align: center;
}

body.v3 .v2-plan-features,
body.v3 .plan-features {
  flex: 1;
  display: grid;
  gap: 8px;
  margin: 10px 0 20px;
  padding: 0;
  list-style: none;
}

body.v3 .v2-plan-features li,
body.v3 .plan-features li {
  position: relative;
  padding-left: 17px;
  color: #aebfc3;
  font-size: 12px;
}

body.v3 .v2-plan-features li::before,
body.v3 .plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v3-green);
}

/* Auth */
body.v3 .v2-auth-page,
body.v3 .auth-grid,
body.v3 .auth-wrap {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: center;
  gap: 36px;
  padding: 54px;
  overflow: hidden;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  background:
    linear-gradient(90deg, rgba(3, 8, 13, 0.46), rgba(3, 8, 13, 0.88)),
    url("/public/images/landing-cavern-v2.jpg") center / cover no-repeat !important;
  box-shadow: var(--v3-shadow);
}

body.v3 .v2-auth-page::before,
body.v3 .v2-auth-page::after,
body.v3 .auth-grid::before,
body.v3 .auth-grid::after {
  content: none !important;
  background-image: none !important;
}

body.v3 .auth-intro,
body.v3 .auth-copy {
  max-width: 520px;
}

body.v3 .auth-intro h1,
body.v3 .auth-copy h1 {
  font-size: 42px;
}

body.v3 .auth-card,
body.v3 .auth-form-card,
body.v3 .auth-panel {
  width: min(100%, 480px);
  justify-self: end;
  padding: 28px;
  border: 1px solid rgba(70, 215, 203, 0.3);
  border-radius: var(--v3-radius);
  background: rgba(6, 14, 20, 0.92);
  box-shadow: var(--v3-shadow);
  backdrop-filter: blur(18px);
}

body.v3 .field-grid,
body.v3 .form-grid,
body.v3 form .field,
body.v3 .form-group {
  display: grid;
  gap: 8px;
}

body.v3 .field-grid,
body.v3 .form-grid {
  gap: 14px;
}

body.v3 .register-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.v3 .inline-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
}

body.v3 .checkbox-row,
body.v3 .checkbox-field {
  display: flex;
  align-items: center;
  gap: 9px;
}

body.v3 .checkbox-field {
  padding: 12px;
  border: 1px solid rgba(130, 176, 182, 0.16);
  border-radius: 5px;
  background: rgba(5, 13, 18, 0.62);
}

body.v3 input,
body.v3 select,
body.v3 textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(130, 176, 182, 0.2);
  border-radius: 5px;
  color: var(--v3-text);
  background: rgba(4, 11, 16, 0.82);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.v3 textarea {
  min-height: 120px;
  resize: vertical;
}

body.v3 input:focus,
body.v3 select:focus,
body.v3 textarea:focus {
  border-color: rgba(56, 214, 206, 0.7);
  box-shadow: 0 0 0 3px rgba(56, 214, 206, 0.08);
}

body.v3 input[type="checkbox"],
body.v3 input[type="radio"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--v3-teal);
}

body.v3 label {
  color: #c5d3d5;
  font-size: 12px;
  font-weight: 700;
}

/* Dashboard and admin */
body.v3 .shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  padding: 14px;
  background: transparent;
}

body.v3 .sidebar {
  position: sticky;
  top: 14px;
  align-self: start;
  height: calc(100vh - 28px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius) 0 0 var(--v3-radius);
  background: rgba(4, 11, 16, 0.94);
  box-shadow: var(--v3-shadow);
  scrollbar-width: thin;
  scrollbar-color: rgba(55, 199, 188, 0.35) transparent;
}

body.v3 .sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(126, 226, 218, 0.12);
}

body.v3 .sidebar-close,
body.v3 .sidebar-toggle,
body.v3 .sidebar-backdrop {
  display: none;
}

body.v3 .sidebar-hero {
  display: grid;
  gap: 5px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(73, 204, 193, 0.14);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(26, 77, 81, 0.22), rgba(7, 17, 23, 0.56));
}

body.v3 .sidebar-hero strong {
  font-size: 14px;
}

body.v3 .sidebar-utility,
body.v3 .sidebar-group {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}

body.v3 .sidebar-label {
  margin: 10px 8px 5px;
  color: #678087;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

body.v3 .sidebar-link,
body.v3 button.sidebar-link {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #aebec2;
  background: transparent;
  box-shadow: none;
  font: inherit;
  text-align: left;
}

body.v3 .sidebar-link:hover,
body.v3 .sidebar-link.active {
  color: #efffff;
  border-color: rgba(62, 208, 197, 0.16);
  background: rgba(41, 173, 163, 0.12);
}

body.v3 .sidebar-link.active {
  box-shadow: inset 2px 0 0 var(--v3-cyan);
}

body.v3 .link-icon,
body.v3 .link-icon svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--v3-cyan);
}

body.v3 .sidebar-link-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.v3 .sidebar-link-copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.v3 .sidebar-link-copy small {
  font-size: 10px;
}

body.v3 .content-shell {
  min-width: 0;
  border: 1px solid var(--v3-line);
  border-left: 0;
  border-radius: 0 var(--v3-radius) var(--v3-radius) 0;
  background: rgba(4, 10, 15, 0.76);
  backdrop-filter: blur(10px);
}

body.v3 .topbar {
  position: sticky;
  top: 14px;
  z-index: 40;
  min-height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--v3-line);
  background: rgba(5, 12, 18, 0.92);
  backdrop-filter: blur(18px);
}

body.v3 .topbar-main,
body.v3 .topbar-actions,
body.v3 .user-chip,
body.v3 .surface-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.v3 .topbar h1 {
  margin: 0;
  font-size: 24px;
}

body.v3 .topbar .eyebrow,
body.v3 .topbar-subtitle {
  margin-bottom: 2px;
}

body.v3 .topbar-subtitle {
  color: var(--v3-muted);
  font-size: 11px;
}

body.v3 .surface-switch {
  margin-top: 7px;
}

body.v3 .surface-switch-link {
  padding: 5px 8px;
  border: 1px solid rgba(76, 205, 194, 0.15);
  border-radius: 999px;
  color: #9db1b5;
  font-size: 9px;
  font-weight: 750;
}

body.v3 .surface-switch-link.active {
  color: #dffffa;
  background: rgba(24, 173, 159, 0.16);
}

body.v3 .topbar-search select {
  width: 180px;
  min-height: 38px;
}

body.v3 .topbar-search-icon {
  display: none;
}

body.v3 .topbar-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(126, 226, 218, 0.14);
  border-radius: 6px;
  color: #d3dfe1;
  background: rgba(10, 20, 28, 0.74);
  box-shadow: none;
  font-size: 11px;
}

body.v3 button.topbar-pill {
  cursor: pointer;
}

body.v3 .user-menu {
  position: relative;
}

body.v3 .user-menu-trigger {
  padding: 0;
  border: 0;
  background: transparent;
}

body.v3 .user-chip img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}

body.v3 .user-chip div {
  min-width: 0;
  display: grid;
}

body.v3 .user-chip strong,
body.v3 .user-chip small {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.v3 .user-chip strong { font-size: 12px; }
body.v3 .user-chip small { font-size: 9px; }

body.v3 .user-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 180px;
  padding: 7px;
  border: 1px solid var(--v3-line);
  border-radius: 6px;
  background: #071017;
  box-shadow: var(--v3-shadow);
}

body.v3 .user-menu-link {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  color: #c9d5d8;
  background: transparent;
  font: inherit;
  font-size: 12px;
}

body.v3 .user-menu-link:hover {
  background: rgba(36, 170, 159, 0.12);
}

body.v3 .page {
  min-width: 0;
  padding: 18px;
}

body.v3 .workspace-grid,
body.v3 .v2-dashboard-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  padding: 0;
  background: transparent !important;
}

body.v3 .v2-dashboard-page::before,
body.v3 .v2-dashboard-page::after,
body.v3 .v2-admin-page::before,
body.v3 .v2-admin-page::after,
body.v3 .v2-admin-command-center::before,
body.v3 .v2-admin-command-center::after,
body.v3 .workspace-hero::before,
body.v3 [data-v2-reference]::before {
  content: none !important;
  background-image: none !important;
}

body.v3 .workspace-main,
body.v3 .workspace-rail {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}

body.v3 .workspace-hero {
  min-height: 218px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 26px;
  background:
    linear-gradient(100deg, rgba(7, 18, 25, 0.96), rgba(7, 18, 25, 0.54)),
    url("/public/images/landing-cavern-v2.jpg") center / cover no-repeat !important;
}

body.v3 .workspace-hero > * {
  min-width: 0;
}

body.v3 .workspace-actions {
  flex-wrap: wrap;
}

body.v3 .metric-inline-grid {
  width: 100%;
}

body[data-surface="admin"] .workspace-hero {
  background:
    linear-gradient(100deg, rgba(7, 18, 25, 0.97), rgba(7, 18, 25, 0.66)),
    url("/public/images/ancient-fortress-cavern.webp") center / cover no-repeat !important;
}

body.v3 .resource-balance-grid,
body.v3 .server-balance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

body.v3 .resource-balance-card,
body.v3 .server-balance-grid > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(95, 204, 196, 0.12);
  border-radius: 5px;
  background: rgba(5, 13, 18, 0.66);
}

body.v3 .resource-balance-card strong,
body.v3 .server-balance-grid strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}

body.v3 .server-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 14px;
}

body.v3 .server-card {
  padding: 18px;
  background: linear-gradient(150deg, rgba(13, 27, 37, 0.94), rgba(7, 15, 22, 0.94));
}

body.v3 .server-card.active {
  border-color: rgba(69, 203, 133, 0.28);
}

body.v3 .server-card.suspended {
  border-color: rgba(225, 97, 97, 0.3);
}

body.v3 .server-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

body.v3 .server-meta {
  margin: 14px 0;
  color: var(--v3-muted);
  font-size: 12px;
  line-height: 1.55;
}

body.v3 .server-meta p:last-child {
  margin-bottom: 0;
}

body.v3 .empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 28px;
  border: 1px dashed rgba(110, 198, 193, 0.22);
  border-radius: 6px;
  color: var(--v3-muted);
  background: rgba(5, 13, 18, 0.46);
  text-align: center;
}

body.v3 .chart-list {
  display: grid;
  gap: 10px;
}

body.v3 .chart-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 10px;
  color: #aebec2;
  font-size: 11px;
}

body.v3 .chart-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(127, 165, 171, 0.12);
}

body.v3 .chart-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--v3-teal), var(--v3-cyan));
}

/* Tables, dialogs and notices */
body.v3 .table-wrap,
body.v3 .table-scroll,
body.v3 .responsive-table {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(120, 190, 188, 0.12);
  border-radius: 6px;
}

body.v3 table {
  width: 100%;
  border-collapse: collapse;
  color: #c8d4d6;
  font-size: 12px;
}

body.v3 th,
body.v3 td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(119, 174, 178, 0.1);
  text-align: left;
  vertical-align: middle;
}

body.v3 th {
  color: #89a1a7;
  background: rgba(4, 11, 16, 0.72);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.v3 tbody tr:hover {
  background: rgba(39, 151, 143, 0.06);
}

body.v3 .flash,
body.v3 .alert,
body.v3 .notice-bar {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(71, 205, 195, 0.24);
  border-radius: 6px;
  background: rgba(10, 27, 33, 0.9);
}

body.v3 dialog,
body.v3 .modal,
body.v3 .dialog-panel {
  border: 1px solid rgba(74, 215, 203, 0.32);
  border-radius: var(--v3-radius);
  color: var(--v3-text);
  background: #081119;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56);
}

body.v3 dialog::backdrop,
body.v3 .modal-backdrop {
  background: rgba(0, 4, 7, 0.72);
  backdrop-filter: blur(8px);
}

/* Error and maintenance */
body.v3 .v2-error-page,
body.v3 .maintenance-page {
  min-height: 690px;
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(3, 7, 11, 0.52), rgba(3, 7, 11, 0.9)),
    url("/public/images/ancient-fortress-cavern.webp") center / cover no-repeat !important;
}

body.v3 .v2-error-page .auth-card,
body.v3 .maintenance-page .panel-card {
  justify-self: center;
  max-width: 620px;
}

/* Manual checkout and premium catalog */
body.v3 .premium-order-page,
body.v3 .admin-plan-tier {
  display: grid;
  gap: 18px;
}

body.v3 .premium-order-page {
  padding: 0;
}

body.v3 .premium-order-hero {
  min-height: 310px;
}

body.v3 .premium-order-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
  align-items: start;
}

body.v3 .premium-order-summary {
  position: sticky;
  top: 108px;
}

body.v3 .premium-order-qr {
  width: min(100%, 360px);
  height: auto;
  aspect-ratio: 1;
  display: block;
  margin: 20px auto;
  padding: 10px;
  border: 1px solid rgba(67, 213, 202, 0.28);
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

body.v3 .premium-order-upi {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(229, 183, 84, 0.22);
  border-radius: 6px;
  background: rgba(73, 54, 16, 0.18);
}

body.v3 .premium-order-upi span,
body.v3 .premium-order-upi small {
  color: var(--v3-muted);
  font-size: 11px;
}

body.v3 .premium-order-upi strong {
  overflow-wrap: anywhere;
  color: #fff3cf;
}

body.v3 .admin-plan-create {
  margin-top: 16px;
}

body.v3 .admin-plan-tier {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--v3-line);
  scroll-margin-top: 112px;
}

body.v3 .admin-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.v3 .admin-plan-card {
  min-width: 0;
}

body.v3 .admin-plan-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.v3 .admin-plan-form .full-width,
body.v3 .admin-plan-form > button {
  grid-column: 1 / -1;
}

body.v3 .admin-plan-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(127, 163, 170, 0.12);
}

@media (max-width: 1180px) {
  .v3-home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
    padding: 46px 34px;
  }

  .v3-home-hero h1 {
    font-size: 46px;
  }

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

  body.v3 .workspace-grid,
  body.v3 .v2-dashboard-page {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  body.v3 .topbar-search,
  body.v3 .topbar-pill {
    display: none;
  }

  body.v3 .admin-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body.v3 .guest-nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  body.v3 .guest-menu-toggle {
    display: block;
  }

  body.v3 .guest-links,
  body.v3 .guest-auth-actions {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    align-items: stretch;
    justify-content: stretch;
  }

  body.v3 .guest-links.is-open,
  body.v3 .guest-auth-actions.is-open,
  body.v3 .guest-menu-toggle[aria-expanded="true"] ~ .guest-links,
  body.v3 .guest-menu-toggle[aria-expanded="true"] ~ .guest-auth-actions {
    display: grid;
  }

  body.v3 .guest-links > a,
  body.v3 .guest-auth-actions > a,
  body.v3 .guest-auth-form,
  body.v3 .guest-auth-form .button {
    width: 100%;
  }

  .v3-home-hero,
  .v3-split,
  body.v3 .v2-public-hero-grid,
  body.v3 .v2-public-section-row,
  body.v3 .v2-public-section-row.reverse,
  body.v3 .v2-auth-page,
  body.v3 .auth-grid,
  body.v3 .auth-wrap {
    grid-template-columns: 1fr;
  }

  body.v3 .premium-order-grid,
  body.v3 .admin-plan-form,
  body.v3 .register-form-grid {
    grid-template-columns: 1fr;
  }

  body.v3 .premium-order-summary {
    position: static;
  }

  .v3-home-hero {
    min-height: 0;
  }

  .v3-console-stage {
    min-height: 420px;
  }

  body.v3 .v2-public-route-hero,
  body.v3 .v2-public-hero,
  body.v3 .v2-auth-page,
  body.v3 .auth-grid,
  body.v3 .auth-wrap {
    padding: 34px;
  }

  body.v3 .v2-public-art-stage {
    min-height: 160px;
  }

  body.v3 .auth-card,
  body.v3 .auth-form-card,
  body.v3 .auth-panel {
    justify-self: stretch;
    width: 100%;
  }

  body.v3 .shell {
    grid-template-columns: 1fr;
    padding: 0;
  }

  body.v3 .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    width: min(86vw, 320px);
    height: 100vh;
    border-radius: 0;
    transform: translateX(-102%);
    transition: transform 220ms ease;
  }

  body.v3 .sidebar.open,
  body.v3 .sidebar.is-open,
  body.v3.nav-open .sidebar {
    transform: translateX(0);
  }

  body.v3 .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    border: 0;
    background: rgba(2, 7, 11, 0.76);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  body.v3.nav-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.v3 .sidebar-close,
  body.v3 .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.v3 .sidebar-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--v3-line);
    border-radius: 5px;
    color: #d8e4e6;
    background: rgba(10, 20, 28, 0.8);
  }

  body.v3 .sidebar-toggle {
    width: 42px;
    height: 42px;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--v3-line);
    border-radius: 5px;
    background: #0b171f;
  }

  body.v3 .sidebar-toggle span {
    width: 100%;
    height: 2px;
    background: #d8e4e6;
  }

  body.v3 .content-shell {
    border: 0;
    border-radius: 0;
  }

  body.v3 .topbar {
    top: 0;
  }

  body.v3 .workspace-grid,
  body.v3 .v2-dashboard-page {
    grid-template-columns: 1fr;
  }

  body.v3 .workspace-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.v3 h1 { font-size: 30px; }
  body.v3 h2 { font-size: 24px; }

  body.v3 .guest-shell {
    width: min(calc(100% - 20px), var(--v3-max));
    padding-top: 10px;
  }

  body.v3 .site-announcement {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: start;
    gap: 5px 9px;
    overflow: hidden;
    white-space: normal;
    line-height: 1.3;
  }

  body.v3 .site-announcement > span:not(.site-announcement-pulse) {
    display: none;
  }

  body.v3 .site-announcement a {
    grid-column: 2;
    font-size: 11px;
  }

  body.v3 .guest-nav {
    top: 6px;
    min-height: 60px;
    padding: 8px 10px;
  }

  body.v3 .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  body.v3 .brand-wordmark { font-size: 16px; }

  .v3-home-hero {
    padding: 32px 22px 26px;
  }

  .v3-home-hero h1 {
    margin-top: 18px;
    font-size: 38px;
  }

  .v3-hero-trust,
  .v3-feature-grid,
  body.v3 .stats-grid,
  body.v3 .metric-grid,
  body.v3 .section-grid,
  body.v3 .card-grid,
  body.v3 .public-card-grid,
  body.v3 .v2-plan-grid,
  body.v3 .plan-grid,
  body.v3 .pricing-grid,
  body.v3 .resource-balance-grid,
  body.v3 .server-balance-grid,
  body.v3 .workspace-rail,
  body.v3 .guest-footer-grid {
    grid-template-columns: 1fr;
  }

  .v3-console-stage {
    min-height: 370px;
  }

  .v3-console {
    min-height: 0;
    padding: 17px;
    transform: none;
  }

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

  .v3-console-stat {
    min-height: 64px;
    padding: 8px;
  }

  .v3-console-stat strong { font-size: 16px; }
  .v3-console-lines { min-height: 132px; font-size: 10px; }

  .v3-section {
    padding: 52px 0;
  }

  .v3-section-head h2 {
    font-size: 28px;
  }

  body.v3 .v2-public-route-hero,
  body.v3 .v2-public-hero,
  body.v3 .v2-auth-page,
  body.v3 .auth-grid,
  body.v3 .auth-wrap,
  body.v3 .v2-pricing-hero,
  body.v3 .pricing-hero {
    min-height: 0;
    padding: 28px 20px;
  }

  body.v3 .v2-public-copy h2,
  body.v3 .auth-intro h1,
  body.v3 .auth-copy h1 {
    font-size: 32px;
  }

  body.v3 .v2-public-console-strip,
  body.v3 .v2-plan-specs,
  body.v3 .plan-specs {
    grid-template-columns: 1fr;
    transform: none;
  }

  body.v3 .v2-public-contact-band,
  body.v3 .v2-public-signal-section,
  body.v3 .v2-public-faq-section,
  body.v3 .v2-public-followup,
  body.v3 .v2-public-section-row,
  body.v3 .v2-tier-section,
  body.v3 .tier-section,
  body.v3 .panel-card {
    padding: 18px;
  }

  body.v3 .v2-tier-tabs,
  body.v3 .tier-tabs {
    top: 70px;
    grid-template-columns: 1fr;
  }

  body.v3 .v2-tier-tab,
  body.v3 .tier-tab {
    min-height: 42px;
  }

  body.v3 .topbar {
    min-height: 66px;
    padding: 10px 12px;
  }

  body.v3 .topbar-main > div,
  body.v3 .topbar-actions .user-chip div,
  body.v3 .surface-switch,
  body.v3 .topbar-subtitle,
  body.v3 .topbar .eyebrow {
    display: none;
  }

  body.v3 .topbar-mobile-title {
    display: block;
    font-weight: 750;
  }

  body.v3 .page {
    padding: 12px;
  }

  body.v3 .workspace-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 20px;
  }

  body.v3 .server-create-layout {
    grid-template-columns: 1fr;
  }

  body.v3 .panel-header,
  body.v3 .v2-tier-heading,
  body.v3 .tier-heading {
    display: grid;
  }

  body.v3 .button-row,
  body.v3 .workspace-actions {
    align-items: stretch;
  }

  body.v3 .button-row .button,
  body.v3 .workspace-actions .button,
  body.v3 .button-row form,
  body.v3 .button-row form button {
    width: 100%;
  }

  body.v3 .chart-row {
    grid-template-columns: 70px minmax(100px, 1fr) 58px;
  }

  body.v3 .guest-footer-link-list {
    grid-template-columns: 1fr;
  }
}

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

  body.v3 *,
  body.v3 *::before,
  body.v3 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  body.v3 [data-reveal],
  .js body.v3 [data-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}

/* V3.1 structural system */
:root {
  --v31-orange: #ff8a2b;
  --v31-orange-strong: #ff6b1a;
  --v31-orange-soft: rgba(255, 138, 43, 0.14);
  --v31-emerald: #2ed17f;
  --v31-gold: #efba48;
  --v31-magenta: #d94ee8;
  --v31-cyan: #43c8d6;
  --v31-graphite: #171b22;
  --v31-panel: rgba(15, 18, 24, 0.94);
  --v31-panel-soft: rgba(18, 22, 29, 0.84);
  --v31-line: rgba(255, 255, 255, 0.11);
}

.v3 {
  --v3-cyan: var(--v31-cyan);
  --v3-teal: var(--v31-emerald);
  --v3-gold: var(--v31-gold);
  --v3-line: var(--v31-line);
  letter-spacing: 0;
}

.button {
  min-height: 42px;
  border-radius: 6px;
  letter-spacing: 0;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button-primary,
.v3 .button-primary,
body.v3 .button-primary,
body.v3 button.button-primary {
  color: #150c04;
  border-color: #ffad5f;
  background: linear-gradient(180deg, #ffa348, var(--v31-orange));
  box-shadow: 0 8px 24px rgba(255, 112, 26, 0.22), inset 0 1px rgba(255, 255, 255, 0.34);
}

.button-primary:hover,
.v3 .button-primary:hover,
body.v3 .button-primary:hover,
body.v3 button.button-primary:hover {
  color: #120a03;
  border-color: #ffd2a2;
  background: linear-gradient(180deg, #ffb15f, var(--v31-orange-strong));
  box-shadow: 0 12px 30px rgba(255, 112, 26, 0.32), inset 0 1px rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
}

.button-secondary,
.v3 .button-secondary {
  color: #eef2f5;
  border-color: rgba(255, 255, 255, 0.17);
  background: linear-gradient(180deg, #262c35, #1a1f27);
  box-shadow: none;
}

.button-secondary:hover,
.v3 .button-secondary:hover {
  color: #fff;
  border-color: rgba(255, 138, 43, 0.46);
  background: linear-gradient(180deg, #303640, #20252d);
  transform: translateY(-1px);
}

.button-ghost,
.v3 .button-ghost {
  color: #b7c0c9;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.button-danger,
.danger-button {
  color: #fff;
  border-color: rgba(255, 88, 88, 0.55);
  background: #a92e35;
}

.guest-nav {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(8, 11, 15, 0.93);
}

.guest-links a,
.guest-auth-actions > a {
  color: #b9c1c9;
}

.guest-links a:hover,
.guest-links a[aria-current="page"],
.guest-auth-actions > a:hover {
  color: #fff;
}

.sidebar {
  border-right-color: rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, #11151b 0%, #0b0e12 100%);
}

.sidebar-hero {
  border-color: rgba(255, 138, 43, 0.18);
  background: linear-gradient(135deg, rgba(255, 138, 43, 0.09), rgba(255, 255, 255, 0.02));
}

body.v3 .sidebar-group {
  margin-top: 14px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(9, 13, 18, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body.v3 .sidebar-label {
  margin: 0 4px 8px;
  color: rgba(73, 204, 193, 0.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

body.v3 .sidebar-link {
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  color: #b7c3ca;
  background: rgba(255, 255, 255, 0.018);
}

body.v3 .sidebar-link:hover {
  color: #eef2f5;
  border-color: rgba(73, 204, 193, 0.2);
  background: rgba(73, 204, 193, 0.075);
}

body.v3 .sidebar-link.active {
  color: #fff;
  border-color: rgba(255, 138, 43, 0.34);
  border-left-color: var(--v31-orange);
  background: linear-gradient(90deg, rgba(255, 138, 43, 0.16), rgba(255, 255, 255, 0.035));
  box-shadow: inset 2px 0 0 var(--v31-orange), 0 8px 24px rgba(0, 0, 0, 0.18);
}

body.v3 .sidebar-link .link-icon {
  color: rgba(73, 204, 193, 0.88);
  background: rgba(73, 204, 193, 0.08);
}

body.v3 .sidebar-link.active .link-icon,
body.v3 .sidebar-link.is-create-link .link-icon {
  color: var(--v31-orange);
  background: var(--v31-orange-soft);
}

body.v3 .sidebar-more {
  border-color: rgba(255, 255, 255, 0.07);
}

body.v3 .sidebar-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(73, 204, 193, 0.9);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  list-style: none;
}

body.v3 .sidebar-more > summary::-webkit-details-marker {
  display: none;
}

body.v3 .sidebar-more > summary svg {
  width: 16px;
  transition: transform 180ms ease;
}

body.v3 .sidebar-more[open] > summary svg {
  transform: rotate(180deg);
}

body.v3 .sidebar-more .sidebar-link:first-of-type {
  margin-top: 10px;
}

.sidebar-logout-bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar {
  border-bottom-color: rgba(255, 255, 255, 0.09);
  background: rgba(10, 13, 18, 0.9);
}

.topbar-pill {
  border-color: rgba(255, 138, 43, 0.2);
  background: rgba(255, 138, 43, 0.07);
}

.topbar-pill strong {
  color: var(--v31-gold);
}

.v31-mobile-nav {
  display: none;
}

/* Pricing gateway and tier routes */
.v31-pricing-gateway,
.v31-premium-page,
.v31-tier-page,
.v31-discord-page,
.v31-team-page,
.v31-legal-page {
  position: relative;
  isolation: isolate;
  max-width: 1240px;
  margin: 0 auto;
}

.v31-pricing-gateway {
  min-height: calc(100vh - 180px);
  padding: 78px 42px 50px;
  overflow: hidden;
  border: 1px solid var(--v31-line);
  border-radius: 8px;
  background: #0c0f14;
}

.v31-pricing-scene,
.v31-premium-scene,
.v31-discord-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/public/images/optimized/ancient-fortress-cavern-1920.avif");
  background-position: center;
  background-size: cover;
  opacity: 0.42;
}

.v31-pricing-gateway::before,
.v31-premium-page::before,
.v31-discord-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.28), rgba(8, 10, 14, 0.96) 82%), radial-gradient(circle at 50% 24%, rgba(255, 138, 43, 0.12), transparent 40%);
}

.v31-pricing-intro {
  max-width: 820px;
  margin: 0 auto 44px;
  text-align: center;
}

.v31-pricing-intro h1,
.v31-tier-hero h1,
.v31-premium-hero h1,
.v31-discord-panel h1,
.v31-legal-header h1 {
  margin: 8px 0 16px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 48px;
  line-height: 1.06;
  letter-spacing: 0;
}

.v31-trust-line {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 24px;
}

.v31-trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c8d0d7;
  font-size: 13px;
}

.v31-trust-line svg {
  width: 17px;
  color: var(--v31-emerald);
}

.v31-tier-gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.v31-tier-gateway-card {
  --tier-accent: var(--v31-emerald);
  position: relative;
  display: grid;
  min-height: 360px;
  padding: 24px;
  overflow: hidden;
  color: #eef3f6;
  border: 1px solid color-mix(in srgb, var(--tier-accent) 46%, transparent);
  border-radius: 8px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tier-accent) 10%, #151920), rgba(11, 14, 19, 0.96) 58%);
  box-shadow: inset 0 1px color-mix(in srgb, var(--tier-accent) 26%, transparent), 0 24px 50px rgba(0, 0, 0, 0.28);
  transform-style: preserve-3d;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.tier-budget {
  --tier-accent: var(--v31-gold);
}

.tier-ultimate {
  --tier-accent: var(--v31-magenta);
}

.v31-tier-gateway-card::after,
.v31-plan-card::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 35%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  transform: skewX(-16deg);
}

.v31-tier-gateway-card.is-visible::after,
.v31-plan-card.is-visible::after {
  animation: v31-card-sweep 900ms 220ms ease-out both;
}

@keyframes v31-card-sweep {
  from { left: -70%; }
  to { left: 145%; }
}

.v31-tier-gateway-card:hover {
  color: #fff;
  border-color: color-mix(in srgb, var(--tier-accent) 82%, white 10%);
  box-shadow: 0 28px 70px color-mix(in srgb, var(--tier-accent) 18%, transparent), inset 0 1px color-mix(in srgb, var(--tier-accent) 40%, transparent);
  transform: translateY(-8px) rotateX(1.5deg);
}

.v31-tier-index {
  position: absolute;
  top: 18px;
  right: 20px;
  color: color-mix(in srgb, var(--tier-accent) 70%, white 20%);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.v31-tier-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--tier-accent);
  border: 1px solid color-mix(in srgb, var(--tier-accent) 48%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--tier-accent) 12%, transparent);
}

.v31-tier-icon svg {
  width: 28px;
  height: 28px;
}

.v31-tier-copy {
  align-self: end;
}

.v31-tier-copy small,
.v31-tier-copy span,
.v31-tier-price {
  display: block;
}

.v31-tier-copy small {
  margin-bottom: 8px;
  color: var(--tier-accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.v31-tier-copy strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
}

.v31-tier-copy span {
  min-height: 58px;
  color: #aab4bd;
  line-height: 1.55;
}

.v31-tier-price {
  margin-top: 18px;
  color: #eef2f4;
  font-weight: 700;
}

.v31-tier-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  margin-top: 18px;
  padding-top: 16px;
  color: var(--tier-accent);
  border-top: 1px solid color-mix(in srgb, var(--tier-accent) 25%, transparent);
  font-weight: 800;
}

.v31-tier-open svg {
  width: 18px;
}

.v31-pricing-note {
  max-width: 760px;
  margin: 30px auto 0;
  color: #8f99a2;
  font-size: 13px;
  text-align: center;
}

.v31-tier-page {
  --tier-accent: var(--v31-emerald);
  padding: 34px 0 80px;
}

.v31-tier-page.tier-budget {
  --tier-accent: var(--v31-gold);
}

.v31-tier-page.tier-ultimate {
  --tier-accent: var(--v31-magenta);
}

.v31-tier-route-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--v31-line);
  border-radius: 7px;
  background: rgba(13, 16, 21, 0.9);
}

.v31-tier-route-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 7px;
  padding: 0 14px;
  color: #929ca5;
  border-radius: 5px;
  white-space: nowrap;
}

.v31-tier-route-nav a[aria-current="page"] {
  color: #0d0b08;
  background: var(--tier-accent);
  font-weight: 800;
}

.v31-tier-route-nav svg {
  width: 16px;
}

.v31-tier-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  margin-bottom: 28px;
  padding: 38px;
  border: 1px solid color-mix(in srgb, var(--tier-accent) 38%, transparent);
  border-radius: 8px;
  background: linear-gradient(130deg, color-mix(in srgb, var(--tier-accent) 12%, #141820), rgba(11, 14, 18, 0.94));
}

.v31-tier-hero-signal {
  display: grid;
  min-width: 170px;
  min-height: 148px;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--tier-accent);
  border: 1px solid color-mix(in srgb, var(--tier-accent) 35%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--tier-accent) 7%, transparent);
}

.v31-tier-hero-signal svg {
  width: 42px;
  height: 42px;
}

.v31-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.v31-plan-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 590px;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tier-accent) 35%, var(--v31-line));
  border-radius: 8px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tier-accent) 8%, #171b22), rgba(11, 14, 18, 0.97) 46%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.25);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.v31-plan-card:hover {
  border-color: color-mix(in srgb, var(--tier-accent) 70%, white 8%);
  box-shadow: 0 30px 70px color-mix(in srgb, var(--tier-accent) 12%, rgba(0, 0, 0, 0.45));
  transform: translateY(-6px);
}

.v31-plan-card.is-popular {
  border-width: 2px;
}

.v31-plan-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.v31-plan-badge,
.v31-popular-mark {
  color: var(--tier-accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.v31-popular-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--tier-accent) 40%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--tier-accent) 9%, transparent);
}

.v31-plan-popular svg,
.v31-popular-mark svg {
  width: 14px;
}

.v31-plan-card h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 25px;
}

.v31-plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 30px 0 22px;
}

.v31-plan-price strong {
  color: #fff;
  font-size: 42px;
}

.v31-plan-price span {
  color: #87919a;
}

.v31-plan-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.v31-plan-resources > div {
  display: grid;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
}

.v31-plan-resources svg {
  width: 17px;
  color: var(--tier-accent);
}

.v31-plan-resources span {
  margin-top: 9px;
  color: #7f8992;
  font-size: 11px;
}

.v31-plan-resources strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #e7edf1;
  font-size: 14px;
}

.v31-plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px 0;
  color: #aab3bb;
  font-size: 12px;
}

.v31-plan-meta span,
.v31-plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v31-plan-meta svg,
.v31-plan-features svg {
  width: 15px;
  flex: 0 0 auto;
  color: var(--tier-accent);
}

.v31-plan-features {
  display: grid;
  gap: 11px;
  margin: 0 0 26px;
  padding: 20px 0 0;
  color: #bec6cd;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}

.v31-plan-select {
  width: 100%;
  margin-top: auto;
}

.v31-tier-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding: 22px 0;
  color: #89939c;
  border-top: 1px solid var(--v31-line);
}

.v31-tier-footer a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--v31-orange);
  font-weight: 700;
}

.v31-tier-footer svg,
.text-link svg {
  width: 16px;
}

/* Premium overview */
.v31-premium-page {
  min-height: 720px;
  padding: 74px 52px;
  overflow: hidden;
  border: 1px solid var(--v31-line);
  border-radius: 8px;
  background: #0b0e12;
}

.v31-premium-hero {
  max-width: 760px;
}

.v31-premium-tier-list {
  display: grid;
  gap: 10px;
  margin-top: 50px;
}

.v31-premium-tier-row {
  --tier-accent: var(--v31-emerald);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  color: #c8d0d6;
  border: 1px solid color-mix(in srgb, var(--tier-accent) 26%, var(--v31-line));
  border-radius: 7px;
  background: rgba(14, 17, 22, 0.85);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.v31-premium-tier-row:hover {
  color: #fff;
  border-color: color-mix(in srgb, var(--tier-accent) 58%, transparent);
  background: color-mix(in srgb, var(--tier-accent) 7%, #11151b);
  transform: translateX(5px);
}

.v31-premium-tier-row > span,
.v31-premium-tier-row > svg,
.v31-premium-tier-row small {
  color: var(--tier-accent);
}

.v31-premium-tier-row strong,
.v31-premium-tier-row p,
.v31-premium-tier-row small {
  display: block;
}

.v31-premium-tier-row strong {
  margin: 3px 0 5px;
  color: #fff;
  font-size: 21px;
}

.v31-premium-tier-row p {
  margin: 0;
  color: #929da6;
}

.v31-purchase-path {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--v31-line);
}

.v31-purchase-path ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: purchase;
}

.v31-purchase-path li {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--v31-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  counter-increment: purchase;
}

.v31-purchase-path li::before {
  content: "0" counter(purchase);
  display: block;
  margin-bottom: 18px;
  color: var(--v31-orange);
  font-family: "IBM Plex Mono", monospace;
}

.v31-purchase-path strong,
.v31-purchase-path span {
  display: block;
}

.v31-purchase-path span {
  margin-top: 6px;
  color: #89939c;
  font-size: 12px;
}

/* Discord */
.v31-discord-page {
  display: grid;
  min-height: 690px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--v31-line);
  border-radius: 8px;
  background: #0a0d11;
}

.v31-discord-scene {
  background-image: url("/public/images/optimized/global-cavern-background-1920.avif");
  opacity: 0.5;
}

.v31-discord-panel {
  width: min(650px, calc(100% - 40px));
  padding: 46px;
  text-align: center;
  border: 1px solid rgba(255, 138, 43, 0.35);
  border-radius: 8px;
  background: rgba(11, 14, 19, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.v31-discord-mark,
.v31-consent-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  place-items: center;
  color: var(--v31-orange);
  border: 1px solid rgba(255, 138, 43, 0.36);
  border-radius: 7px;
  background: var(--v31-orange-soft);
}

.v31-discord-mark svg,
.v31-consent-icon svg {
  width: 30px;
  height: 30px;
}

.v31-discord-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 20px;
}

.v31-discord-panel code {
  display: block;
  padding: 12px;
  overflow-wrap: anywhere;
  color: #cbd3da;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.25);
}

.v31-discord-note {
  margin: 16px 0 0;
  color: #78828b;
  font-size: 12px;
}

/* Leadership team */
.v31-team-section {
  width: min(1160px, calc(100vw - 36px));
  margin-right: auto;
  margin-left: auto;
}

.v31-team-page {
  padding: 28px 0 72px;
}

.v31-team-shell {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(38px, 4.5vw, 62px) clamp(22px, 3.5vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 18%, rgba(34, 211, 238, 0.16), transparent 26%),
    radial-gradient(circle at 88% 76%, rgba(249, 115, 22, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(5, 9, 20, 0.98), rgba(7, 17, 31, 0.94) 52%, rgba(3, 7, 14, 0.98)),
    url("/public/images/v2/35-v2-hero-background-clean.webp") center / cover;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 90px rgba(0, 0, 0, 0.42),
    0 0 70px rgba(34, 211, 238, 0.08);
}

.v31-team-shell::before,
.v31-team-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.v31-team-shell::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 28%, rgba(0, 0, 0, 0.68), transparent 72%);
}

.v31-team-shell::after {
  width: 360px;
  height: 360px;
  right: -140px;
  top: -120px;
  border-radius: 40px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), transparent 58%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.045) 0 10px, transparent 10px 20px);
  opacity: 0.28;
  transform: rotate(18deg);
}

.v31-team-shell > * {
  position: relative;
  z-index: 1;
}

.v31-team-header {
  max-width: 860px;
  margin: 0 auto clamp(24px, 3vw, 34px);
  text-align: center;
}

.v31-team-header .eyebrow {
  color: #22d3ee;
  letter-spacing: 0.18em;
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.56);
}

.v31-team-header h1,
.v31-team-header h2 {
  margin: 10px 0 14px;
  color: #f8fbff;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.v31-team-header h1 span,
.v31-team-header h2 span {
  background: linear-gradient(90deg, #22d3ee, #00e5ff 46%, #ff9f2f 70%, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.v31-team-header .lead {
  max-width: 700px;
  margin: 0 auto;
  color: #d4dee7;
}

.v31-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 860px);
  margin: 0 auto;
  gap: clamp(18px, 2vw, 24px);
}

.v31-team-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 100%;
  padding: clamp(14px, 1.5vw, 18px);
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 20px;
  background:
    linear-gradient(155deg, rgba(8, 16, 32, 0.72), rgba(3, 8, 18, 0.86)),
    radial-gradient(circle at 16% 0%, rgba(34, 211, 238, 0.13), transparent 42%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 58px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.v31-team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.1) 48%, transparent 62%);
  opacity: 0.16;
}

.v31-team-card--founder {
  border-color: rgba(249, 115, 22, 0.25);
}

.v31-team-card:hover,
.v31-team-card:focus-within {
  border-color: rgba(34, 211, 238, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 28px 72px rgba(0, 0, 0, 0.36),
    0 0 42px rgba(34, 211, 238, 0.14);
  transform: translateY(-6px);
}

.v31-team-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 24%, rgba(34, 211, 238, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(6, 18, 33, 0.95), rgba(2, 6, 14, 0.98));
}

.v31-team-card--founder .v31-team-media,
.v31-team-card--marketing .v31-team-media {
  border-color: rgba(249, 115, 22, 0.26);
}

.v31-team-media picture,
.v31-team-media img {
  display: block;
  width: 100%;
}

.v31-team-media picture {
  overflow: hidden;
  aspect-ratio: 4 / 3.25;
}

.v31-team-media img {
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 180ms ease;
}

.v31-team-card--cofounder .v31-team-media img,
.v31-team-card--marketing .v31-team-media img {
  object-fit: contain;
  object-position: center center;
  background:
    radial-gradient(circle at 50% 26%, rgba(34, 211, 238, 0.16), transparent 40%),
    linear-gradient(145deg, rgba(14, 34, 54, 0.98), rgba(3, 8, 18, 0.98));
}

.v31-team-card:hover .v31-team-media img {
  transform: scale(1.03);
}

.v31-team-avatar-placeholder {
  display: grid;
  min-height: clamp(180px, 18vw, 245px);
  aspect-ratio: 4 / 3.25;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(34, 211, 238, 0.26), transparent 28%),
    linear-gradient(180deg, rgba(24, 47, 71, 0.98), rgba(5, 12, 24, 0.98)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 10px, transparent 10px 20px);
}

.v31-team-avatar-placeholder svg {
  width: clamp(58px, 6vw, 84px);
  height: clamp(58px, 6vw, 84px);
  color: #22d3ee;
  opacity: 0.9;
  filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.52));
}

.v31-team-corner-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(249, 115, 22, 0.58);
  border-radius: 15px;
  color: #ff9f2f;
  background: rgba(15, 11, 7, 0.76);
  box-shadow: 0 0 22px rgba(249, 115, 22, 0.2);
}

.v31-team-corner-badge--cyan {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.58);
  background: rgba(5, 18, 28, 0.78);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.24);
}

.v31-team-corner-badge svg {
  width: 20px;
  height: 20px;
}

.v31-team-body {
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 18px 6px 4px;
  text-align: center;
}

.v31-team-body h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.v31-team-role {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  color: #ff9f2f;
  border: 1px solid rgba(249, 115, 22, 0.58);
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.08);
  font-size: 14px;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 20px rgba(249, 115, 22, 0.08);
}

.v31-team-role--cyan {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.58);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 20px rgba(34, 211, 238, 0.08);
}

.v31-team-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 16px 0;
  color: #22d3ee;
}

.v31-team-divider::before,
.v31-team-divider::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.34), transparent);
}

.v31-team-divider span {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.v31-team-body p {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  color: #d8e0e8;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
}

.v31-team-body p svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  color: #ff9f2f;
  border: 1px solid rgba(249, 115, 22, 0.42);
  border-radius: 14px;
  background: rgba(249, 115, 22, 0.06);
}

.v31-team-card:not(.v31-team-card--founder):not(.v31-team-card--marketing) .v31-team-body p svg {
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.06);
}

.v31-team-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 46px);
}

/* Legal documents and consent */
.v31-legal-page {
  padding: 28px 0 72px;
}

.v31-legal-header {
  padding: 42px;
  border: 1px solid var(--v31-line);
  border-radius: 8px;
  background: linear-gradient(125deg, rgba(255, 138, 43, 0.08), rgba(16, 19, 25, 0.96) 48%);
}

.v31-legal-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.v31-legal-meta span,
.v31-legal-meta button {
  min-height: 34px;
  padding: 7px 11px;
  color: #aeb7bf;
  border: 1px solid var(--v31-line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
}

.v31-legal-meta button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.v31-legal-meta svg {
  width: 15px;
}

.v31-legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 24px;
}

.v31-legal-nav {
  position: sticky;
  top: 100px;
  display: grid;
  max-height: calc(100vh - 125px);
  gap: 4px;
  padding: 18px;
  overflow-y: auto;
  border: 1px solid var(--v31-line);
  border-radius: 7px;
  background: rgba(14, 17, 22, 0.94);
}

.v31-legal-nav > strong {
  margin-bottom: 10px;
  color: #fff;
}

.v31-legal-nav > a {
  padding: 8px;
  color: #89939c;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.35;
}

.v31-legal-nav > a:hover {
  color: #fff;
  background: rgba(255, 138, 43, 0.08);
}

.v31-legal-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--v31-line);
}

.v31-legal-switcher a {
  padding: 7px 4px;
  color: #8d969e;
  border: 1px solid var(--v31-line);
  border-radius: 4px;
  font-size: 11px;
  text-align: center;
}

.v31-legal-switcher a[aria-current="page"] {
  color: #150c04;
  border-color: var(--v31-orange);
  background: var(--v31-orange);
}

.v31-legal-document {
  min-width: 0;
  padding: 38px 46px;
  color: #b5bec6;
  border: 1px solid var(--v31-line);
  border-radius: 8px;
  background: rgba(14, 17, 22, 0.94);
}

.v31-legal-document > section {
  scroll-margin-top: 110px;
  padding: 8px 0 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.v31-legal-document > section + section {
  padding-top: 34px;
}

.v31-legal-document h2 {
  color: #f4f6f8;
  font-size: 23px;
}

.v31-legal-document p,
.v31-legal-document li {
  line-height: 1.75;
}

.v31-legal-document li + li {
  margin-top: 9px;
}

.v31-legal-document th {
  color: #fff;
  background: rgba(255, 138, 43, 0.08);
}

.v31-legal-review-note {
  margin-top: 30px;
  padding: 18px;
  color: #aeb7be;
  border: 1px solid rgba(239, 186, 72, 0.28);
  border-radius: 6px;
  background: rgba(239, 186, 72, 0.06);
}

.v31-legal-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.v31-legal-sources a {
  color: var(--v31-cyan);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.v31-legal-review-note strong {
  color: var(--v31-gold);
}

.v31-consent-page {
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
}

.v31-consent-card {
  width: min(720px, 100%);
  padding: 38px;
  border: 1px solid rgba(255, 138, 43, 0.3);
  border-radius: 8px;
  background: rgba(14, 17, 22, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.v31-consent-card h1 {
  font-size: 32px;
}

.legal-consent-field {
  align-items: flex-start;
  padding: 15px;
  border: 1px solid rgba(255, 138, 43, 0.22);
  border-radius: 6px;
  background: rgba(255, 138, 43, 0.045);
}

.legal-consent-field input {
  margin-top: 3px;
  accent-color: var(--v31-orange);
}

.legal-consent-field span {
  color: #c3cbd2;
  font-size: 13px;
  line-height: 1.55;
}

.legal-consent-field a,
.v31-policy-links a {
  color: var(--v31-orange);
  text-decoration: underline;
}

.v31-policy-links {
  display: flex;
  gap: 16px;
}

.v31-password-safety {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: #7f8992;
  font-size: 12px;
}

.v31-password-safety svg {
  width: 15px;
  color: var(--v31-emerald);
}

/* Dashboard home */
.v31-dashboard-home {
  max-width: 1440px;
  margin: 0 auto;
}

.v31-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(255, 138, 43, 0.18);
  border-radius: 8px;
  background: linear-gradient(125deg, rgba(255, 138, 43, 0.1), rgba(15, 19, 25, 0.94) 42%), url("/public/images/optimized/home-theme-background-1920.avif") center / cover;
}

.v31-dashboard-hero h2 {
  margin: 5px 0 8px;
  color: #fff;
  font-size: 30px;
}

.v31-dashboard-signals {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.v31-dashboard-signals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: rgba(7, 9, 12, 0.52);
}

.v31-dashboard-signals span {
  color: #7f8992;
  font-size: 12px;
}

.v31-dashboard-signals strong {
  color: #f0f3f5;
  overflow-wrap: anywhere;
}

.v31-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 16px;
  margin-top: 16px;
}

.v31-dashboard-main,
.v31-dashboard-rail {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.v31-resource-meter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.v31-resource-meter-grid article {
  display: grid;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
}

.v31-resource-meter-grid svg {
  width: 19px;
  color: var(--v31-emerald);
}

.v31-resource-meter-grid span,
.v31-resource-meter-grid small {
  color: #77818a;
}

.v31-resource-meter-grid span {
  margin-top: 14px;
  font-size: 11px;
  text-transform: uppercase;
}

.v31-resource-meter-grid strong {
  margin: 4px 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 20px;
}

.v31-server-overview {
  position: relative;
  overflow: hidden;
  border-color: rgba(38, 231, 255, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 12%, rgba(38, 231, 255, 0.16), transparent 28%),
    radial-gradient(circle at 86% 84%, rgba(17, 255, 175, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(4, 14, 26, 0.94), rgba(3, 8, 18, 0.98) 54%, rgba(5, 18, 30, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(38, 231, 255, 0.05),
    0 22px 60px rgba(0, 0, 0, 0.34);
}

.v31-server-overview::before,
.v31-server-overview::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.v31-server-overview::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(38, 231, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 231, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 48% 42%, rgba(0, 0, 0, 0.58), transparent 70%);
}

.v31-server-overview::after {
  width: 240px;
  height: 240px;
  right: -80px;
  bottom: -110px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(38, 231, 255, 0.1), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.045) 0 8px, transparent 8px 16px);
  opacity: 0.42;
  transform: rotate(18deg);
}

.v31-server-overview > * {
  position: relative;
  z-index: 1;
}

.v31-server-overview .panel-header {
  align-items: flex-start;
  margin-bottom: 24px;
}

.v31-server-overview .eyebrow {
  color: #27efff;
  letter-spacing: 0.14em;
  text-shadow: 0 0 22px rgba(39, 239, 255, 0.48);
}

.v31-server-overview .panel-header h2 {
  margin-top: 8px;
  color: #f8fbff;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.v31-server-overview .text-link {
  color: #27efff;
  font-weight: 800;
  text-shadow: 0 0 16px rgba(39, 239, 255, 0.32);
  transition: color 160ms ease, transform 160ms ease, text-shadow 160ms ease;
}

.v31-server-overview .text-link:hover,
.v31-server-overview .text-link:focus-visible {
  color: #a8fbff;
  transform: translateX(4px);
  text-shadow: 0 0 24px rgba(39, 239, 255, 0.6);
}

.v31-dashboard-server-list {
  container-type: inline-size;
  display: grid;
  gap: 14px;
}

.v31-dashboard-server-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(390px, 0.9fr) minmax(420px, auto);
  align-items: center;
  gap: 24px;
  min-width: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(117, 211, 255, 0.3);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(12, 30, 48, 0.74), rgba(5, 12, 24, 0.74)),
    radial-gradient(circle at 8% 0%, rgba(45, 239, 255, 0.16), transparent 34%),
    radial-gradient(circle at 78% 100%, rgba(16, 255, 187, 0.1), transparent 28%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(39, 239, 255, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.28);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.v31-dashboard-server-row::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(39, 239, 255, 0.12), transparent),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12), transparent 24%);
  opacity: 0.5;
}

.v31-dashboard-server-row:hover,
.v31-dashboard-server-row:focus-within {
  border-color: rgba(39, 239, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(39, 239, 255, 0.16),
    0 24px 58px rgba(0, 0, 0, 0.36),
    0 0 42px rgba(39, 239, 255, 0.12);
  transform: translateY(-1px);
}

.v31-server-left-zone,
.v31-server-resources,
.v31-server-actions {
  position: relative;
  z-index: 1;
  align-items: center;
}

.v31-server-left-zone {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.v31-server-status {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 86px;
  padding-right: 4px;
  text-transform: capitalize;
}

.v31-server-status > span {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #16ff9b;
  box-shadow: 0 0 0 5px rgba(22, 255, 155, 0.12), 0 0 22px rgba(22, 255, 155, 0.75);
}

.status-suspended .v31-server-status > span {
  background: #ff5964;
  box-shadow: 0 0 0 5px rgba(255, 89, 100, 0.12), 0 0 22px rgba(255, 89, 100, 0.72);
}

.v31-server-status small {
  color: #e6fff7;
  font-size: 13px;
  font-weight: 700;
}

.v31-server-avatar {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  place-items: center;
  border: 1px solid rgba(39, 239, 255, 0.42);
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 4%, rgba(39, 239, 255, 0.38), transparent 30%),
    linear-gradient(145deg, rgba(39, 239, 255, 0.14), rgba(7, 18, 31, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(39, 239, 255, 0.14),
    0 0 0 1px rgba(39, 239, 255, 0.08),
    0 0 28px rgba(39, 239, 255, 0.2);
}

.v31-server-avatar::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(39, 239, 255, 0.2);
  border-radius: 23px;
  transform: rotate(45deg) scale(0.7);
  opacity: 0.9;
}

.v31-server-avatar-core {
  position: relative;
  display: block;
  width: 34px;
  height: 44px;
  border: 1px solid rgba(109, 234, 255, 0.38);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(61, 91, 113, 0.96), rgba(12, 28, 42, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 3px, transparent 3px 6px);
  box-shadow:
    inset 0 10px 16px rgba(255, 255, 255, 0.08),
    inset 0 -12px 18px rgba(0, 0, 0, 0.26),
    0 10px 18px rgba(0, 0, 0, 0.34);
  transform: perspective(120px) rotateX(9deg) rotateY(-15deg);
}

.v31-server-avatar-core::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 5px;
  width: 24px;
  height: 13px;
  border: 1px solid rgba(109, 234, 255, 0.28);
  border-bottom: 0;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, rgba(43, 80, 102, 0.96), rgba(21, 43, 61, 0.95));
  transform: skewX(-18deg);
}

.v31-server-avatar-core > span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(39, 239, 255, 0.2), #27efff, rgba(39, 239, 255, 0.26));
  box-shadow: 0 0 14px rgba(39, 239, 255, 0.7);
}

.v31-server-avatar-core > span:nth-child(1) {
  top: 10px;
}

.v31-server-avatar-core > span:nth-child(2) {
  top: 21px;
}

.v31-server-avatar-core > span:nth-child(3) {
  top: 32px;
}

.v31-server-name {
  min-width: 0;
  align-self: center;
}

.v31-server-name strong,
.v31-server-name span {
  display: block;
}

.v31-server-name strong {
  overflow: hidden;
  color: #fff;
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 850;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v31-server-name span {
  margin-top: 3px;
  color: #91a3b4;
  font-size: 14px;
  font-weight: 650;
}

.v31-server-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  gap: 14px;
  min-width: 0;
  width: 100%;
  align-items: stretch;
}

.v31-server-resource-chip {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon value"
    "icon label";
  align-items: center;
  column-gap: 10px;
  min-width: 0;
  min-height: 106px;
  padding: 16px 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(97, 206, 255, 0.34);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(17, 40, 62, 0.78), rgba(5, 13, 26, 0.88)),
    radial-gradient(circle at 0% 0%, rgba(39, 239, 255, 0.16), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.v31-server-resource-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.12) 46%, transparent 60%);
  opacity: 0.36;
}

.v31-server-resource-chip::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 22px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #27efff, rgba(39, 239, 255, 0.68), transparent);
  box-shadow: 0 0 16px rgba(39, 239, 255, 0.55);
}

.v31-server-resource-chip:hover {
  border-color: rgba(39, 239, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 28px rgba(0, 0, 0, 0.22), 0 0 22px rgba(39, 239, 255, 0.14);
  transform: translateY(-1px);
}

.v31-server-resource-chip svg {
  grid-area: icon;
  width: 24px;
  height: 24px;
  color: #27efff;
  filter: drop-shadow(0 0 10px rgba(39, 239, 255, 0.64));
}

.v31-server-resource-chip strong {
  grid-area: value;
  overflow: hidden;
  color: #f8feff;
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 850;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v31-server-resource-chip small {
  grid-area: label;
  color: #8ea0af;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v31-server-actions {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  gap: 12px;
  justify-content: end;
  min-width: 0;
}

.v31-server-actions .button {
  justify-content: center;
  min-height: 54px;
  height: 54px;
  padding: 0 18px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 850;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease, background 160ms ease;
}

@container (max-width: 1180px) {
  .v31-dashboard-server-row {
    grid-template-columns: minmax(240px, 1fr) minmax(330px, 1.1fr);
  }

  .v31-server-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
    padding-top: 18px;
    border-top: 1px solid rgba(117, 211, 255, 0.16);
  }

  .v31-server-actions .button,
  .v31-server-manage-button,
  .v31-server-edit-button,
  .v31-server-panel-button {
    min-width: 0;
    width: 100%;
  }
}

@container (max-width: 760px) {
  .v31-dashboard-server-row {
    grid-template-columns: 1fr;
  }

  .v31-server-resources,
  .v31-server-actions {
    grid-column: auto;
    width: 100%;
  }

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

  .v31-server-actions {
    grid-template-columns: 1fr;
  }
}

.v31-server-actions .button svg {
  width: 18px;
  height: 18px;
}

.v31-server-manage-button,
.v31-server-manage-button:visited {
  min-width: 148px;
  border-color: rgba(39, 239, 255, 0.72);
  color: #ecfeff;
  background:
    linear-gradient(135deg, rgba(21, 225, 230, 0.98), rgba(9, 120, 180, 0.92)),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.32), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(39, 239, 255, 0.22),
    0 0 28px rgba(39, 239, 255, 0.42);
}

.v31-server-manage-button:hover,
.v31-server-manage-button:focus-visible {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(49, 250, 255, 1), rgba(10, 145, 204, 0.98)),
    radial-gradient(circle at 70% 0%, rgba(255, 255, 255, 0.34), transparent 38%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 0 0 1px rgba(39, 239, 255, 0.38),
    0 0 36px rgba(39, 239, 255, 0.64);
  transform: translateY(-1px);
}

.v31-server-edit-button,
.v31-server-edit-button:visited,
.v31-server-panel-button,
.v31-server-panel-button:visited {
  border-color: rgba(140, 178, 210, 0.26);
  color: #dce9f4;
  background: linear-gradient(145deg, rgba(18, 31, 48, 0.72), rgba(5, 10, 20, 0.82));
}

.v31-server-edit-button {
  min-width: 174px;
}

.v31-server-panel-button {
  min-width: 120px;
}

.v31-server-edit-button:hover,
.v31-server-edit-button:focus-visible,
.v31-server-panel-button:hover,
.v31-server-panel-button:focus-visible {
  border-color: rgba(39, 239, 255, 0.54);
  color: #9bf8ff;
  box-shadow: 0 0 22px rgba(39, 239, 255, 0.14);
  transform: translateY(-1px);
}

.v31-renewal-card ul {
  display: grid;
  gap: 7px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.v31-renewal-card li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  color: #9ba5ad;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.v31-renewal-card li strong {
  color: var(--v31-gold);
  font-size: 11px;
}

.v31-discord-rail {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
}

.v31-discord-rail > svg {
  color: var(--v31-orange);
}

.v31-discord-rail strong,
.v31-discord-rail span {
  display: block;
}

.v31-discord-rail span {
  margin-top: 4px;
  color: #7f8992;
  font-size: 12px;
}

.v31-discord-rail a {
  grid-column: 2;
  color: var(--v31-orange);
  font-weight: 700;
}

.panel-card {
  border-radius: 7px;
}

.v31-admin-consents td small {
  display: block;
  margin-top: 4px;
  color: #7f8992;
}

.v31-admin-consents code {
  color: var(--v31-orange);
}

.v31-consent-filters {
  grid-template-columns: minmax(190px, 1.4fr) repeat(4, minmax(140px, 1fr)) auto;
}

.v31-consent-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 24px 0 0;
  border: 1px solid var(--v31-line);
  border-radius: 7px;
  background: var(--v31-line);
}

.v31-consent-detail-grid > div {
  min-width: 0;
  padding: 18px;
  background: #11151b;
}

.v31-consent-detail-grid dt {
  margin-bottom: 8px;
  color: #7f8a94;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.v31-consent-detail-grid dd {
  display: grid;
  gap: 6px;
  margin: 0;
}

.v31-consent-detail-grid code {
  overflow-wrap: anywhere;
  color: var(--v31-cyan);
}

@media (max-width: 1100px) {
  .v31-tier-gateway-grid {
    grid-template-columns: 1fr;
  }

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

  .v31-tier-gateway-card {
    min-height: 280px;
  }

  .v31-dashboard-grid {
    grid-template-columns: 1fr;
  }

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

  .v31-dashboard-server-row {
    grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.15fr);
    gap: 20px;
  }

  .v31-server-resources {
    grid-column: 2;
  }

  .v31-server-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 18px;
    border-top: 1px solid rgba(117, 211, 255, 0.16);
  }
}

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

  .v31-server-resources,
  .v31-server-actions {
    grid-column: auto;
    width: 100%;
  }

  .v31-server-actions {
    justify-content: stretch;
  }
}

@media (max-width: 820px) {
  .v31-consent-filters,
  .v31-consent-detail-grid {
    grid-template-columns: 1fr;
  }

  .v31-pricing-gateway,
  .v31-premium-page {
    padding: 48px 22px 32px;
  }

  .v31-pricing-intro h1,
  .v31-tier-hero h1,
  .v31-premium-hero h1,
  .v31-discord-panel h1,
  .v31-legal-header h1 {
    font-size: 36px;
  }

  .v31-plan-grid,
  .v31-legal-layout,
  .v31-purchase-path {
    grid-template-columns: 1fr;
  }

  .v31-legal-nav {
    position: static;
    max-height: none;
  }

  .v31-legal-document,
  .v31-legal-header {
    padding: 26px;
  }

  .v31-purchase-path ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v31-dashboard-signals,
  .v31-resource-meter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v31-dashboard-rail {
    grid-template-columns: 1fr;
  }

  .v31-team-shell {
    padding: 30px 16px;
    border-radius: 18px;
  }

  .v31-team-grid {
    grid-template-columns: 1fr;
  }

  .v31-team-card {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
  }

}

@media (max-width: 680px) {
  .content-shell {
    padding-bottom: 82px;
  }

  .v31-mobile-nav {
    position: fixed;
    z-index: 85;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 62px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background: rgba(12, 15, 20, 0.96);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
  }

  .v31-mobile-nav a,
  .v31-mobile-nav button {
    display: grid;
    place-items: center;
    gap: 2px;
    color: #7f8992;
    border: 0;
    border-radius: 5px;
    background: transparent;
  }

  .v31-mobile-nav [aria-current="page"] {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
  }

  .v31-mobile-nav .is-create {
    color: #170c04;
    background: var(--v31-orange);
  }

  .v31-mobile-nav svg {
    width: 19px;
    height: 19px;
  }

  .v31-mobile-nav small {
    font-size: 10px;
  }

  .v31-pricing-gateway,
  .v31-premium-page {
    min-height: auto;
    padding: 38px 16px 24px;
  }

  .v31-pricing-intro h1,
  .v31-tier-hero h1,
  .v31-premium-hero h1,
  .v31-discord-panel h1,
  .v31-legal-header h1 {
    font-size: 31px;
  }

  .v31-tier-gateway-card {
    min-height: 310px;
  }

  .v31-tier-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .v31-tier-hero-signal {
    min-width: 0;
    min-height: 100px;
  }

  .v31-plan-card {
    min-height: 0;
    padding: 21px;
  }

  .v31-plan-card > header,
  .v31-tier-footer,
  .v31-discord-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .v31-plan-resources {
    grid-template-columns: 1fr;
  }

  .v31-premium-tier-row {
    grid-template-columns: 38px minmax(0, 1fr) 22px;
    padding: 16px;
  }

  .v31-purchase-path ol,
  .v31-dashboard-signals,
  .v31-resource-meter-grid {
    grid-template-columns: 1fr;
  }

  .v31-discord-page {
    min-height: 620px;
  }

  .v31-discord-panel,
  .v31-consent-card {
    padding: 26px 20px;
  }

  .v31-team-page {
    padding: 18px 0 58px;
  }

  .v31-team-header {
    margin-bottom: 24px;
  }

  .v31-team-header h1,
  .v31-team-header h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .v31-team-body {
    padding: 16px 4px 4px;
  }

  .v31-team-body p {
    grid-template-columns: 36px minmax(0, 1fr);
    font-size: 14px;
  }

  .v31-team-body p svg {
    width: 36px;
    height: 36px;
    padding: 8px;
  }

  .v31-legal-header,
  .v31-legal-document {
    padding: 22px 17px;
  }

  .v31-legal-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .v31-dashboard-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .v31-create-primary {
    width: 100%;
  }

  .v31-dashboard-server-row {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .v31-server-overview .panel-header {
    gap: 14px;
  }

  .v31-server-left-zone {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
  }

  .v31-server-status {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .v31-server-avatar {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .v31-server-avatar-core {
    width: 29px;
    height: 38px;
  }

  .v31-server-avatar-core > span {
    left: 7px;
    right: 7px;
    height: 3px;
  }

  .v31-server-avatar-core > span:nth-child(1) {
    top: 9px;
  }

  .v31-server-avatar-core > span:nth-child(2) {
    top: 19px;
  }

  .v31-server-avatar-core > span:nth-child(3) {
    top: 29px;
  }

  .v31-server-resources {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .v31-server-resource-chip {
    min-width: 0;
  }

  .v31-server-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .v31-server-actions .button {
    justify-content: center;
    min-width: 0;
    width: 100%;
  }

  .v31-policy-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .v31-server-resources {
    grid-template-columns: 1fr;
  }

  .v31-server-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .v31-tier-gateway-card,
  .v31-plan-card,
  .v31-premium-tier-row,
  .button {
    transition: none;
    transform: none !important;
  }

  .v31-tier-gateway-card::after,
  .v31-plan-card::after {
    display: none;
  }
}

@media print {
  .guest-nav,
  .guest-footer,
  .site-background,
  .site-background-overlay,
  .v31-legal-nav,
  .v31-legal-meta button {
    display: none !important;
  }

  .v31-legal-page,
  .v31-legal-layout,
  .v31-legal-document {
    display: block;
    max-width: none;
    padding: 0;
    color: #111;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  .v31-legal-header {
    padding: 0 0 24px;
    color: #111;
    border: 0;
    background: #fff;
  }

  .v31-legal-header h1,
  .v31-legal-document h2 {
    color: #111;
  }

  .v31-legal-document > section {
    break-inside: avoid;
  }
}
