/* ==========================================================================
   Stellar support centre — public UI
   ========================================================================== */

:root {
  --bg: #070a11;
  --bg-soft: #0a0f19;
  --panel: #0f1623;
  --panel-raised: #121b2a;
  --panel-deep: #0a1019;
  --ink: #f4f0e7;
  --ink-soft: #d8d5cd;
  --muted: #8e98a9;
  --muted-dark: #667183;
  --line: rgba(223, 212, 189, 0.13);
  --line-strong: rgba(223, 212, 189, 0.22);
  --gold: #e8c47d;
  --gold-bright: #f7dfaa;
  --gold-deep: #b98845;
  --gold-wash: rgba(232, 196, 125, 0.11);
  --violet: #b6a4ff;
  --cyan: #8ad9d6;
  --rose: #e7a2b4;
  --emerald: #8fd3ad;
  --danger: #e79090;
  --danger-wash: rgba(231, 144, 144, 0.1);
  --success: #8fd3ad;
  --success-wash: rgba(143, 211, 173, 0.1);
  --warning: #e8c47d;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --shadow-large: 0 32px 90px rgba(0, 0, 0, 0.35);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  --font-display: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Consolas", "Liberation Mono", monospace;
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1100px 700px at 12% -12%, rgba(76, 95, 154, 0.2), transparent 60%),
    radial-gradient(900px 620px at 92% 4%, rgba(153, 112, 54, 0.12), transparent 65%),
    var(--bg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.38;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 76% 9%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 42% 36%, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(1px 1px at 88% 52%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 28% 72%, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(1px 1px at 64% 86%, rgba(255, 255, 255, 0.28), transparent);
}

::selection {
  color: #1a140a;
  background: var(--gold);
}

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

a:hover {
  color: var(--gold-bright);
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
}

h1,
h2 {
  letter-spacing: -0.02em;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  color: #171109;
  background: var(--gold);
  border-radius: 10px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
}

.mono-link {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  word-break: break-all;
}

.mono-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

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

.nowrap {
  white-space: nowrap;
}

.text-gold {
  color: var(--gold);
}

.hidden-form {
  display: none;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Buttons and form atoms
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-gold {
  color: #1a140a;
  background: linear-gradient(135deg, #f6dda8 0%, #e9c278 46%, #c99b54 100%);
  box-shadow: 0 10px 30px rgba(210, 164, 86, 0.18), inset 0 1px rgba(255, 255, 255, 0.35);
}

.btn-gold:hover {
  color: #1a140a;
  box-shadow: 0 14px 38px rgba(210, 164, 86, 0.28), inset 0 1px rgba(255, 255, 255, 0.4);
}

.btn-ghost {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(232, 196, 125, 0.42);
}

.btn-danger {
  color: var(--danger);
  background: var(--danger-wash);
  border-color: rgba(231, 144, 144, 0.28);
}

.btn-sm {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 12.5px;
}

.btn-lg {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.text-button {
  padding: 4px;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 12.5px;
  cursor: pointer;
}

.text-button:hover {
  color: var(--gold);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--gold-bright);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label,
.field > span:first-child {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.required {
  color: var(--gold);
}

.optional {
  color: var(--muted-dark);
  font-size: 11px;
  font-weight: 400;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(4, 8, 14, 0.56);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5f6a7b;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(232, 196, 125, 0.55);
  background: rgba(6, 10, 17, 0.8);
  box-shadow: 0 0 0 3px rgba(232, 196, 125, 0.08);
}

.field-hint {
  color: var(--muted-dark);
  font-size: 11.5px;
  line-height: 1.6;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap input {
  padding-left: 52px;
}

.input-wrap:not(.has-action) input {
  padding-left: 52px;
}

.input-prefix {
  position: absolute;
  left: 14px;
  z-index: 1;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.input-wrap.has-action input {
  padding-right: 62px;
  padding-left: 14px;
}

.input-action {
  position: absolute;
  right: 10px;
  padding: 5px 7px;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 11.5px;
  cursor: pointer;
}

.input-action:hover {
  color: var(--gold);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  cursor: pointer;
}

.check-line input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--gold);
  flex: none;
}

.check-line a {
  color: var(--gold);
  border-bottom: 1px solid rgba(232, 196, 125, 0.4);
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(223, 212, 189, 0.08);
  background: rgba(7, 10, 17, 0.72);
  backdrop-filter: blur(22px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(232, 196, 125, 0.35);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(232, 196, 125, 0.16), rgba(232, 196, 125, 0.02));
  box-shadow: inset 0 0 20px rgba(232, 196, 125, 0.06);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-word strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-word small {
  margin-top: 4px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
}

.nav-link {
  position: relative;
  padding: 9px 13px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 13px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
}

.nav-link.is-active::after {
  position: absolute;
  right: 13px;
  bottom: 2px;
  left: 13px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.nav-link-admin {
  margin-left: 4px;
  color: var(--gold);
  border: 1px solid rgba(232, 196, 125, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 8px 4px 4px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}

.user-chip:hover {
  color: var(--gold);
  border-color: rgba(232, 196, 125, 0.35);
}

.user-chip > span:last-child {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 36px;
  margin-left: auto;
  padding: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 1px;
  margin: 4px 0;
  background: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Avatars, status pills, flash
   -------------------------------------------------------------------------- */

.avatar {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  color: #fbf4e4;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09);
}

.avatar-sm {
  width: 29px;
  height: 29px;
  font-size: 12px;
}

.avatar-md {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.avatar-lg {
  width: 66px;
  height: 66px;
  font-size: 24px;
}

.avatar-xl {
  width: 82px;
  height: 82px;
  font-size: 30px;
}

.av-0 { background: linear-gradient(145deg, #775a38, #3b2d1e); }
.av-1 { background: linear-gradient(145deg, #495d82, #232e44); }
.av-2 { background: linear-gradient(145deg, #3f6d63, #1e3732); }
.av-3 { background: linear-gradient(145deg, #765069, #3b2834); }
.av-4 { background: linear-gradient(145deg, #6c6242, #37321f); }
.av-5 { background: linear-gradient(145deg, #5b4d79, #2e2740); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.status-pill::before {
  width: 5px;
  height: 5px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.status-pill.is-pending {
  color: #dfbd7d;
  border-color: rgba(223, 189, 125, 0.28);
  background: rgba(223, 189, 125, 0.08);
}

.status-pill.is-approved {
  color: var(--success);
  border-color: rgba(143, 211, 173, 0.24);
  background: var(--success-wash);
}

.status-pill.is-rejected {
  color: var(--danger);
  border-color: rgba(231, 144, 144, 0.24);
  background: var(--danger-wash);
}

.status-pill.is-cancelled {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.flash-stack {
  position: relative;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: var(--ink-soft);
  background: rgba(14, 21, 33, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.flash p {
  flex: 1;
  font-size: 12.5px;
}

.flash-dot {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--muted);
  border-radius: 50%;
}

.flash-success .flash-dot { background: var(--success); }
.flash-error .flash-dot { background: var(--danger); }
.flash-info .flash-dot { background: var(--cyan); }

.flash-success { border-color: rgba(143, 211, 173, 0.2); }
.flash-error { border-color: rgba(231, 144, 144, 0.22); }

.flash-close {
  padding: 0 3px;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.flash-close:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 62px;
  border-bottom: 1px solid rgba(223, 212, 189, 0.07);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 180px;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(7, 10, 17, 0.88));
}

.hero-orb {
  position: absolute;
  pointer-events: none;
  filter: blur(10px);
  border-radius: 50%;
}

.hero-orb-a {
  top: -280px;
  left: -180px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(73, 102, 168, 0.22), transparent 66%);
}

.hero-orb-b {
  right: -250px;
  bottom: -300px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(179, 130, 60, 0.15), transparent 66%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(232, 196, 125, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 196, 125, 0.055) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: radial-gradient(ellipse at 60% 30%, black 10%, transparent 68%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: 70px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(232, 196, 125, 0.09);
}

.pulse-dot::after {
  position: absolute;
  inset: -4px;
  content: "";
  border: 1px solid rgba(232, 196, 125, 0.35);
  border-radius: 50%;
  animation: pulse-ring 2.5s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.eyebrow-line {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero h1 {
  max-width: 760px;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 580px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 31px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted-dark);
  font-size: 11.5px;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-note svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
}

.hero-halo {
  position: absolute;
  inset: -45px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(232, 196, 125, 0.12), transparent 62%);
  filter: blur(16px);
}

.support-card {
  position: relative;
  z-index: 2;
  padding: 26px;
  background:
    linear-gradient(160deg, rgba(22, 31, 47, 0.96), rgba(10, 16, 26, 0.98));
  border: 1px solid rgba(232, 196, 125, 0.17);
  border-radius: 20px;
  box-shadow: var(--shadow-large), inset 0 1px rgba(255, 255, 255, 0.04);
  transform: rotate(-1.2deg);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.support-card:hover {
  transform: rotate(0deg) translateY(-3px);
  border-color: rgba(232, 196, 125, 0.28);
}

.support-card::before {
  position: absolute;
  top: 0;
  right: 30px;
  left: 30px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(232, 196, 125, 0.7), transparent);
}

.support-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-label {
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  color: #9bd8b8;
  background: rgba(143, 211, 173, 0.07);
  border: 1px solid rgba(143, 211, 173, 0.18);
  border-radius: 999px;
  font-size: 9px;
  white-space: nowrap;
}

.live-pill > span {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(143, 211, 173, 0.09);
}

.support-total {
  margin-top: 28px;
  padding-bottom: 22px;
}

.support-total small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.support-total strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.support-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.support-metrics div + div {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.support-metrics span {
  display: block;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
}

.support-metrics small {
  display: block;
  margin-top: 2px;
  color: var(--muted-dark);
  font-size: 9.5px;
}

.support-divider {
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(90deg, var(--line), transparent);
}

.mini-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10.5px;
}

.mini-board-head a {
  color: var(--gold);
  font-size: 10.5px;
}

.mini-board-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-top: 1px solid rgba(223, 212, 189, 0.07);
}

.mini-rank {
  width: 21px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 9px;
}

.mini-rank.rank-1 { color: var(--gold-bright); }
.mini-rank.rank-2 { color: #c4cad6; }
.mini-rank.rank-3 { color: #c79d72; }

.mini-board-name {
  min-width: 0;
  flex: 1;
}

.mini-board-name strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-board-name small {
  display: block;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.mini-board-amount {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
}

.mini-board-empty {
  padding: 20px 6px 13px;
  color: var(--muted-dark);
  font-size: 11px;
  text-align: center;
}

.empty-star {
  display: inline-block;
  color: var(--gold);
  font-size: 21px;
  animation: star-breathe 4s ease-in-out infinite;
}

@keyframes star-breathe {
  0%, 100% { opacity: 0.45; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.06); }
}

.mini-board-empty p {
  margin-top: 7px;
}

.support-card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted-dark);
  font-size: 9px;
}

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(143, 211, 173, 0.55);
}

.stage-badge {
  position: absolute;
  right: -25px;
  bottom: -28px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 106px;
  height: 106px;
  background: rgba(9, 14, 23, 0.95);
  border: 1px solid rgba(232, 196, 125, 0.25);
  border-radius: 50%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  transform: rotate(7deg);
}

.stage-badge span {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.stage-badge strong {
  margin-top: 1px;
  font-family: var(--font-display);
  font-size: 17px;
}

.stage-badge small {
  color: var(--muted-dark);
  font-size: 8px;
}

.announcement-wrap {
  position: relative;
  z-index: 4;
  margin-top: -1px;
}

.announcement {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 20px;
  background: linear-gradient(90deg, rgba(232, 196, 125, 0.08), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(232, 196, 125, 0.12);
  border-top: 0;
  border-radius: 0 0 14px 14px;
}

.announcement-label {
  flex: none;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.announcement p {
  flex: 1;
  color: var(--muted);
  font-size: 12px;
}

.announcement-mark {
  color: rgba(232, 196, 125, 0.3);
}

.trust-strip {
  padding: 29px 0;
  border-bottom: 1px solid rgba(223, 212, 189, 0.07);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 32px;
}

.trust-item:first-child {
  padding-left: 0;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(232, 196, 125, 0.17);
  border-radius: 12px;
  background: rgba(232, 196, 125, 0.05);
}

.trust-icon svg {
  width: 21px;
  height: 21px;
}

.trust-item strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.trust-item p {
  color: var(--muted-dark);
  font-size: 10.5px;
}

/* --------------------------------------------------------------------------
   Sections and headings
   -------------------------------------------------------------------------- */

.section {
  padding: 88px 0;
}

.section-heading {
  margin-bottom: 37px;
}

.section-heading h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 43px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-heading.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading.centered {
  max-width: 660px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.section-heading.centered p:last-child {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.section-aside {
  max-width: 350px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  text-align: right;
}

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

.package-card {
  position: relative;
  display: flex;
  min-height: 390px;
  padding: 25px 23px 22px;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(20, 29, 44, 0.87), rgba(9, 14, 23, 0.92));
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.package-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  opacity: 0.55;
  background: var(--tone, var(--gold));
}

.package-card::after {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 220px;
  height: 220px;
  pointer-events: none;
  content: "";
  opacity: 0.08;
  background: radial-gradient(circle, var(--tone, var(--gold)), transparent 67%);
}

.package-card:hover {
  z-index: 2;
  transform: translateY(-4px);
  background: linear-gradient(165deg, rgba(25, 35, 53, 0.96), rgba(10, 16, 26, 0.97));
  border-color: color-mix(in srgb, var(--tone, var(--gold)) 40%, transparent);
}

.tone-gold { --tone: var(--gold); }
.tone-violet { --tone: var(--violet); }
.tone-cyan { --tone: var(--cyan); }
.tone-rose { --tone: var(--rose); }
.tone-emerald { --tone: var(--emerald); }

.package-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 8px;
  color: var(--tone, var(--gold));
  background: color-mix(in srgb, var(--tone, var(--gold)) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone, var(--gold)) 26%, transparent);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.package-head {
  position: relative;
}

.package-index {
  color: var(--tone, var(--gold));
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  opacity: 0.72;
}

.package-head h3 {
  margin-top: 17px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.package-price {
  margin-top: 7px;
  color: var(--tone, var(--gold));
  font-family: var(--font-display);
  font-size: 33px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.package-price span {
  margin-right: 3px;
  font-family: var(--font-sans);
  font-size: 14px;
  opacity: 0.75;
}

.package-line {
  height: 1px;
  margin: 20px 0 18px;
  background: linear-gradient(90deg, rgba(223, 212, 189, 0.16), transparent);
}

.benefit-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.benefit-list svg {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  flex: none;
  color: var(--tone, var(--gold));
}

.package-cta {
  width: 100%;
  margin-top: 23px;
  color: var(--ink-soft);
  border-color: var(--line);
}

.package-cta:hover {
  color: var(--tone, var(--gold));
  border-color: color-mix(in srgb, var(--tone, var(--gold)) 40%, transparent);
}

.package-card:nth-child(2) .package-cta {
  color: #1a140a;
}

.empty-panel {
  padding: 65px 25px;
  text-align: center;
  background: rgba(15, 22, 35, 0.55);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.empty-panel.large {
  padding: 90px 25px;
}

.empty-panel h2,
.empty-panel h3 {
  margin-top: 13px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
}

.empty-panel p {
  max-width: 450px;
  margin: 9px auto 23px;
  color: var(--muted);
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   Community, leaderboard preview, recent feed
   -------------------------------------------------------------------------- */

.community-section {
  border-top: 1px solid rgba(223, 212, 189, 0.06);
  background: linear-gradient(180deg, rgba(10, 16, 26, 0.55), transparent);
}

.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(290px, 0.72fr);
  gap: 16px;
}

.leaderboard-card,
.recent-card {
  padding: 25px;
  background: linear-gradient(160deg, rgba(17, 25, 39, 0.8), rgba(8, 13, 21, 0.65));
  border: 1px solid var(--line);
  border-radius: 18px;
}

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

.card-head h3 {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.card-chip {
  padding: 4px 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  white-space: nowrap;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 8px;
  border-top: 1px solid rgba(223, 212, 189, 0.07);
  border-radius: 7px;
  transition: background 0.2s ease;
}

.leaderboard-row:hover {
  background: rgba(255, 255, 255, 0.022);
}

.leaderboard-row.is-top .leaderboard-player strong {
  color: var(--gold-bright);
}

.rank-badge {
  width: 25px;
  flex: none;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 10px;
}

.rank-badge.rank-1 { color: var(--gold-bright); }
.rank-badge.rank-2 { color: #c4cad6; }
.rank-badge.rank-3 { color: #c79d72; }

.leaderboard-player {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.leaderboard-player strong {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-player small {
  overflow: hidden;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-amount {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.recent-card {
  display: flex;
  flex-direction: column;
}

.recent-list {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.recent-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid rgba(223, 212, 189, 0.07);
}

.recent-star {
  color: rgba(232, 196, 125, 0.5);
  font-size: 12px;
  line-height: 1.6;
}

.recent-item p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.recent-item p strong {
  color: var(--ink-soft);
  font-weight: 500;
}

.recent-item p span {
  color: var(--gold);
}

.recent-item small {
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.recent-footer {
  margin-top: auto;
  padding-top: 15px;
  color: var(--muted-dark);
  border-top: 1px solid var(--line);
  font-size: 9px;
}

.empty-inline {
  padding: 28px 8px;
  color: var(--muted-dark);
  font-size: 12px;
  text-align: center;
}

.empty-inline span {
  display: block;
  color: var(--gold);
  font-size: 17px;
}

.empty-inline p {
  margin-top: 7px;
}

/* --------------------------------------------------------------------------
   Steps, FAQ, CTA
   -------------------------------------------------------------------------- */

.how-section {
  border-top: 1px solid rgba(223, 212, 189, 0.06);
}

.steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps-grid::before {
  position: absolute;
  top: 50px;
  right: 16%;
  left: 16%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(232, 196, 125, 0.23), transparent);
}

.step-card {
  position: relative;
  z-index: 1;
  min-height: 245px;
  padding: 25px;
  background: linear-gradient(160deg, rgba(18, 27, 42, 0.72), rgba(8, 13, 21, 0.55));
  border: 1px solid var(--line);
  border-radius: 18px;
}

.step-card:hover {
  border-color: rgba(232, 196, 125, 0.25);
}

.step-number {
  position: absolute;
  top: 22px;
  right: 23px;
  color: rgba(232, 196, 125, 0.25);
  font-family: var(--font-display);
  font-size: 28px;
}

.step-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: var(--gold);
  background: rgba(232, 196, 125, 0.06);
  border: 1px solid rgba(232, 196, 125, 0.16);
  border-radius: 12px;
}

.step-icon svg {
  width: 23px;
  height: 23px;
}

.step-card h3 {
  margin-top: 21px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.step-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.how-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 24px;
  color: var(--muted-dark);
  font-size: 10px;
}

.faq-section {
  border-top: 1px solid rgba(223, 212, 189, 0.06);
  background: linear-gradient(180deg, rgba(10, 16, 26, 0.45), transparent);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 80px;
}

.faq-intro h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 43px);
  font-weight: 600;
}

.faq-intro p:not(.eyebrow) {
  margin: 14px 0 19px;
  color: var(--muted);
  font-size: 12.5px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 2px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  color: var(--gold);
  font-size: 18px;
  font-weight: 300;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 650px;
  padding: 0 30px 20px 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.cta-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  border-top: 1px solid rgba(232, 196, 125, 0.13);
  background:
    radial-gradient(700px 400px at 50% 10%, rgba(232, 196, 125, 0.09), transparent 65%),
    linear-gradient(180deg, #0b111b, #080b12);
}

.cta-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  width: 620px;
  height: 370px;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(232, 196, 125, 0.14), transparent 65%);
  transform: translateX(-50%);
  filter: blur(20px);
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
}

.cta-inner .eyebrow {
  justify-content: center;
}

.cta-star {
  display: block;
  margin-bottom: 13px;
  color: var(--gold);
  font-size: 21px;
  animation: star-breathe 4s ease-in-out infinite;
}

.cta-inner h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.cta-inner > p:not(.eyebrow) {
  max-width: 500px;
  margin: 19px auto 0;
  color: var(--muted);
  font-size: 12.5px;
}

.cta-inner .hero-actions {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 65px 0 25px;
  background: #060910;
  border-top: 1px solid rgba(223, 212, 189, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.35fr;
  gap: 50px;
}

.brand-footer {
  margin-bottom: 16px;
}

.footer-brand > p {
  max-width: 260px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.footer-motto {
  display: inline-block;
  margin-top: 15px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col h2 {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.footer-col a,
.footer-col span {
  color: var(--muted);
  font-size: 11.5px;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-note p {
  max-width: 280px;
  color: var(--muted-dark);
  font-size: 10.5px;
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 17px;
  color: var(--muted-dark);
  border-top: 1px solid rgba(223, 212, 189, 0.07);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   Auth pages
   -------------------------------------------------------------------------- */

.page-auth {
  background:
    radial-gradient(900px 650px at 8% 20%, rgba(65, 86, 139, 0.18), transparent 65%),
    radial-gradient(700px 500px at 95% 85%, rgba(156, 109, 47, 0.1), transparent 65%),
    var(--bg);
}

.auth-shell {
  position: relative;
  min-height: calc(100vh - 74px);
  overflow: hidden;
  padding: 66px 0 82px;
}

.auth-glow {
  position: absolute;
  top: -20%;
  left: 8%;
  width: 620px;
  height: 620px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(92, 112, 169, 0.12), transparent 65%);
  filter: blur(30px);
}

.auth-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.82fr);
  align-items: center;
  gap: 90px;
  max-width: 1080px;
}

.auth-aside {
  padding: 15px 0;
}

.auth-aside h1 {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.7vw, 58px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.auth-lead {
  max-width: 470px;
  margin-top: 21px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

.auth-points {
  display: flex;
  max-width: 470px;
  margin-top: 35px;
  flex-direction: column;
  gap: 17px;
}

.auth-points li {
  display: flex;
  gap: 15px;
}

.auth-points li > span {
  padding-top: 2px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.auth-points strong {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.auth-points p {
  margin-top: 3px;
  color: var(--muted-dark);
  font-size: 10.5px;
  line-height: 1.7;
}

.auth-quote {
  position: relative;
  max-width: 440px;
  margin-top: 38px;
  padding: 17px 19px 17px 39px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.auth-quote > span {
  position: absolute;
  top: 5px;
  left: 13px;
  color: rgba(232, 196, 125, 0.45);
  font-family: var(--font-display);
  font-size: 35px;
}

.auth-quote p {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.8;
}

.auth-card {
  padding: 34px;
  background: linear-gradient(165deg, rgba(21, 31, 48, 0.9), rgba(9, 14, 23, 0.95));
  border: 1px solid var(--line-strong);
  border-radius: 21px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.auth-card-head {
  margin-bottom: 26px;
}

.auth-step {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
}

.auth-card-head h2 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}

.auth-card-head p {
  margin-top: 7px;
  color: var(--muted-dark);
  font-size: 11.5px;
}

.auth-card-head a {
  color: var(--gold);
  border-bottom: 1px solid rgba(232, 196, 125, 0.35);
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-card .btn-block {
  margin-top: 4px;
}

.auth-footnote {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 20px;
  padding-top: 16px;
  color: var(--muted-dark);
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  line-height: 1.65;
}

.auth-footnote svg {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  flex: none;
  color: var(--gold);
}

.login-stats {
  display: grid;
  max-width: 430px;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 34px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.login-stats div {
  padding: 0 14px;
}

.login-stats div:first-child {
  padding-left: 0;
}

.login-stats div + div {
  border-left: 1px solid var(--line);
}

.login-stats strong {
  display: block;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.login-stats span {
  display: block;
  margin-top: 2px;
  color: var(--muted-dark);
  font-size: 9.5px;
}

.login-help {
  margin-top: 19px;
  padding: 12px 14px;
  background: rgba(232, 196, 125, 0.04);
  border: 1px solid rgba(232, 196, 125, 0.1);
  border-radius: 10px;
}

.login-help span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
}

.login-help p {
  margin-top: 3px;
  color: var(--muted-dark);
  font-size: 9.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Shared page hero / member pages
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 48px;
  border-bottom: 1px solid rgba(223, 212, 189, 0.08);
  background:
    radial-gradient(800px 350px at 12% -20%, rgba(73, 99, 156, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(11, 17, 28, 0.65), transparent);
}

.page-hero-compact {
  padding: 52px 0 38px;
}

.page-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.page-hero-copy h1 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 49px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.page-hero-copy > p:not(.eyebrow):not(.order-number) {
  max-width: 650px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.page-hero-action {
  flex: none;
  padding-bottom: 4px;
}

.identity-line {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
}

.identity-line strong {
  display: block;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
}

.identity-line span {
  color: var(--muted-dark);
  font-size: 9.5px;
}

.dashboard-section {
  padding-top: 32px;
}

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

.stat-card {
  position: relative;
  min-height: 132px;
  padding: 20px;
  overflow: hidden;
  background: rgba(16, 24, 38, 0.64);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.stat-featured {
  background: linear-gradient(155deg, rgba(232, 196, 125, 0.13), rgba(16, 24, 38, 0.76) 55%);
  border-color: rgba(232, 196, 125, 0.23);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.stat-value {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-value small {
  margin-right: 1px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 15px;
}

.stat-note {
  display: block;
  margin-top: 9px;
  color: var(--muted-dark);
  font-size: 9.5px;
}

.stat-star {
  position: absolute;
  top: 15px;
  right: 17px;
  color: rgba(232, 196, 125, 0.35);
  font-size: 13px;
}

.member-callout {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 15px;
  padding: 14px 17px;
  background: rgba(232, 196, 125, 0.055);
  border: 1px solid rgba(232, 196, 125, 0.15);
  border-radius: 13px;
}

.callout-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: none;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(232, 196, 125, 0.25);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
}

.member-callout > div {
  flex: 1;
}

.member-callout strong {
  font-size: 11.5px;
  font-weight: 600;
}

.member-callout p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(290px, 0.72fr);
  gap: 15px;
  margin-top: 29px;
}

.panel {
  padding: 23px;
  background: rgba(14, 21, 34, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

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

.panel-head h2 {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.panel-lead {
  max-width: 690px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.account-panel {
  padding: 23px;
  background: linear-gradient(160deg, rgba(19, 28, 44, 0.75), rgba(9, 14, 23, 0.7));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.account-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.account-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(223, 212, 189, 0.07);
}

.account-list dt {
  color: var(--muted);
  font-size: 10.5px;
}

.account-list dd {
  color: var(--ink-soft);
  font-size: 11.5px;
  text-align: right;
}

.soft-note {
  margin-top: 14px;
  color: var(--muted-dark);
  font-size: 9.5px;
  line-height: 1.7;
}

.account-logout {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.account-logout .text-button {
  color: var(--muted-dark);
  font-size: 9.5px;
}

.password-details {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.password-details summary {
  display: flex;
  justify-content: space-between;
  color: var(--gold);
  font-size: 11px;
  cursor: pointer;
  list-style: none;
}

.password-details summary::-webkit-details-marker {
  display: none;
}

.password-details[open] summary {
  margin-bottom: 14px;
}

.password-details summary span {
  transition: transform 0.2s ease;
}

.password-details[open] summary span {
  transform: rotate(45deg);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -5px;
  padding: 0 5px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  white-space: nowrap;
}

.data-table th {
  padding: 9px 11px;
  color: var(--muted-dark);
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: left;
}

.data-table td {
  padding: 13px 11px;
  color: var(--muted);
  border-bottom: 1px solid rgba(223, 212, 189, 0.07);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.amount-cell {
  color: var(--gold) !important;
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.muted-cell {
  color: var(--muted-dark) !important;
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.table-action {
  text-align: right;
}

.table-action .text-link {
  font-size: 10px;
}

.empty-state {
  padding: 55px 20px;
  text-align: center;
}

.empty-state h3 {
  margin-top: 11px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
}

.empty-state p {
  max-width: 430px;
  margin: 8px auto 19px;
  color: var(--muted);
  font-size: 11.5px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.pager-link {
  color: var(--muted);
  font-size: 10.5px;
}

.pager-link:hover {
  color: var(--gold);
}

.pager-link.is-disabled {
  color: var(--muted-dark);
  opacity: 0.45;
  pointer-events: none;
}

.pager-count {
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 9px;
}

/* --------------------------------------------------------------------------
   Sponsor flow
   -------------------------------------------------------------------------- */

.sponsor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.6fr);
  align-items: start;
  gap: 20px;
}

.sponsor-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-step {
  padding: 25px;
  background: rgba(14, 21, 34, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.form-step-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
}

.step-badge {
  display: inline-grid;
  width: 29px;
  height: 29px;
  flex: none;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(232, 196, 125, 0.25);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
}

.form-step-head h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.form-step-head p {
  margin-top: 3px;
  color: var(--muted-dark);
  font-size: 10px;
}

.package-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.select-card {
  position: relative;
  display: flex;
  min-height: 210px;
  padding: 19px;
  flex-direction: column;
  background: rgba(6, 11, 18, 0.42);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.select-card:hover,
.select-card:focus-within {
  border-color: rgba(232, 196, 125, 0.3);
  background: rgba(10, 16, 26, 0.7);
}

.select-card:focus-within,
.method-card:focus-within {
  outline: 2px solid rgba(232, 196, 125, 0.55);
  outline-offset: 2px;
}

.select-card.is-selected,
.select-card:has(input[type="radio"]:checked) {
  background: linear-gradient(155deg, color-mix(in srgb, var(--tone, var(--gold)) 9%, rgba(10, 16, 26, 0.9)), rgba(8, 13, 22, 0.9));
  border-color: color-mix(in srgb, var(--tone, var(--gold)) 48%, transparent);
}

.select-card > input[type="radio"],
.method-card > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.select-check {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.select-card:has(input:checked) .select-check,
.method-card:has(input:checked) .select-check {
  border-color: var(--tone, var(--gold));
  background: var(--tone, var(--gold));
  box-shadow: inset 0 0 0 3px #0b111b;
}

.select-badge {
  position: absolute;
  top: 13px;
  right: 40px;
  color: var(--tone, var(--gold));
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.select-name {
  padding-right: 24px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 17px;
}

.select-price {
  margin-top: 7px;
  color: var(--tone, var(--gold));
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.1;
}

.select-price small {
  margin-right: 2px;
  font-family: var(--font-sans);
  font-size: 11px;
  opacity: 0.7;
}

.select-card .benefit-list {
  margin-top: 13px;
  gap: 6px;
}

.select-card .benefit-list li {
  color: var(--muted);
  font-size: 10px;
}

.custom-card {
  min-height: 210px;
  border-style: dashed;
}

@media (min-width: 721px) {
  .custom-card {
    display: grid;
    grid-column: 1 / -1;
    min-height: 155px;
    padding: 21px 23px;
    grid-template-columns: 185px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    align-items: center;
    column-gap: 24px;
  }

  .custom-card .select-name {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
  }

  .custom-card .select-price {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  .custom-card .custom-input-wrap {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin-top: 0;
    padding: 11px 13px;
  }

  .custom-card .select-note {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    margin-top: 7px;
  }

  .custom-card .select-check {
    top: 18px;
    right: 18px;
  }
}

.custom-card .select-price {
  color: var(--muted);
}

.custom-input-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding: 7px 10px;
  color: var(--gold);
  background: rgba(4, 8, 14, 0.6);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.custom-input-wrap > span {
  font-family: var(--font-mono);
  font-size: 12px;
}

.custom-input-wrap input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--ink-soft);
  background: none;
  border: 0;
  outline: none;
  font-family: var(--font-mono);
  font-size: 12px;
}

.custom-input-wrap input::placeholder {
  color: var(--muted-dark);
}

.select-note {
  margin-top: 7px;
  color: var(--muted-dark);
  font-size: 9px;
}

.custom-only {
  padding: 4px 0;
}

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

.method-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: rgba(6, 11, 18, 0.42);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.method-card:hover {
  border-color: rgba(232, 196, 125, 0.25);
}

.method-card:has(input:checked) {
  border-color: rgba(232, 196, 125, 0.45);
  background: rgba(232, 196, 125, 0.045);
}

.method-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: none;
  place-items: center;
  color: #fff;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
}

.method-alipay { background: #1677ff; }
.method-wechat { background: #18a058; }
.method-other { color: var(--gold); background: rgba(232, 196, 125, 0.11); border: 1px solid rgba(232, 196, 125, 0.18); }

.method-card strong {
  display: block;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 500;
}

.method-card small {
  display: block;
  margin-top: 1px;
  color: var(--muted-dark);
  font-size: 8.5px;
}

.method-card .select-check {
  top: 11px;
  right: 11px;
  width: 13px;
  height: 13px;
}

.afdian-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 105px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(177, 140, 255, 0.11), rgba(13, 19, 31, 0.75));
  border: 1px solid rgba(177, 140, 255, 0.3);
  border-radius: 14px;
}

.afdian-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  color: #f7f1ff;
  background: linear-gradient(145deg, #a77cf0, #6f4ab9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(112, 74, 185, 0.24);
}

.afdian-choice-copy {
  min-width: 0;
  flex: 1;
}

.afdian-choice-copy strong {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.afdian-choice-copy p {
  max-width: 560px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.afdian-choice-badge {
  align-self: flex-start;
  padding: 3px 7px;
  color: #cdb8ff;
  background: rgba(177, 140, 255, 0.1);
  border: 1px solid rgba(177, 140, 255, 0.22);
  border-radius: 999px;
  font-size: 8.5px;
}

.checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 21px 25px;
  background: linear-gradient(100deg, rgba(232, 196, 125, 0.1), rgba(17, 25, 39, 0.7));
  border: 1px solid rgba(232, 196, 125, 0.21);
  border-radius: 15px;
}

.checkout-bar > div {
  display: flex;
  flex-direction: column;
}

.checkout-bar > div > span {
  color: var(--muted);
  font-size: 9.5px;
}

.checkout-bar strong {
  margin-top: 3px;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 600;
}

.form-disclaimer {
  padding: 2px 10px 0;
  color: #8792a2;
  font-size: 10.5px;
  line-height: 1.85;
  text-align: center;
}

.form-disclaimer a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(232, 196, 125, 0.4);
  text-underline-offset: 2px;
}

.sponsor-aside {
  position: sticky;
  top: 95px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aside-card {
  padding: 23px;
  background: rgba(14, 21, 34, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.aside-card h2 {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.timeline {
  display: flex;
  margin-top: 19px;
  flex-direction: column;
}

.timeline li {
  position: relative;
  display: flex;
  gap: 11px;
  padding-bottom: 18px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  position: absolute;
  top: 19px;
  bottom: 0;
  left: 9px;
  width: 1px;
  content: "";
  background: var(--line);
}

.timeline li:last-child::before {
  display: none;
}

.timeline li > span {
  display: grid;
  width: 19px;
  height: 19px;
  flex: none;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(232, 196, 125, 0.22);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 7.5px;
}

.timeline strong {
  display: block;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 500;
}

.timeline p {
  margin-top: 2px;
  color: var(--muted-dark);
  font-size: 9px;
  line-height: 1.6;
}

.aside-note {
  display: flex;
  gap: 11px;
  padding: 15px;
  background: rgba(232, 196, 125, 0.04);
  border: 1px solid rgba(232, 196, 125, 0.11);
  border-radius: 12px;
}

.aside-note-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: none;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(232, 196, 125, 0.25);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 8px;
}

.aside-note strong {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
}

.aside-note p {
  margin-top: 3px;
  color: var(--muted-dark);
  font-size: 9px;
  line-height: 1.7;
}

.aside-group {
  display: flex;
  padding: 15px 17px;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.aside-group:hover {
  border-color: rgba(232, 196, 125, 0.28);
}

.aside-group span {
  color: var(--muted-dark);
  font-size: 8.5px;
}

.aside-group strong {
  margin-top: 2px;
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Order detail
   -------------------------------------------------------------------------- */

.order-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.order-title-line h1 {
  margin-top: 8px;
}

.order-number {
  color: var(--muted-dark) !important;
  font-size: 9.5px !important;
  letter-spacing: 0.02em;
}

.order-section {
  padding-top: 27px;
}

.order-status-banner {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 19px 21px;
  background: rgba(232, 196, 125, 0.045);
  border: 1px solid rgba(232, 196, 125, 0.15);
  border-radius: 15px;
}

.order-status-banner.is-approved {
  background: var(--success-wash);
  border-color: rgba(143, 211, 173, 0.18);
}

.order-status-banner.is-rejected {
  background: var(--danger-wash);
  border-color: rgba(231, 144, 144, 0.2);
}

.order-status-banner.is-cancelled {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line);
}

.order-status-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  color: var(--gold);
  background: rgba(232, 196, 125, 0.09);
  border: 1px solid rgba(232, 196, 125, 0.2);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 16px;
}

.is-approved .order-status-icon {
  color: var(--success);
  background: rgba(143, 211, 173, 0.08);
  border-color: rgba(143, 211, 173, 0.2);
}

.is-rejected .order-status-icon {
  color: var(--danger);
  background: var(--danger-wash);
  border-color: rgba(231, 144, 144, 0.2);
}

.order-status-banner > div {
  flex: 1;
}

.order-status-banner strong {
  display: block;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.order-status-banner p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.order-status-amount {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 26px;
  white-space: nowrap;
}

.is-approved .order-status-amount {
  color: var(--success);
}

.is-rejected .order-status-amount {
  color: var(--danger);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.62fr);
  align-items: start;
  gap: 16px;
  margin-top: 16px;
}

.order-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.payment-panel .panel-head {
  margin-bottom: 15px;
}

.pay-method-pill {
  padding: 4px 9px;
  color: var(--gold);
  border: 1px solid rgba(232, 196, 125, 0.18);
  border-radius: 999px;
  font-size: 9px;
}

.payment-grid {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.afdian-payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 24px;
  align-items: center;
}

.afdian-entry {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background:
    radial-gradient(320px 180px at 20% 0%, rgba(177, 140, 255, 0.13), transparent 70%),
    rgba(8, 13, 22, 0.48);
  border: 1px solid rgba(177, 140, 255, 0.22);
  border-radius: 14px;
}

.afdian-mark-lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 23px;
}

.afdian-entry strong {
  display: block;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.afdian-entry p {
  max-width: 470px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.75;
}

.afdian-entry .btn {
  margin-top: 3px;
}

.afdian-unavailable {
  color: var(--muted);
  font-size: 10px;
}

.afdian-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 25px;
  margin-top: 17px;
  padding-top: 14px;
  color: var(--muted-dark);
  border-top: 1px solid var(--line);
  font-size: 9.5px;
}

.afdian-steps strong {
  margin-right: 4px;
  color: #c4a7ff;
  font-family: var(--font-mono);
  font-size: 8px;
}

.qr-column {
  text-align: center;
}

.qr-frame {
  position: relative;
  display: inline-flex;
  padding: 11px;
  background: #f5f1e8;
  border-radius: 13px;
  box-shadow: 0 13px 35px rgba(0, 0, 0, 0.28);
}

.qr-frame img {
  display: block;
  width: 216px;
  height: 216px;
  object-fit: contain;
}

.qr-corner {
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: var(--gold);
  border-style: solid;
}

.qr-corner-tl {
  top: -4px;
  left: -4px;
  border-width: 1px 0 0 1px;
}

.qr-corner-br {
  right: -4px;
  bottom: -4px;
  border-width: 0 1px 1px 0;
}

.qr-caption {
  margin-top: 10px;
  color: var(--muted-dark);
  font-size: 9.5px;
}

.qr-empty {
  padding: 25px 15px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
}

.qr-empty > span {
  display: block;
  color: var(--gold);
  font-size: 21px;
}

.qr-empty strong {
  display: block;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12px;
}

.qr-empty p {
  margin: 4px 0 12px;
  color: var(--muted-dark);
  font-size: 10px;
  line-height: 1.7;
}

.payment-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pay-amount {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.pay-amount small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.pay-amount strong {
  display: block;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 600;
}

.remark-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  background: rgba(4, 8, 14, 0.45);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.remark-box span {
  display: block;
  color: var(--muted-dark);
  font-size: 8px;
}

.remark-box strong {
  display: block;
  margin-top: 1px;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 500;
}

.copy-button {
  padding: 4px 8px;
  color: var(--gold);
  background: rgba(232, 196, 125, 0.06);
  border: 1px solid rgba(232, 196, 125, 0.16);
  border-radius: 6px;
  font-size: 8.5px;
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(232, 196, 125, 0.11);
}

.payment-note {
  color: var(--muted-dark);
  font-size: 9.5px;
  line-height: 1.7;
  white-space: pre-line;
}

.payment-warning {
  display: flex;
  gap: 8px;
  padding: 9px 10px;
  color: var(--muted);
  background: var(--danger-wash);
  border: 1px solid rgba(231, 144, 144, 0.15);
  border-radius: 9px;
}

.payment-warning > span {
  display: grid;
  width: 16px;
  height: 16px;
  flex: none;
  place-items: center;
  color: var(--danger);
  border: 1px solid rgba(231, 144, 144, 0.35);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 7px;
}

.payment-warning p {
  font-size: 8.5px;
  line-height: 1.6;
}

.proof-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 17px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.proof-preview a {
  display: block;
  width: 86px;
  height: 64px;
  flex: none;
  overflow: hidden;
  background: #f5f1e8;
  border-radius: 7px;
}

.proof-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-preview strong {
  display: block;
  color: var(--ink-soft);
  font-size: 10.5px;
}

.proof-preview p {
  margin-top: 3px;
  color: var(--muted-dark);
  font-size: 9px;
}

.upload-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 14px;
  background: rgba(4, 8, 14, 0.36);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-zone:hover,
.upload-zone.is-dragging {
  background: rgba(232, 196, 125, 0.025);
  border-color: rgba(232, 196, 125, 0.42);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.upload-icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: none;
  place-items: center;
  color: var(--gold);
  background: rgba(232, 196, 125, 0.05);
  border: 1px solid rgba(232, 196, 125, 0.14);
  border-radius: 10px;
}

.upload-icon svg {
  width: 20px;
  height: 20px;
}

.upload-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.upload-copy strong {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-copy small {
  margin-top: 3px;
  color: var(--muted-dark);
  font-size: 8.5px;
}

.file-thumb {
  width: 61px;
  height: 61px;
  margin-left: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.order-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-list {
  display: flex;
  flex-direction: column;
}

.summary-list > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(223, 212, 189, 0.07);
}

.summary-list > div:last-child {
  border-bottom: 0;
}

.summary-list dt {
  flex: none;
  color: var(--muted-dark);
  font-size: 9.5px;
}

.summary-list dd {
  color: var(--ink-soft);
  font-size: 10.5px;
  text-align: right;
  word-break: break-word;
}

.order-timeline {
  display: flex;
  flex-direction: column;
}

.order-timeline li {
  position: relative;
  display: flex;
  gap: 11px;
  padding-bottom: 17px;
}

.order-timeline li:last-child {
  padding-bottom: 0;
}

.order-timeline li::before {
  position: absolute;
  top: 13px;
  bottom: 0;
  left: 4px;
  width: 1px;
  content: "";
  background: var(--line);
}

.order-timeline li:last-child::before {
  display: none;
}

.order-timeline li > span {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  flex: none;
  border: 1px solid var(--muted-dark);
  border-radius: 50%;
  background: var(--panel);
}

.order-timeline li.is-done > span {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 196, 125, 0.08);
}

.order-timeline li.is-rejected > span {
  background: var(--danger);
  border-color: var(--danger);
}

.order-timeline strong {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.order-timeline .is-done strong {
  color: var(--ink-soft);
}

.order-timeline small {
  display: block;
  margin-top: 1px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 8px;
}

.success-panel {
  position: relative;
  padding: 48px 28px;
  text-align: center;
  overflow: hidden;
}

.success-panel::after {
  position: absolute;
  top: -130px;
  left: 50%;
  width: 360px;
  height: 260px;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse, rgba(143, 211, 173, 0.1), transparent 66%);
  transform: translateX(-50%);
}

.success-glyph {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 15px;
  place-items: center;
  color: var(--success);
  background: var(--success-wash);
  border: 1px solid rgba(143, 211, 173, 0.22);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 19px;
}

.success-panel h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
}

.success-panel p {
  max-width: 520px;
  margin: 12px auto 23px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.success-panel .inline-actions {
  justify-content: center;
}

.rejected-panel .success-glyph {
  color: var(--danger);
  background: var(--danger-wash);
  border-color: rgba(231, 144, 144, 0.22);
}

/* --------------------------------------------------------------------------
   Public leaderboard
   -------------------------------------------------------------------------- */

.leaderboard-hero .page-hero-inner {
  align-items: center;
}

.leaderboard-hero .hero-note {
  margin-top: 22px;
  gap: 20px;
}

.leaderboard-hero .hero-note strong {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.my-rank-card {
  width: 230px;
  flex: none;
  padding: 20px;
  background: linear-gradient(155deg, rgba(232, 196, 125, 0.1), rgba(14, 21, 34, 0.75));
  border: 1px solid rgba(232, 196, 125, 0.2);
  border-radius: 16px;
}

.my-rank-main {
  display: flex;
  align-items: baseline;
  margin: 9px 0 3px;
  color: var(--gold-bright);
  font-family: var(--font-display);
  line-height: 1;
}

.my-rank-main small {
  font-family: var(--font-sans);
  font-size: 14px;
}

.my-rank-main strong {
  font-size: 43px;
  font-weight: 600;
}

.my-rank-empty {
  color: var(--muted-dark);
  font-size: 35px;
}

.my-rank-card p {
  color: var(--muted);
  font-size: 9.5px;
}

.my-rank-card .text-link {
  margin-top: 12px;
  font-size: 10px;
}

.my-rank-card h2 {
  margin: 10px 0 15px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto 28px;
}

.podium-card {
  position: relative;
  display: flex;
  padding: 25px 20px 23px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(165deg, rgba(20, 29, 44, 0.8), rgba(8, 13, 22, 0.8));
  border: 1px solid var(--line);
  border-radius: 17px;
}

.podium-1 {
  min-height: 270px;
  padding-top: 34px;
  background: linear-gradient(165deg, rgba(232, 196, 125, 0.12), rgba(13, 20, 32, 0.9));
  border-color: rgba(232, 196, 125, 0.3);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}

.podium-2,
.podium-3 {
  min-height: 235px;
}

.podium-rank {
  position: absolute;
  top: 16px;
  left: 18px;
  color: rgba(232, 196, 125, 0.38);
  font-family: var(--font-mono);
  font-size: 9px;
}

.podium-crown {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--gold);
  font-size: 13px;
}

.podium-card h3 {
  margin-top: 11px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.podium-card p {
  margin-top: 2px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.podium-amount {
  margin-top: 12px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 15px;
}

.podium-count {
  margin-top: 3px;
  color: var(--muted-dark);
  font-size: 8.5px;
}

.leaderboard-panel {
  padding: 26px;
}

.rank-table th {
  padding-top: 10px;
  padding-bottom: 10px;
}

.rank-table td {
  padding-top: 12px;
  padding-bottom: 12px;
}

.rank-text {
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 10px;
}

.rank-text.rank-1 { color: var(--gold-bright); }
.rank-text.rank-2 { color: #c4cad6; }
.rank-text.rank-3 { color: #c79d72; }

.table-player {
  display: flex;
  align-items: center;
  gap: 9px;
}

.table-player strong {
  display: block;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 500;
}

.table-player small {
  display: inline-block;
  margin-top: 1px;
  color: var(--muted-dark);
  font-size: 8px;
}

.me-tag {
  padding: 1px 5px;
  color: var(--gold) !important;
  background: rgba(232, 196, 125, 0.09);
  border-radius: 4px;
}

.rank-top-row td {
  background: rgba(232, 196, 125, 0.025);
}

.rank-table tr.is-me td {
  background: rgba(232, 196, 125, 0.05);
}

.table-note {
  margin-top: 14px;
  color: var(--muted-dark);
  font-size: 9px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Policy and error
   -------------------------------------------------------------------------- */

.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 22px;
  max-width: 1050px;
  margin: 0 auto;
}

.policy-card {
  padding: 35px;
  background: rgba(14, 21, 34, 0.6);
  border: 1px solid var(--line);
  border-radius: 19px;
}

.policy-updated {
  margin-bottom: 17px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 9px;
}

.policy-card h2 {
  margin: 25px 0 8px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.policy-card h2:first-of-type {
  margin-top: 0;
}

.policy-card p,
.policy-card li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.policy-card ul {
  display: flex;
  padding-left: 18px;
  flex-direction: column;
  gap: 3px;
  list-style: disc;
}

.policy-card li {
  list-style: disc;
}

.policy-card .mono {
  color: var(--gold);
}

.policy-aside {
  position: sticky;
  top: 95px;
  padding: 23px;
  background: linear-gradient(160deg, rgba(232, 196, 125, 0.08), rgba(14, 21, 34, 0.6));
  border: 1px solid rgba(232, 196, 125, 0.15);
  border-radius: 16px;
}

.policy-aside h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.policy-aside p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.policy-aside .text-link {
  margin-top: 14px;
  font-size: 10px;
}

.policy-checks {
  display: flex;
  margin-top: 13px;
  flex-direction: column;
  gap: 7px;
}

.policy-checks li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 10px;
}

.policy-checks li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--gold);
  content: "✓";
  font-size: 9px;
}

.error-section {
  position: relative;
  display: grid;
  min-height: calc(100vh - 220px);
  place-items: center;
  overflow: hidden;
  padding: 80px 0;
}

.error-orbit {
  position: absolute;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(232, 196, 125, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(232, 196, 125, 0.018), 0 0 0 160px rgba(232, 196, 125, 0.012);
}

.error-inner {
  position: relative;
  z-index: 1;
  max-width: 580px;
  text-align: center;
}

.error-code {
  display: block;
  color: rgba(232, 196, 125, 0.22);
  font-family: var(--font-display);
  font-size: clamp(100px, 17vw, 200px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.error-inner .eyebrow {
  justify-content: center;
  margin-top: 20px;
}

.error-inner h1 {
  margin-top: 13px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
}

.error-inner > p:not(.eyebrow) {
  margin: 11px auto 0;
  color: var(--muted);
  font-size: 12px;
}

.error-inner .hero-actions {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .package-card {
    min-height: 340px;
  }

  .hero-grid {
    gap: 45px;
  }

  .hero h1 {
    font-size: clamp(46px, 5.6vw, 70px);
  }

  .auth-grid {
    gap: 55px;
  }

  .footer-grid {
    gap: 35px;
  }
}

@media (max-width: 1020px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    right: 24px;
    left: 24px;
    z-index: 90;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(10, 16, 26, 0.98);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  }

  .nav-open .main-nav {
    display: flex;
  }

  .nav-link {
    padding: 12px 14px;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-inner {
    gap: 15px;
  }

  .header-actions {
    margin-left: 0;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 55px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-stage {
    max-width: 520px;
    margin: 0 auto;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .trust-item,
  .trust-item:first-child {
    padding: 0;
  }

  .trust-item + .trust-item {
    padding-top: 18px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 70px 0;
  }

  .community-grid,
  .dashboard-grid,
  .faq-grid,
  .sponsor-layout,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .sponsor-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .aside-group {
    grid-column: 1 / -1;
  }

  .order-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .auth-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 42px;
  }

  .auth-aside {
    text-align: center;
  }

  .auth-aside .eyebrow {
    justify-content: center;
  }

  .auth-points,
  .auth-lead,
  .auth-quote,
  .login-stats {
    margin-right: auto;
    margin-left: auto;
  }

  .auth-points {
    text-align: left;
  }

  .auth-quote {
    text-align: left;
  }

  .login-stats {
    text-align: left;
  }

  .page-hero-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .page-hero-action {
    padding-top: 0;
  }

  .leaderboard-hero .page-hero-inner {
    align-items: flex-start;
  }

  .my-rank-card {
    width: 100%;
    max-width: 430px;
  }

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

@media (max-width: 900px) {
  .section-heading.split {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .section-aside {
    max-width: 520px;
    text-align: left;
  }

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

  .steps-grid::before {
    display: none;
  }

  .step-card {
    min-height: auto;
  }

  .podium-grid {
    max-width: 620px;
  }

  .payment-grid,
  .afdian-payment-grid {
    grid-template-columns: 1fr;
  }

  .qr-column {
    text-align: left;
  }

  .afdian-steps {
    flex-direction: column;
    gap: 5px;
  }

  .qr-frame {
    padding: 9px;
  }

  .qr-frame img {
    width: 190px;
    height: 190px;
  }

  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-aside {
    position: static;
  }

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

  .footer-note {
    grid-column: 1 / -1;
  }

  .order-status-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .order-status-amount {
    width: 100%;
    padding-left: 55px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-word strong {
    font-size: 15px;
  }

  .brand-word small {
    display: none;
  }

  .user-chip > span:last-child {
    display: none;
  }

  .header-actions .btn-gold {
    padding: 8px 12px;
    font-size: 11.5px;
  }

  .main-nav {
    top: 66px;
    right: 16px;
    left: 16px;
  }

  .hero {
    padding: 58px 0 45px;
  }

  .hero h1 {
    font-size: clamp(40px, 10.5vw, 57px);
  }

  .hero-lead {
    font-size: 13px;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .btn-lg {
    min-height: 47px;
    padding: 12px 18px;
    font-size: 13px;
  }

  .hero-note {
    gap: 11px;
    font-size: 10px;
  }

  .support-card {
    padding: 21px;
    transform: none;
  }

  .support-total strong {
    font-size: 36px;
  }

  .stage-badge {
    right: -8px;
    bottom: -20px;
    width: 86px;
    height: 86px;
  }

  .stage-badge strong {
    font-size: 14px;
  }

  .announcement {
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
  }

  .announcement-label {
    font-size: 9px;
  }

  .announcement-mark {
    display: none;
  }

  .section {
    padding: 55px 0;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .package-grid {
    grid-template-columns: 1fr;
  }

  .package-card {
    min-height: auto;
  }

  .benefit-list {
    margin-bottom: 6px;
  }

  .leaderboard-card,
  .recent-card {
    padding: 19px;
  }

  .leaderboard-row {
    padding: 10px 3px;
  }

  .faq-grid {
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand,
  .footer-note {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .auth-shell {
    padding: 40px 0 60px;
  }

  .auth-card {
    padding: 23px;
  }

  .auth-aside h1 {
    font-size: 38px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 40px 0 30px;
  }

  .page-hero-copy h1 {
    font-size: 35px;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card {
    min-height: 120px;
    padding: 16px;
  }

  .stat-value {
    font-size: 27px;
  }

  .member-callout {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .member-callout .text-link {
    margin-left: 40px;
  }

  .panel,
  .account-panel {
    padding: 18px;
  }

  .form-step {
    padding: 19px;
  }

  .package-select-grid {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .afdian-choice {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px;
  }

  .afdian-choice-copy {
    flex-basis: calc(100% - 60px);
  }

  .afdian-choice-badge {
    position: absolute;
    top: 13px;
    right: 13px;
  }

  .checkout-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }

  .checkout-bar .btn {
    width: 100%;
  }

  .sponsor-aside,
  .order-aside {
    display: flex;
  }

  .order-status-banner {
    padding: 15px;
  }

  .order-status-icon {
    width: 32px;
    height: 32px;
  }

  .order-status-amount {
    padding-left: 47px;
    font-size: 23px;
  }

  .podium-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .podium-1 {
    order: -1;
    min-height: auto;
  }

  .podium-2,
  .podium-3 {
    min-height: auto;
  }

  .podium-card {
    padding: 20px;
  }

  .leaderboard-panel {
    padding: 18px;
  }

  .policy-card {
    padding: 22px;
  }

  .error-orbit {
    width: 340px;
    height: 340px;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-mark svg {
    width: 20px;
    height: 20px;
  }

  .header-actions .btn-gold {
    min-height: 33px;
    padding: 7px 11px;
    font-size: 10.5px;
  }

  .header-actions .text-button {
    display: none;
  }

  .user-chip {
    padding: 2px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .support-metrics span {
    font-size: 15px;
  }

  .support-metrics small {
    font-size: 8.5px;
  }

  .login-stats div {
    padding: 0 9px;
  }

  .login-stats strong {
    font-size: 18px;
  }

  .login-stats span {
    font-size: 8.5px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 105px;
  }

  .page-hero-action .btn {
    width: 100%;
  }

  .qr-frame img {
    width: 170px;
    height: 170px;
  }

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

  .footer-brand,
  .footer-note {
    grid-column: auto;
  }

  .modal-actions,
  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
