@font-face {
  font-family: 'Minecraft';
  src: url('assets/minecraft.woff2') format('woff2');
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --bg: #050714;
  --panel: rgba(12, 13, 31, 0.82);
  --panel-soft: rgba(28, 24, 52, 0.68);
  --line: rgba(158, 113, 255, 0.22);
  --line-cyan: rgba(24, 218, 226, 0.34);
  --text: #f5f0ff;
  --muted: #c7bfd5;
  --purple: #a840ff;
  --pink: #f04cc6;
  --cyan: #22d6d0;
  --blue: #3e8bff;
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --wrap: min(100% - 64px, 1720px);
  --font: Inter, Manrope, Montserrat, system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body::selection { background: rgba(168, 64, 255, 0.45); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 10%, rgba(164, 64, 255, 0.34), transparent 34%),
    radial-gradient(circle at 90% 16%, rgba(20, 214, 222, 0.20), transparent 32%),
    radial-gradient(circle at 50% 90%, rgba(232, 51, 178, 0.12), transparent 36%),
    linear-gradient(135deg, #080717 0%, #070b18 42%, #021e28 100%);
}
.site-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.14), rgba(0,0,0,0.52));
}

.section-pad { width: var(--wrap); margin: 0 auto; }

.site-header {
  width: var(--wrap);
  min-height: 144px;
  margin: 0 auto;
  padding: 36px 0 24px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 32px;
  background: none;
  border: 0;
  box-shadow: none;
  isolation: isolate;
}

.online-pill,
.nav-button,
.balance-button,
.btn {
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(145deg, rgba(30, 31, 50, 0.84), rgba(16, 17, 32, 0.74));
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 54px;
  padding: 0 18px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 16px 34px rgba(0,0,0,0.22);
  overflow: clip;
  white-space: nowrap;
  background-clip: padding-box;
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
}

.online-pill {
  justify-self: start;
  min-height: 44px;
  padding-inline: 16px;
  color: #eef9ff;
  border-color: var(--line-cyan);
  background: rgba(18, 36, 62, 0.70);
  border-radius: 22px;
}
.online-pill__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
  flex: 0 0 auto;
}
.online-pill__dot.is-offline { background: #ff4779; box-shadow: 0 0 18px rgba(255,71,121,0.85); }

.site-logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-size: clamp(56px, 4.6vw, 78px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.32), 0 0 26px rgba(113, 108, 255, 0.12);
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.site-logo span {
  color: transparent;
  background: linear-gradient(108deg, #ffffff 0%, #ffffff 40%, #d9d8ff 66%, #7ff7fa 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.08));
}
.site-logo:hover span,
.site-logo:focus-visible span { background-position: 100% 50%; }
.site-logo:focus-visible { outline: 2px solid rgba(34,214,208,.62); outline-offset: 8px; border-radius: 8px; }

.top-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.nav-button {
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: 25px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.11), inset 0 1px 0 rgba(255,255,255,.07), 0 16px 34px rgba(0,0,0,.22);
  cursor: pointer;
  color: var(--text);
}
.nav-button.is-current { box-shadow: inset 0 0 0 1px rgba(34,214,208,.52), inset 0 1px 0 rgba(255,255,255,.07), 0 16px 34px rgba(0,0,0,.22); }
.nav-button__icon,
.btn__icon,
.balance-button__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.nav-button svg,
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.balance-button {
  position: relative;
  min-height: 58px;
  padding: 0 20px 0 12px;
  border: 0;
  background: linear-gradient(100deg, #a740ff 0%, #567dff 52%, #20d3c8 100%);
  color: white;
  cursor: pointer;
  border-radius: 29px;
}
.balance-button small { display: block; margin-top: 3px; font-size: 12px; text-transform: uppercase; opacity: 0.9; letter-spacing: .04em; }
.balance-button__icon { background: rgba(255,255,255,0.14); color: #68ffff; }

.hero {
  min-height: calc(100vh - 154px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(500px, 0.88fr);
  gap: clamp(72px, 7vw, 124px);
  align-items: center;
  padding-top: 30px;
  padding-bottom: clamp(86px, 9vw, 130px);
}
.hero__text { max-width: 860px; }
.eyebrow,
.kicker {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--line-cyan);
  border-radius: 999px;
  color: #e9fbff;
  background: rgba(18, 39, 68, 0.62);
  font-size: 14px;
  font-weight: 900;
}
.eyebrow span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
}
.hero h1,
.page-hero h1 {
  margin: 34px 0 24px;
  max-width: 840px;
  font-size: clamp(44px, 5.2vw, 82px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 850;
}
.hero h1 span,
.page-hero h1 span { display: block; color: transparent; background: linear-gradient(90deg, #a840ff, #f04cc6 45%, #22d6d0); -webkit-background-clip: text; background-clip: text; }
.lead,
.page-hero > p,
.section-head p { color: var(--muted); font-size: clamp(17px, 1.25vw, 20px); line-height: 1.72; max-width: 820px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 46px; }
.hero-tags span { border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.07); border-radius: 999px; padding: 12px 18px; color: var(--muted); line-height: 1.1; }
.hero-tags b { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; }

.btn {
  min-height: 64px;
  padding: 0 26px;
  border: 0;
  cursor: pointer;
  color: #fff;
  border-radius: 32px;
}
.btn--main {
  background: linear-gradient(100deg, #a83fff 0%, #4c8eff 54%, #22d6c9 100%);
  box-shadow: 0 20px 42px rgba(86, 84, 255, 0.22);
}
.btn--ghost { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.10); }
.btn:hover,
.balance-button:hover { transform: translateY(-2px); }
.nav-button:hover { filter: brightness(1.08); }

.server-card {
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 4.2vw, 58px);
  background: linear-gradient(150deg, rgba(18, 14, 36, 0.92), rgba(7, 10, 27, 0.82));
  box-shadow: var(--shadow);
  overflow: visible;
  width: 100%;
  max-width: 700px;
  justify-self: center;
}
.server-card p { color: var(--muted); font-weight: 900; margin: 0 0 14px; }
.ip {
  font-size: clamp(32px, 3.5vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.server-meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 22px 0 32px; color: var(--muted); font-weight: 800; }
.server-meta span:not(:first-child)::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 9px; background: var(--purple); box-shadow: 0 0 12px var(--purple); }
.copy-btn { width: 100%; }

.servers { padding-bottom: 100px; }
.server-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 28px;
}
.server-select-card {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) minmax(0, 1.28fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(21, 20, 44, 0.9), rgba(7, 10, 26, 0.9));
  box-shadow: var(--shadow);
  overflow: visible;
}
.server-select-card.is-active { border-color: rgba(34, 214, 208, 0.42); }
.server-select-card__visual {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 45%, rgba(168, 64, 255, 0.26), transparent 56%),
    linear-gradient(155deg, rgba(34, 214, 208, 0.08), rgba(168, 64, 255, 0.1));
  border-right: 1px solid rgba(255,255,255,0.08);
  border-radius: calc(var(--radius-lg) - 1px) 0 0 calc(var(--radius-lg) - 1px);
}
.server-select-card__visual img {
  width: min(100%, 220px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: none;
}
.server-select-card__visual > span {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 34px;
  color: rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.04);
  font-size: 38px;
  font-weight: 900;
}
.server-select-card__body { min-width: 0; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 46px); }
.server-select-card__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.server-order { color: var(--cyan); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.server-state { padding: 8px 12px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.server-state.is-active { color: #83f7c3; background: rgba(51, 199, 139, .14); border: 1px solid rgba(51, 199, 139, .28); }
.server-state.is-soon { color: #d3c5ff; background: rgba(137, 104, 255, .13); border: 1px solid rgba(137, 104, 255, .26); }
.server-select-card h3 { margin: 24px 0 12px; font-size: clamp(30px, 3.2vw, 48px); letter-spacing: -.05em; }
.server-select-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.server-select-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.server-select-meta span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.045); font-size: 13px; font-weight: 800; }
.server-select-meta b { color: var(--text); }
.server-select-address { margin-top: 18px; color: #fff; font-size: clamp(20px, 2vw, 27px); font-weight: 700; letter-spacing: -.018em; overflow-wrap: anywhere; }
.server-address-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  margin-top: 18px;
}
.server-address-row .server-select-address { margin-top: 0; }
.server-address-row--hero { margin: 0; }
.server-address-row--hero .ip {
  min-width: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(24px, 1.9vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.connection-help {
  position: relative;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  overflow: visible;
}
.connection-help:last-child { border-bottom: 0; }
.connection-help > summary {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: #9cfbff;
  background: rgba(18, 39, 68, 0.86);
  box-shadow: inset 0 0 0 1px var(--line-cyan), 0 8px 22px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  list-style: none;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 750;
  line-height: 1;
  overflow: hidden;
  background-clip: padding-box;
  backface-visibility: hidden;
}
.connection-help > summary::-webkit-details-marker { display: none; }
.connection-help > summary:hover,
.connection-help > summary:focus-visible,
.connection-help[open] > summary {
  color: #fff;
  outline: none;
  box-shadow: inset 0 0 0 1px var(--cyan), 0 0 0 4px rgba(34, 214, 208, 0.11), 0 10px 26px rgba(0, 0, 0, 0.3);
}
.connection-help__panel {
  position: absolute;
  z-index: 12;
  top: -12px;
  left: calc(100% + 14px);
  width: min(310px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--line-cyan);
  border-radius: 16px;
  color: var(--text);
  background: #10152a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.connection-help__panel::before {
  content: '';
  position: absolute;
  top: 22px;
  left: -7px;
  width: 12px;
  height: 12px;
  border-left: 1px solid var(--line-cyan);
  border-bottom: 1px solid var(--line-cyan);
  background: #10152a;
  transform: rotate(45deg);
}
.connection-help.opens-left .connection-help__panel { right: calc(100% + 14px); left: auto; }
.connection-help.opens-left .connection-help__panel::before {
  right: -7px;
  left: auto;
  border: 0;
  border-top: 1px solid var(--line-cyan);
  border-right: 1px solid var(--line-cyan);
}
.connection-help__panel strong { display: block; font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.connection-help__panel p { margin: 8px 0 14px; color: var(--muted); line-height: 1.5; }
.connection-help__address {
  display: block;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.055);
  overflow-wrap: anywhere;
  font-family: inherit;
  font-weight: 700;
}
.connection-help__copy {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  padding-inline: 16px;
  border-radius: 14px;
  font-weight: 700;
}
.server-select-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 26px; }
.server-select-actions .btn { min-height: 54px; padding-inline: 20px; }
.server-soon-note { margin-top: auto; padding: 18px; border: 1px dashed rgba(255,255,255,.14); border-radius: 16px; color: var(--muted); line-height: 1.6; background: rgba(255,255,255,.025); }
.server-card__actions { display: grid; }

.features,
.mode-grid,
.quick-grid,
.info-grid,
.rules-grid,
.news-list {
  display: grid;
  gap: 24px;
}
.features { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 88px; }
.feature-card,
.quick-card,
.mode-card,
.panel,
.news-row,
.rule-card,
.faq-list,
.modal__box {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(21, 20, 44, 0.86), rgba(7, 10, 26, 0.86));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.feature-card { padding: 26px; min-height: 220px; }
.feature-card div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--cyan); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: rgba(255,255,255,0.07); color: white; font-size: 23px; }
.feature-card h2,
.quick-card h3,
.mode-card h3,
.rule-card h2 { margin: 22px 0 12px; font-size: 24px; letter-spacing: -0.04em; }
.feature-card p,
.quick-card p,
.mode-card p,
.rule-card p,
.panel p,
.panel li,
.faq-list p { color: var(--muted); line-height: 1.7; }
.feature-card small { color: #89f8ff; font-weight: 800; }

.section-head { margin-bottom: 34px; }
.section-head h2,
.panel h2,
.modal h2 { margin: 18px 0 12px; font-size: clamp(34px, 4vw, 58px); line-height: 1.04; letter-spacing: -0.06em; }
.quick,
.modes,
.info-grid,
.faq { padding-bottom: 100px; }
.quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-card { padding: 30px; }
.quick-card span,
.rule-card span,
.news-number { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: rgba(20, 214, 222, 0.14); color: #7ffcff; font-weight: 900; }
.mode-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mode-card { padding: 30px; }
.mode-card > span { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: rgba(168,64,255,0.16); font-size: 24px; }
.mode-card ul { padding-left: 18px; color: var(--muted); line-height: 1.9; }
.info-grid { grid-template-columns: 1fr 1fr; }
.panel { padding: clamp(28px, 4vw, 44px); }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: '•'; position: absolute; left: 0; color: var(--pink); font-size: 26px; line-height: .7; }
.check-list--cyan li::before { color: var(--cyan); }
.faq-list { padding: 18px; }
details { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 18px; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 900; }

.page-hero { padding-top: 34px; padding-bottom: 36px; }
.page-hero h1 { font-size: clamp(42px, 5vw, 76px); }
.page-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 80px; }
.news-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 22px;
  align-items: center;
  padding: 30px;
  min-height: 210px;
  color: inherit;
}
.news-row--wide { grid-column: 1 / -1; }
.news-row h2 { margin: 14px 0 12px; font-size: clamp(28px, 3vw, 44px); line-height: 1.08; letter-spacing: -0.05em; }
.news-row p { color: var(--muted); line-height: 1.6; }
.news-row small { color: #6df6ff; font-weight: 900; }
.news-meta { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-weight: 900; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.news-article { max-width: 960px; margin: 0 auto; }
.news-article__body { margin-top: 24px; }
.news-article__body p { color: var(--muted); font-size: 19px; line-height: 1.8; }
.news-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.news-tags span { border: 1px solid var(--line-cyan); border-radius: 999px; color: #9afcff; padding: 9px 14px; font-weight: 900; }
.rules-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 42px; }
.rule-card { padding: 30px; }
.rules-notice { margin-bottom: 26px; }
.rules-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.rules-toc a { padding: 10px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.045); font-size: 13px; font-weight: 800; }
.rules-toc a:hover, .rules-toc a:focus-visible { color: #fff; border-color: var(--line-cyan); outline: none; }
.rules-accordion { display: grid; gap: 14px; padding-bottom: 70px; }
.rule-section { scroll-margin-top: 24px; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(21, 20, 44, .9), rgba(7, 10, 26, .9)); box-shadow: var(--shadow); overflow: clip; }
.rule-section > summary { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px 24px; list-style: none; }
.rule-section > summary::-webkit-details-marker { display: none; }
.rule-toggle { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(110,243,255,.22); border-radius: 50%; color: var(--cyan); background: rgba(34,214,208,.055); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.rule-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rule-toggle__vertical { transform-origin: center; transition: opacity .18s ease, transform .18s ease; }
.rule-section[open] .rule-toggle__vertical { opacity: 0; transform: scaleY(0); }
.rule-section > summary:hover .rule-toggle,
.rule-section > summary:focus-visible .rule-toggle { border-color: rgba(110,243,255,.7); background: rgba(34,214,208,.12); box-shadow: 0 0 0 4px rgba(34,214,208,.07); }
.rule-section > summary:focus-visible { outline: none; }
.rule-section__number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #8dfaff; background: rgba(34,214,208,.12); font-weight: 900; }
.rule-section h2 { margin: 0; font-size: clamp(21px, 2vw, 28px); letter-spacing: -.035em; }
.rule-section__body { padding: 0 24px 24px 92px; border-top: 1px solid rgba(255,255,255,.07); }
.rule-section__body ol, .rule-section__body ul { margin: 18px 0 0; padding-left: 22px; color: var(--muted); }
.rule-section__body li { padding: 6px 0 6px 5px; line-height: 1.65; }
.rule-section__body li::marker { color: var(--cyan); font-weight: 800; }
.rule-section__lead { margin: 18px 0 0; color: var(--muted); line-height: 1.65; }

.footer { width: var(--wrap); margin: 0 auto; padding: 34px 0 46px; color: var(--muted); display: flex; gap: 18px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.08); }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: var(--muted); font-weight: 800; }
.footer a:hover { color: white; }

.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: min(94vw, 560px); }
.modal::backdrop { background: rgba(2, 4, 12, 0.72); }
.modal__box { position: relative; padding: 34px; }
.modal__close { position: absolute; right: 18px; top: 16px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.08); color: white; font-size: 24px; cursor: pointer; }
.field { display: grid; gap: 8px; margin: 16px 0; color: var(--muted); font-weight: 900; }
.field input { width: 100%; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; background: rgba(255,255,255,0.08); color: white; padding: 17px 18px; outline: none; }
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 214, 208, 0.10); }
.amount-grid,
.profile-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.amount-grid button { min-height: 46px; border: 1px solid rgba(168,64,255,0.55); border-radius: 14px; background: rgba(255,255,255,0.06); color: white; font-weight: 900; cursor: pointer; }
.profile-mini { grid-template-columns: repeat(3, 1fr); }
.profile-mini span { border: 1px solid rgba(255,255,255,0.10); border-radius: 16px; padding: 14px; color: var(--muted); }
.profile-mini strong { display: block; color: white; margin-top: 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 14px 18px; border-radius: 999px; background: #11152a; border: 1px solid var(--line-cyan); box-shadow: var(--shadow); color: white; font-weight: 900; z-index: 20; transition: 180ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }


@media (min-width: 1500px) {
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(540px, 0.92fr); }
  .server-list,
  .features,
  .mode-grid,
  .quick-grid,
  .info-grid,
  .rules-grid,
  .news-list { gap: 28px; }
}

@media (min-width: 1241px) {
  .hero__text { padding-left: clamp(0px, 1vw, 18px); }
  .server-card { transform: translateY(18px); justify-self: end; }
}

@media (max-width: 1240px) {
  :root { --wrap: min(100% - 36px, 1180px); }
  .site-header { grid-template-columns: 1fr; justify-items: center; min-height: auto; padding-top: 24px; }
  .online-pill { justify-self: center; order: 1; }
  .site-logo { order: 2; transform: none; }
  .top-nav { order: 3; justify-content: center; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 38px; gap: 42px; }
  .server-card { max-width: 720px; width: 100%; }
  .features, .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-select-card { grid-template-columns: minmax(150px, .65fr) minmax(0, 1.35fr); }
  .rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --wrap: min(100% - 24px, 760px); }
  .site-header { gap: 14px; }
  .top-nav { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-button, .balance-button { width: 100%; min-width: 0; }
  .balance-button small { display: none; }
  .hero h1 { font-size: clamp(38px, 10.5vw, 66px); line-height: 1.08; letter-spacing: -0.04em; }
  .hero-tags, .hero-actions, .page-actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .features, .mode-grid, .quick-grid, .info-grid, .news-list, .rules-grid { grid-template-columns: 1fr; }
  .server-select-card { grid-template-columns: 1fr; }
  .server-select-card__visual { min-height: 230px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .server-select-card__visual { border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0; }
  .server-select-card__visual img { width: min(58vw, 220px); }
  .news-row, .news-row--wide { grid-column: auto; grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
  .amount-grid, .profile-mini { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .site-logo { font-size: clamp(44px, 13vw, 58px); }
  .top-nav { grid-template-columns: 1fr; }
  .nav-button { justify-content: flex-start; }
  .balance-button { justify-content: flex-start; }
  .hero { padding-bottom: 58px; }
  .ip { font-size: clamp(30px, 12vw, 46px); }
  .server-address-row--hero .ip { font-size: clamp(25px, 8vw, 34px); }
  .server-address-row--hero { width: 100%; }
  .feature-card, .quick-card, .mode-card, .panel, .news-row, .rule-card, .modal__box { padding: 24px; }
  .modal { max-width: calc(100vw - 20px); }
}

/* Profile and payments */
.profile-page { padding-top: 28px; padding-bottom: 110px; }
.profile-intro { max-width: 840px; margin-bottom: 44px; }
.profile-intro h1 { margin: 20px 0 14px; font-size: clamp(44px, 5vw, 76px); line-height: 1; letter-spacing: -0.055em; }
.profile-intro > p:not(.kicker) { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.7; }

.auth-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.auth-card,
.profile-sidebar,
.profile-panel,
.profile-stats article {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(21, 20, 44, 0.9), rgba(7, 10, 26, 0.9));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.auth-card { padding: clamp(28px, 4vw, 46px); }
.auth-card h2 { margin: 20px 0 10px; font-size: clamp(32px, 3vw, 48px); letter-spacing: -0.05em; }
.auth-card > p { color: var(--muted); line-height: 1.65; }
.auth-card .btn { width: 100%; margin-top: 8px; }

.profile-dashboard { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); align-items: start; gap: 28px; }
.profile-sidebar { position: sticky; top: 24px; padding: 30px; text-align: center; }
.profile-avatar { width: 94px; height: 94px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 28px; background: linear-gradient(135deg, var(--purple), var(--blue), var(--cyan)); box-shadow: 0 18px 44px rgba(109, 77, 255, .3); color: white; font-size: 40px; font-weight: 950; }
.profile-sidebar h2 { margin: 0 0 6px; font-size: 30px; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.profile-sidebar > p { margin: 0 0 20px; color: var(--muted); overflow-wrap: anywhere; }
.profile-sidebar .btn { width: 100%; min-height: 54px; margin-top: 10px; }

.profile-content { min-width: 0; display: grid; gap: 26px; }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.profile-stats article { padding: 24px; min-width: 0; }
.profile-stats span { color: var(--muted); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.profile-stats strong { display: block; margin: 12px 0 8px; font-size: clamp(24px, 2.5vw, 36px); letter-spacing: -0.04em; overflow-wrap: anywhere; }
.profile-stats small { color: var(--muted); }
.profile-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.profile-panel { padding: clamp(26px, 3vw, 38px); overflow: hidden; }
.profile-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.profile-panel h2 { margin: 14px 0 0; font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.05em; }
.profile-panel--wide { width: 100%; }
.skin-panel__layout { display: grid; grid-template-columns: minmax(240px, .78fr) minmax(280px, 1.22fr); gap: clamp(24px, 4vw, 46px); align-items: center; }
.skin-viewer-shell { position: relative; min-height: 390px; display: grid; place-items: center; border: 1px solid rgba(34,214,208,.22); border-radius: 22px; background: radial-gradient(circle at 50% 40%, rgba(79,128,255,.2), transparent 52%), rgba(2,5,16,.58); overflow: hidden; }
.skin-viewer-shell::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: 30px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.38); filter: blur(12px); pointer-events: none; }
.skin-viewer-shell canvas { position: relative; z-index: 1; width: 100%; height: 390px; touch-action: none; image-rendering: pixelated; opacity: 1; transition: opacity .18s ease; }
.skin-viewer-shell canvas.is-loading { opacity: 0; pointer-events: none; }
.skin-viewer-placeholder { position: absolute; z-index: 2; margin: 0; color: var(--muted); text-align: center; }
.skin-viewer-placeholder.is-fallback { max-width: 240px; padding: 24px; border: 1px dashed rgba(34,214,208,.3); border-radius: 18px; color: #c9f9ff; background: rgba(34,214,208,.055); line-height: 1.55; font-weight: 800; }
.skin-controls h3, .nickname-panel h3 { margin: 0 0 10px; font-size: clamp(24px, 2.5vw, 34px); letter-spacing: -.04em; }
.skin-controls > p, .nickname-panel__intro { margin: 0 0 20px; color: var(--muted); line-height: 1.65; }
.skin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.skin-actions .btn { min-height: 50px; }
.skin-upload { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.skin-model-switch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; padding: 6px; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: rgba(255,255,255,.035); }
.skin-model-switch button { min-height: 42px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 800; }
.skin-model-switch button.is-active { color: #fff; background: rgba(34,214,208,.13); box-shadow: inset 0 0 0 1px rgba(34,214,208,.26); }
.skin-help { display: block; margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.nickname-panel__price { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid rgba(255,188,52,.3); border-radius: 999px; color: #ffd877; background: rgba(255,161,25,.09); font-weight: 900; white-space: nowrap; }
.money-mark { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 6px; border: 1px solid rgba(255,206,87,.45); border-radius: 8px; color: #ffcf56; background: linear-gradient(145deg, #4b2600, #211009); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); font-family: system-ui, sans-serif; font-size: 12px; font-weight: 950; letter-spacing: -.04em; }
.nickname-current { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 18px; margin: 18px 0; padding: 16px 18px; border: 1px solid rgba(53,218,155,.3); border-radius: 16px; background: rgba(31,137,96,.09); }
.nickname-current span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.nickname-current strong { grid-column: 1; font-size: 22px; overflow-wrap: anywhere; }
.nickname-current small { grid-column: 2; grid-row: 1 / span 2; color: #82f4be; font-weight: 800; text-align: right; }
.nickname-buy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.nickname-buy .field { margin: 0; }
.nickname-buy .btn { min-height: 54px; }
.nickname-message { min-height: 20px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.nickname-pending { display: grid; gap: 5px; margin: -6px 0 18px; padding: 14px 18px; border: 1px solid rgba(255,188,52,.26); border-radius: 16px; background: rgba(255,161,25,.07); }
.nickname-pending[hidden] { display: none; }
.nickname-pending span { color: #ffd27a; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.nickname-pending strong { font-size: 21px; }
.nickname-pending .text-button { width: max-content; margin-top: 5px; color: #ffd27a; }
.bridge-panel__intro { margin: 0 0 18px; color: var(--muted); line-height: 1.65; }
.bridge-panel__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: bridge-step; }
.bridge-panel__steps span { min-height: 70px; display: flex; align-items: center; padding: 14px 16px; border: 1px solid rgba(34,214,208,.14); border-radius: 15px; background: rgba(34,214,208,.045); color: #dce8f7; line-height: 1.45; font-weight: 750; }
.bridge-command { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 15px 16px 15px 19px; border: 1px solid rgba(128,94,255,.32); border-radius: 16px; background: rgba(78,53,173,.12); }
.bridge-command[hidden] { display: none; }
.bridge-command > div { min-width: 0; display: grid; gap: 5px; }
.bridge-command small { color: var(--muted); font-weight: 800; }
.bridge-command code { color: #f3efff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(14px, 2vw, 18px); font-weight: 800; overflow-wrap: anywhere; }
.icon-action { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(34,214,208,.3); border-radius: 14px; color: #8ffcff; background: rgba(34,214,208,.08); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.icon-action:hover { border-color: rgba(34,214,208,.65); background: rgba(34,214,208,.14); transform: translateY(-1px); }
.icon-action svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bridge-panel__actions { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.bridge-panel__actions p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.status-badge { flex: 0 0 auto; border: 1px solid rgba(80, 243, 191, .32); border-radius: 999px; padding: 8px 12px; background: rgba(28, 100, 74, .24); color: #83f7c3; font-size: 13px; font-weight: 900; }
.status-badge.is-warning { border-color: rgba(255,196,78,.32); background: rgba(128,82,15,.18); color: #ffd27a; }
.account-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.account-checks li { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.08); color: var(--muted); }
.account-checks li:last-child { border-bottom: 0; }
.account-checks b { color: var(--text); text-align: right; }
.profile-note { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(34, 214, 208, .08); color: var(--muted); line-height: 1.55; }
.btn--compact { min-height: 42px; padding: 0 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }

.payments-list { display: grid; gap: 10px; }
.payment-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, auto) auto; align-items: center; gap: 24px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: rgba(255,255,255,.035); }
.payment-row > div { min-width: 0; display: grid; gap: 5px; }
.payment-row strong { font-size: 20px; }
.payment-row span,
.payment-row small { color: var(--muted); overflow-wrap: anywhere; }
.payment-row__audit { font-size: 12px; line-height: 1.4; opacity: .9; }
.payment-status { min-width: 112px; padding: 9px 12px; border-radius: 999px; text-align: center; background: rgba(255,255,255,.07); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.payment-status.is-success { background: rgba(51, 199, 139, .14); color: #83f7c3; }
.payment-status.is-pending { background: rgba(255, 187, 62, .14); color: #ffd27d; }
.payment-status.is-failed { background: rgba(255, 71, 121, .14); color: #ff91ae; }
.empty-state { padding: 34px; border: 1px dashed rgba(255,255,255,.14); border-radius: 16px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--text); font-size: 20px; }
.empty-state p { margin-bottom: 0; }

.payment-modal { max-width: min(94vw, 620px); }
.payment-box { padding: 36px; }
.payment-account { display: grid; gap: 6px; margin: 22px 0; padding: 18px; border: 1px solid var(--line-cyan); border-radius: 18px; background: rgba(15, 47, 67, .4); }
.payment-account span,
.payment-account small { color: var(--muted); }
.payment-account strong { font-size: 22px; }
.amount-input { position: relative; }
.amount-input input { padding-right: 184px; font-size: 20px; font-weight: 900; appearance: textfield; -moz-appearance: textfield; }
.amount-input input::-webkit-inner-spin-button,
.amount-input input::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }
.amount-input b { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); color: var(--muted); }
.amount-stepper { position: absolute; top: 50%; right: 82px; display: inline-grid; grid-template-columns: repeat(2, 38px); gap: 6px; transform: translateY(-50%); }
.amount-stepper button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(110,243,255,.2); border-radius: 11px; color: #9cfbff; background: rgba(12,28,49,.84); cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease; }
.amount-stepper button:hover,
.amount-stepper button:focus-visible { color: #fff; border-color: rgba(110,243,255,.68); background: rgba(34,214,208,.13); outline: none; }
.amount-stepper button:active { transform: scale(.94); }
.amount-stepper button:disabled { opacity: .34; cursor: not-allowed; transform: none; }
.amount-stepper svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.amount-grid button.is-active { border-color: var(--cyan); background: rgba(34, 214, 208, .15); box-shadow: 0 0 0 3px rgba(34, 214, 208, .08); }
.payment-method { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 18px 0; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.045); }
.payment-method__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, var(--purple), var(--blue)); font-weight: 950; }
.payment-method div { display: grid; gap: 4px; }
.payment-method small { color: var(--muted); }
.payment-method > b { color: var(--cyan); }
.payment-summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 18px 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.09); color: var(--muted); }
.payment-summary strong { color: var(--text); font-size: 24px; }
.payment-summary--secondary { margin-top: -8px; padding-top: 0; border-top: 0; font-size: 13px; }
.payment-summary--secondary strong { font-size: 17px; color: var(--muted); }
.payment-box > .btn { width: 100%; }
.payment-hint { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }

[hidden] { display: none !important; }

@media (max-width: 1120px) {
  .profile-dashboard { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; text-align: left; }
  .profile-avatar { width: 72px; height: 72px; margin: 0; border-radius: 22px; font-size: 30px; grid-row: span 2; }
  .profile-sidebar h2, .profile-sidebar > p { margin: 0; }
  .profile-sidebar .btn { width: auto; margin: 0; }
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .auth-layout, .profile-panels { grid-template-columns: 1fr; }
  .profile-sidebar { grid-template-columns: auto 1fr; }
  .profile-sidebar .btn { width: 100%; }
  .payment-row { grid-template-columns: 1fr auto; }
  .payment-row > div:nth-child(2) { grid-column: 1; grid-row: 2; }
  .payment-status { grid-column: 2; grid-row: 1 / span 2; }
  .skin-panel__layout { grid-template-columns: 1fr; }
  .skin-viewer-shell, .skin-viewer-shell canvas { min-height: 360px; height: 360px; }
  .nickname-buy { grid-template-columns: 1fr; }
  .bridge-panel__steps { grid-template-columns: 1fr; }
  .bridge-panel__actions { align-items: stretch; flex-direction: column; }
}

@media (max-width: 520px) {
  .profile-stats { grid-template-columns: 1fr; }
  .profile-sidebar { display: flex; flex-direction: column; text-align: center; }
  .profile-panel__head { flex-direction: column; }
  .payment-row { grid-template-columns: 1fr; }
  .payment-row > div:nth-child(2), .payment-status { grid-column: auto; grid-row: auto; }
  .payment-status { width: max-content; }
  .payment-method { grid-template-columns: auto 1fr; }
  .payment-method > b { grid-column: 2; }
  .payment-box { padding: 26px 22px; }
  .server-address-row--hero .ip { flex: 1 1 auto; font-size: clamp(18px, 5.5vw, 25px); }
  .connection-help__panel,
  .connection-help.opens-left .connection-help__panel { top: calc(100% + 12px); right: 0; left: auto; width: min(310px, calc(100vw - 32px)); }
  .connection-help__panel::before,
  .connection-help.opens-left .connection-help__panel::before { top: -7px; right: 11px; left: auto; border: 0; border-top: 1px solid var(--line-cyan); border-left: 1px solid var(--line-cyan); }
  .rule-section > summary { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 11px; padding: 16px; }
  .rule-section__number { width: 40px; height: 40px; }
  .rule-section__body { padding: 0 18px 20px; }
  .skin-viewer-shell, .skin-viewer-shell canvas { min-height: 320px; height: 320px; }
  .skin-actions { display: grid; grid-template-columns: 1fr; }
  .nickname-current { grid-template-columns: 1fr; }
  .nickname-current small { grid-column: 1; grid-row: auto; text-align: left; }
}

/* Inline form validation */
.field-error {
  display: block;
  min-height: 18px;
  margin-top: 7px;
  color: #ff7598;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.field.has-error input {
  border-color: rgba(255, 92, 132, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 65, 116, 0.12);
}

.field.has-available input {
  border-color: rgba(58, 224, 164, 0.85);
  box-shadow: 0 0 0 3px rgba(58, 224, 164, 0.1);
}

.field.has-available .field-error {
  color: #65e6b5;
}

.form-error {
  min-height: 20px;
  margin: 6px 0 0;
  color: #ff7598;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

form[aria-busy="true"] button[type="submit"] {
  cursor: wait;
  opacity: 0.76;
}

/* Release account and legal pages */
.service-unavailable {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(45, 221, 227, .25);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(31, 24, 59, .82), rgba(8, 17, 32, .88));
}
.service-unavailable__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, #a63cff, #18d8d2);
}
.service-unavailable h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 38px); }
.service-unavailable p { margin: 0; color: var(--muted); line-height: 1.6; }

.form-actions { display: flex; align-items: center; gap: 12px; }
.form-actions--split { justify-content: flex-end; margin-top: -4px; }
.text-button {
  appearance: none;
  padding: 4px 0;
  border: 0;
  color: #92f6fa;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.text-button:hover { color: #fff; text-decoration: underline; }
.text-button:focus-visible { outline: 2px solid #47dce1; outline-offset: 4px; border-radius: 4px; }

.auth-consent,
.payment-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.auth-consent input,
.payment-consent input { margin-top: 3px; accent-color: #8d45ff; }
.auth-consent a,
.payment-consent a { color: #a7f7fa; text-decoration: underline; text-underline-offset: 2px; }

.security-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.account-checks b.is-warning { color: #ffd27a; }
.payment-status.is-refunded { color: #d1c4ff; background: rgba(137, 104, 255, .14); }

.payment-consent { margin: 2px 0 4px; }
.field > small:not(.field-error) { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

/* VC-ID onboarding and local integration controls */
.onboarding-panel { border-color: rgba(119, 91, 255, .35); background: linear-gradient(145deg, rgba(37, 24, 70, .94), rgba(6, 16, 31, .94)); }
.onboarding-panel__lead,
.onboarding-path > p,
[data-minecraft-security] > p,
[data-bridge-message] { color: var(--muted); line-height: 1.65; }
.onboarding-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.onboarding-choice__button { display: grid; gap: 7px; min-height: 104px; padding: 20px; border: 1px solid rgba(255,255,255,.11); border-radius: 18px; color: var(--text); background: rgba(255,255,255,.045); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.onboarding-choice__button:hover,
.onboarding-choice__button.is-active { transform: translateY(-2px); border-color: rgba(55, 222, 224, .55); background: rgba(34,214,208,.10); }
.onboarding-choice__button strong { font-size: 19px; }
.onboarding-choice__button span { color: var(--muted); line-height: 1.45; }
.onboarding-path { margin-top: 20px; padding: clamp(20px, 3vw, 28px); border: 1px solid rgba(34,214,208,.18); border-radius: 20px; background: rgba(1, 7, 19, .38); }
.onboarding-path h3 { margin: 0 0 14px; font-size: clamp(22px, 2.5vw, 30px); }
.simple-steps { display: grid; gap: 8px; margin: 0 0 18px; padding-left: 22px; color: var(--muted); line-height: 1.55; }
.simple-steps code,
[data-minecraft-security] code { color: #a9fbff; font-weight: 900; }
.inline-code-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; gap: 12px; }
.inline-code-form .field { margin: 0; }
.inline-code-form .form-error { grid-column: 1 / -1; }
.inline-code-form input { text-transform: uppercase; letter-spacing: .16em; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 900; }
.new-player-form { max-width: 680px; }
.warning-note { padding: 14px 16px; border: 1px solid rgba(255,190,70,.24); border-radius: 14px; color: #ffe0a1 !important; background: rgba(255,158,30,.075); }
.security-code-message { display: block; min-height: 20px; margin-top: 12px; color: #9ffcff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 900; overflow-wrap: anywhere; }
.identity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.identity-grid > div { min-width: 0; padding: 15px 16px; border: 1px solid rgba(34,214,208,.15); border-radius: 14px; background: rgba(34,214,208,.045); }
.identity-grid span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.identity-grid strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
[data-bridge-message] { margin: 16px 0 0; }
.nickname-buy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nickname-buy .btn { grid-column: 1 / -1; width: max-content; }
[data-minecraft-security] { grid-column: 1 / -1; }
.game-password-form { max-width: 680px; margin-top: 16px; }

@media (max-width: 760px) {
  .onboarding-choice,
  .identity-grid,
  .nickname-buy,
  .inline-code-form { grid-template-columns: 1fr; }
  .inline-code-form .form-error,
  .nickname-buy .btn { grid-column: auto; }
  .nickname-buy .btn,
  .inline-code-form .btn { width: 100%; }
}

.legal-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.legal-hero {
  margin-bottom: 28px;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid rgba(91, 80, 150, .35);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(39, 20, 68, .82), rgba(8, 20, 37, .9));
}
.legal-hero h1 { margin: 8px 0 12px; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; }
.legal-hero p { max-width: 780px; margin: 0; color: var(--muted); line-height: 1.7; }
.legal-content {
  display: grid;
  gap: 18px;
  margin-bottom: 56px;
}
.legal-section {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background: rgba(11, 14, 34, .78);
}
.legal-section h2 { margin: 0 0 14px; font-size: clamp(22px, 3vw, 34px); }
.legal-section h3 { margin: 22px 0 10px; font-size: 20px; }
.legal-section p,
.legal-section li { color: var(--muted); line-height: 1.7; }
.legal-section ul,
.legal-section ol { margin: 12px 0 0; padding-left: 22px; }
.legal-section a { color: #93f4f7; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.legal-meta span { padding: 8px 12px; border: 1px solid rgba(73,220,226,.28); border-radius: 999px; color: #bafcff; font-size: 12px; font-weight: 800; }

@media (max-width: 760px) {
  .service-unavailable { grid-template-columns: 1fr; }
  .service-unavailable__icon { width: 48px; height: 48px; }
  .service-unavailable .btn { width: 100%; }
  .security-actions { align-items: stretch; }
  .security-actions .btn { width: 100%; }
  .legal-page { width: min(100% - 20px, 1120px); }
}

/* Auth callback pages */
.auth-result-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.auth-result-card {
  width: min(620px, 100%);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  background: rgba(11, 6, 22, .88);
  box-shadow: 0 28px 90px rgba(0,0,0,.42);
}
.auth-result-card h1 { margin: 10px 0 14px; }
.auth-result-card > p:not(.kicker) { color: var(--muted); line-height: 1.65; }
.auth-result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.auth-result-card form { display: grid; gap: 16px; margin-top: 24px; }

/* Staff panel */
.staff-page {
  width: min(calc(100% - 36px), 1380px);
  min-height: 72vh;
}

.staff-intro {
  max-width: 820px;
  padding-bottom: 8px;
}

.staff-intro h1 {
  margin-bottom: 14px;
  line-height: 1.02;
}

.staff-intro > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
}

.staff-state {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 760px;
  margin-top: 28px;
  padding: 26px;
}

.staff-state h2,
.staff-state p {
  margin: 0;
}

.staff-state h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.staff-state p {
  margin-top: 6px;
  color: var(--muted);
}

.staff-state .btn {
  margin-left: auto;
}

.staff-state__spinner {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 3px solid rgba(91, 221, 228, .18);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: staff-spin .8s linear infinite;
}

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

.staff-shell {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.staff-command-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 16px 18px;
  border-color: rgba(91, 221, 228, .18);
  background: rgba(12, 9, 29, .93);
  backdrop-filter: blur(18px);
}

.staff-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.staff-identity .profile-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  font-size: 20px;
}

.staff-identity strong,
.staff-identity span {
  display: block;
  overflow-wrap: anywhere;
}

.staff-identity strong {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-identity span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.staff-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.staff-tab {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.staff-tab:hover,
.staff-tab.is-active {
  border-color: rgba(91, 221, 228, .25);
  background: rgba(91, 221, 228, .09);
  color: var(--text);
}

.staff-profile-link {
  min-height: 44px;
  padding: 10px 16px;
  white-space: nowrap;
}

.staff-content {
  min-width: 0;
}

.staff-section {
  padding: clamp(24px, 3vw, 38px);
  overflow: visible;
}

.staff-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.staff-section__head h2,
.staff-section__head p,
.staff-editor__head h2,
.staff-editor__head p {
  margin: 0;
}

.staff-section__head h2,
.staff-editor__head h2 {
  margin-top: 6px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.staff-section__head p:not(.kicker) {
  max-width: 720px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.staff-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.staff-filters button,
.staff-preview-mode button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.staff-filters button:hover,
.staff-filters button.is-active,
.staff-preview-mode button:hover,
.staff-preview-mode button.is-active {
  border-color: rgba(91, 221, 228, .34);
  background: rgba(91, 221, 228, .11);
  color: var(--cyan);
}

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

.staff-empty {
  margin: 0;
  padding: 28px;
  border: 1px dashed rgba(255,255,255,.11);
  border-radius: 17px;
  color: var(--muted);
  text-align: center;
}

.staff-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.027);
}

.staff-item__main {
  min-width: 0;
}

.staff-item h3,
.staff-item p {
  margin: 0;
}

.staff-item h3 {
  margin-top: 8px;
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -.025em;
}

.staff-item p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.staff-item small {
  display: block;
  margin-top: 9px;
  color: rgba(220, 214, 234, .6);
  overflow-wrap: anywhere;
}

.staff-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.staff-status,
.staff-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  font-size: 12px;
  font-weight: 800;
}

.staff-status--draft {
  color: #ffd47a;
  background: rgba(255, 180, 72, .1);
}

.staff-status--published {
  color: #7ff3c7;
  background: rgba(80, 224, 164, .1);
}

.staff-status--scheduled {
  color: #96d6ff;
  background: rgba(83, 169, 255, .12);
}

.staff-status--archived {
  color: #b9afc9;
  background: rgba(185, 175, 201, .09);
}

.staff-role-badge {
  color: #cbbaff;
  background: rgba(168, 105, 255, .11);
}

.staff-item__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.staff-item__actions .btn {
  min-height: 42px;
  padding: 9px 14px;
  font-size: 13px;
}

.text-button--danger {
  color: #ff9aab;
}

.text-button--danger:hover {
  color: #ffc1cb;
}

.staff-invite-form {
  display: grid;
  gap: 22px;
  margin-bottom: 34px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(91, 221, 228, .16);
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(91, 221, 228, .045), rgba(168, 64, 255, .035));
}

.staff-form-title h3,
.staff-form-title p,
.staff-subsection__head h3,
.staff-subsection__head p {
  margin: 0;
}

.staff-form-title h3,
.staff-subsection__head h3 {
  font-size: clamp(23px, 2.4vw, 32px);
  letter-spacing: -.035em;
}

.staff-form-title p,
.staff-subsection__head p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
}

.staff-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
  gap: 16px;
}

.staff-invite-form .field,
.staff-editor .field,
.staff-member-form .field,
.staff-publish-options .field {
  margin: 0;
}

.staff-invite-form input,
.staff-invite-form select,
.staff-editor input[type="text"],
.staff-editor input[type="datetime-local"],
.staff-editor select,
.staff-editor textarea,
.staff-member-form select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  background: rgba(255,255,255,.065);
  color: var(--text);
  padding: 15px 16px;
  outline: none;
  font: inherit;
  font-weight: 700;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.staff-invite-form select,
.staff-editor select,
.staff-member-form select {
  color-scheme: dark;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.staff-invite-form option,
.staff-editor option,
.staff-member-form option {
  background: #151127;
  color: var(--text);
}

.staff-invite-form input:focus,
.staff-invite-form select:focus,
.staff-editor input:focus,
.staff-editor select:focus,
.staff-editor textarea:focus,
.staff-member-form select:focus {
  border-color: var(--cyan);
  background-color: rgba(255,255,255,.085);
  box-shadow: 0 0 0 4px rgba(34, 214, 208, .1);
}

.staff-invite-form .field > small,
.staff-editor .field > small,
.staff-content-field > small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.staff-permission-picker,
.staff-status-picker,
.staff-publish-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.staff-permission-picker > legend,
.staff-status-picker > legend,
.staff-publish-options > legend {
  padding: 0;
  color: var(--muted);
  font-weight: 900;
}

.staff-permission-picker > p {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

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

.staff-permission-grid > label {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.staff-permission-grid > label:hover,
.staff-permission-grid > label:has(input:checked) {
  border-color: rgba(91, 221, 228, .32);
  background: rgba(91, 221, 228, .075);
}

.staff-permission-grid input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 6px;
  background: rgba(4, 3, 12, .45);
  cursor: pointer;
}

.staff-permission-grid input[type="checkbox"]:checked {
  border-color: var(--cyan);
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: inset 0 0 0 4px rgba(8, 7, 20, .75);
}

.staff-permission-grid input:focus-visible {
  outline: 3px solid rgba(91, 221, 228, .23);
  outline-offset: 2px;
}

.staff-permission-grid b,
.staff-permission-grid small {
  display: block;
}

.staff-permission-grid b {
  color: var(--text);
  font-size: 14px;
}

.staff-permission-grid small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.staff-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.staff-invite-form .form-error {
  margin: -4px 0 0;
}

.staff-subsection {
  display: grid;
  gap: 15px;
}

.staff-subsection + .staff-subsection {
  margin-top: 34px;
}

.staff-member-card {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 19px;
  background: rgba(255,255,255,.025);
}

.staff-member-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.staff-member-card__identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

.staff-member-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, rgba(168,64,255,.8), rgba(34,214,208,.8));
  font-weight: 900;
}

.staff-member-card h3,
.staff-member-card small {
  display: block;
  margin: 0;
}

.staff-member-card h3 {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.staff-member-card small {
  margin-top: 5px;
  color: var(--muted);
}

.staff-member-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.staff-right-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.staff-right-pills:empty {
  display: none;
}

.staff-right-pills span {
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: 11px;
  font-weight: 700;
}

.staff-member-settings,
.staff-audit-details {
  margin-top: 16px;
  padding: 0;
  border: 0;
}

.staff-member-settings > summary,
.staff-audit-details > summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  color: var(--cyan);
  background: rgba(255,255,255,.035);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.staff-member-settings > summary::-webkit-details-marker,
.staff-audit-details > summary::-webkit-details-marker {
  display: none;
}

.staff-member-settings[open] > summary,
.staff-audit-details[open] > summary {
  border-color: rgba(91,221,228,.3);
  background: rgba(91,221,228,.08);
}

.staff-member-form {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.staff-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.staff-switch input {
  appearance: none;
  width: 46px;
  height: 26px;
  margin: 0;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.staff-switch input::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .18s ease, background .18s ease;
}

.staff-switch input:checked {
  border-color: rgba(91,221,228,.45);
  background: rgba(91,221,228,.16);
}

.staff-switch input:checked::before {
  transform: translateX(20px);
  background: var(--cyan);
}

.staff-switch input:disabled,
.staff-permission-grid input:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.staff-invite-item {
  align-items: flex-start;
}

.staff-audit-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
}

.staff-audit-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

.staff-audit-table th,
.staff-audit-table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-align: left;
  vertical-align: top;
}

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

.staff-audit-table th {
  color: var(--muted);
  background: rgba(255,255,255,.035);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.staff-audit-table td {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.staff-audit-details {
  margin: 0;
}

.staff-audit-details pre {
  max-width: 420px;
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(3,2,10,.6);
  color: #d8d0e7;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 11px;
  line-height: 1.5;
}

.staff-editor-section {
  padding-bottom: 0;
}

.staff-editor__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.staff-back-button {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.staff-back-button:hover {
  color: #fff;
}

.staff-save-state {
  flex: 0 0 auto;
  margin-top: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  font-size: 12px;
  font-weight: 800;
}

.staff-save-state[data-state="dirty"] {
  color: #ffd47a;
  border-color: rgba(255,180,72,.28);
  background: rgba(255,180,72,.08);
}

.staff-save-state[data-state="saving"] {
  color: #96d6ff;
  border-color: rgba(83,169,255,.28);
  background: rgba(83,169,255,.08);
}

.staff-save-state[data-state="saved"] {
  color: #7ff3c7;
  border-color: rgba(80,224,164,.28);
  background: rgba(80,224,164,.08);
}

.staff-save-state[data-state="error"] {
  color: #ff9aab;
  border-color: rgba(255,103,129,.28);
  background: rgba(255,103,129,.08);
}

.staff-editor {
  display: grid;
  gap: 24px;
}

.staff-editor__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 26px;
  align-items: start;
}

.staff-editor__fields {
  display: grid;
  min-width: 0;
  gap: 20px;
}

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

.staff-slug-card {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 90px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.03);
}

.staff-slug-card > span {
  color: var(--muted);
  font-weight: 900;
}

.staff-slug-card code {
  color: #aefaff;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.staff-slug-card .text-button {
  justify-self: start;
}

.staff-content-field {
  display: grid;
  gap: 9px;
}

.staff-content-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-weight: 900;
}

.staff-format-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.staff-format-toolbar button {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.staff-format-toolbar button:hover,
.staff-format-toolbar button:focus-visible {
  border-color: rgba(91,221,228,.34);
  color: var(--cyan);
  outline: none;
}

.staff-editor textarea[name="content"] {
  min-height: 390px;
  resize: vertical;
  line-height: 1.6;
  font-family: inherit;
  font-weight: 600;
}

.staff-editor textarea[name="excerpt"] {
  resize: vertical;
  line-height: 1.5;
  font-weight: 600;
}

.staff-tag-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 0;
  margin-top: -10px;
}

.staff-tag-preview span {
  padding: 6px 10px;
  border: 1px solid rgba(91,221,228,.22);
  border-radius: 999px;
  color: #9afcff;
  background: rgba(91,221,228,.055);
  font-size: 11px;
  font-weight: 800;
}

.staff-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}

.staff-segmented label {
  cursor: pointer;
}

.staff-segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.staff-segmented span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.staff-segmented input:checked + span {
  color: #fff;
  background: linear-gradient(135deg, rgba(168,64,255,.45), rgba(34,214,208,.3));
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.staff-segmented input:focus-visible + span {
  outline: 3px solid rgba(91,221,228,.22);
}

.staff-publish-options {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(83,169,255,.17);
  border-radius: 16px;
  background: rgba(83,169,255,.045);
}

.staff-publish-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.staff-publish-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.staff-publish-choice input {
  accent-color: var(--cyan);
}

.staff-cover-field {
  display: grid;
  gap: 12px;
}

.staff-cover-field__title {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.staff-cover-field p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.staff-dropzone {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 22px;
  border: 1px dashed rgba(91,221,228,.34);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(91,221,228,.035);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.staff-dropzone:hover,
.staff-dropzone.is-dragging {
  border-color: var(--cyan);
  background: rgba(91,221,228,.08);
  transform: translateY(-1px);
}

.staff-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.staff-dropzone__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  font-size: 24px;
  font-weight: 400;
}

.staff-dropzone strong,
.staff-dropzone small {
  display: block;
}

.staff-dropzone strong {
  color: var(--text);
}

.staff-dropzone small {
  margin-top: 5px;
  font-size: 12px;
}

.staff-cover-selected {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.03);
}

.staff-cover-selected img {
  width: 72px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.staff-cover-selected strong,
.staff-cover-selected small {
  display: block;
  overflow-wrap: anywhere;
}

.staff-cover-selected small {
  margin-top: 4px;
  color: var(--muted);
}

.staff-preview {
  position: sticky;
  top: 24px;
  min-height: 560px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(25,17,43,.92), rgba(12,9,27,.92));
  overflow: hidden;
}

.staff-preview__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.staff-preview__label {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.staff-preview-mode {
  display: flex;
  gap: 5px;
}

.staff-preview-mode button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 10px;
}

.staff-preview img[data-news-preview-cover] {
  width: calc(100% + 40px);
  max-height: 230px;
  margin: 0 -20px 20px;
  object-fit: cover;
}

.staff-preview h2,
.staff-preview h3,
.staff-preview p {
  margin: 0;
}

.staff-preview h2 {
  margin-top: 7px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.staff-preview__excerpt {
  margin-top: 12px !important;
  color: var(--muted);
  line-height: 1.55;
}

.staff-preview .news-article__body {
  margin-top: 22px;
}

.staff-preview .news-article__body p,
.staff-preview .news-article__body li,
.staff-preview .news-article__body blockquote {
  font-size: 14px;
}

.staff-preview-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 17px;
  background: rgba(255,255,255,.025);
}

.staff-preview-card h3 {
  margin: 8px 0;
  font-size: 24px;
  line-height: 1.12;
}

.staff-preview-card > div > p:not(.kicker) {
  color: var(--muted);
  line-height: 1.5;
}

.staff-preview-card small {
  display: block;
  margin-top: 13px;
  color: var(--cyan);
  font-weight: 800;
}

.staff-editor-actions {
  position: sticky;
  bottom: 12px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 calc(clamp(24px, 3vw, 38px) * -1);
  padding: 15px clamp(24px, 3vw, 38px);
  border-top: 1px solid rgba(255,255,255,.09);
  border-radius: 0 0 20px 20px;
  background: rgba(13,9,29,.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 -16px 34px rgba(0,0,0,.18);
}

.staff-editor-actions strong,
.staff-editor-actions small {
  display: block;
}

.staff-editor-actions small {
  margin-top: 4px;
  color: var(--muted);
}

.staff-editor-actions__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.news-article__body h2,
.news-article__body h3 {
  margin: 1.5em 0 .55em;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -.03em;
}

.news-article__body h2 {
  font-size: clamp(25px, 3vw, 34px);
}

.news-article__body h3 {
  font-size: clamp(21px, 2.4vw, 28px);
}

.news-article__body ul,
.news-article__body ol {
  margin: 18px 0;
  padding-left: 24px;
  color: var(--muted);
}

.news-article__body li {
  margin: 8px 0;
  line-height: 1.7;
}

.news-article__body blockquote {
  margin: 20px 0;
  padding: 15px 18px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 13px 13px 0;
  color: #d9d1e8;
  background: rgba(91,221,228,.055);
  line-height: 1.7;
}

.news-article__body a {
  color: #8ef8ff;
  text-decoration: underline;
  text-decoration-color: rgba(142,248,255,.45);
  text-underline-offset: 3px;
}

.news-article__body strong {
  color: #fff;
}

@media (max-width: 1120px) {
  .staff-command-bar {
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .staff-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    order: 3;
  }

  .staff-editor__grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
  }

  .staff-preview {
    top: 24px;
  }
}

@media (max-width: 900px) {
  .staff-page {
    width: min(calc(100% - 24px), 760px);
  }

  .staff-editor__grid {
    grid-template-columns: 1fr;
  }

  .staff-preview {
    position: static;
    min-height: 0;
  }

  .staff-editor-actions {
    position: static;
    align-items: stretch;
    flex-direction: column;
    margin-top: 4px;
  }

  .staff-editor-actions__buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .staff-command-bar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .staff-profile-link {
    width: 100%;
    justify-content: center;
  }

  .staff-tabs {
    grid-column: auto;
    grid-row: auto;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .staff-tab {
    text-align: left;
  }

  .staff-section__head,
  .staff-editor__head,
  .staff-state,
  .staff-member-card__head {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-state .btn {
    margin-left: 0;
  }

  .staff-section__head .btn {
    width: 100%;
  }

  .staff-form-grid,
  .staff-editor__row,
  .staff-permission-grid {
    grid-template-columns: 1fr;
  }

  .staff-permission-grid > label {
    min-height: 0;
  }

  .staff-item {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-item__actions,
  .staff-member-badges {
    justify-content: flex-start;
  }

  .staff-editor__head h2,
  .staff-section__head h2 {
    font-size: clamp(31px, 10vw, 45px);
  }

  .staff-content-field__head {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-format-toolbar {
    justify-content: flex-start;
  }

  .staff-segmented {
    grid-template-columns: 1fr;
  }

  .staff-cover-selected {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .staff-cover-selected .text-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .staff-editor-actions__buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .staff-editor-actions__buttons .btn {
    width: 100%;
  }

  .staff-audit-table-wrap {
    overflow: visible;
    border: 0;
  }

  .staff-audit-table,
  .staff-audit-table tbody,
  .staff-audit-table tr,
  .staff-audit-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .staff-audit-table thead {
    display: none;
  }

  .staff-audit-table tr {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 15px;
    background: rgba(255,255,255,.025);
  }

  .staff-audit-table td {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border: 0;
  }

  .staff-audit-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 800;
  }

  .staff-audit-table td[colspan] {
    display: block;
    text-align: center;
  }

  .staff-audit-table td[colspan]::before {
    content: none;
  }
}

.news-article__cover {
  display: block;
  width: 100%;
  max-height: 480px;
  margin-bottom: 26px;
  border-radius: 18px;
  object-fit: cover;
}

/* v4.5: clearer role permissions and aligned controls */
.staff-invite-form,
.staff-member-form {
  overflow: visible;
}

.staff-role-included,
.staff-permission-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.staff-role-included {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(91, 221, 228, .13);
  border-radius: 13px;
  background: rgba(91, 221, 228, .045);
}

.staff-role-included strong {
  color: #c8fbff;
}

.staff-permission-help {
  margin: 9px 0 14px;
}

.staff-permission-grid > label {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 13px;
  min-height: 84px;
  padding: 16px;
}

.staff-permission-grid input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
}

.staff-permission-copy {
  min-width: 0;
  padding-top: 1px;
}

.staff-permission-copy b {
  line-height: 1.3;
}

.staff-permission-copy small {
  line-height: 1.5;
}

.staff-owner-access {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 17px 18px;
  border: 1px solid rgba(99, 239, 190, .24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(52, 185, 132, .105), rgba(35, 145, 157, .06));
}

.staff-owner-access__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #071710;
  background: #75edbe;
  font-size: 21px;
  font-weight: 950;
}

.staff-owner-access strong,
.staff-owner-access p {
  display: block;
  margin: 0;
}

.staff-owner-access strong {
  color: #d9fff0;
  font-size: 16px;
}

.staff-owner-access p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.staff-permission-picker--owner {
  padding-bottom: 2px;
}

@media (max-width: 760px) {
  .staff-owner-access {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 15px;
  }

  .staff-owner-access__icon {
    width: 36px;
    height: 36px;
  }
}

/* v4.6: finance ledger for owners */
.staff-finance-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.staff-finance-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.staff-finance-summary article {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.staff-finance-summary span,
.staff-finance-summary strong {
  display: block;
}

.staff-finance-summary span {
  color: var(--muted);
  font-size: 12px;
}

.staff-finance-summary strong {
  margin-top: 7px;
  color: var(--text);
  font-size: clamp(20px, 2vw, 28px);
  overflow-wrap: anywhere;
}

.staff-finance-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, .35fr) minmax(180px, .35fr);
  gap: 12px;
  margin-bottom: 18px;
}

.staff-finance-controls .field {
  margin: 0;
}

.staff-finance-table {
  min-width: 1120px;
}

.staff-finance-amount {
  white-space: nowrap;
  font-weight: 900;
}

.staff-finance-amount.is-credit {
  color: #75edbe;
}

.staff-finance-amount.is-debit {
  color: #ff8ca7;
}

@media (max-width: 1000px) {
  .staff-finance-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-finance-controls {
    grid-template-columns: 1fr 1fr;
  }

  .staff-finance-controls .field:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .staff-finance-actions,
  .staff-finance-actions .btn {
    width: 100%;
  }

  .staff-finance-summary,
  .staff-finance-controls {
    grid-template-columns: 1fr;
  }

  .staff-finance-controls .field:first-child {
    grid-column: auto;
  }
}

/* v4.7 — donate catalog, legal documents and purchase actions */
.donate-page{display:grid;gap:28px}.donate-hero{display:flex;align-items:end;justify-content:space-between;gap:28px}.donate-hero h1{margin:10px 0 14px;font-size:clamp(44px,7vw,86px)}.donate-balance-card{min-width:230px;padding:22px 24px;border:1px solid rgba(47,213,220,.28);border-radius:24px;background:rgba(15,17,38,.78);box-shadow:0 24px 70px rgba(0,0,0,.2)}.donate-balance-card span,.donate-balance-card small{display:block;color:var(--muted)}.donate-balance-card strong{display:block;margin:8px 0;font-size:34px}.donate-catalog{display:grid;gap:24px}.donate-product-card{overflow:hidden;border:1px solid rgba(111,95,255,.35);border-radius:28px;background:linear-gradient(135deg,rgba(32,25,65,.96),rgba(10,24,38,.96))}.donate-product-card__badge{display:inline-flex;margin:20px 0 0 22px;padding:8px 12px;border-radius:999px;background:rgba(47,213,220,.12);color:var(--cyan);font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:12px}.donate-product-card__body{display:flex;justify-content:space-between;gap:34px;padding:24px 28px 30px}.donate-product-card h2{margin:0 0 12px;font-size:34px}.donate-product-card p{max-width:760px;color:var(--muted);line-height:1.65}.donate-product-features{display:grid;gap:8px;margin:18px 0 0;padding-left:20px;color:#ddd9ec}.donate-product-price{align-self:center;min-width:180px;text-align:right}.donate-product-price span{display:block;color:var(--muted)}.donate-product-price strong{display:block;margin-top:6px;font-size:44px;color:#fff}.donate-builder-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:24px;align-items:start}.donate-builder,.donate-preview{padding:28px}.donate-builder__head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.donate-builder__head h2{margin:4px 0 0}.donate-availability{padding:8px 12px;border-radius:999px;background:rgba(84,223,138,.12);color:#70efaa;font-weight:800}.donate-availability.is-disabled{background:rgba(255,102,125,.12);color:#ff8b9d}.donate-color-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:22px 0;padding:0;border:0}.donate-color-picker legend{grid-column:1/-1;margin-bottom:6px;font-weight:800}.donate-color-picker label{position:relative}.donate-color-picker input{position:absolute;opacity:0;pointer-events:none}.tag-color{display:block;padding:12px 14px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.04);cursor:pointer;text-align:center;font-weight:800;transition:.2s}.donate-color-picker input:checked+.tag-color{border-color:currentColor;box-shadow:0 0 0 3px rgba(47,213,220,.08);transform:translateY(-1px)}.tag-color--aqua{color:#2fd5dc}.tag-color--purple{color:#c178ff}.tag-color--gold{color:#ffc247}.tag-color--green{color:#54df8a}.tag-color--red{color:#ff667d}.tag-color--white{color:#f4f4ff}.donate-recipient{display:grid;gap:4px;margin:20px 0;padding:16px 18px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(255,255,255,.035)}.donate-recipient span,.donate-recipient small{color:var(--muted)}.donate-consent{margin-top:18px}.donate-buy-button{width:100%;margin-top:8px}.donate-preview{position:sticky;top:24px}.minecraft-tag-preview{display:flex;align-items:center;justify-content:center;gap:3px;min-height:170px;margin:18px 0;padding:24px;border-radius:20px;background:radial-gradient(circle at 50% 40%,rgba(63,100,147,.35),rgba(6,10,20,.94));font-family:"Minecraft",monospace;text-shadow:2px 2px #000;font-size:22px}.minecraft-tag-preview strong{color:#2fd5dc}.minecraft-tag-preview b{margin-left:10px;color:#fff}.minecraft-tag-bracket{color:#b9b9b9}.donate-delivery-info{margin:22px 0}.donate-delivery-info h3{margin-bottom:10px}.donate-delivery-info ol{display:grid;gap:8px;padding-left:20px;color:var(--muted);line-height:1.55}.legal-page{display:grid;gap:20px;max-width:1180px;margin:0 auto}.legal-hero{padding:34px 0 10px}.legal-hero h1{margin:12px 0 14px;font-size:clamp(42px,6vw,76px)}.legal-hero>p{max-width:820px;color:var(--muted);font-size:18px;line-height:1.65}.legal-hero small{color:var(--cyan)}.legal-card,.legal-merchant-note{padding:28px 30px;border:1px solid rgba(126,105,255,.25);border-radius:24px;background:rgba(15,17,38,.82)}.legal-card h2,.legal-merchant-note h2{margin:0 0 14px;font-size:28px}.legal-card h3{margin:20px 0 8px}.legal-card p,.legal-card li,.legal-merchant-note p{color:var(--muted);line-height:1.7}.legal-card a,.legal-merchant-note a{color:var(--cyan)}.legal-card ul{display:grid;gap:8px;padding-left:22px}.legal-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;overflow:hidden;border:1px solid rgba(255,255,255,.09);border-radius:16px;background:rgba(255,255,255,.09)}.legal-details>div{padding:14px 16px;background:#12162a}.legal-details dt{font-size:12px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}.legal-details dd{margin:5px 0 0;font-weight:700;overflow-wrap:anywhere}.legal-warning{margin-top:16px!important;padding:13px 15px;border:1px solid rgba(255,194,71,.35);border-radius:14px;background:rgba(255,194,71,.08);color:#ffd886!important}.staff-finance-inline-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.staff-finance-inline-actions .btn{padding:8px 10px;font-size:12px}.btn--danger{border-color:rgba(255,102,125,.35)!important;color:#ff9bac!important}.top-nav{flex-wrap:wrap}
@media(max-width:980px){.donate-builder-grid{grid-template-columns:1fr}.donate-preview{position:static}.donate-product-card__body,.donate-hero{align-items:stretch;flex-direction:column}.donate-product-price{text-align:left}.donate-balance-card{min-width:0}.legal-details{grid-template-columns:1fr}}
@media(max-width:620px){.donate-color-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.donate-builder,.donate-preview,.legal-card,.legal-merchant-note{padding:20px}.minecraft-tag-preview{font-size:17px;overflow-wrap:anywhere}.donate-product-card__body{padding:20px}.donate-product-price strong{font-size:36px}}
.feature-card__link{display:inline-flex;margin-top:16px;color:var(--cyan);font-weight:800;text-decoration:none}.feature-card__link:hover{text-decoration:underline}

.payment-method-list { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.payment-method-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 112px; min-height: 54px; padding: 6px 10px; border: 1px solid rgba(123, 138, 180, .3); border-radius: 14px; background: rgba(16, 20, 42, .7); }
.payment-method-badge img { display: block; width: 96px; height: 42px; object-fit: contain; }
.legal-muted { color: var(--muted); font-size: .95rem; }


/* v4.8 — stable legal page layout without merchant placeholders */
.legal-page,
.legal-page *,
.donate-page,
.donate-page * { box-sizing: border-box; }
.legal-page {
  width: min(calc(100% - 32px), 1180px);
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 0;
  overflow: visible;
}
.legal-hero {
  width: 100%;
  min-width: 0;
  height: auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(126,105,255,.28);
  border-radius: clamp(20px, 3vw, 30px);
  background: linear-gradient(135deg, rgba(29,20,58,.92), rgba(8,25,38,.9));
  overflow: hidden;
}
.legal-hero .eyebrow,
.legal-hero .kicker {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.legal-hero h1 {
  max-width: 100%;
  margin: 16px 0 14px;
  font-size: clamp(36px, 6.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  word-break: normal;
}
.legal-hero > p:not(.eyebrow):not(.kicker) {
  max-width: 820px;
  margin: 0;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.legal-content,
.legal-card,
.legal-section,
.legal-card > *,
.legal-section > * {
  min-width: 0;
  max-width: 100%;
}
.legal-card,
.legal-section {
  width: 100%;
  height: auto;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.legal-card {
  padding: clamp(22px, 3vw, 32px);
}
.legal-card h2,
.legal-section h2 {
  margin-top: 0;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.legal-card p,
.legal-card li,
.legal-section p,
.legal-section li,
.legal-card a,
.legal-section a {
  overflow-wrap: anywhere;
  word-break: normal;
}
.legal-details,
.legal-warning,
.legal-merchant-note { display: none !important; }
@media (max-width: 680px) {
  .legal-page { width: min(calc(100% - 20px), 1180px); }
  .legal-hero { padding: 22px 20px; border-radius: 22px; }
  .legal-hero h1 { font-size: clamp(34px, 12vw, 52px); }
  .legal-card { padding: 22px 20px; border-radius: 20px; }
}
