@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-400.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-500.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-600.ttf") format("truetype");
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/oswald-500.ttf") format("truetype");
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/oswald-600.ttf") format("truetype");
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/oswald-700.ttf") format("truetype");
}

:root {
  --ink: #0b1011;
  --ink-soft: #12191a;
  --paper: #edf0ea;
  --muted: #98a29f;
  --line: rgb(237 240 234 / 18%);
  --signal: #b9f227;
  --signal-dark: #172008;
  --danger: #ff674d;
  --warning: #f3bd4f;
  --font-display: "Oswald", "Arial Narrow", "Franklin Gothic Medium", "Segoe UI Condensed",
    "Roboto Condensed", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 70% 15%, rgb(59 86 75 / 18%), transparent 34rem),
    var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgb(11 16 17 / 90%);
  backdrop-filter: blur(16px);
  animation: header-in 500ms ease-out both;
}

.home-page .site-header {
  position: absolute;
  inset: 0 0 auto;
  background: linear-gradient(180deg, rgb(5 8 9 / 78%), transparent);
  backdrop-filter: none;
}

.main-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 28px) clamp(20px, 5vw, 48px) 48px;
  isolation: isolate;
  background: #0a0e0f url("/images/gmod-hero.jpg") center 42% / cover no-repeat;
}

.main-hero::before {
  position: absolute;
  z-index: -3;
  inset: -2%;
  content: "";
  background: inherit;
  animation: hero-breathe 18s ease-in-out infinite alternate;
}

.main-hero-copy {
  display: flex;
  width: min(720px, 100%);
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: rise-in 650ms ease-out both;
}

.main-brand {
  margin: 0 0 18px;
  color: #f2f5f1;
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.main-about {
  max-width: 34rem;
  margin: 0 0 28px;
  color: #c8ceca;
  font-size: 15px;
  line-height: 1.55;
}

.main-online-label {
  margin: 0 0 8px;
  color: var(--signal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-online-value {
  margin: 0 0 28px;
  color: #f2f5f1;
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 96px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.main-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.main-deck {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.main-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.main-tabs a {
  position: relative;
  padding: 12px 2px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-tabs a[aria-current="page"] {
  color: var(--text);
}

.main-tabs a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--signal);
}

.main-section-kicker {
  margin: 0 0 4px;
  color: var(--signal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-section-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.main-home-grid,
.main-status-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: start;
}

.main-donors,
.main-blogs,
.service-board,
.main-status-grid .server-board {
  min-width: 0;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgb(237 240 234 / 3.5%), transparent 42%),
    rgb(11 16 17 / 55%);
}

.donor-list,
.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.donor-row,
.service-row {
  display: grid;
  grid-template-columns: 28px 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgb(237 240 234 / 8%);
}

.donor-row:first-child,
.service-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.donor-rank {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 16px;
}

.donor-row img,
.donor-avatar-fallback {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.donor-avatar-fallback {
  display: block;
  background: rgb(237 240 234 / 8%);
}

.donor-meta {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.donor-meta strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donor-meta small,
.donor-sum {
  color: var(--muted);
  font-size: 12px;
}

.donor-sum {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.blog-stack {
  display: grid;
  gap: 0;
}

.blog-panel {
  padding: 18px 0;
  border-top: 1px solid rgb(237 240 234 / 10%);
}

.blog-panel:first-child {
  border-top: 0;
  padding-top: 0;
}

.blog-panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.blog-panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.blog-panel-head time {
  color: var(--muted);
  font-size: 12px;
}

.blog-panel-body {
  color: #c8ceca;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.service-row {
  grid-template-columns: 14px minmax(0, 1fr);
}

.service-status {
  width: 8px;
  height: 8px;
  background: var(--muted);
}

.service-row.is-online .service-status {
  background: var(--signal);
  box-shadow: 0 0 0 4px rgb(185 242 39 / 16%);
}

.service-row.is-offline .service-status {
  background: var(--danger);
}

.service-row.is-unknown .service-status {
  background: #c4b27a;
}

.service-meta {
  display: grid;
  gap: 2px;
}

.service-meta strong {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.service-meta small {
  color: var(--muted);
  font-size: 12px;
}

.main-content {
  display: flex;
  width: min(720px, 100%);
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: rise-in 650ms ease-out both;
}

.main-lead {
  margin: 0 0 16px;
  color: var(--signal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.server-board {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 16%);
  background: rgb(5 9 9 / 78%);
  text-align: left;
}

.main-status-grid .server-board {
  border-color: var(--line);
}

.server-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.server-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.server-row:first-child {
  border-top: 0;
}

.server-status {
  width: 8px;
  height: 8px;
  background: var(--muted);
}

.server-row.is-online .server-status {
  background: var(--signal);
  box-shadow: 0 0 0 4px rgb(185 242 39 / 16%);
}

.server-row.is-offline .server-status {
  background: var(--danger);
}

.server-meta {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.server-meta strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.server-meta small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-players {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.server-connect {
  color: #aab2ae;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.server-connect:hover {
  color: var(--signal);
}

.server-row.is-offline .server-connect {
  opacity: 0.45;
  pointer-events: none;
}

.main-actions {
  margin-top: 28px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav > a {
  position: relative;
  color: #c8ceca;
}

.site-nav > a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav > a:hover::after,
.site-nav > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.order-avatar,
.nav-account-btn img,
.nav-account-fallback {
  object-fit: cover;
  background: #2a3332;
}

.nav-login {
  color: var(--signal);
}

.nav-login-short {
  display: none;
}

.nav-account {
  position: relative;
  z-index: 2;
}

.nav-account-btn {
  display: flex;
  max-width: 220px;
  align-items: center;
  gap: 9px;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}

.nav-account-btn img,
.nav-account-fallback {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.nav-account-fallback {
  display: block;
  border: 1px solid var(--line);
}

.nav-account-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-account-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #9aa3a0;
  transition: transform 180ms ease;
}

.nav-account.is-open .nav-account-caret {
  transform: rotate(180deg);
}

.nav-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 240px;
  padding: 8px 0;
  border: 1px solid var(--line);
  background: rgb(12 17 18 / 96%);
  box-shadow: 0 18px 40px rgb(0 0 0 / 35%);
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
  visibility: hidden;
  pointer-events: none;
}

.nav-account.is-open .nav-account-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-account-menu[hidden] {
  display: grid;
}

.nav-account-menu a,
.nav-account-logout {
  display: block;
  width: 100%;
  padding: 11px 16px;
  color: #d5dbd7;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

.nav-account-menu a:hover,
.nav-account-logout:hover {
  color: #f2f5f1;
  background: rgb(237 240 234 / 6%);
}

.nav-account-menu a[aria-current="page"] {
  color: var(--signal);
}

.nav-account-logout {
  color: var(--muted);
  border-top: 1px solid rgb(237 240 234 / 8%);
  margin-top: 4px;
}

.donate-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 20px) clamp(20px, 5vw, 48px) 36px;
  isolation: isolate;
  background: #0a0e0f url("/images/gmod-hero.jpg") center 42% / cover no-repeat;
}

.donate-hero::before {
  position: absolute;
  z-index: -3;
  inset: -2%;
  content: "";
  background: inherit;
  animation: hero-breathe 18s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgb(5 9 9 / 42%) 0%, rgb(5 9 9 / 78%) 42%, rgb(5 9 9 / 92%) 100%),
    linear-gradient(180deg, rgb(5 9 9 / 58%), transparent 38%, rgb(5 9 9 / 72%) 100%);
}

.hero-shade::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.1;
  background: repeating-linear-gradient(90deg, transparent 0 79px, rgb(255 255 255 / 14%) 80px);
}

.hero-content {
  display: flex;
  width: min(560px, 100%);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.donate-simple-title {
  margin: 0 0 14px;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4.6vw, 44px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.section-number {
  margin: 0 0 16px;
  color: var(--signal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: uppercase;
  animation: brand-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-separator {
  margin: 0 0.1em;
  color: var(--signal);
  font-weight: 500;
}

.hero-collective {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--paper);
}

.hero-actions,
.donate-form {
  width: 100%;
  margin-top: 22px;
  animation: rise-in 650ms 180ms ease-out both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--signal-dark);
  background: var(--signal);
}

.button-primary:hover {
  background: #d0ff4e;
}

.button:disabled {
  color: #69706e;
  background: #252c2c;
  cursor: not-allowed;
  transform: none;
}

.button-steam {
  color: var(--paper);
  border-color: rgb(255 255 255 / 44%);
  background: rgb(5 9 9 / 46%);
}

.button-steam:hover {
  color: var(--ink);
  border-color: var(--paper);
  background: var(--paper);
}

.steam-symbol {
  color: var(--signal);
  font-size: 24px;
}

.donate-form {
  display: block;
  max-width: 560px;
}

.amount-slider {
  --slider-progress: 0%;
  width: 100%;
  margin-top: 10px;
  animation: rise-in 650ms 120ms ease-out both;
}

.slider-label {
  display: none;
}

.slider-stage {
  display: grid;
  place-items: center;
  min-height: 210px;
  margin-bottom: 8px;
  text-align: center;
}

.slider-bag {
  width: 148px;
  height: 148px;
  margin-bottom: 8px;
  transform: scale(var(--bag-scale, 1));
  transform-origin: center bottom;
  filter: drop-shadow(0 14px 24px rgb(0 0 0 / 55%));
  transition: transform 180ms ease, filter 180ms ease, background-image 120ms ease;
}

.slider-amount {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.slider-name {
  margin-top: 8px;
  color: var(--signal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.slider-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  margin: 6px 0 0;
  border-radius: 999px;
  outline: 0;
  background: linear-gradient(
    90deg,
    var(--signal) 0%,
    var(--signal) var(--slider-progress),
    rgb(255 255 255 / 16%) var(--slider-progress),
    rgb(255 255 255 / 16%) 100%
  );
  cursor: pointer;
}

.slider-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgb(185 242 39 / 18%);
  cursor: grab;
  transition: transform 140ms ease;
}

.slider-range::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.08);
}

.slider-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgb(185 242 39 / 18%);
  cursor: grab;
}

.slider-range::-moz-range-track {
  height: 8px;
  border: 0;
  background: transparent;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #7d8783;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
}

.donate-form label,
.issue-form label {
  display: block;
  margin-bottom: 7px;
  color: #afb7b3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.donate-form label span {
  color: #68716e;
  font-weight: 400;
}

.comment-field input,
.issue-form input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: var(--paper);
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 0;
  outline: 0;
  background: rgb(5 9 9 / 66%);
  transition: border 150ms ease, background 150ms ease;
}

.comment-field input:focus,
.issue-form input:focus {
  border-color: var(--signal);
  background: rgb(5 9 9 / 90%);
}

.form-fields > .button {
  white-space: nowrap;
}

.tier-icon {
  display: block;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: contain;
}

.tier-icon-1 { background-image: url("/images/bags/bag-1.png"); }
.tier-icon-2 { background-image: url("/images/bags/bag-2.png"); }
.tier-icon-3 { background-image: url("/images/bags/bag-3.png"); }
.tier-icon-4 { background-image: url("/images/bags/bag-4.png"); }
.tier-icon-5 { background-image: url("/images/bags/bag-5.png"); }
.tier-icon-6 { background-image: url("/images/bags/bag-6.png"); }

.setup-message {
  margin: 6px 0 0;
  color: var(--warning);
  font-size: 12px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #aab2ae;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--signal);
}

.projects-lead {
  margin: 8px 0 28px;
  color: #c2c9c5;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-grid {
  display: grid;
  width: min(520px, 100%);
  gap: 12px;
  margin-top: 28px;
}

.project-card {
  display: grid;
  gap: 8px;
  padding: 28px 26px;
  border: 1px solid rgb(255 255 255 / 18%);
  background: rgb(5 9 9 / 72%);
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.project-card:hover {
  border-color: var(--signal);
  background: rgb(8 14 14 / 88%);
  transform: translateY(-3px);
}

.project-kicker {
  color: var(--signal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card strong {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}

.project-card > span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.catalog-page {
  background: var(--ink);
}

.catalog-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 48px) 90px;
}

.catalog-hero {
  margin-bottom: 54px;
}

.catalog-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 78px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
}

.catalog-lead {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
}

.catalog-lead a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.catalog-section + .catalog-section {
  margin-top: 48px;
}

.catalog-section-head h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.product-card {
  display: flex;
  min-height: 170px;
  padding: 18px;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgb(255 255 255 / 14%);
  background: rgb(12 18 18 / 78%);
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-top strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.product-period {
  color: var(--signal);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-desc {
  margin: 0;
  color: #a7b0ab;
  font-size: 13px;
  line-height: 1.45;
}

.product-bottom {
  display: flex;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-buy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.gift-input {
  width: 168px;
  min-height: 32px;
  padding: 0 8px;
  color: var(--paper);
  border: 1px solid rgb(255 255 255 / 16%);
  background: rgb(5 9 9 / 46%);
  font-size: 12px;
}

.gift-input:focus {
  outline: 0;
  border-color: var(--signal);
}

.catalog-actions .button:not(.button-primary):not(.button-steam) {
  color: var(--paper);
  border-color: rgb(255 255 255 / 28%);
  background: rgb(5 9 9 / 46%);
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 36px 0 8px;
}

.inv-card {
  padding: 24px;
  border: 1px solid rgb(255 255 255 / 14%);
  background: rgb(12 18 18 / 78%);
}

.inv-points {
  display: block;
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.inv-card small {
  color: var(--muted);
  font-size: 12px;
}

.inv-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.inv-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inv-form input {
  min-height: 46px;
  padding: 0 12px;
  color: var(--paper);
  border: 1px solid rgb(255 255 255 / 16%);
  background: rgb(5 9 9 / 46%);
  font-size: 15px;
}

.inv-form input:focus {
  outline: 0;
  border-color: var(--signal);
}

.inv-ok {
  color: var(--signal);
}

.inv-err {
  color: var(--danger);
}

.order-transfer summary {
  list-style: none;
  cursor: pointer;
  color: var(--signal);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-transfer-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.order-transfer-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-transfer-form input {
  min-height: 46px;
  padding: 0 12px;
  color: var(--paper);
  border: 1px solid rgb(255 255 255 / 16%);
  background: rgb(5 9 9 / 46%);
  font-size: 15px;
}

.order-transfer-form input:focus {
  outline: 0;
  border-color: var(--signal);
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.inv-item {
  border: 1px solid rgb(255 255 255 / 14%);
  background: rgb(12 18 18 / 78%);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inv-item.is-active {
  border-color: rgba(100, 200, 255, 0.6);
}

.inv-item-square {
  border: 1px solid rgb(255 255 255 / 16%);
  background: rgb(5 9 9 / 46%);
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  gap: 8px;
}

.inv-item-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 16%);
  background: rgba(255, 255, 255, 0.03);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.03em;
  user-select: none;
}

.inv-kind-rank .inv-item-icon {
  background: rgba(100, 200, 255, 0.12);
  border-color: rgba(100, 200, 255, 0.25);
  color: #a9dcff;
}

.inv-kind-flag .inv-item-icon {
  background: rgba(200, 100, 255, 0.12);
  border-color: rgba(200, 100, 255, 0.25);
  color: #d9b2ff;
}

.inv-kind-money .inv-item-icon {
  background: rgba(185, 242, 39, 0.12);
  border-color: rgba(185, 242, 39, 0.25);
  color: var(--signal);
}

.inv-kind-points .inv-item-icon {
  background: rgba(185, 242, 39, 0.08);
  border-color: rgba(185, 242, 39, 0.18);
  color: var(--signal);
}

.inv-kind-service .inv-item-icon {
  background: rgba(255, 103, 77, 0.08);
  border-color: rgba(255, 103, 77, 0.18);
  color: #ffb4a7;
}

.inv-item-square-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.15;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.inv-item-square-amount {
  color: var(--signal);
  font-weight: 700;
  font-size: 13px;
}

.inv-item-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inv-item-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inv-item-error {
  margin-top: 6px;
}

.product-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-note {
  color: var(--muted);
  font-size: 12px;
}

.product-card.is-negotiable {
  border-style: dashed;
}

.order-product,
.history-product {
  display: block;
  color: #a7b0ab;
  font-size: 12px;
}

.order-points {
  color: var(--signal);
  font-size: 11px;
}

.delivery-error {
  color: var(--danger) !important;
}

.history-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.5fr);
  gap: clamp(40px, 8vw, 120px);
  padding: clamp(70px, 9vw, 130px) clamp(20px, 8vw, 132px);
  background:
    linear-gradient(120deg, rgb(185 242 39 / 5%), transparent 42%),
    var(--ink-soft);
}

.catalog-history {
  margin-top: 70px;
  padding: 48px 0 0;
  background: transparent;
}

.history-section h2,
.admin-heading h1,
.result-shell h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.history-list {
  border-top: 1px solid var(--line);
}

.history-row {
  display: grid;
  grid-template-columns: 70px 1fr 140px 170px;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.order-number {
  color: var(--signal);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.history-row time {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c8ceca;
  font-size: 12px;
  white-space: nowrap;
}

.status::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--muted);
}

.status-paid::before {
  background: var(--signal);
}

.status-issued::before {
  background: #64c8ff;
}

.status-failed::before {
  background: var(--danger);
}

.status-cancelled::before {
  background: #8b9490;
}

.status-refunded::before {
  background: #d4a017;
}

.status-pending::before {
  background: var(--warning);
}

.notice-cancel {
  color: var(--paper);
  background: #2a3230;
}

.button-cancel {
  color: var(--paper);
  background: #3a2220;
}

.button-cancel:hover {
  background: var(--danger);
  color: var(--ink);
}

.button-refund {
  color: var(--paper);
  background: #3a3220;
}

.button-refund:hover {
  background: #d4a017;
  color: var(--ink);
}

.site-footer {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px clamp(20px, 4vw, 72px);
  color: #727d79;
  border-top: 1px solid var(--line);
  background: #080c0d;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer-nav a {
  color: #9aa6a2;
}

.footer-nav a:hover {
  color: var(--signal);
}

/* Legal / offer pages */
.legal-page .site-header {
  background: rgb(11 16 17 / 92%);
}

.legal-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 48px) 96px;
}

.legal-hero {
  margin-bottom: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}

.legal-hero .back-link {
  display: inline-block;
  margin-bottom: 22px;
}

.legal-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: uppercase;
}

.legal-lead {
  max-width: 46rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.legal-lead a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.legal-toc a {
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 14%);
  background: rgb(12 18 18 / 72%);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.legal-toc a:hover {
  border-color: rgb(185 242 39 / 45%);
  color: var(--signal);
  background: rgb(185 242 39 / 6%);
}

.legal-stack {
  display: block;
}

.legal-block {
  min-width: 0;
  padding: clamp(32px, 5vw, 52px) 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.legal-block:first-child {
  padding-top: 0;
}

.legal-block:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-block-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 20px;
}

.legal-index {
  flex: 0 0 auto;
  color: var(--signal);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.legal-block-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(25px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding-top: 20px;
}

.legal-body > p,
.legal-body > ul,
.legal-body > ol,
.legal-body > h3 {
  margin: 0;
}

.legal-body p,
.legal-list li,
.legal-steps li span,
.legal-callout p,
.legal-note {
  color: #b7c0bb;
  font-size: 15px;
  line-height: 1.6;
}

.legal-body a:not(.legal-meta-row):not(.button) {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body .button,
.legal-body .button-primary {
  color: var(--signal-dark);
  text-decoration: none;
}

.legal-body strong,
.legal-body em {
  color: var(--paper);
  font-style: normal;
}

.legal-subhead {
  margin: 8px 0 0 !important;
  color: var(--muted) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-callouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.legal-callout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 0 16px;
  border-left: 2px solid rgb(185 242 39 / 45%);
  background: transparent;
}

.legal-callout strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.legal-meta {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgb(255 255 255 / 10%);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: transparent;
}

.legal-meta-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 16px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  color: inherit;
}

.legal-meta-row:last-child {
  border-bottom: 0;
}

a.legal-meta-row:hover strong {
  color: var(--signal);
}

.legal-meta-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-meta-row strong {
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  word-break: break-word;
}

.legal-list,
.legal-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-list li {
  position: relative;
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.legal-list li:last-child {
  border-bottom: 0;
}

.legal-list li::before {
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  content: "";
  transform: translateY(-50%);
}

.legal-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: legal-step;
}

.legal-steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 5px 14px;
  align-items: start;
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  background: transparent;
  counter-increment: legal-step;
}

.legal-steps li:first-child {
  padding-top: 0;
}

.legal-steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-steps li::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  color: var(--signal);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  content: counter(legal-step, decimal-leading-zero);
}

.legal-steps li strong {
  display: block;
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.legal-steps li > span {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.legal-body h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.legal-note {
  padding: 14px 16px;
  border-left: 2px solid rgb(255 255 255 / 18%);
  color: #8f9a95;
  font-size: 0.95rem;
}

.legal-note-signal {
  border-left-color: var(--signal);
  color: #d5e0d8;
}

.legal-warn {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgb(243 189 79 / 35%);
  background: rgb(243 189 79 / 8%);
  color: var(--warning);
}

.legal-updated {
  margin: clamp(36px, 5vw, 56px) 0 0;
  color: #6f7a76;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.donate-currency-lead {
  max-width: 36rem;
  margin: 0 auto 28px;
  color: rgb(237 240 234 / 72%);
  font-size: 0.95rem;
  text-align: center;
}

.donate-currency-lead a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .legal-block-head {
    align-items: baseline;
    gap: 12px;
  }

  .legal-callouts {
    grid-template-columns: 1fr;
  }

  .legal-meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .legal-steps li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
  }
}

@media (max-width: 620px) {
  .legal-shell {
    padding-inline: 12px;
  }

  .legal-hero {
    padding-inline: 4px;
  }

  .legal-hero h1 {
    font-size: clamp(36px, 13vw, 54px);
  }

  .legal-block {
    padding: 30px 4px;
  }

  .legal-block-head h2 {
    font-size: 25px;
  }

  .legal-callouts,
  .legal-steps {
    grid-template-columns: 1fr;
  }
}

/* Admin */
.admin-page {
  background:
    radial-gradient(ellipse 70% 50% at 8% 0%, rgb(185 242 39 / 7%), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 20%, rgb(59 86 75 / 22%), transparent 50%),
    var(--ink);
}

.admin-shell {
  width: min(1440px, 100%);
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) clamp(18px, 3.5vw, 48px) 96px;
  animation: rise-in 520ms ease-out both;
}

.admin-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.admin-top-copy h1 {
  margin: 6px 0 0;
  font-size: clamp(42px, 6vw, 64px);
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.admin-top-meta {
  display: flex;
  gap: 28px;
  text-align: right;
}

.admin-top-meta > div {
  display: grid;
  gap: 4px;
  min-width: 72px;
}

.admin-top-meta span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-top-meta strong {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.admin-top-meta .is-on {
  color: var(--signal);
}

.admin-top-meta .is-off {
  color: var(--danger);
}

.admin-tabs {
  display: flex;
  gap: 28px;
  margin-top: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.admin-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.admin-tabs a[aria-current="page"] {
  color: var(--paper);
}

.admin-tabs a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--signal);
  content: "";
}

.admin-tabs em {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: var(--signal-dark);
  border-radius: 999px;
  background: var(--signal);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
}

.admin-toolbar h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.02em;
}

.admin-toolbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-danger {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid #5a2e2a;
  background: #1a1211;
}

.admin-danger > p {
  margin: 12px 0 20px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

body.admin-modal-lock {
  overflow: hidden;
}

.admin-modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-modal-root[hidden] {
  display: none;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(6 8 7 / 78%);
  backdrop-filter: blur(4px);
}

.admin-modal {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 32px 28px;
  border: 1px solid #6a3530;
  background: #161110;
  box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
  text-align: center;
}

.admin-modal-kicker {
  margin: 0 0 10px;
  color: #d0897d;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-modal h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.admin-modal-copy {
  margin: 14px auto 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.admin-modal .admin-purge-word {
  margin: 22px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 48px);
  letter-spacing: 0.04em;
  color: #f0c4b8;
}

.admin-modal .admin-purge-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 auto 18px;
  max-width: 280px;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.admin-modal .admin-purge-label input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #0e1110;
  color: var(--paper);
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
}

.admin-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.admin-range {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.admin-range label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-range input[type="date"] {
  min-width: 150px;
  padding: 11px 12px;
  color: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  outline: none;
}

.admin-range input[type="date"]:focus {
  border-bottom-color: var(--signal);
}

.admin-range-reset {
  padding: 11px 4px;
  color: var(--muted);
  font-size: 13px;
}

.admin-range-reset:hover {
  color: var(--signal);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.admin-metrics article {
  padding: 22px 18px 20px;
  border-right: 1px solid var(--line);
}

.admin-metrics article:last-child {
  border-right: 0;
}

.admin-metrics span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-metrics strong {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: 0.01em;
  line-height: 1;
}

.admin-metrics strong i {
  margin-left: 2px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.62em;
}

.admin-metrics small {
  display: block;
  margin-top: 10px;
  color: #6b7571;
  font-size: 12px;
}

.admin-viz {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 20px;
  margin-top: 28px;
}

.admin-viz-main,
.admin-viz-side > article,
.admin-points-form-wrap,
.admin-points-ledger {
  min-width: 0;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgb(237 240 234 / 3.5%), transparent 42%),
    rgb(11 16 17 / 55%);
}

.admin-viz-side {
  display: grid;
  gap: 20px;
}

.admin-viz-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-viz-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.03em;
}

.admin-viz-head span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-viz-canvas {
  position: relative;
  min-height: 280px;
}

.admin-viz-canvas-square {
  min-height: 240px;
}

.admin-viz-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.admin-points {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
  margin-top: 32px;
}

.points-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.points-field-wide {
  grid-column: 1 / -1;
}

.points-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.points-form input,
.points-form select,
.points-lookup input {
  width: 100%;
  padding: 12px 0;
  color: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  outline: none;
}

.points-form input:focus,
.points-form select:focus,
.points-lookup input:focus {
  border-bottom-color: var(--signal);
}

.points-form select {
  cursor: pointer;
  color-scheme: dark;
  background-color: var(--ink-soft);
}

.points-form select option {
  color: #111;
  background-color: #fff;
}

.points-form-actions {
  margin-top: 22px;
}

.points-lookup {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.points-balance {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 18px 0 4px;
  border-top: 1px solid rgb(185 242 39 / 28%);
}

.points-balance span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.points-balance strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.points-balance a {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.points-balance a:hover {
  color: var(--signal);
}

.points-balance b {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  color: var(--signal);
}

.ledger-table {
  max-height: 620px;
  overflow: auto;
}

.ledger-row {
  display: grid;
  grid-template-columns: 88px minmax(140px, 0.9fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-row strong {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.ledger-row.is-plus strong {
  color: var(--signal);
}

.ledger-row.is-minus strong {
  color: var(--danger);
}

.ledger-who span,
.ledger-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-who small,
.ledger-meta time,
.ledger-meta small {
  color: var(--muted);
  font-size: 12px;
}

.ledger-meta {
  text-align: right;
}

.empty-inline {
  margin: 8px 0 0;
  color: var(--muted);
}

.notice {
  margin-top: 22px;
  padding: 12px 14px;
  color: var(--signal-dark);
  background: var(--signal);
  font-size: 13px;
  font-weight: 600;
}

.notice-cancel {
  color: #fff;
  background: var(--danger);
}

.filter-nav {
  display: flex;
  margin-top: 28px;
  gap: 30px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.filter-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 0 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 13px;
  white-space: nowrap;
}

.filter-nav a[aria-current="page"] {
  color: var(--paper);
  border-color: var(--signal);
}

.filter-nav span {
  color: #5f6966;
  font-size: 11px;
}

.order-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 170px 220px;
  gap: 24px 36px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.order-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-avatar {
  flex: 0 0 42px;
}

.order-user {
  display: grid;
  min-width: 0;
}

.order-user strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-user a {
  color: var(--muted);
  font-size: 12px;
}

.order-user a:hover {
  color: var(--signal);
}

.order-money,
.order-time {
  display: grid;
  align-content: center;
  gap: 3px;
}

.order-money > strong {
  font-family: var(--font-display);
  font-size: 22px;
}

.order-time {
  color: var(--muted);
  font-size: 12px;
}

.order-time > span:first-child {
  color: #66706c;
  font-size: 10px;
  text-transform: uppercase;
}

.order-comment {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 70px;
  color: #bac2be;
  font-size: 14px;
}

.issue-form {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding-left: 70px;
}

.order-actions {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
}

.order-actions .issue-form {
  padding-left: 70px;
}

.cancel-form {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-left: 70px;
}

.cancel-form-alone {
  margin-top: 4px;
}

.order-actions .cancel-form {
  padding-left: 70px;
}

.issue-form label {
  grid-column: 1 / -1;
  margin: 0;
}

.issue-form input {
  height: 46px;
  padding-right: 16px;
  background: #0b1112;
}

.button-small {
  min-height: 46px;
  color: var(--ink);
  background: var(--paper);
  font-size: 12px;
}

.button-small:hover {
  background: var(--signal);
}

.button-buy {
  color: var(--signal-dark);
  border-color: #d8ff55;
  background: var(--signal);
  box-shadow: 0 0 0 1px rgb(185 242 39 / 35%), 0 8px 22px rgb(185 242 39 / 22%);
}

.button-buy:hover {
  background: #d8ff55;
  box-shadow: 0 0 0 1px rgb(216 255 85 / 55%), 0 10px 26px rgb(185 242 39 / 32%);
}

.catalog-actions .button-primary {
  color: var(--signal-dark);
  border-color: #d8ff55;
  background: var(--signal);
  box-shadow: 0 0 0 1px rgb(185 242 39 / 35%), 0 8px 22px rgb(185 242 39 / 22%);
}

.catalog-actions .button-primary:hover {
  background: #d8ff55;
}

.issued-note {
  display: grid;
  grid-column: 1 / -1;
  padding-left: 70px;
  color: var(--muted);
  font-size: 12px;
}

.issued-note strong {
  color: var(--paper);
  font-size: 14px;
}

.empty-state {
  padding: 80px 0;
  color: var(--muted);
  text-align: center;
}

.empty-state > span {
  color: #26302e;
  font-family: var(--font-display);
  font-size: 90px;
  font-weight: 700;
  text-transform: uppercase;
}

.pagination {
  display: flex;
  margin-top: 30px;
  gap: 8px;
}

.pagination a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
}

.pagination a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--signal);
  background: var(--signal);
}

/* Result pages */
.result-page main {
  min-height: calc(100svh - var(--header-height));
  background:
    linear-gradient(90deg, transparent 49.9%, rgb(237 240 234 / 5%) 50%, transparent 50.1%),
    radial-gradient(circle at 50% 24%, rgb(185 242 39 / 8%), transparent 27rem),
    #0b1011;
}

.result-shell {
  position: relative;
  display: flex;
  width: min(950px, calc(100% - 40px));
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.result-index {
  position: absolute;
  z-index: 0;
  color: rgb(237 240 234 / 3%);
  font-family: var(--font-display);
  font-size: clamp(190px, 34vw, 500px);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.result-shell > *:not(.result-index) {
  position: relative;
  z-index: 1;
}

.result-shell > p:not(.section-number) {
  max-width: 590px;
  margin: 22px 0 0;
  color: var(--muted);
}

.result-actions {
  display: flex;
  align-items: center;
  margin-top: 32px;
  gap: 24px;
}

.text-link {
  color: #c8ceca;
  border-bottom: 1px solid #66706c;
  font-size: 13px;
}

.failed-page .section-number,
.error-page .section-number {
  color: var(--danger);
}

@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes brand-in {
  from {
    opacity: 0;
    letter-spacing: 0.14em;
    transform: translateX(-24px);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes hero-breathe {
  to {
    transform: scale(1.035);
  }
}

@media (max-width: 980px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
    backdrop-filter: none;
  }

  .home-page .site-header {
    position: sticky;
    background: rgb(11 16 17 / 96%);
    backdrop-filter: none;
  }

  .nav-account-name {
    display: none;
  }

  .nav-login-full {
    display: none;
  }

  .nav-login-short {
    display: inline;
  }

  .nav-account {
    overflow: visible;
  }

  .nav-account-btn {
    width: 44px;
    height: 44px;
    max-width: none;
    justify-content: center;
  }

  .nav-account-btn img,
  .nav-account-fallback {
    width: 34px;
    height: 34px;
  }

  .nav-account-caret {
    display: none;
  }

  .nav-account-menu {
    top: calc(100% + 8px);
    right: 0;
    z-index: 120;
    width: min(280px, calc(100vw - 24px));
    min-width: 0;
    max-height: min(70vh, 420px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 22px 48px rgb(0 0 0 / 55%);
  }

  .nav-account-menu a,
  .nav-account-logout {
    padding: 16px 18px;
    font-size: 13px;
  }

  .form-fields {
    grid-template-columns: 1fr;
  }

  .form-fields > .button {
    width: 100%;
  }

  .history-section {
    grid-template-columns: 1fr;
  }

  .order-row {
    grid-template-columns: minmax(260px, 1fr) 150px;
  }

  .order-time {
    grid-column: 1 / -1;
    padding-left: 70px;
  }

  .admin-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-top-meta {
    text-align: left;
  }

  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-metrics article:nth-child(2n) {
    border-right: 0;
  }

  .admin-metrics article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .admin-viz,
  .admin-points {
    grid-template-columns: 1fr;
  }

  .points-form-grid {
    grid-template-columns: 1fr;
  }

  .points-lookup {
    grid-template-columns: 1fr;
  }

  .ledger-row {
    grid-template-columns: 72px 1fr;
  }

  .ledger-meta {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding: 0 12px;
    gap: 10px;
  }

  .nav-brand {
    min-width: 0;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .nav-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-nav {
    flex: 0 0 auto;
    gap: 12px;
    font-size: 12px;
  }

  .site-nav > a::after {
    bottom: -6px;
  }

  .donate-hero {
    padding: calc(var(--header-height) + 12px) 16px 28px;
    background-position: 62% center;
  }

  .main-hero {
    padding: calc(var(--header-height) + 18px) 16px 36px;
    background-position: 62% center;
  }

  .main-home-grid,
  .main-status-grid {
    grid-template-columns: 1fr;
  }

  .main-deck {
    width: calc(100% - 32px);
    padding-top: 36px;
  }

  .donor-row {
    grid-template-columns: 24px 32px minmax(0, 1fr);
  }

  .donor-sum {
    grid-column: 3;
    justify-self: start;
  }

  .server-row {
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 10px;
  }

  .server-players {
    grid-column: 2;
    justify-content: space-between;
  }

  .hero-brand {
    font-size: clamp(28px, 9vw, 42px);
  }

  .slider-stage {
    min-height: 170px;
  }

  .slider-bag {
    width: 120px;
    height: 120px;
  }

  .history-section {
    padding: 64px 20px;
  }

  .catalog-actions {
    flex-direction: column;
  }

  .catalog-actions .button {
    width: 100%;
  }

  .history-row {
    grid-template-columns: 52px 1fr auto;
    gap: 10px;
  }

  .history-row time {
    display: none;
  }

  .site-footer {
    min-height: 88px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .footer-nav {
    gap: 8px 14px;
  }

  .admin-shell {
    padding: 28px 16px 70px;
  }

  .admin-top-meta {
    width: 100%;
    justify-content: space-between;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .admin-metrics article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-metrics article:last-child {
    border-bottom: 0;
  }

  .admin-metrics article:nth-child(n + 3) {
    border-top: 0;
  }

  .admin-tabs {
    gap: 20px;
  }

  .filter-nav {
    margin-top: 34px;
  }

  .order-row {
    grid-template-columns: 1fr auto;
    gap: 18px 12px;
  }

  .order-main {
    grid-column: 1 / -1;
  }

  .order-money {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .order-time,
  .order-comment,
  .issue-form,
  .issued-note {
    padding-left: 0;
  }

  .issue-form {
    grid-template-columns: 1fr;
  }

  .issue-form label {
    grid-column: auto;
  }

  .result-shell {
    width: calc(100% - 32px);
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.admin-staff {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
  margin-top: 32px;
}

.admin-staff-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-staff-grant-head {
  margin-top: 36px;
}

.staff-table {
  display: grid;
  gap: 12px;
}

.staff-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(120px, 0.7fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.staff-row.is-off {
  opacity: 0.55;
}

.staff-who {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.staff-who img {
  border-radius: 2px;
  flex: 0 0 auto;
}

.staff-who div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.staff-who strong {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.staff-who span,
.staff-who a,
.staff-pay span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.staff-pay {
  display: grid;
  gap: 4px;
}

.staff-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-staff-payouts {
  margin-top: 40px;
}

.salary-card {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.salary-payout-actions {
  flex-wrap: wrap;
}

.salary-shell {
  width: min(720px, calc(100% - 48px));
  margin: 40px auto 72px;
}

.salary-hero {
  margin-bottom: 28px;
}

.salary-role {
  margin: 6px 0 22px;
  color: var(--muted);
}

.salary-balance-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.salary-balance-value {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 64px);
  letter-spacing: 0.02em;
  line-height: 1;
}

.salary-withdraw {
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.salary-method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.salary-method-opt {
  position: relative;
  cursor: pointer;
}

.salary-method-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.salary-method-opt span {
  display: block;
  padding: 14px 12px;
  text-align: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.salary-method-opt input:checked + span {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.salary-method-opt input:focus-visible + span {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.salary-fields {
  display: grid;
  gap: 14px;
}

.salary-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.salary-field input {
  width: 100%;
  padding: 12px 0;
  color: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  outline: none;
  font-size: 18px;
}

.salary-field input:focus {
  border-bottom-color: var(--signal);
}

.salary-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.salary-method-opt input:disabled + span {
  opacity: 0.45;
  cursor: not-allowed;
}

.salary-submit {
  margin-top: 18px;
  width: 100%;
}

.salary-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.salary-history-head {
  margin-bottom: 14px;
}

.salary-history-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.03em;
}

.salary-payouts {
  display: grid;
  gap: 0;
}

.salary-payout {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.salary-payout-main {
  display: grid;
  gap: 4px;
}

.salary-payout-main strong {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.02em;
}

.salary-payout-main span,
.salary-payout-meta {
  color: var(--muted);
  font-size: 13px;
}

.salary-payout-meta {
  display: grid;
  gap: 4px;
  text-align: right;
  justify-items: end;
}

.salary-payout.is-ok .salary-payout-status {
  color: #9fbf9a;
}

.salary-payout.is-bad .salary-payout-status {
  color: #d28b84;
}

.salary-payout.is-wait .salary-payout-status {
  color: #c4b27a;
}

@media (max-width: 860px) {
  .admin-staff {
    grid-template-columns: 1fr;
  }

  .staff-row {
    grid-template-columns: 1fr;
  }

  .staff-actions {
    justify-content: flex-start;
  }

  .salary-shell {
    width: calc(100% - 32px);
  }

  .salary-method {
    grid-template-columns: 1fr;
  }

  .salary-payout {
    flex-direction: column;
    align-items: flex-start;
  }

  .salary-payout-meta {
    text-align: left;
    justify-items: start;
  }
}

.admin-stats-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: end;
  margin-top: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.admin-stats-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-stats-field span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-stats-field select,
.admin-stats-field input[type="date"] {
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgb(11 16 17 / 70%);
  color: var(--text);
  font: inherit;
}

.admin-stats-field select {
  min-width: 260px;
  max-width: min(420px, 100%);
}

.admin-stats-identity {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
}

.admin-stats-identity img {
  border-radius: 2px;
  border: 1px solid var(--line);
}

.admin-stats-identity strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
}

.admin-stats-identity span,
.admin-stats-identity em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.admin-stats-metrics {
  margin-top: 22px;
}

.admin-stats-logs {
  margin-top: 28px;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgb(237 240 234 / 3.5%), transparent 42%),
    rgb(11 16 17 / 55%);
}

.admin-stats-loglist {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.admin-stats-log {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgb(237 240 234 / 8%);
}

.admin-stats-log-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-stats-log-main strong {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-stats-log.is-ban .admin-stats-log-main strong {
  color: #d28b84;
}

.admin-stats-log.is-unban .admin-stats-log-main strong {
  color: #9fbf9a;
}

.admin-stats-log.is-ticket .admin-stats-log-main strong {
  color: #c4b27a;
}

.admin-stats-log-main span {
  color: var(--muted);
  font-size: 13px;
  word-break: break-word;
}

.admin-stats-log-meta {
  display: grid;
  gap: 4px;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.admin-blogs {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.2fr);
  gap: 20px;
  margin-top: 28px;
}

.admin-blog-form-wrap,
.admin-blog-list-wrap {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgb(237 240 234 / 3.5%), transparent 42%),
    rgb(11 16 17 / 55%);
}

.admin-blog-form {
  display: grid;
  gap: 14px;
}

.admin-blog-form label {
  display: grid;
  gap: 8px;
}

.admin-blog-form label span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-blog-form input[type="text"],
.admin-blog-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgb(11 16 17 / 70%);
  color: var(--text);
  font: inherit;
}

.admin-blog-check {
  display: flex !important;
  gap: 10px;
  align-items: center;
}

.admin-blog-check span {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
  color: var(--text) !important;
}

.admin-blog-list {
  display: grid;
  gap: 0;
}

.admin-blog-row {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgb(237 240 234 / 8%);
}

.admin-blog-row:first-child {
  border-top: 0;
}

.admin-blog-row strong {
  display: block;
  margin-bottom: 4px;
}

.admin-blog-row span {
  color: var(--muted);
  font-size: 12px;
}

.admin-blog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 860px) {
  .admin-stats-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-stats-metrics article:nth-child(2n) {
    border-right: 0;
  }

  .admin-stats-log {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-stats-log-meta {
    text-align: left;
  }

  .admin-blogs {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
