:root {
  color-scheme: dark;
  --bg: #0d0d10;
  --bg-deep: #070708;
  --panel: #18181d;
  --panel-soft: #202026;
  --panel-line: #34323a;
  --text: #f4efe3;
  --muted: #b9b1a3;
  --dim: #817a72;
  --gold: #ffc34d;
  --gold-soft: #c99b45;
  --amber: #e87b2f;
  --red: #b63b2f;
  --blue: #6fb6d9;
  --green: #7acb87;
  --shadow: 0 22px 70px rgba(0, 0, 0, .48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 4%, rgba(198, 131, 46, .20), transparent 28rem),
    radial-gradient(circle at 86% 9%, rgba(82, 143, 180, .16), transparent 30rem),
    linear-gradient(180deg, #121216 0%, var(--bg) 52%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,.1));
}

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

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

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 94px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(12, 12, 15, .82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 76px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand img {
  width: clamp(230px, 18vw, 310px);
  height: 76px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .55));
}

.brand span {
  position: relative;
  display: inline-block;
  padding: 0 2px 3px 0;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  color: #ffe7a3;
  text-shadow:
    0 1px 0 rgba(93, 45, 10, .9),
    0 8px 18px rgba(255, 180, 64, .18);
}

.brand span::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold), rgba(184, 59, 43, .85), transparent);
}

nav {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(3, 94px);
  justify-content: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 195, 77, .12);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)),
    rgba(8, 8, 11, .34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 14px 26px rgba(0, 0, 0, .20);
  color: var(--muted);
  font-size: 14px;
  justify-self: center;
  width: 312px;
  box-sizing: border-box;
}

html.gvs-admin-known nav {
  grid-template-columns: repeat(4, 94px);
  width: 414px;
}

.header-cta {
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

[data-admin-link][hidden],
html:not(.gvs-admin-known) [data-admin-link] {
  display: none !important;
}

nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 94px;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(245, 235, 215, .78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}

nav a:hover,
nav a[aria-current="page"] {
  border-color: rgba(255, 195, 77, .34);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 195, 77, .18), transparent 60%),
    linear-gradient(180deg, rgba(58, 45, 35, .72), rgba(18, 17, 21, .72));
  color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 8px 18px rgba(0, 0, 0, .20);
}

.header-cta {
  min-height: 40px;
  min-width: 104px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 195, 77, .5);
  border-radius: 8px;
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}

.header-cta:hover {
  border-color: var(--gold);
  background: rgba(255, 195, 77, .08);
}

.header-user {
  display: flex;
  justify-self: end;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 230px;
}

.header-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 195, 77, .36);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 195, 77, .28), transparent 45%),
    linear-gradient(180deg, rgba(42, 35, 29, .96), rgba(13, 12, 15, .96));
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  background-position: center;
  background-size: cover;
}

.header-avatar[hidden] {
  display: grid !important;
  visibility: hidden;
}

.header-avatar.has-image {
  background-color: #111116;
  background-repeat: no-repeat;
}

.header-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 156px);
  padding: clamp(42px, 6vw, 74px) clamp(20px, 5vw, 72px) 34px;
}

.hero-copy,
.hero-visual,
.section,
.final-cta,
footer {
  width: min(1180px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(48px, 6.2vw, 78px);
  line-height: .96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.18;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}

.hero-actions,
.proof-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button,
button {
  font: inherit;
}

.button,
.link-button,
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.button {
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

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

.button.primary {
  border: 1px solid #ffcf73;
  background: linear-gradient(180deg, #c84839, #8d2d27);
  color: #fff8e7;
  box-shadow: 0 10px 26px rgba(172, 59, 45, .32);
}

.button.secondary {
  border: 1px solid rgba(255, 195, 77, .45);
  background: rgba(255, 255, 255, .035);
  color: var(--gold);
}

.button.secondary:hover {
  border-color: rgba(255, 195, 77, .78);
  background: rgba(255, 195, 77, .08);
}

.proof-row {
  margin-top: 28px;
  color: var(--dim);
  font-size: 13px;
}

.proof-row span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
}

.hero-visual {
  position: relative;
  justify-self: center;
}

.product-logo {
  width: min(470px, 92vw);
  margin: 0 auto -48px;
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, .55));
}

.dashboard-preview {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 195, 77, .12), transparent 38%),
    linear-gradient(180deg, rgba(32, 32, 38, .94), rgba(16, 16, 19, .96));
  box-shadow: var(--shadow);
}

.preview-topline,
.metric {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.preview-topline {
  margin-bottom: 20px;
  color: var(--muted);
}

.preview-topline strong {
  color: var(--green);
}

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

.metric {
  display: block;
  min-height: 128px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(10, 10, 12, .55);
}

.metric span,
.metric small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin: 10px 0 2px;
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
}

.metric.alert strong {
  color: #ff7f69;
}

.activity-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 10px;
  height: 150px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .3);
}

.activity-bars span {
  min-height: 24px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #ffc34d, #b63b2f);
}

.section {
  margin: 0 auto;
  padding: 84px clamp(20px, 4vw, 34px);
}

.intro {
  padding-top: 42px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:last-child,
.split p {
  color: var(--muted);
  font-size: 18px;
}

.feature-grid,
.audience-grid,
.pricing-grid,
.faq-grid,
.steps {
  display: grid;
  gap: 16px;
}

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

.feature-grid article,
.audience-grid article,
.pricing-grid article,
.steps article,
.insight-list > div,
.faq-item {
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(32, 32, 38, .88), rgba(22, 22, 26, .92));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.feature-grid article,
.audience-grid article,
.pricing-grid article,
.steps article,
.insight-list > div {
  padding: 24px;
}

.feature-grid p,
.audience-grid p,
.pricing-grid p,
.steps p,
.insight-list p,
.faq-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 195, 77, .35);
  border-radius: 8px;
  color: var(--gold);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
}

.insight-list {
  display: grid;
  gap: 14px;
}

.insight-list > div {
  position: relative;
  overflow: hidden;
}

.insight-list > div::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, var(--gold), var(--red));
}

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

.steps strong {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 195, 77, .12);
  color: var(--gold);
}

.pricing-grid article {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.pricing-grid article .button {
  margin-top: 24px;
  align-self: flex-start;
}

.pricing-grid .highlighted {
  border-color: rgba(255, 195, 77, .42);
  background:
    linear-gradient(135deg, rgba(255, 195, 77, .14), transparent 45%),
    linear-gradient(180deg, rgba(34, 31, 29, .96), rgba(22, 22, 26, .98));
}

.price {
  margin-bottom: 18px;
  color: var(--gold) !important;
  font-size: 28px;
  font-weight: 900;
}

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

.faq-item {
  padding: 22px 24px;
}

.faq-item h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text);
}

.faq-item h3::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.faq-item p {
  padding-left: 24px;
}

.final-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 72px auto 0;
  padding: 34px;
  border: 1px solid rgba(255, 195, 77, .24);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 195, 77, .12), transparent 44%),
    linear-gradient(180deg, var(--panel), #121216);
  box-shadow: var(--shadow);
}

.final-cta img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.final-cta h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3.2vw, 44px);
}

.final-cta p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.auth-page {
  min-height: calc(100vh - 72px);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 72px) clamp(20px, 5vw, 72px) 32px;
}

.auth-shell h1,
.legal-page h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 4.3vw, 58px);
  line-height: 1;
}

.auth-card {
  padding: 24px;
  border: 1px solid rgba(255, 195, 77, .24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 195, 77, .11), transparent 42%),
    linear-gradient(180deg, rgba(31, 31, 36, .96), rgba(15, 15, 18, .98));
  box-shadow: var(--shadow);
}

.auth-card img {
  width: min(270px, 90%);
  margin: 0 auto 10px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .42));
}

.auth-card h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.auth-card p,
.auth-note span,
.dashboard-grid p {
  color: var(--muted);
}

.provider-actions {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.provider-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 195, 77, .28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02));
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.provider-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 195, 77, .72);
}

.provider-button img {
  width: 42px;
  height: 42px;
  margin: 0;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .32));
}

.provider-button.battlenet img {
  padding: 4px;
}

.provider-button span {
  display: grid;
  gap: 2px;
}

.provider-button small {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.provider-button strong {
  font-size: 18px;
}

.provider-button.discord {
  border-color: rgba(139, 157, 255, .44);
}

.provider-button.discord small {
  color: #aab5ff;
}

.provider-button.battlenet {
  border-color: rgba(111, 182, 217, .44);
}

.provider-button.battlenet small {
  color: var(--blue);
}

.auth-note {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
}

.auth-note strong {
  color: var(--gold);
}

.account-roadmap {
  padding-top: 36px;
}

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

.dashboard-grid article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(32, 32, 38, .88), rgba(22, 22, 26, .92));
}

.dashboard-app {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 40px) 70px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 152px;
  margin-bottom: 18px;
  padding: 20px 26px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 195, 77, .12), transparent 40%),
    linear-gradient(180deg, rgba(32, 32, 38, .88), rgba(22, 22, 26, .94));
}

.dashboard-hero h1 {
  max-width: 860px;
  margin-bottom: 8px;
  font-size: clamp(28px, 2.85vw, 40px);
  line-height: 1.02;
}

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

.dashboard-toolbar {
  display: grid;
  gap: 10px;
  min-width: min(340px, 100%);
}

.dashboard-hero > div,
.dashboard-toolbar,
.dashboard-content,
.dashboard-panel {
  min-width: 0;
}

.dashboard-toolbar label,
.control-panel legend {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dashboard-toolbar select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 195, 77, .36);
  border-radius: 8px;
  background: #111116;
  color: var(--text);
  font: inherit;
}

.dashboard-layout {
  display: block;
}

.control-panel,
.dashboard-content {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin-bottom: 0;
  font-size: 25px;
}

.panel-close {
  display: none;
}

.control-panel fieldset,
.settings-form fieldset {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.control-panel legend,
.settings-form legend {
  margin-bottom: 10px;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.settings-form .button,
.settings-form .save-status {
  align-self: end;
}

.choice-list,
.tab-choice-grid {
  display: grid;
  gap: 8px;
}

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

.choice-list label,
.tab-choice-grid label {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.choice-list.compact {
  grid-template-columns: 1fr;
}

.choice-list input,
.tab-choice-grid input {
  accent-color: var(--gold);
}

.save-status {
  margin: 12px 0 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-vault-content {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
  padding: 0;
}

.stat-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.stat-strip article {
  min-height: 98px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .018));
}

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

.stat-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 32px;
  line-height: 1;
}

.dashboard-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 116px;
  min-width: 0;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 18px 34px rgba(0, 0, 0, .22);
}

.dashboard-tabs button {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 195, 77, .25);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.dashboard-tabs button.is-active {
  border-color: var(--gold);
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 195, 77, .16), rgba(255, 255, 255, .03));
}

.dashboard-panel {
  display: none;
  grid-column: 2;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard-panel.is-active {
  display: block;
}

.dashboard-panel.is-hidden-by-preference {
  display: none !important;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 8px;
  padding: 8px;
}

.panel-title h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.5vw, 32px);
}

.panel-title span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

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

.vault-view {
  display: block;
}

.vault-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .45), 0 24px 60px rgba(0, 0, 0, .32);
}

.vault-main {
  min-width: 0;
}

.vault-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 195, 77, .20);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(58, 25, 17, .95), rgba(20, 12, 9, .95));
}

.vault-titlebar span {
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.vault-titlebar strong {
  color: var(--muted);
  font-size: 12px;
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(14, minmax(42px, 1fr));
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 195, 77, .20);
  border-top: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, .94), rgba(3, 3, 4, .98)),
    repeating-linear-gradient(90deg, rgba(255, 195, 77, .03) 0 1px, transparent 1px 48px);
  box-shadow: inset 0 0 34px rgba(0, 0, 0, .72);
}

.vault-slot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(0, 0, 0, .18)),
    #131217;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -10px 18px rgba(0, 0, 0, .30);
}

.vault-slot a {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: inherit;
}

.vault-slot.empty {
  border-color: rgba(255, 255, 255, .055);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(0, 0, 0, .18));
}

.vault-slot.filled {
  border-color: rgba(255, 195, 77, .38);
}

.vault-slot.quality-uncommon {
  border-color: rgba(90, 201, 91, .62);
}

.vault-slot.quality-rare {
  border-color: rgba(65, 145, 255, .72);
}

.vault-slot.quality-epic {
  border-color: rgba(174, 89, 255, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 0 16px rgba(174, 89, 255, .16);
}

.vault-slot img,
.vault-slot a > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot-fallback {
  color: rgba(255, 195, 77, .78);
  font-size: 12px;
  font-weight: 900;
}

.vault-slot:not(.icon-missing) .slot-fallback {
  opacity: 0;
}

.vault-slot strong {
  position: absolute;
  right: 4px;
  bottom: 1px;
  z-index: 1;
  color: #fff8e7;
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 1px 2px #000, 0 0 4px #000;
}

.vault-bottombar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 195, 77, .20);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, rgba(31, 17, 12, .98), rgba(12, 8, 7, .98));
}

.vault-bottombar span {
  margin-right: auto;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.vault-bottombar .vault-withdrawals {
  margin-right: auto;
}

.vault-bottombar .vault-money {
  margin-right: 10px;
  color: #fff3c6;
  text-shadow: 0 1px 2px #000;
}

.vault-bottombar button {
  min-height: 22px;
  padding: 2px 10px;
  border: 1px solid rgba(255, 195, 77, .34);
  border-radius: 4px;
  color: var(--gold);
  background: rgba(0, 0, 0, .30);
  font-size: 11px;
  font-weight: 800;
}

.vault-tab-rail {
  display: grid;
  gap: 7px;
  padding-top: 34px;
}

.vault-tab-rail button {
  display: grid;
  grid-template-columns: 24px 30px;
  grid-template-areas: "number icon";
  gap: 6px;
  align-items: center;
  min-height: 42px;
  padding: 5px;
  border: 1px solid rgba(255, 195, 77, .32);
  border-radius: 5px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(36, 26, 22, .96), rgba(10, 8, 8, .96));
  cursor: pointer;
}

.vault-tab-rail img {
  grid-area: icon;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 195, 77, .24);
  border-radius: 4px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45);
}

.vault-tab-rail button.is-active {
  border-color: var(--gold);
  color: var(--gold);
  background: linear-gradient(180deg, rgba(102, 53, 28, .96), rgba(35, 19, 12, .96));
}

.vault-tab-rail span {
  grid-area: number;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 195, 77, .28);
  border-radius: 4px;
  background: rgba(0, 0, 0, .30);
  font-size: 12px;
  font-weight: 900;
}

.empty-state {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
}

.choice-list label.is-locked {
  opacity: .62;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.download-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-content: stretch;
  min-height: 280px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 195, 77, .10), transparent 38%),
    linear-gradient(180deg, rgba(32, 32, 38, .82), rgba(17, 17, 21, .94));
}

.download-card h2 {
  margin: 0;
}

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

.download-card .button {
  align-self: end;
}

.download-card code {
  color: var(--gold);
}

.download-card small {
  color: var(--dim);
  font-weight: 800;
}

.choice-list label span {
  margin-left: auto;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

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

th,
td {
  padding: 2px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-align: left;
}

th {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

.risk-grid,
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.risk-grid article,
.report-grid article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .026);
}

.risk-grid span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 127, 105, .42);
  border-radius: 999px;
  color: #ff907c;
  font-size: 12px;
  font-weight: 900;
}

.risk-grid p,
.report-grid p {
  color: var(--muted);
}

.report-grid code {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(0, 0, 0, .25);
  color: var(--gold);
}

.report-output {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 195, 77, .18);
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
  color: var(--muted);
  font: 12px/1.55 Consolas, "Cascadia Mono", monospace;
  white-space: pre-wrap;
}

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

.graph-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 195, 77, .06), transparent 38%),
    rgba(255, 255, 255, .025);
}

.graph-card h3 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 15px;
}

.graph-card > strong {
  display: block;
  color: var(--gold);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.graph-card > span {
  color: var(--muted);
}

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

.bar-row {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) minmax(140px, 2fr) minmax(56px, auto);
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.bar-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}

.bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.bar-row strong {
  color: var(--gold);
  text-align: right;
}

.token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.token-actions .button {
  width: auto;
  min-width: 118px;
}

.token-actions .button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.token-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.token-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(0, 0, 0, .20);
}

.token-row strong,
.token-row span {
  display: block;
}

.token-row span,
.token-empty {
  color: var(--muted);
  font-size: 13px;
}

.admin-content {
  display: block;
  grid-template-columns: none;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.admin-plan-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .014));
}

.admin-plan-card label,
.admin-toggle {
  display: grid;
  gap: 7px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-plan-card input,
.admin-plan-card textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(0, 0, 0, .30);
  color: var(--text);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.admin-plan-card textarea {
  resize: vertical;
}

.admin-limit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-toggle {
  display: flex;
  align-items: center;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
}

.admin-app {
  width: min(1440px, 100%);
}

.admin-hero {
  min-height: 154px;
  align-items: center;
  background:
    radial-gradient(circle at 82% 14%, rgba(111, 182, 217, .12), transparent 24rem),
    linear-gradient(135deg, rgba(255, 195, 77, .10), transparent 42%),
    rgba(24, 24, 29, .88);
}

.admin-hero h1 {
  max-width: 780px;
  font-size: clamp(28px, 2.85vw, 40px);
}

.admin-hero-panel {
  display: grid;
  gap: 4px;
  min-width: 260px;
  padding: 18px;
  border: 1px solid rgba(255, 195, 77, .20);
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
}

.admin-hero-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-hero-panel strong {
  color: var(--gold);
  font-size: 18px;
}

.admin-content {
  display: block;
  grid-template-columns: none;
  width: 100%;
  padding: 0;
  background: transparent;
}

.admin-tabs {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  padding: 7px;
  border: 1px solid rgba(255, 195, 77, .18);
  border-radius: 999px;
  background: rgba(5, 5, 7, .54);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .20);
}

.admin-tabs button {
  min-width: 170px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.admin-tabs button.is-active {
  border-color: rgba(255, 195, 77, .46);
  color: var(--gold);
  background: linear-gradient(180deg, rgba(255, 195, 77, .16), rgba(255, 195, 77, .05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 10px 26px rgba(255, 195, 77, .08);
}

.admin-tab-panel {
  animation: softFade .18s ease;
}

@keyframes softFade {
  from { opacity: .4; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-form-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding: 4px 4px 18px;
  border-bottom: 1px solid rgba(255, 195, 77, .14);
}

.admin-form-head h2 {
  margin: 0;
  font-size: 30px;
}

.admin-form-head p:last-child {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.admin-plan-grid {
  gap: 18px;
}

.admin-payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 18px;
}

.admin-plan-card {
  gap: 16px;
  padding: 22px;
  border-color: rgba(255, 195, 77, .16);
  background:
    radial-gradient(circle at 84% 0%, rgba(255, 195, 77, .10), transparent 18rem),
    linear-gradient(180deg, rgba(32, 32, 38, .96), rgba(20, 20, 24, .96));
}

.admin-plan-card[data-plan="premium"] {
  border-color: rgba(255, 195, 77, .34);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 195, 77, .10);
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  min-height: 72px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.admin-card-head h2 {
  margin: 0;
  font-size: 28px;
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 0, 0, .22);
  font-size: 12px;
  font-weight: 900;
}

.plan-pill.premium {
  border-color: rgba(255, 195, 77, .38);
  color: var(--gold);
  background: rgba(255, 195, 77, .08);
}

.admin-plan-card .admin-field {
  display: grid;
  gap: 7px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-plan-card .admin-field input,
.admin-plan-card .admin-field textarea {
  min-height: 44px;
  border-color: rgba(255, 255, 255, .12);
  background: rgba(8, 8, 10, .54);
  color: var(--text);
  font-weight: 700;
}

.admin-plan-card .admin-field textarea {
  min-height: 82px;
  line-height: 1.45;
}

.admin-plan-card .admin-switch,
.admin-plan-card .admin-feature-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.admin-plan-card .admin-switch input,
.admin-plan-card .admin-feature-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-plan-card .admin-switch > span {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.admin-plan-card .admin-switch > span::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  content: "";
  background: var(--muted);
  transition: transform .18s ease, background .18s ease;
}

.admin-plan-card .admin-switch input:checked + span {
  border-color: rgba(255, 195, 77, .54);
  background: rgba(255, 195, 77, .18);
}

.admin-plan-card .admin-switch input:checked + span::before {
  transform: translateX(20px);
  background: var(--gold);
}

.admin-feature-set {
  margin: 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0;
  background: transparent;
}

.admin-feature-set legend {
  padding: 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-plan-card .admin-feature-toggle {
  min-height: 52px;
}

.admin-plan-card .admin-feature-toggle > span {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
}

.admin-plan-card .admin-feature-toggle > span::after {
  width: 10px;
  height: 6px;
  border-left: 3px solid #2b1a07;
  border-bottom: 3px solid #2b1a07;
  content: "";
  opacity: 0;
  transform: rotate(-45deg) translateY(-1px);
}

.admin-plan-card .admin-feature-toggle input:checked + span {
  border-color: var(--gold);
  background: var(--gold);
}

.admin-plan-card .admin-feature-toggle input:checked + span::after {
  opacity: 1;
}

.admin-save-bar {
  position: sticky;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid rgba(255, 195, 77, .16);
  border-radius: 8px;
  background: rgba(16, 16, 20, .88);
  backdrop-filter: blur(16px);
}

.admin-save-bar .save-status {
  margin: 0;
}

.admin-account-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.admin-account-toolbar input,
.admin-award-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(8, 8, 10, .62);
  color: var(--text);
  font: inherit;
}

.admin-account-list {
  display: grid;
  gap: 8px;
}

.admin-account-card {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(190px, .55fr) minmax(420px, 1.2fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(111, 182, 217, .10), transparent 18rem),
    linear-gradient(180deg, rgba(32, 32, 38, .94), rgba(15, 15, 18, .94));
}

.admin-account-member,
.admin-account-plan {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-account-main {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.admin-account-avatar {
  position: static;
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 195, 77, .34);
  color: var(--gold);
  background: rgba(255, 195, 77, .08);
  font-weight: 900;
}

.admin-account-main h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.admin-account-main p,
.admin-account-main code {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-account-main code {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
}

.admin-account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: start;
  justify-content: flex-start;
}

.admin-account-meta > span:not(.plan-pill) {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 0, 0, .22);
  font-size: 12px;
  font-weight: 800;
}

.admin-account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 6px;
}

.admin-account-grid div {
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
}

.admin-account-grid span,
.admin-guild-list small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.admin-account-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
}

.admin-guild-list {
  display: grid;
  gap: 6px;
}

.admin-guild-list > span {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(255, 195, 77, .15);
  border-radius: 8px;
  background: rgba(255, 195, 77, .05);
  color: var(--text);
  font-weight: 800;
}

.admin-award-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
}

.admin-award-form label {
  display: grid;
  gap: 5px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-award-form.compact .button {
  min-height: 44px;
  padding-inline: 14px;
  white-space: nowrap;
}

.plans-app {
  width: min(1440px, 100%);
}

.plans-hero {
  min-height: 170px;
}

.plan-choice-grid {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(360px, 1.2fr);
  gap: 18px;
  margin: 22px 0;
}

.plan-choice-card,
.payment-method-card,
.payment-portal {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 195, 77, .08), transparent 18rem),
    linear-gradient(180deg, rgba(28, 28, 34, .95), rgba(14, 14, 18, .95));
}

.plan-choice-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.plan-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.billing-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 195, 77, .28);
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
}

.billing-switch button {
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.billing-switch button.is-active {
  background: rgba(255, 195, 77, .16);
  color: var(--gold);
}

.plan-choice-card.is-premium,
.plan-choice-card.is-current {
  border-color: rgba(255, 195, 77, .34);
}

.plan-choice-card h2 {
  margin: 0;
  font-size: 30px;
}

.plan-choice-card .price {
  margin: 0;
  color: var(--gold);
  font-size: 34px;
  font-weight: 950;
}

.plan-choice-card .price span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

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

.plan-choice-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.plan-choice-card dl div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
}

.plan-choice-card dt {
  color: var(--muted);
  font-size: 12px;
}

.plan-choice-card dd {
  margin: 3px 0 0;
  color: var(--text);
  font-weight: 900;
}

.plan-choice-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-choice-card li {
  padding: 9px 10px;
  border: 1px solid rgba(255, 195, 77, .14);
  border-radius: 8px;
  background: rgba(255, 195, 77, .05);
  color: var(--text);
  font-weight: 800;
}

.payment-portal {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
}

.payment-portal h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.payment-portal p {
  margin: 0;
  color: var(--muted);
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.payment-method-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.payment-method-card.is-disabled {
  opacity: .58;
  filter: grayscale(.45);
}

.payment-method-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-method-card h3 {
  margin: 0;
}

.payment-options-panel {
  gap: 6px;
}

.payment-options-panel small {
  color: var(--muted);
  font-weight: 800;
}

.payment-options-panel em {
  color: var(--dim);
  font-style: normal;
}

.legal-page h1 {
  max-width: 900px;
}

.legal-page .section {
  padding-top: clamp(48px, 7vw, 82px);
  padding-bottom: clamp(44px, 6vw, 72px);
}

.legal-page .hero-text {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(18px, 1.8vw, 22px);
}

.legal-card {
  max-width: 900px;
  padding: 26px 0 0;
  border: 1px solid rgba(255, 255, 255, .09);
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
}

.legal-card h2 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: 26px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  color: var(--muted);
}

.legal-card a {
  color: var(--gold);
  font-weight: 800;
}

footer {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) auto auto;
  align-items: center;
  gap: clamp(26px, 4vw, 64px);
  width: min(1880px, 100%);
  margin: 0 auto;
  padding: 62px clamp(36px, 4vw, 72px) 82px;
  color: var(--dim);
  font-size: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  color: var(--gold);
  font-weight: 800;
}

.footer-brand span {
  display: block;
  max-width: 720px;
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a,
.social-links a,
.link-button {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 195, 77, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.link-button {
  appearance: none;
}

.footer-links a:hover,
.social-links a:hover,
.link-button:hover {
  border-color: rgba(255, 195, 77, .7);
  background: rgba(255, 195, 77, .07);
  color: var(--gold);
}

.social-links a {
  color: #f4efe3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-links img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.back-to-top {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  min-width: 52px;
  min-height: 52px;
  border: 1px solid rgba(255, 195, 77, .55);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(34, 34, 40, .94), rgba(14, 14, 17, .96));
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .34);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.back-to-top:hover {
  border-color: var(--gold);
}

.consent-panel {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 40;
  width: min(560px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid rgba(255, 195, 77, .35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 195, 77, .10), transparent 42%),
    linear-gradient(180deg, rgba(31, 31, 36, .98), rgba(14, 14, 17, .98));
  box-shadow: var(--shadow);
}

.consent-panel h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.consent-panel p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-start;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    min-height: 84px;
  }

  nav {
    gap: 5px;
    padding: 5px;
    font-size: 12px;
  }

  nav a {
    min-height: 32px;
    padding: 7px 10px;
  }

  .brand img {
    width: 210px;
    height: 64px;
  }

  .brand span {
    font-size: 18px;
  }

  .header-user {
    min-width: 0;
  }

  .hero,
  .split,
  .auth-shell,
  .dashboard-hero,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .audience-grid,
  .pricing-grid,
  .faq-grid,
  .dashboard-grid,
  .download-grid,
  .plan-choice-grid,
  .stat-strip,
  .risk-grid,
  .report-grid,
  .graph-grid,
  .admin-plan-grid,
  .admin-account-card,
  .admin-account-grid,
  .admin-award-form {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    overflow: auto;
    border-radius: 0;
  }

  .control-panel.is-open {
    display: block;
  }

  .panel-close {
    display: inline-flex;
  }

  .final-cta {
    grid-template-columns: 1fr;
    text-align: left;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 72px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .brand span {
    display: none;
  }

  .brand {
    min-height: 48px;
    padding: 4px;
  }

  .brand img {
    width: clamp(160px, 45vw, 220px);
    height: 56px;
  }

  .header-user {
    justify-self: end;
    min-width: 0;
  }

  .primary-nav {
    display: none !important;
  }

  .primary-nav.is-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100% !important;
    background: rgba(12, 12, 15, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 24px;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 99;
    border-radius: 0;
  }

  .primary-nav.is-open a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 48px;
    padding: 12px !important;
    font-size: 15px !important;
    border: 1px solid rgba(255, 195, 77, 0.12) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    color: rgba(245, 235, 215, 0.78) !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }

  .primary-nav.is-open a:hover,
  .primary-nav.is-open a[aria-current="page"] {
    border-color: rgba(255, 195, 77, 0.34) !important;
    background:
      radial-gradient(circle at 50% 0, rgba(255, 195, 77, 0.18), transparent 60%),
      linear-gradient(180deg, rgba(58, 45, 35, 0.72), rgba(18, 17, 21, 0.72)) !important;
    color: var(--gold) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 8px 18px rgba(0, 0, 0, 0.2) !important;
  }

  .primary-nav.is-open .mobile-only-login {
    display: flex !important;
    border-color: rgba(255, 195, 77, 0.45) !important;
    color: var(--gold) !important;
  }

  .burger-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 38px;
    height: 38px;
    padding: 11px 9px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 195, 77, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .burger-menu-btn:hover,
  .burger-menu-btn:focus {
    border-color: var(--gold);
    background: rgba(255, 195, 77, 0.08);
  }

  .burger-line {
    width: 100%;
    height: 2px;
    background-color: var(--gold);
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .burger-menu-btn[aria-expanded="true"] .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .burger-menu-btn[aria-expanded="true"] .burger-line:nth-child(2) {
    opacity: 0;
  }

  .burger-menu-btn[aria-expanded="true"] .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-cta {
    display: none;
  }

  .header-avatar {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 42px 16px 16px;
    overflow: hidden;
  }

  .auth-shell {
    padding: 42px 16px 18px;
  }

  .auth-card {
    padding: 22px;
  }

  .hero-copy,
  .hero-visual,
  .dashboard-preview {
    max-width: 358px;
  }

  h1 {
    font-size: clamp(36px, 10.5vw, 44px);
  }

  .hero-actions .button,
  .final-cta .button {
    width: 100%;
  }

  .product-logo {
    width: min(170px, 58vw);
    margin-top: 18px;
    margin-bottom: 0;
  }

  .dashboard-preview {
    display: none;
  }

  .chart-grid,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .activity-bars {
    height: 110px;
  }

  .section {
    padding: 56px 16px;
  }

  .dashboard-app {
    width: 100%;
    padding: 22px 12px 54px;
    max-width: 100vw;
    overflow: hidden;
  }

  .dashboard-hero {
    width: 100%;
    max-width: calc(100vw - 24px);
    min-height: auto;
    padding: 18px;
    overflow: hidden;
  }

  .dashboard-content,
  .dashboard-panel {
    width: 100%;
    max-width: calc(100vw - 24px);
    padding: 0;
    overflow: hidden;
  }

  .dashboard-vault-content {
    display: block;
  }

  .dashboard-hero h1 {
    max-width: 100%;
    font-size: 28px;
    overflow-wrap: anywhere;
  }

  .dashboard-hero p:last-child {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .dashboard-toolbar {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .dashboard-toolbar select,
  .dashboard-toolbar .button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .dashboard-layout {
    width: 100%;
    max-width: calc(100vw - 24px);
  }

  .stat-strip article {
    min-width: 0;
  }

  .dashboard-tabs {
    max-width: 100%;
    overflow-x: auto;
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .dashboard-tabs button {
    flex: 0 0 auto;
    width: auto;
    max-width: 72vw;
    white-space: nowrap;
  }

  .data-table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }

  .vault-frame {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .vault-tab-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 0;
  }

  .vault-tab-rail button {
    grid-template-columns: 22px 28px;
    justify-items: center;
  }

  .vault-grid {
    grid-template-columns: repeat(7, minmax(32px, 1fr));
    gap: 5px;
    padding: 8px;
  }

  .vault-bottombar {
    display: grid;
    justify-items: stretch;
  }

  .settings-form {
    grid-template-columns: 1fr;
  }

  .admin-limit-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-head,
  .admin-save-bar {
    display: grid;
  }

  .admin-form-head p:last-child {
    text-align: left;
  }

  .admin-feature-grid {
    grid-template-columns: 1fr;
  }

  .tab-choice-grid {
    grid-template-columns: 1fr;
  }

  .panel-title {
    display: grid;
  }

  .intro {
    padding-top: 12px;
  }

  .final-cta {
    margin-top: 42px;
    padding: 24px;
  }

  footer {
    padding-inline: 16px;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-brand img {
    width: 46px;
    height: 46px;
  }

  .footer-links a,
  .social-links a,
  .link-button {
    flex: 1 1 auto;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }

  .consent-panel {
    left: 16px;
    bottom: 16px;
    padding: 20px;
  }

  .consent-actions .button {
    width: 100%;
  }
}
.account-app {
  width: min(1440px, 100%);
}

.account-hero {
  min-height: 152px;
  align-items: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(111, 182, 217, .12), transparent 24rem),
    linear-gradient(120deg, rgba(255, 195, 77, .13), transparent 42%),
    linear-gradient(180deg, rgba(32, 32, 38, .90), rgba(22, 22, 26, .96));
}

.account-hero-card {
  display: grid;
  gap: 6px;
  min-width: 260px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 195, 77, .24);
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
}

.account-hero-card span,
.account-hero-card small,
.muted-copy {
  color: var(--muted);
}

.account-hero-card strong {
  color: var(--gold);
  font-size: 26px;
  line-height: 1;
}

.account-login-card {
  max-width: 620px;
  margin: 0 auto;
}

.account-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
  padding: 0 12px 0 0;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: transparent;
}

.account-sidebar button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 195, 77, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.account-sidebar button.is-active {
  border-color: var(--gold);
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 195, 77, .16), rgba(255, 255, 255, .03));
}

.account-panels {
  min-width: 0;
}

.account-panel {
  display: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.account-panel.is-active {
  display: block;
}

.account-card-grid,
.companion-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.account-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .026);
}

.account-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.account-card p,
.account-card small,
.guild-account-row p,
.endpoint-card p {
  color: var(--muted);
}

.provider-chip,
.guild-account-row span,
.billing-card span,
.endpoint-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 195, 77, .28);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-definition-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.account-definition-list div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-definition-list dt {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-definition-list dd {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.feature-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.feature-pill-list li {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0, 0, 0, .22);
  font-size: 12px;
  font-weight: 800;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.account-stat-grid article {
  min-height: 84px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .024);
}

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

.account-stat-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
}

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

.guild-account-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .024);
}

.guild-account-row.is-active {
  border-color: rgba(255, 195, 77, .34);
  background: linear-gradient(120deg, rgba(255, 195, 77, .10), rgba(255, 255, 255, .02));
}

.token-create-card {
  display: grid;
  gap: 10px;
}

.token-create-card label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.token-create-card select,
.token-create-card input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(0, 0, 0, .30);
  color: var(--text);
  font: inherit;
}

.token-scope-note {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(0, 0, 0, .30);
  color: var(--muted);
}

.endpoint-card code {
  display: block;
  overflow-wrap: anywhere;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(0, 0, 0, .28);
  color: var(--gold);
}

.account-token-list {
  margin-top: 16px;
}

.account-token-row {
  background: rgba(255, 255, 255, .025);
}

.billing-card.is-premium {
  border-color: rgba(255, 195, 77, .34);
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 195, 77, .14), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
}

.billing-card h3 {
  color: var(--gold);
  font-size: 34px;
}

.billing-plan-link {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .account-shell,
  .account-card-grid,
  .companion-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .account-sidebar,
  .account-stat-grid {
    grid-template-columns: 1fr;
  }

  .guild-account-row,
  .token-row {
    align-items: stretch;
    flex-direction: column;
  }
}
/* End account page */

@media (min-width: 641px) {
  .site-header nav {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(3, 94px);
    flex: 0 0 312px;
    gap: 8px;
    width: 312px;
    min-width: 312px;
    padding: 6px;
  }

  html.gvs-admin-known .site-header nav {
    grid-template-columns: repeat(4, 94px);
    flex-basis: 414px;
    width: 414px;
    min-width: 414px;
  }

  .site-header nav a {
    width: 94px;
    min-height: 34px;
    padding: 8px 14px;
  }
}

@media (min-width: 641px) {
  .site-header .primary-nav {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-template-columns: repeat(3, 94px) !important;
    flex: 0 0 312px !important;
    width: 312px !important;
    min-width: 312px !important;
    max-width: 312px !important;
    height: 48px !important;
    gap: 8px !important;
    padding: 6px !important;
    overflow: hidden;
    box-sizing: border-box !important;
  }

  html.gvs-admin-known .site-header .primary-nav {
    grid-template-columns: repeat(4, 94px) !important;
    flex-basis: 414px !important;
    width: 414px !important;
    min-width: 414px !important;
    max-width: 414px !important;
  }

  .site-header .primary-nav > [data-admin-link],
  .site-header .primary-nav > [data-admin-link][hidden],
  html:not(.gvs-admin-known) .site-header .primary-nav > [data-admin-link] {
    display: none !important;
  }

  html.gvs-admin-known .site-header .primary-nav > [data-admin-link] {
    display: inline-flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .site-header .primary-nav > a {
    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;
    height: 34px;
    min-height: 34px !important;
    padding: 8px 14px !important;
    box-sizing: border-box !important;
  }
}

/* Mobile burger button and navigation helper classes (default hidden on desktop) */
@media (min-width: 641px) {
  .burger-menu-btn {
    display: none;
  }

  .mobile-only-login {
    display: none !important;
  }
}

