:root {
  color-scheme: light;
  --bg: #f4fff8;
  --bg-2: #e7f8ee;
  --surface: #ffffff;
  --surface-2: #edf8f1;
  --ink: #061c11;
  --muted: #587260;
  --faint: #d5eadc;
  --border: rgba(8, 104, 51, 0.15);
  --brand: #10b65a;
  --brand-2: #087a3b;
  --gold: #bb831b;
  --danger: #d84040;
  --discord: #5865f2;
  --shadow: 0 24px 80px rgba(14, 111, 57, 0.13);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #030405;
  --bg-2: #080a0a;
  --surface: #101113;
  --surface-2: #17191b;
  --ink: #fff9df;
  --muted: #c9c5b8;
  --faint: rgba(244, 196, 78, 0.2);
  --border: rgba(244, 196, 78, 0.2);
  --brand: #efbd45;
  --brand-2: #f8d46c;
  --gold: #f4c44e;
  --danger: #ff746d;
  --discord: #7f8cff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
  overflow-y: scroll;
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 14%, rgba(16, 182, 90, 0.12), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(16, 182, 90, 0.08), transparent 22%),
    linear-gradient(135deg, transparent 0 48%, rgba(16, 182, 90, 0.05) 48% 52%, transparent 52%),
    linear-gradient(90deg, rgba(16, 182, 90, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 182, 90, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, auto, 44px 44px, 44px 44px, auto;
  color: var(--ink);
  font-family: var(--font);
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 196, 78, 0.13), transparent 24%),
    radial-gradient(circle at 78% 10%, rgba(255, 216, 104, 0.09), transparent 18%),
    radial-gradient(circle at 82% 72%, rgba(27, 230, 126, 0.055), transparent 26%),
    linear-gradient(135deg, transparent 0 46%, rgba(244, 196, 78, 0.045) 46% 52%, transparent 52%),
    linear-gradient(90deg, rgba(244, 196, 78, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 196, 78, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, auto, auto, 46px 46px, 46px 46px, auto;
}

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

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

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.brand img {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 12%, transparent);
}

.brand span span {
  color: var(--brand-2);
}

body[data-theme="dark"] .brand span span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  content: "";
  transition: width 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.sound-toggle,
.theme-choice,
.discord-login,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 900;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.control-cluster {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  box-shadow: inset 0 1px 16px rgba(0, 0, 0, 0.1);
}

.sound-toggle,
.theme-choice {
  position: relative;
  width: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}

.sound-toggle::before,
.theme-choice::before {
  position: absolute;
  inset: 3px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  content: "";
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.sound-toggle:hover::before,
.theme-choice:hover::before {
  border-color: var(--border);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.theme-choice.is-active::before,
.sound-toggle.is-active::before {
  border-color: color-mix(in srgb, var(--brand-2) 46%, transparent);
  background: color-mix(in srgb, var(--brand-2) 16%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-2) 14%, transparent);
}

.sound-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 17px;
  height: 15px;
  margin: auto;
  border-left: 4px solid var(--muted);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.sound-icon::before,
.sound-icon::after {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--muted);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 999px 0 0;
  content: "";
}

.sound-icon::after {
  top: -1px;
  width: 12px;
  height: 12px;
  opacity: 0.55;
}

.sound-toggle.is-muted .sound-icon::before,
.sound-toggle.is-muted .sound-icon::after {
  display: none;
}

.sound-toggle.is-muted .sound-icon {
  opacity: 0.48;
}

.theme-moon,
.theme-sun {
  position: relative;
  z-index: 1;
  display: block;
  width: 18px;
  height: 18px;
  margin: auto;
  opacity: 0.72;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.theme-sun {
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 15%, transparent);
}

.theme-sun::before,
.theme-sun::after {
  position: absolute;
  inset: -5px;
  border-top: 2px solid var(--brand-2);
  border-bottom: 2px solid var(--brand-2);
  content: "";
  opacity: 0.65;
}

.theme-sun::after {
  transform: rotate(90deg);
}

.theme-moon {
  border-radius: 50%;
  box-shadow: inset -6px 0 0 var(--muted);
}

body[data-theme="light"] .theme-sun,
body[data-theme="dark"] .theme-moon {
  opacity: 1;
  transform: scale(1.05);
}

body[data-theme="light"] .theme-moon,
body[data-theme="dark"] .theme-sun {
  opacity: 0.36;
  transform: scale(0.88);
}

.discord-login,
.primary-button {
  border: 1px solid color-mix(in srgb, var(--brand) 65%, #000 12%);
  background: var(--brand);
  color: #041109;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--brand) 24%, transparent);
}

body[data-theme="dark"] .discord-login,
body[data-theme="dark"] .primary-button {
  color: #070707;
}

.secondary-button {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--ink);
}

.discord-login {
  padding: 0 22px;
}

.primary-button,
.secondary-button {
  padding: 0 28px;
}

.compact {
  min-height: 42px;
  padding: 0 18px;
}

.sound-toggle:hover,
.theme-choice:hover,
.discord-login:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(64px, 9vw, 112px) clamp(18px, 6vw, 76px) 48px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 38%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, var(--bg) 100%);
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: auto;
  height: auto;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--brand) 8%, transparent) 1px, transparent 1px),
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 7%, transparent) 1px, transparent 1px);
  background-size: 78px 78px;
  opacity: 0.28;
  content: "";
}

.hero-art {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(640px, 68vw);
  aspect-ratio: 1;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--brand) 18%, transparent) 0 28%, transparent 66%),
    radial-gradient(circle, color-mix(in srgb, var(--gold) 16%, transparent) 0 18%, transparent 58%);
  box-shadow: none;
  opacity: 0.24;
  filter: saturate(1.35) contrast(1.08);
  transform: translate(-50%, -47%);
  animation: heroFloat 7s ease-in-out infinite;
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  inset: -18%;
  background:
    conic-gradient(
      from 90deg,
      transparent,
      color-mix(in srgb, var(--brand) 42%, transparent),
      transparent,
      color-mix(in srgb, var(--gold) 34%, transparent),
      transparent
    );
  border-radius: 50%;
  content: "";
  opacity: 0.28;
  animation: heroSpin 18s linear infinite;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  mask-image: radial-gradient(circle, #000 0 58%, transparent 76%);
  opacity: 0.92;
  transform: scale(1.12);
}

.hero-content {
  display: grid;
  justify-items: center;
  max-width: 1040px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  margin: 0 0 44px;
  padding: 0 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  box-shadow: 0 18px 70px color-mix(in srgb, var(--brand) 14%, transparent);
}

.live-pill span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 24px var(--brand-2);
}

.live-pill strong {
  color: var(--brand-2);
  font-weight: 950;
}

body[data-theme="dark"] .live-pill strong {
  color: var(--gold);
}

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

body[data-theme="dark"] .eyebrow {
  color: var(--gold);
}

.hero h1,
.section-heading h2,
.cta-section h2 {
  margin: 0;
  max-width: 780px;
  font-weight: 950;
  line-height: 0.98;
}

.hero h1 {
  max-width: 1160px;
  font-size: clamp(54px, 8vw, 118px);
  font-style: italic;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 0 26px color-mix(in srgb, var(--brand) 16%, transparent),
    0 18px 60px rgba(0, 0, 0, 0.26);
}

.hero h1 span {
  color: var(--brand-2);
}

body[data-theme="dark"] .hero h1 span {
  color: var(--gold);
  text-shadow: 0 0 36px rgba(244, 196, 78, 0.36);
}

.hero-copy {
  max-width: 840px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.45;
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(132px, 1fr));
  gap: 14px;
  width: min(900px, 100%);
  margin-top: 52px;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translate(-50%, -47%) scale(1) rotate(-2deg);
  }

  50% {
    transform: translate(-50%, -51%) scale(1.05) rotate(2deg);
  }
}

@keyframes heroSpin {
  to {
    transform: rotate(360deg);
  }
}

.hero-stats article,
.member-panel,
.side-ledger > div,
.timeline article,
.cta-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
}

.hero-stats article {
  min-height: 84px;
  padding: 16px 18px;
}

.hero-stats span,
.stat-strip span,
.meta-grid dt {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--brand-2);
  font-size: 24px;
}

body[data-theme="dark"] .hero-stats strong {
  color: var(--gold);
}

.section {
  padding: 72px clamp(18px, 6vw, 76px);
}

.section-heading {
  display: grid;
  justify-items: center;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.cta-section h2 {
  font-size: clamp(32px, 5vw, 54px);
}

.ledger-block h3,
.side-ledger h3,
.timeline h3 {
  margin: 0;
  font-size: 20px;
}

.timeline p,
.side-ledger p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.profile-section {
  display: block;
  padding-inline: clamp(18px, 4vw, 64px);
}

.profile-section .section-heading {
  justify-items: center;
  text-align: center;
}

.profile-section .section-heading h2 {
  max-width: 760px;
  text-align: center;
}

.profile-workspace {
  position: relative;
  isolation: isolate;
  width: min(1580px, 100%);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  box-shadow: var(--shadow);
  animation: panelIn 560ms ease both;
}

.profile-workspace::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 26%),
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 22%),
    linear-gradient(135deg, transparent 0 42%, color-mix(in srgb, var(--brand) 4%, transparent) 50%, transparent 62%);
  content: "";
  opacity: 0.86;
  pointer-events: none;
  animation: profileGlowDrift 7s ease-in-out infinite;
}

.profile-workspace > * {
  position: relative;
  z-index: 1;
}

.searchbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--surface) 84%, transparent), color-mix(in srgb, var(--surface-2) 72%, transparent)),
    transparent;
}

.searchbar input,
.searchbar button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.searchbar input {
  width: 100%;
  padding: 0 14px;
  outline: none;
}

.searchbar input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
}

.searchbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  background: var(--brand);
  color: #041109;
  font-weight: 950;
}

body[data-theme="dark"] .searchbar button {
  color: #160f02;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  padding: 22px;
  transition:
    filter 220ms ease,
    opacity 220ms ease;
}

.profile-layout.is-blurred {
  filter: blur(7px);
  opacity: 0.62;
  pointer-events: none;
  user-select: none;
}

.member-panel,
.side-ledger > div {
  padding: 22px;
  animation: panelIn 520ms ease both;
}

.side-ledger > div:nth-child(2) {
  animation-delay: 80ms;
}

.side-ledger > div:nth-child(3) {
  animation-delay: 160ms;
}

.member-topline {
  display: flex;
  align-items: center;
  gap: 18px;
}

.member-topline img {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  border: 3px solid color-mix(in srgb, var(--brand) 64%, transparent);
  border-radius: 50%;
  object-fit: cover;
}

.member-name {
  margin: 0;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.member-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.badge-row,
.badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.badge.gold {
  border-color: color-mix(in srgb, var(--gold) 38%, transparent);
  background: color-mix(in srgb, var(--gold) 20%, transparent);
}

.badge.discord {
  border-color: color-mix(in srgb, var(--discord) 35%, transparent);
  background: color-mix(in srgb, var(--discord) 16%, transparent);
}

.meta-grid,
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.stat-strip {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.meta-grid div,
.stat-strip div,
.payout-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.meta-grid div,
.stat-strip div {
  min-height: 72px;
  padding: 14px;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.meta-grid div:hover,
.stat-strip div:hover,
.side-ledger > div:hover {
  border-color: color-mix(in srgb, var(--brand) 34%, var(--border));
  background:
    radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 34%),
    color-mix(in srgb, var(--surface-2) 86%, transparent);
  box-shadow: 0 18px 52px color-mix(in srgb, var(--brand) 9%, transparent);
  transform: translateY(-2px);
}

.meta-grid dd {
  margin: 7px 0 0;
  font-weight: 950;
}

.stat-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--brand-2);
  font-size: 20px;
}

body[data-theme="dark"] .stat-strip strong {
  color: var(--gold);
}

.ledger-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.ledger-heading button {
  border: 0;
  background: transparent;
  color: var(--brand-2);
  font-weight: 950;
}

body[data-theme="dark"] .ledger-heading button {
  color: var(--gold);
}

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

.private-payout-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, var(--brand) 20%);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent 48%),
    color-mix(in srgb, var(--surface-2) 86%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 58%, transparent);
}

.private-payout-card strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.private-payout-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.private-lock {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.private-lock::before,
.private-lock::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
}

.private-lock::before {
  top: 10px;
  width: 16px;
  height: 13px;
  border: 3px solid var(--brand);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.private-lock::after {
  bottom: 10px;
  width: 22px;
  height: 16px;
  border-radius: 5px;
  background: var(--brand);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 20%, transparent);
}

body[data-theme="dark"] .private-payout-card {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, transparent), transparent 48%),
    color-mix(in srgb, var(--surface-2) 88%, transparent);
}

.public-payout-list {
  max-height: min(560px, calc(100vh - 220px));
  overflow: auto;
  padding-right: 6px;
}

.public-payout-dialog .dialog-panel {
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--brand) 11%, transparent), transparent 34%),
    color-mix(in srgb, var(--surface) 97%, transparent);
}

body[data-theme="dark"] .public-payout-dialog .dialog-panel {
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 34%),
    color-mix(in srgb, var(--surface) 97%, transparent);
}

.payout-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
}

.payout-item strong {
  color: var(--brand-2);
  font-size: 18px;
}

body[data-theme="dark"] .payout-item strong {
  color: var(--gold);
}

.payout-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.status {
  display: inline-flex;
  justify-content: center;
  min-width: 72px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.status.paid {
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand-2);
}

.status.pending {
  background: color-mix(in srgb, var(--gold) 25%, transparent);
  color: var(--gold);
}

.status.rejected,
.status.cancelled {
  background: color-mix(in srgb, var(--danger) 16%, transparent);
  color: var(--danger);
}

.status.claimed {
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand-2);
}

.status.expired {
  background: color-mix(in srgb, var(--danger) 16%, transparent);
  color: var(--danger);
}

.side-ledger {
  display: grid;
  align-content: start;
  gap: 14px;
}

.side-ledger strong {
  color: var(--brand-2);
  font-size: 22px;
}

body[data-theme="dark"] .side-ledger strong {
  color: var(--gold);
}

.workflow-section {
  padding-bottom: 40px;
}

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

.timeline article {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 28px;
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: #041109;
  font-size: 24px;
  font-weight: 950;
}

body[data-theme="dark"] .timeline span {
  color: #160f02;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 34px clamp(18px, 6vw, 76px) 40px;
  padding: 32px;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: clamp(36px, 8vw, 120px);
  padding: 78px clamp(18px, 8vw, 120px) 84px;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 90%, transparent), transparent 72%),
    color-mix(in srgb, var(--bg) 86%, var(--surface));
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 22px;
}

.footer-column p {
  margin: 0;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.footer-column a {
  width: max-content;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.footer-column a:hover {
  color: var(--ink);
  transform: translateX(4px);
}

.placeholder-page {
  min-height: 100vh;
}

.placeholder-shell {
  display: grid;
  place-items: start;
  align-content: center;
  gap: 22px;
  min-height: 100vh;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
}

.placeholder-shell h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.95;
}

.placeholder-shell p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
}

.giveaways-page {
  min-height: calc(100vh - 74px);
  padding: 76px clamp(18px, 5vw, 78px);
}

.giveaways-hero {
  width: min(980px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.giveaways-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.95;
  text-transform: uppercase;
}

.giveaways-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
}

.giveaway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 18px;
  width: min(1480px, 100%);
  margin: 0 auto;
}

.giveaway-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  min-height: 292px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
}

.giveaway-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.giveaway-card h2,
.giveaway-card h3 {
  margin: 0;
}

.giveaway-card h2 {
  font-size: 30px;
  min-height: 74px;
  overflow-wrap: anywhere;
}

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

.giveaway-meta div {
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.giveaway-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.giveaway-meta dd {
  margin: 7px 0 0;
  font-weight: 950;
}

.giveaway-actions-row {
  display: flex;
  align-self: end;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.giveaway-action-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  gap: 10px;
}

.giveaway-section {
  display: grid;
  gap: 10px;
}

.giveaway-section ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 800;
}

.giveaway-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.giveaway-role {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--role-color) 48%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--role-color) 16%, transparent);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.requirement-roles-row {
  display: grid;
  gap: 8px;
}

.requirement-label {
  color: var(--ink);
  font-weight: 950;
}

.muted-text {
  color: var(--muted);
  font-weight: 800;
}

.details-button,
.giveaway-view-button,
.claim-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 60%, #000 12%);
  border-radius: var(--radius);
  background: var(--brand);
  color: #041109;
  font-weight: 950;
}

.details-button {
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
  color: var(--ink);
}

.giveaway-view-button {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, transparent), transparent 72%),
    color-mix(in srgb, var(--surface-2) 88%, transparent);
  color: var(--brand);
  text-align: center;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.giveaway-view-button:hover {
  border-color: color-mix(in srgb, var(--brand) 72%, transparent);
  background: var(--brand);
  color: #041109;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--brand) 18%, transparent);
  transform: translateY(-1px);
}

body[data-theme="dark"] .giveaway-view-button:hover {
  color: #070707;
}

.giveaway-view-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

.claim-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.claim-button.expired {
  background: color-mix(in srgb, var(--danger) 22%, var(--surface));
  color: var(--danger);
}

.claim-mini {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 58%, transparent);
  border-radius: var(--radius);
  background: var(--brand);
  color: #041109;
  font-size: 12px;
  font-weight: 950;
}

.giveaway-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
}

.giveaway-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.dialog-panel {
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow);
}

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.dialog-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  overflow-wrap: anywhere;
}

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

.dialog-section {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.dialog-section h3 {
  margin: 0;
}

.dialog-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 850;
}

.dialog-close {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
  color: var(--ink);
  font-weight: 950;
}

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

  .nav-links {
    display: none;
  }

  .hero-art {
    opacity: 0.35;
    width: min(620px, 76vw);
  }

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

  .profile-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: auto;
    gap: 14px;
    padding: 12px 16px;
  }

  .brand {
    font-size: 20px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .discord-login {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 52px 18px 34px;
  }

  .hero-art {
    top: 46%;
    left: 50%;
    width: 420px;
    opacity: 0.2;
  }

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

  .hero-copy {
    font-size: 16px;
  }

  .section {
    padding: 56px 18px;
  }

  .profile-layout,
  .timeline,
  .meta-grid,
  .stat-strip,
  .dialog-grid {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    padding: 14px;
  }

  .dialog-head,
  .giveaway-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .giveaway-action-pair {
    grid-template-columns: 1fr;
  }

  .form-footer,
  .cta-section,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column {
    justify-items: center;
  }
}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .header-actions {
    width: 100%;
  }

  .control-cluster {
    width: max-content;
  }

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

  .hero-actions,
  .hero-actions > *,
  .searchbar,
  .searchbar button,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

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

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .member-topline {
    align-items: flex-start;
  }

  .member-topline img {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .member-name {
    font-size: 24px;
  }

  .payout-item {
    grid-template-columns: 1fr;
  }
}

/* Dashboard redesign */
.dashboard-body {
  --bg: #050608;
  --bg-2: #090a0d;
  --surface: #131417;
  --surface-2: #24252a;
  --ink: #f4f5f4;
  --muted: #777984;
  --faint: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --brand: #20cf5d;
  --brand-2: #12a845;
  --gold: #20cf5d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  min-height: 100vh;
  background:
    radial-gradient(circle at 38% 18%, rgba(32, 207, 93, 0.1), transparent 24%),
    radial-gradient(circle at 78% 76%, rgba(255, 255, 255, 0.04), transparent 20%),
    linear-gradient(115deg, transparent 0 44%, rgba(32, 207, 93, 0.035) 44% 48%, transparent 48% 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, auto, 48px 48px, 48px 48px, auto;
  color: var(--ink);
  font-family: Inter, "Arial Black", "Segoe UI", system-ui, sans-serif;
}

.dashboard-body[data-theme="light"] {
  --bg: #eef8f1;
  --bg-2: #e4f1e9;
  --surface: #ffffff;
  --surface-2: #edf5f0;
  --ink: #07100b;
  --muted: #607067;
  --faint: rgba(16, 113, 54, 0.08);
  --border: rgba(13, 113, 57, 0.14);
  --brand: #13b754;
  --brand-2: #087a38;
  --gold: #087a38;
  --shadow: 0 24px 70px rgba(13, 113, 57, 0.16);
  background:
    radial-gradient(circle at 42% 12%, rgba(34, 211, 95, 0.18), transparent 26%),
    radial-gradient(circle at 82% 70%, rgba(7, 16, 11, 0.06), transparent 20%),
    linear-gradient(90deg, rgba(13, 113, 57, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(13, 113, 57, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
}

.dashboard-body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 9% 12%, rgba(32, 207, 93, 0.12), transparent 16%),
    radial-gradient(circle at 92% 4%, rgba(32, 207, 93, 0.08), transparent 12%);
  content: "";
  pointer-events: none;
  animation: ambientPulse 8s ease-in-out infinite;
}

.dashboard-sidebar {
  position: fixed;
  top: 36px;
  left: 34px;
  bottom: 28px;
  z-index: 40;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 24px;
  width: 280px;
  padding: 0;
}

.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.sidebar-brand img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(32, 207, 93, 0.38);
}

.sidebar-user,
.sidebar-balance,
.sidebar-nav,
.summary-card,
.dashboard-welcome,
.goal-card,
.ops-panel,
.profile-workspace,
.member-panel,
.side-ledger > div,
.timeline article,
.cta-section,
.giveaway-card,
.dialog-panel,
.store-info-strip article,
.store-card,
.custom-deal,
.invoice-panel,
.leaderboard-board,
.leaderboard-row,
.leaderboard-empty {
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-2) 70%, transparent)),
    var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.sidebar-user::after,
.sidebar-balance::after,
.summary-card::after,
.dashboard-welcome::after,
.goal-card::after,
.ops-panel::after,
.member-panel::after,
.giveaway-card::after,
.store-info-strip article::after,
.store-card::after,
.custom-deal::after,
.leaderboard-board::after,
.leaderboard-row::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.08) 44%, transparent 52% 100%);
  content: "";
  opacity: 0;
  transform: translateX(-65%);
  transition:
    opacity 220ms ease,
    transform 700ms ease;
  pointer-events: none;
}

.sidebar-user:hover::after,
.sidebar-balance:hover::after,
.summary-card:hover::after,
.dashboard-welcome:hover::after,
.goal-card:hover::after,
.ops-panel:hover::after,
.member-panel:hover::after,
.giveaway-card:hover::after,
.store-info-strip article:hover::after,
.store-card:hover::after,
.custom-deal:hover::after,
.leaderboard-board:hover::after,
.leaderboard-row:hover::after {
  opacity: 1;
  transform: translateX(65%);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 138px;
  padding: 24px 22px;
}

.avatar-ring {
  position: relative;
  width: 72px;
  height: 72px;
}

.avatar-ring img {
  width: 72px;
  height: 72px;
  border: 3px solid rgba(32, 207, 93, 0.48);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 42px rgba(32, 207, 93, 0.24);
}

.avatar-ring span {
  position: absolute;
  right: -2px;
  bottom: 8px;
  width: 17px;
  height: 17px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--brand);
}

.sidebar-user h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sidebar-user p,
.sidebar-balance p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sidebar-user p::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.sidebar-balance {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.sidebar-balance div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-balance strong {
  color: var(--ink);
  font-size: 16px;
}

.sidebar-balance b {
  justify-self: end;
  color: var(--brand);
  font-size: 18px;
}

.side-icon,
.card-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  color: var(--brand);
  font-size: 15px;
  font-weight: 950;
  overflow: hidden;
}

.asset-icon {
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.side-icon .asset-icon,
.card-icon .asset-icon {
  width: 22px;
  height: 22px;
}

.panel-glyph .asset-icon {
  width: 24px;
  height: 24px;
}

.icon-activity {
  --icon: url("./assets/icons/activity.svg");
}

.icon-clipboard-list {
  --icon: url("./assets/icons/clipboard-list.svg");
}

.icon-coins {
  --icon: url("./assets/icons/coins.svg");
}

.icon-database {
  --icon: url("./assets/icons/database.svg");
}

.icon-gift {
  --icon: url("./assets/icons/gift.svg");
}

.icon-hand-coins {
  --icon: url("./assets/icons/hand-coins.svg");
}

.icon-layout-grid {
  --icon: url("./assets/icons/layout-grid.svg");
}

.icon-life-buoy {
  --icon: url("./assets/icons/life-buoy.svg");
}

.icon-search {
  --icon: url("./assets/icons/search.svg");
}

.icon-server {
  --icon: url("./assets/icons/server.svg");
}

.icon-trophy {
  --icon: url("./assets/icons/trophy.svg");
}

.icon-user-search {
  --icon: url("./assets/icons/user-search.svg");
}

.icon-users {
  --icon: url("./assets/icons/users.svg");
}

.icon-zap {
  --icon: url("./assets/icons/zap.svg");
}

.sidebar-nav {
  align-content: start;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding: 14px;
}

.sidebar-nav a {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  min-height: 62px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 950;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
  color: var(--ink);
  transform: translateX(3px);
}

.sidebar-nav a.is-active {
  box-shadow: inset 5px 0 0 var(--brand);
}

.sidebar-nav a > span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 76%, transparent);
  color: inherit;
  font-size: 16px;
  letter-spacing: 0;
}

.sidebar-nav a > span .asset-icon {
  width: 18px;
  height: 18px;
}

.dashboard-body .dashboard-topbar {
  position: fixed;
  top: 18px;
  right: 42px;
  left: 350px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 0 10px 0 14px;
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.dashboard-topbar .brand {
  display: inline-flex;
  flex: 1 1 0;
  width: auto;
  min-width: 170px;
  font-size: 20px;
}

.dashboard-topbar .brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.store-page-body .dashboard-topbar {
  min-height: 64px;
}

.store-page-body .dashboard-topbar .brand {
  flex: 1 1 0;
}

.dashboard-topbar .nav-links,
.store-page-body .dashboard-topbar .nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.dashboard-topbar .header-actions,
.store-page-body .dashboard-topbar .header-actions {
  flex: 1 1 0;
}

.dashboard-topbar .discord-login,
.store-page-body .dashboard-topbar .discord-login {
  min-height: 44px;
  min-width: 116px;
  border-radius: 8px;
  background: #07120d;
  color: #ffffff;
}

body[data-theme="dark"].dashboard-body .dashboard-topbar .discord-login,
body[data-theme="dark"].store-page-body .dashboard-topbar .discord-login {
  background: var(--brand);
  color: #070707;
}

.dashboard-topbar .nav-links {
  flex: 0 0 auto;
  gap: 4px;
  min-height: 40px;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.dashboard-topbar .nav-links a::after {
  display: none;
}

.dashboard-topbar .nav-links a {
  min-height: 32px;
  padding: 8px 18px;
  border-radius: 999px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.dashboard-topbar .nav-links a[aria-current="page"],
.dashboard-topbar .nav-links a:hover {
  background: #07120d;
  color: #ffffff;
}

.staff-panel-link[hidden] {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.panel-nav-button,
.dashboard-topbar .nav-links .panel-nav-button {
  border: 1px solid color-mix(in srgb, var(--gold) 44%, transparent);
  background:
    radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 44%),
    color-mix(in srgb, var(--surface-2) 80%, transparent);
  color: var(--ink);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--gold) 14%, transparent);
}

.dashboard-topbar .nav-links .panel-nav-button[aria-current="page"],
.dashboard-topbar .nav-links .panel-nav-button:hover {
  background: var(--gold);
  color: #070707;
}

.staff-panel-side-link {
  border-color: color-mix(in srgb, var(--gold) 32%, transparent);
  background: color-mix(in srgb, var(--gold) 9%, transparent);
}

body[data-theme="dark"] .dashboard-topbar .nav-links a[aria-current="page"],
body[data-theme="dark"] .dashboard-topbar .nav-links a:hover {
  background: var(--brand);
  color: #070707;
}

.dashboard-topbar .nav-links a:hover {
  transform: translateY(-1px);
}

.dashboard-topbar .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: max-content;
  margin-left: auto;
}

.top-balance {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 14px 0 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 50%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 42%),
    color-mix(in srgb, var(--surface-2) 66%, transparent);
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.22em;
  box-shadow:
    0 10px 26px color-mix(in srgb, var(--brand) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-transform: uppercase;
}

.top-balance::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 14px color-mix(in srgb, var(--brand) 75%, transparent);
  content: "";
}

.top-balance strong {
  color: var(--brand);
  letter-spacing: 0.06em;
  text-shadow: 0 0 18px color-mix(in srgb, var(--brand) 32%, transparent);
}

.dashboard-body .control-cluster {
  min-height: 34px;
  padding: 2px;
  gap: 0;
  border-color: color-mix(in srgb, var(--border) 86%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 color-mix(in srgb, var(--ink) 5%, transparent);
  backdrop-filter: blur(14px);
  transition:
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.dashboard-body .control-cluster:hover {
  border-color: color-mix(in srgb, var(--brand) 28%, transparent);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 color-mix(in srgb, var(--ink) 6%, transparent);
}

.dashboard-body .sound-toggle,
.dashboard-body .theme-choice {
  width: 30px;
  min-width: 30px;
  height: 28px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.theme-toggle-root {
  position: relative;
  display: inline-flex;
  width: 64px;
  height: 32px;
  min-height: 32px;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--muted);
  outline: none;
  overflow: hidden;
  box-shadow: inset 0 1px 12px rgba(0, 0, 0, 0.16);
  transition:
    background 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    transform 180ms ease;
}

.dashboard-body .control-cluster .theme-toggle-root {
  position: relative;
  width: 58px;
  height: 28px;
  min-height: 28px;
  padding: 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.dashboard-body .control-cluster .theme-toggle-thumb {
  display: none;
}

.dashboard-body .control-cluster .theme-toggle-root::before {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 0;
  width: 24px;
  height: 24px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.2), transparent 36%),
    color-mix(in srgb, var(--ink) 8%, transparent);
  box-shadow:
    0 8px 22px color-mix(in srgb, var(--brand) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  content: "";
  transform: translateX(0);
  transition:
    transform 300ms ease,
    background 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

body[data-theme="light"] .dashboard-body .control-cluster .theme-toggle-root::before,
body[data-theme="light"].dashboard-body .control-cluster .theme-toggle-root::before {
  border-color: color-mix(in srgb, var(--brand) 28%, transparent);
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.5), transparent 34%),
    color-mix(in srgb, var(--brand) 15%, #ffffff);
  transform: translateX(30px);
}

.dashboard-body .control-cluster .theme-toggle-track {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
}

.dashboard-body .control-cluster .theme-toggle-root .theme-moon,
.dashboard-body .control-cluster .theme-toggle-root .theme-sun {
  position: relative;
  display: block;
  width: 15px;
  height: 15px;
  margin: 0;
  background: transparent;
  color: var(--muted);
  opacity: 0.72;
  transform: none;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.dashboard-body .control-cluster .theme-toggle-root .theme-moon {
  border-radius: 50%;
  box-shadow: inset -5px 0 0 currentColor;
}

.dashboard-body .control-cluster .theme-toggle-root .theme-sun {
  border: 1.6px solid currentColor;
  border-radius: 50%;
  box-shadow: none;
}

.dashboard-body .control-cluster .theme-toggle-root .theme-sun::before,
.dashboard-body .control-cluster .theme-toggle-root .theme-sun::after {
  position: absolute;
  inset: -5px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  content: "";
}

.dashboard-body .control-cluster .theme-toggle-root .theme-sun::after {
  transform: rotate(90deg) scale(0.76);
}

.dashboard-body .control-cluster .theme-toggle-root .theme-sun::before {
  transform: scale(0.76);
}

body[data-theme="dark"] .dashboard-body .control-cluster .theme-toggle-root .theme-moon,
body[data-theme="dark"].dashboard-body .control-cluster .theme-toggle-root .theme-moon,
body[data-theme="light"] .dashboard-body .control-cluster .theme-toggle-root .theme-sun,
body[data-theme="light"].dashboard-body .control-cluster .theme-toggle-root .theme-sun {
  color: var(--ink);
  opacity: 0.95;
}

.theme-toggle-root:hover,
.sound-toggle:hover {
  border-color: color-mix(in srgb, var(--brand) 42%, transparent);
  background: color-mix(in srgb, var(--brand) 7%, var(--bg));
}

.dashboard-body .control-cluster .theme-toggle-root:hover,
.dashboard-body .control-cluster .sound-toggle:hover {
  border-color: transparent;
  background: color-mix(in srgb, var(--ink) 5.5%, transparent);
}

.theme-toggle-root:active,
.sound-toggle:active {
  transform: scale(0.95);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 2;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #27272a;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition:
    transform 300ms ease,
    background 300ms ease,
    color 300ms ease;
}

body[data-theme="light"] .theme-toggle-thumb {
  background: #e4e4e7;
  color: #18181b;
  transform: translateX(32px);
}

body[data-theme="light"] .dashboard-body .control-cluster .theme-toggle-thumb,
body[data-theme="light"].dashboard-body .control-cluster .theme-toggle-thumb {
  transform: translateX(30px);
}

.theme-toggle-track {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
}

.theme-toggle-root .theme-moon,
.theme-toggle-root .theme-sun {
  width: 15px;
  height: 15px;
  margin: 0;
}

.theme-toggle-thumb .theme-sun,
body[data-theme="light"] .theme-toggle-thumb .theme-moon {
  display: none;
}

body[data-theme="light"] .theme-toggle-thumb .theme-sun {
  display: block;
}

.dashboard-body .sound-toggle::before,
.dashboard-body .theme-choice::before {
  inset: 0;
  border: 0;
  border-radius: 999px;
}

.dashboard-body .control-cluster .sound-toggle::before,
.dashboard-body .control-cluster .theme-choice::before {
  background: transparent;
  box-shadow: none;
}

.dashboard-body .sound-toggle:hover::before,
.dashboard-body .theme-choice:hover::before {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.dashboard-body .sound-toggle.is-active::before,
.dashboard-body .theme-choice.is-active::before {
  background: color-mix(in srgb, var(--ink) 5.5%, transparent);
  box-shadow: none;
}

.dashboard-body .control-cluster .sound-toggle.is-active::before,
.dashboard-body .control-cluster .theme-choice.is-active::before {
  background: transparent;
}

.dashboard-body .control-cluster .sound-toggle .sound-icon {
  width: 16px;
  height: 14px;
  border-left-width: 4px;
  border-top-width: 4px;
  border-bottom-width: 4px;
  color: var(--muted);
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.dashboard-body .control-cluster .sound-toggle .sound-icon::before {
  top: 1px;
  left: 5px;
  width: 7px;
  height: 7px;
  border-width: 1.6px;
  border-left: 0;
  border-bottom: 0;
}

.dashboard-body .control-cluster .sound-toggle .sound-icon::after {
  display: none;
}

.dashboard-body .control-cluster .sound-toggle.is-active .sound-icon {
  color: var(--ink);
  opacity: 0.92;
}

.dashboard-body .control-cluster .sound-toggle:hover .sound-icon,
.dashboard-body .control-cluster .theme-toggle-root:hover .theme-moon,
.dashboard-body .control-cluster .theme-toggle-root:hover .theme-sun {
  opacity: 1;
  transform: scale(1.05);
}

.dashboard-body .theme-choice.is-active::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 70%, transparent);
  content: "";
}

.nav-control-divider {
  width: 1px;
  height: 20px;
  margin: 0 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 82%, transparent);
}

.dashboard-body .sound-toggle.is-muted::after {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 6px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  opacity: 1;
  transform: rotate(-38deg);
}

.control-cluster,
.dashboard-body .control-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 34px;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.36)),
    color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow:
    0 14px 32px rgba(8, 104, 51, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
}

body[data-theme="dark"] .control-cluster,
body[data-theme="dark"].dashboard-body .control-cluster {
  border-color: rgba(244, 196, 78, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 238, 170, 0.055), rgba(255, 238, 170, 0.015)),
    color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 238, 170, 0.08);
}

.control-cluster .sound-toggle,
.dashboard-body .control-cluster .sound-toggle,
.control-cluster .theme-toggle-root,
.dashboard-body .control-cluster .theme-toggle-root {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in srgb, var(--ink) 72%, var(--muted));
  box-shadow: none;
}

.control-cluster .sound-toggle,
.dashboard-body .control-cluster .sound-toggle {
  width: 30px;
  min-width: 30px;
}

.control-cluster .theme-toggle-root,
.dashboard-body .control-cluster .theme-toggle-root {
  width: 58px;
  min-width: 58px;
  padding: 0 5px;
  overflow: visible;
}

.control-cluster .sound-toggle:hover,
.dashboard-body .control-cluster .sound-toggle:hover,
.control-cluster .theme-toggle-root:hover,
.dashboard-body .control-cluster .theme-toggle-root:hover {
  border-color: transparent;
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  color: var(--ink);
  transform: translateY(-1px);
}

body[data-theme="dark"] .control-cluster .sound-toggle:hover,
body[data-theme="dark"].dashboard-body .control-cluster .sound-toggle:hover,
body[data-theme="dark"] .control-cluster .theme-toggle-root:hover,
body[data-theme="dark"].dashboard-body .control-cluster .theme-toggle-root:hover {
  background: color-mix(in srgb, var(--brand) 13%, transparent);
}

.control-cluster .sound-toggle::before,
.dashboard-body .control-cluster .sound-toggle::before,
.control-cluster .theme-toggle-root::before,
.dashboard-body .control-cluster .theme-toggle-root::before,
.control-cluster .theme-toggle-thumb,
.dashboard-body .control-cluster .theme-toggle-thumb {
  display: none;
}

.control-cluster .theme-toggle-track,
.dashboard-body .control-cluster .theme-toggle-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  gap: 7px;
}

.control-cluster .theme-toggle-root .theme-moon,
.control-cluster .theme-toggle-root .theme-sun,
.dashboard-body .control-cluster .theme-toggle-root .theme-moon,
.dashboard-body .control-cluster .theme-toggle-root .theme-sun {
  width: 15px;
  height: 15px;
  margin: 0;
  color: currentColor;
  opacity: 0.46;
  transform: none;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

body[data-theme="dark"] .control-cluster .theme-toggle-root .theme-moon,
body[data-theme="dark"].dashboard-body .control-cluster .theme-toggle-root .theme-moon,
body[data-theme="light"] .control-cluster .theme-toggle-root .theme-sun,
body[data-theme="light"].dashboard-body .control-cluster .theme-toggle-root .theme-sun {
  color: var(--brand);
  opacity: 1;
  transform: scale(1.04);
}

.control-cluster .sound-toggle .sound-icon,
.dashboard-body .control-cluster .sound-toggle .sound-icon {
  width: 15px;
  height: 14px;
  color: currentColor;
  transform: none;
}

.control-cluster .sound-toggle.is-active .sound-icon,
.dashboard-body .control-cluster .sound-toggle.is-active .sound-icon {
  color: var(--brand);
  opacity: 1;
}

.control-cluster .sound-toggle.is-muted .sound-icon,
.dashboard-body .control-cluster .sound-toggle.is-muted .sound-icon {
  color: color-mix(in srgb, var(--ink) 38%, var(--muted));
  opacity: 0.72;
}

.control-cluster .sound-toggle.is-muted::after,
.dashboard-body .control-cluster .sound-toggle.is-muted::after {
  top: 13px;
  left: 8px;
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
}

.nav-control-divider,
.dashboard-body .nav-control-divider {
  width: 1px;
  height: 18px;
  margin: 0 2px;
  background: color-mix(in srgb, var(--border) 92%, transparent);
}

body[data-theme="dark"] .nav-control-divider,
body[data-theme="dark"].dashboard-body .nav-control-divider {
  background: rgba(244, 196, 78, 0.16);
}

.control-cluster,
.dashboard-body .control-cluster {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 34px;
  padding: 3px;
  border-radius: 999px;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 180ms ease;
}

.control-cluster::after,
.dashboard-body .control-cluster::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0 32%, color-mix(in srgb, var(--brand) 20%, transparent) 46%, transparent 62% 100%);
  content: "";
  opacity: 0;
  transform: translateX(-65%);
  pointer-events: none;
}

body.theme-swapping .control-cluster::after,
body.theme-swapping.dashboard-body .control-cluster::after {
  animation: controlSweep 560ms ease both;
}

.control-cluster .theme-toggle-root,
.dashboard-body .control-cluster .theme-toggle-root {
  width: 62px;
  min-width: 62px;
  height: 28px;
  min-height: 28px;
  padding: 0 6px;
  overflow: hidden;
}

.control-cluster .theme-toggle-root::before,
.dashboard-body .control-cluster .theme-toggle-root::before {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 2;
  display: block;
  width: 26px;
  height: 22px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.62), transparent 28%),
    color-mix(in srgb, var(--brand) 20%, var(--surface));
  box-shadow:
    0 10px 24px color-mix(in srgb, var(--brand) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  content: "";
  opacity: 0.96;
  transform: translateX(30px);
  transition:
    transform 360ms cubic-bezier(.2, .9, .18, 1.18),
    background 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

body[data-theme="dark"] .control-cluster .theme-toggle-root::before,
body[data-theme="dark"].dashboard-body .control-cluster .theme-toggle-root::before {
  border-color: color-mix(in srgb, var(--brand) 36%, transparent);
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 246, 190, 0.44), transparent 30%),
    linear-gradient(180deg, #2a2c2f, #151719);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.34),
    0 0 22px color-mix(in srgb, var(--brand) 20%, transparent),
    inset 0 1px 0 rgba(255, 238, 170, 0.14);
  transform: translateX(0);
}

body.theme-swapping .control-cluster .theme-toggle-root::before,
body.theme-swapping.dashboard-body .control-cluster .theme-toggle-root::before {
  animation: togglePop 460ms cubic-bezier(.2, .9, .18, 1.18) both;
}

.control-cluster .theme-toggle-track,
.dashboard-body .control-cluster .theme-toggle-track {
  z-index: 3;
  gap: 10px;
}

.control-cluster .theme-toggle-root .theme-moon,
.control-cluster .theme-toggle-root .theme-sun,
.dashboard-body .control-cluster .theme-toggle-root .theme-moon,
.dashboard-body .control-cluster .theme-toggle-root .theme-sun {
  width: 14px;
  height: 14px;
  opacity: 0.42;
  filter: drop-shadow(0 0 0 transparent);
  transition:
    color 220ms ease,
    opacity 220ms ease,
    transform 260ms cubic-bezier(.2, .9, .18, 1.18),
    filter 220ms ease;
}

body[data-theme="dark"] .control-cluster .theme-toggle-root .theme-moon,
body[data-theme="dark"].dashboard-body .control-cluster .theme-toggle-root .theme-moon,
body[data-theme="light"] .control-cluster .theme-toggle-root .theme-sun,
body[data-theme="light"].dashboard-body .control-cluster .theme-toggle-root .theme-sun {
  color: var(--brand);
  opacity: 1;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--brand) 34%, transparent));
  transform: scale(1.08) rotate(0.001deg);
}

.control-cluster .theme-toggle-root:hover .theme-moon,
.control-cluster .theme-toggle-root:hover .theme-sun,
.dashboard-body .control-cluster .theme-toggle-root:hover .theme-moon,
.dashboard-body .control-cluster .theme-toggle-root:hover .theme-sun {
  transform: scale(1.12) rotate(0.001deg);
}

.control-cluster .sound-toggle,
.dashboard-body .control-cluster .sound-toggle {
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.control-cluster .sound-toggle.is-active .sound-icon,
.dashboard-body .control-cluster .sound-toggle.is-active .sound-icon {
  animation: soundPulse 1.5s ease-in-out infinite;
}

.dashboard-body .discord-login,
.dashboard-body .primary-button,
.dashboard-body .claim-button,
.dashboard-body .claim-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-color: rgba(32, 207, 93, 0.35);
  background: var(--brand);
  color: #031108;
  box-shadow: 0 20px 48px rgba(32, 207, 93, 0.18);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-body .discord-login {
  min-width: 118px;
  min-height: 40px;
  padding: 0 22px;
  border-color: transparent;
  background: #07120d;
  color: #ffffff;
  box-shadow: none;
}

body[data-theme="dark"].dashboard-body .discord-login {
  background: var(--brand);
  color: #070707;
}

.dashboard-body .secondary-button,
.dashboard-body .details-button,
.dashboard-body .giveaway-view-button,
.dashboard-body .dialog-close,
.dashboard-body .ledger-heading button {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-main {
  display: grid;
  gap: 32px;
  min-height: 100vh;
  margin-left: 350px;
  padding: 122px 42px 42px 0;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 22px;
}

.summary-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  min-height: 196px;
  padding: 26px;
  animation: panelIn 520ms ease both;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.summary-card:nth-child(2) {
  animation-delay: 70ms;
}

.summary-card:nth-child(3) {
  animation-delay: 140ms;
}

.summary-card:nth-child(4) {
  animation-delay: 210ms;
}

.summary-card:hover,
.ops-panel:hover,
.goal-card:hover,
.member-panel:hover,
.giveaway-card:hover,
.store-info-strip article:hover,
.store-card:hover,
.custom-deal:hover,
.leaderboard-board:hover,
.leaderboard-row:hover {
  border-color: rgba(32, 207, 93, 0.25);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(32, 207, 93, 0.08);
  transform: translateY(-4px);
}

.summary-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.summary-card small {
  display: block;
  margin-top: 8px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary-card strong {
  grid-column: 1 / -1;
  align-self: end;
  color: var(--ink);
  font-size: 58px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.95;
  text-shadow: 0 0 36px rgba(32, 207, 93, 0.14);
}

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

.dashboard-welcome {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  padding: 72px;
  border-color: rgba(32, 207, 93, 0.22);
  animation: panelIn 620ms ease 120ms both;
}

.dashboard-welcome > img:not(.v2-orbit-logo) {
  position: absolute;
  right: 72px;
  bottom: -70px;
  z-index: 0;
  width: 460px;
  height: 460px;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.15;
  filter: saturate(1.2);
  animation: dashboardFloat 7s ease-in-out infinite;
}

.v2-orbit-logo {
  position: absolute;
  right: 46px;
  top: 50%;
  z-index: 0;
  width: min(56%, 520px);
  height: auto;
  opacity: 0.1;
  filter: saturate(1.25);
  pointer-events: none;
  transform: translateY(-50%) rotate(-4deg);
  animation: v2LogoDrift 9s ease-in-out infinite;
}

.signal-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.signal-orbit span {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(32, 207, 93, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 207, 93, 0.24), transparent),
    rgba(255, 255, 255, 0.035);
  opacity: 0.72;
  animation: stickerFloat 5.8s ease-in-out infinite;
}

.signal-orbit span::before,
.signal-orbit span::after {
  position: absolute;
  background: var(--brand);
  content: "";
}

.signal-orbit span::before {
  top: 12px;
  left: 12px;
  width: 18px;
  height: 4px;
  border-radius: 999px;
}

.signal-orbit span::after {
  top: 12px;
  left: 19px;
  width: 4px;
  height: 18px;
  border-radius: 999px;
}

.signal-orbit span:nth-child(1) {
  top: 38px;
  right: 170px;
}

.signal-orbit span:nth-child(2) {
  right: 68px;
  bottom: 112px;
  animation-delay: 800ms;
}

.signal-orbit span:nth-child(3) {
  top: 126px;
  right: 270px;
  animation-delay: 1400ms;
}

.dashboard-welcome h1 {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0;
  color: #ffffff;
  font-size: 88px;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 0.96;
  text-transform: uppercase;
}

.dashboard-body[data-theme="light"] .dashboard-welcome h1 {
  color: var(--ink);
}

.dashboard-welcome h1 span {
  color: var(--brand);
}

.dashboard-welcome .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 32px 0 0;
  color: color-mix(in srgb, var(--ink) 64%, var(--muted));
  font-size: 24px;
  font-weight: 850;
  line-height: 1.55;
}

.dashboard-welcome .hero-actions {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  margin-top: 44px;
}

.dashboard-body .live-pill {
  position: relative;
  z-index: 1;
  min-height: 32px;
  margin: 0 0 28px;
  padding: 0 20px;
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface-2) 66%, transparent);
  box-shadow: none;
}

.goal-card {
  display: grid;
  align-content: space-between;
  min-height: 420px;
  padding: 40px 34px;
}

.goal-card h2 {
  margin: 24px 0 0;
  color: color-mix(in srgb, var(--ink) 76%, var(--muted));
  font-size: 20px;
  line-height: 1.4;
}

.goal-progress {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.goal-progress strong {
  color: var(--brand);
}

.progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 86%, transparent);
}

.progress-bar span {
  display: block;
  width: 4%;
  height: 100%;
  background: var(--brand);
  animation: progressGlow 2.4s ease-in-out infinite;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.85fr;
  gap: 22px;
}

.ops-panel {
  display: grid;
  gap: 22px;
  min-height: 210px;
  padding: 26px;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.panel-glyph {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(32, 207, 93, 0.2);
  border-radius: 8px;
  background: rgba(32, 207, 93, 0.08);
  color: var(--brand);
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 0 34px rgba(32, 207, 93, 0.16);
}

.panel-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
}

.pulse-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: color-mix(in srgb, var(--ink) 72%, var(--muted));
  font-weight: 850;
}

.pulse-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-list span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 20px var(--brand);
  animation: livePulse 1.6s ease-in-out infinite;
}

.mission-grid {
  display: grid;
  gap: 10px;
}

.mission-grid span {
  min-height: 42px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 10px;
  min-height: 94px;
}

.mini-bars span {
  display: block;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--brand), rgba(32, 207, 93, 0.14));
  animation: barDance 1.8s ease-in-out infinite;
}

.mini-bars span:nth-child(1) {
  height: 44%;
}

.mini-bars span:nth-child(2) {
  height: 78%;
  animation-delay: 160ms;
}

.mini-bars span:nth-child(3) {
  height: 58%;
  animation-delay: 320ms;
}

.mini-bars span:nth-child(4) {
  height: 88%;
  animation-delay: 480ms;
}

.dashboard-body .section {
  padding: 0;
}

.dashboard-body .section-heading {
  justify-items: start;
  margin: 0 0 20px;
}

.dashboard-body .section-heading h2,
.giveaways-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 44px;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-body .profile-section .section-heading {
  margin-bottom: 22px;
}

.dashboard-body .profile-section .section-heading h2 {
  font-size: clamp(46px, 4.3vw, 62px);
}

.dashboard-body .eyebrow {
  color: var(--brand);
  letter-spacing: 0.28em;
}

.dashboard-body .profile-workspace {
  width: 100%;
  max-width: none;
  padding: clamp(18px, 1.7vw, 30px);
}

.dashboard-body .searchbar {
  padding: clamp(14px, 1.15vw, 20px);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 64%, transparent);
}

.dashboard-body .searchbar input,
.dashboard-body .searchbar button {
  min-height: 48px;
}

.dashboard-body .searchbar input {
  color: var(--ink);
  font-weight: 800;
}

.dashboard-body .searchbar button {
  background: var(--brand);
  color: #031108;
}

.dashboard-body .profile-layout {
  grid-template-columns: minmax(0, 1fr) minmax(292px, 340px);
  gap: clamp(16px, 1.45vw, 24px);
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-body .profile-layout.is-blurred {
  filter: blur(7px);
  opacity: 0.55;
}

.dashboard-body .profile-layout.is-empty {
  filter: none;
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
}

.dashboard-body .profile-layout.is-empty .member-panel {
  border-style: dashed;
  border-color: rgba(32, 207, 93, 0.2);
}

.dashboard-body .member-panel,
.dashboard-body .side-ledger > div {
  padding: clamp(22px, 1.65vw, 30px);
  box-shadow: none;
}

.dashboard-body .member-panel {
  min-height: clamp(520px, 38vw, 620px);
}

.dashboard-body .side-ledger > div {
  min-height: 126px;
}

.dashboard-body .member-topline img,
.dashboard-body #profileAvatar {
  border-color: rgba(32, 207, 93, 0.42);
  box-shadow: 0 0 34px rgba(32, 207, 93, 0.18);
}

.dashboard-body .member-name {
  color: var(--ink);
  font-size: 30px;
  font-weight: 950;
}

.dashboard-body .badge,
.dashboard-body .giveaway-role {
  border-color: rgba(32, 207, 93, 0.28);
  background: rgba(32, 207, 93, 0.12);
  color: var(--ink);
}

.dashboard-body .meta-grid div,
.dashboard-body .stat-strip div,
.dashboard-body .payout-item,
.dashboard-body .giveaway-meta div,
.dashboard-body .dialog-section {
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface-2) 74%, transparent);
}

.dashboard-body .stat-strip strong,
.dashboard-body .side-ledger strong,
.dashboard-body .payout-item strong,
.dashboard-body .giveaway-card h2 {
  color: var(--brand);
}

.dashboard-body .timeline {
  gap: 22px;
}

.dashboard-body .timeline article {
  min-height: 190px;
  padding: 28px;
  box-shadow: none;
}

.dashboard-body .timeline span {
  background: var(--brand);
  color: #031108;
}

.dashboard-body .cta-section {
  margin: 0;
  box-shadow: none;
}

.dashboard-body .site-footer {
  margin: 0;
  padding: 36px 0 0;
  border: 0;
  background: transparent;
}

.dashboard-body .footer-column p {
  color: var(--brand);
}

.giveaways-dashboard {
  padding-top: 122px;
}

.giveaways-dashboard .dashboard-welcome {
  min-height: 300px;
}

.giveaways-dashboard .dashboard-welcome h1 {
  max-width: 860px;
  font-size: 58px;
}

.giveaways-dashboard .dashboard-welcome p:not(.live-pill) {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: color-mix(in srgb, var(--ink) 64%, var(--muted));
  font-size: 20px;
  font-weight: 850;
}

.leaderboard-dashboard {
  gap: 26px;
}

.leaderboard-hero {
  min-height: 320px;
}

.leaderboard-hero h1 {
  max-width: 900px;
  font-size: 62px;
}

.leaderboard-hero h1 span {
  color: var(--brand);
}

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

.leaderboard-board {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 18px;
  min-height: 680px;
  padding: 24px;
  overflow: hidden;
  animation: panelIn 520ms ease both;
}

.leaderboard-board[data-board="invites"] {
  animation-delay: 110ms;
}

.leaderboard-board[data-board="diamonds"] {
  animation-delay: 220ms;
}

.leaderboard-board[data-board="diamonds"]::before {
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 32%),
    linear-gradient(135deg, transparent 0 42%, color-mix(in srgb, var(--brand) 5%, transparent) 58%, transparent 74%);
}

.leaderboard-board::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 80% 12%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 32%),
    linear-gradient(135deg, transparent 0 42%, color-mix(in srgb, var(--brand) 5%, transparent) 58%, transparent 74%);
  content: "";
  pointer-events: none;
}

.leaderboard-board > * {
  position: relative;
  z-index: 1;
}

.leaderboard-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.leaderboard-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.leaderboard-list {
  display: grid;
  align-content: start;
  grid-auto-rows: 76px;
  gap: 10px;
}

.leaderboard-row {
  position: relative;
  display: grid;
  grid-template-columns: 54px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  height: 76px;
  min-height: 76px;
  padding: 12px;
  overflow: hidden;
  animation: leaderboardRowIn 520ms ease both;
  animation-delay: var(--row-delay, 0ms);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.leaderboard-row:hover {
  transform: translateY(-2px) scale(1.005);
}

.leaderboard-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.leaderboard-row img {
  width: 48px;
  height: 48px;
  border: 2px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 7%, transparent);
}

.leaderboard-member {
  min-width: 0;
}

.leaderboard-member strong,
.leaderboard-score strong {
  display: block;
  color: var(--ink);
  font-weight: 950;
  line-height: 1;
}

.leaderboard-member strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-member small,
.leaderboard-score small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaderboard-score {
  min-width: 98px;
  text-align: right;
}

.leaderboard-score strong {
  color: var(--brand);
  font-size: 22px;
  text-shadow: 0 0 24px color-mix(in srgb, var(--brand) 18%, transparent);
}

.leaderboard-row.rank-1 {
  border-color: color-mix(in srgb, var(--brand) 46%, var(--border));
  background:
    radial-gradient(circle at 16% 20%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 28%),
    color-mix(in srgb, var(--surface) 84%, transparent);
}

.leaderboard-row.rank-1 .leaderboard-rank {
  background: var(--brand);
  color: #041108;
  box-shadow: 0 16px 36px color-mix(in srgb, var(--brand) 24%, transparent);
}

body[data-theme="dark"] .leaderboard-row.rank-1 .leaderboard-rank {
  color: #070707;
}

.leaderboard-loading,
.leaderboard-empty {
  min-height: 76px;
  margin: 0;
  padding: 18px;
  color: var(--muted);
  font-weight: 900;
}

.leaderboard-empty strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.leaderboard-empty p {
  margin: 8px 0 0;
  color: var(--muted);
}

.panel-page-body {
  --panel-cyan: #74f3ff;
}

.panel-intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(244, 196, 78, 0.16), transparent 28%),
    radial-gradient(circle at 18% 80%, rgba(116, 243, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(3, 4, 5, 0.98));
  color: #fff9df;
  transition:
    opacity 520ms ease,
    visibility 520ms ease;
}

.panel-intro.is-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.panel-intro-card {
  position: relative;
  width: min(620px, 100%);
  padding: 34px;
  border: 1px solid rgba(244, 196, 78, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(18, 19, 22, 0.94), rgba(7, 8, 10, 0.92)),
    #101113;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.64),
    0 0 0 1px rgba(116, 243, 255, 0.08);
  overflow: hidden;
}

.panel-intro-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(116, 243, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(116, 243, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  opacity: 0.6;
  pointer-events: none;
}

.panel-intro-card > * {
  position: relative;
  z-index: 1;
}

.panel-intro-orbit {
  position: absolute;
  right: -110px;
  top: -110px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(244, 196, 78, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 42px rgba(244, 196, 78, 0.08);
  animation: storeHaloSpin 5s linear infinite;
}

.panel-intro-card h1 {
  margin: 8px 0 22px;
  font-size: clamp(38px, 6vw, 72px);
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 0.92;
  text-transform: uppercase;
}

.panel-intro-lines {
  display: grid;
  gap: 9px;
  min-height: 126px;
}

.panel-intro-lines p {
  margin: 0;
  color: rgba(255, 249, 223, 0.78);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  animation: panelLineIn 300ms ease both;
}

.panel-intro-lines p::before {
  margin-right: 10px;
  color: var(--panel-cyan);
  content: ">";
}

.panel-intro-progress {
  height: 6px;
  margin: 18px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.panel-intro-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--panel-cyan), var(--gold));
  transform-origin: left;
  animation: panelBootProgress 2.2s ease both;
}

.panel-intro-welcome {
  min-height: 22px;
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-page-body[data-theme="light"] .panel-intro {
  background:
    radial-gradient(circle at 52% 40%, rgba(32, 207, 93, 0.2), transparent 28%),
    radial-gradient(circle at 16% 78%, rgba(0, 132, 83, 0.12), transparent 25%),
    linear-gradient(180deg, rgba(239, 252, 245, 0.98), rgba(218, 245, 230, 0.98));
  color: #07140c;
}

.panel-page-body[data-theme="light"] .panel-intro-card {
  border-color: rgba(32, 207, 93, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(229, 249, 237, 0.9)),
    #f8fffb;
  box-shadow:
    0 36px 110px rgba(0, 80, 42, 0.16),
    0 0 0 1px rgba(32, 207, 93, 0.1);
}

.panel-page-body[data-theme="light"] .panel-intro-card::before {
  background:
    linear-gradient(90deg, rgba(0, 132, 83, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 132, 83, 0.06) 1px, transparent 1px);
  opacity: 0.72;
}

.panel-page-body[data-theme="light"] .panel-intro-orbit {
  border-color: rgba(32, 207, 93, 0.28);
  box-shadow:
    inset 0 0 42px rgba(32, 207, 93, 0.12),
    0 0 70px rgba(32, 207, 93, 0.08);
}

.panel-page-body[data-theme="light"] .panel-intro-card h1 {
  color: #06130b;
  text-shadow: 0 14px 42px rgba(32, 207, 93, 0.12);
}

.panel-page-body[data-theme="light"] .panel-intro-lines p {
  color: rgba(7, 20, 12, 0.76);
}

.panel-page-body[data-theme="light"] .panel-intro-lines p::before {
  color: var(--brand);
}

.panel-page-body[data-theme="light"] .panel-intro-progress {
  background: rgba(0, 80, 42, 0.1);
}

.panel-page-body[data-theme="light"] .panel-intro-progress span {
  background: linear-gradient(90deg, #00a957, #20cf5d);
}

.panel-page-body[data-theme="light"] .panel-intro-welcome {
  color: #00843f;
}

.panel-dashboard.is-hidden {
  opacity: 0;
  transform: translateY(16px);
}

.panel-dashboard {
  gap: 26px;
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.panel-hero {
  min-height: 320px;
}

.panel-hero h1 {
  max-width: 900px;
  font-size: 62px;
}

.panel-hero h1 span {
  color: var(--brand);
}

.panel-workspace,
.panel-stat-editor,
.panel-stat-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-2) 70%, transparent)),
    var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.panel-workspace {
  display: grid;
  gap: 0;
  background:
    radial-gradient(circle at 82% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-2) 82%, transparent));
  animation: panelIn 560ms ease both;
}

.panel-access-ribbon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-bottom: 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--brand) 12%, transparent);
  padding: 9px 12px;
  text-transform: uppercase;
}

.panel-access-ribbon span,
.panel-access-ribbon strong {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.panel-access-ribbon span {
  color: var(--muted);
}

.panel-access-ribbon strong {
  color: var(--brand);
}

.panel-searchbar {
  border-bottom: 1px solid var(--border);
}

.panel-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 20px;
  padding: 22px;
}

.panel-member-card {
  min-height: 360px;
}

.panel-member-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.panel-member-summary > div,
.panel-roblox-slot {
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 38%),
    color-mix(in srgb, var(--surface-2) 80%, transparent);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.panel-member-summary > div {
  min-height: 84px;
  padding: 14px;
}

.panel-member-summary span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-member-summary strong {
  display: block;
  margin-top: 10px;
  color: var(--brand);
  font-size: 20px;
  font-weight: 950;
}

.panel-member-summary > div:hover,
.panel-roblox-slot:hover {
  border-color: color-mix(in srgb, var(--brand) 34%, var(--border));
  transform: translateY(-2px);
}

.panel-roblox-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 16px;
}

.panel-roblox-slot h3,
.panel-roblox-slot p {
  margin: 0;
}

.panel-roblox-slot h3 {
  margin-top: 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.panel-roblox-slot p:not(.eyebrow) {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.panel-payout-history {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 36%),
    color-mix(in srgb, var(--surface-2) 78%, transparent);
  padding: 16px;
}

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

.panel-payout-head-actions,
.panel-payout-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-payout-head h3 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.panel-add-payout,
.panel-view-payouts {
  min-height: 38px;
  padding: 0 16px;
}

.panel-payout-list {
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow: auto;
  padding-right: 4px;
}

.panel-payout-row,
.panel-payout-empty {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.panel-payout-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 10px;
}

.panel-payout-row > strong {
  color: var(--brand);
  font-size: 17px;
  font-weight: 950;
}

.panel-payout-row p,
.panel-payout-row small,
.panel-payout-empty p,
.panel-payout-empty strong {
  margin: 0;
}

.panel-payout-row p,
.panel-payout-empty strong {
  color: var(--ink);
  font-weight: 950;
}

.panel-payout-row small,
.panel-payout-empty p {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.panel-mini-action {
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  color: var(--brand);
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-mini-action:hover {
  background: var(--brand);
  color: #04140a;
}

.panel-mini-action.is-danger {
  border-color: color-mix(in srgb, var(--danger) 36%, var(--border));
  background: color-mix(in srgb, var(--danger) 10%, var(--surface));
  color: var(--danger);
}

.panel-mini-action.is-danger:hover {
  background: var(--danger);
  color: #fff;
}

.panel-payout-empty {
  padding: 16px;
}

.payout-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.payout-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

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

.payout-form-grid label {
  display: grid;
  gap: 8px;
}

.payout-form-grid label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.payout-form-grid input,
.payout-form-grid select,
.payout-form-grid textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  outline: none;
  padding: 12px;
}

.payout-form-grid input,
.payout-form-grid select {
  min-height: 46px;
}

.payout-form-grid textarea {
  resize: vertical;
}

.payout-form-grid input:focus,
.payout-form-grid select:focus,
.payout-form-grid textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}

.payout-form-wide {
  grid-column: 1 / -1;
}

.payout-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.payout-form-actions span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.panel-payout-list-full {
  max-height: min(560px, calc(100vh - 260px));
  padding-right: 6px;
}

.panel-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 0;
}

.panel-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-section-head > span {
  max-width: 260px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.45;
  text-align: right;
  text-transform: uppercase;
}

.panel-section-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.panel-save-all-button[hidden] {
  display: none;
}

.panel-stat-grid {
  display: grid;
  gap: 16px;
  padding: 22px 24px 24px;
}

.panel-stat-group {
  display: grid;
  gap: 10px;
}

.panel-stat-group + .panel-stat-group {
  margin-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.panel-stat-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.panel-stat-group-head span,
.panel-stat-group-head b {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-stat-group-head span {
  color: var(--brand);
}

.panel-stat-group-head b {
  color: var(--muted);
}

.panel-stat-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 150px;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 14px;
  box-shadow: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.panel-stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: color-mix(in srgb, var(--brand) 45%, transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.panel-stat-card:hover,
.panel-stat-card:focus-within {
  border-color: color-mix(in srgb, var(--brand) 34%, var(--border));
  box-shadow: 0 16px 42px color-mix(in srgb, var(--brand) 8%, transparent);
  transform: translateY(-1px);
}

.panel-stat-card:hover::before,
.panel-stat-card:focus-within::before,
.panel-stat-card.is-saving::before,
.panel-stat-card.is-saved::before {
  opacity: 1;
}

.panel-stat-card > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel-stat-card h3,
.panel-stat-card p {
  margin: 0;
}

.panel-stat-card h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.panel-stat-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.panel-stat-card label {
  display: grid;
  gap: 7px;
}

.panel-stat-card label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-stat-card input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
  color: var(--ink);
  font-weight: 950;
  outline: none;
  padding: 0 12px;
}

.panel-stat-card input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
}

.panel-save-button {
  min-height: 42px;
  justify-content: center;
}

.panel-stat-card.is-saving {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--border));
}

.panel-stat-card.is-dirty {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
  box-shadow: 0 12px 32px color-mix(in srgb, var(--brand) 7%, transparent);
}

.panel-stat-card.is-saving .panel-save-button {
  opacity: 0.82;
}

.panel-stat-card.is-saved {
  animation: savedFlash 900ms ease both;
}

.panel-stat-card.is-saved .panel-save-button {
  background: color-mix(in srgb, var(--brand) 92%, white);
  color: #04140a;
}

.panel-stat-card.is-error {
  border-color: color-mix(in srgb, #ff4d4d 58%, var(--border));
}

@keyframes savedFlash {
  0% {
    background:
      radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 42%),
      color-mix(in srgb, var(--surface-2) 86%, transparent);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 24%, transparent);
  }
  100% {
    box-shadow: 0 0 0 10px transparent;
  }
}

.dashboard-body .giveaway-grid {
  width: 100%;
}

.dashboard-body .giveaway-card {
  min-height: 280px;
  box-shadow: none;
}

.dashboard-body .giveaway-card h2 {
  min-height: 70px;
}

.dashboard-body .giveaway-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.store-dashboard {
  padding-top: 122px;
}

.store-hero {
  min-height: 360px;
}

.store-hero::before {
  position: absolute;
  inset: -42% -18% auto auto;
  z-index: 0;
  width: min(720px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 120deg, transparent, color-mix(in srgb, var(--brand) 28%, transparent), transparent 38%),
    radial-gradient(circle, color-mix(in srgb, var(--brand) 16%, transparent), transparent 62%);
  content: "";
  opacity: 0.72;
  filter: blur(2px);
  animation: storeHaloSpin 18s linear infinite;
  pointer-events: none;
}

.store-hero h1 {
  max-width: 820px;
  font-size: 66px;
}

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

.store-info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.store-info-strip article {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 132px;
  padding: 22px;
  box-shadow: none;
  animation: panelIn 520ms ease both;
}

.store-info-strip article:nth-child(2) {
  animation-delay: 70ms;
}

.store-info-strip article:nth-child(3) {
  animation-delay: 140ms;
}

.store-info-strip strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  font-weight: 950;
}

.store-info-strip p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.store-section {
  display: grid;
  gap: 22px;
}

.store-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.store-section-head h2,
.custom-deal h2 {
  max-width: 860px;
  margin: 0;
  color: var(--ink);
  font-size: 44px;
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

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

.diamond-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.store-card {
  display: grid;
  gap: 18px;
  min-height: 286px;
  padding: 26px;
  box-shadow: none;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.diamond-card {
  min-height: 340px;
  padding: 32px;
}

.store-card::before,
.store-info-strip article::before,
.custom-deal::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at var(--glow-x, 18%) var(--glow-y, 8%), color-mix(in srgb, var(--brand) 13%, transparent), transparent 32%),
    linear-gradient(135deg, transparent 0 34%, color-mix(in srgb, var(--brand) 5%, transparent) 48%, transparent 64%);
  content: "";
  opacity: 0.75;
  pointer-events: none;
}

.store-card > *,
.store-info-strip article > *,
.custom-deal > * {
  position: relative;
  z-index: 1;
}

.store-card:nth-child(2n) {
  --glow-x: 82%;
  --glow-y: 18%;
}

.store-card:nth-child(3n) {
  --glow-x: 52%;
  --glow-y: 92%;
}

.store-card.is-featured {
  border-color: color-mix(in srgb, var(--brand) 48%, var(--border));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), color-mix(in srgb, var(--surface-2) 80%, transparent)),
    var(--surface);
  box-shadow: 0 28px 90px color-mix(in srgb, var(--brand) 14%, transparent);
}

.store-card.is-featured::before {
  opacity: 1;
  animation: featuredBreath 3.8s ease-in-out infinite;
}

.store-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.store-card-head p,
.store-card > p,
.custom-deal p {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 66%, var(--muted));
  font-weight: 830;
  line-height: 1.55;
}

.store-card-head p {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.store-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  font-weight: 950;
  letter-spacing: 0.01em;
  line-height: 1;
}

.diamond-card h3 {
  color: var(--brand);
  font-size: 52px;
  text-shadow: 0 0 28px color-mix(in srgb, var(--brand) 16%, transparent);
}

.diamond-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  padding: 10px 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 7%, transparent), transparent),
    color-mix(in srgb, var(--surface) 80%, transparent);
  color: color-mix(in srgb, var(--ink) 72%, var(--muted));
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 18px 54px color-mix(in srgb, var(--brand) 8%, transparent);
  overflow: hidden;
}

.diamond-flow span {
  animation: flowLift 3.6s ease-in-out infinite;
}

.diamond-flow span:nth-of-type(2) {
  animation-delay: 0.18s;
}

.diamond-flow span:nth-of-type(3) {
  animation-delay: 0.36s;
}

.diamond-flow b {
  color: var(--brand);
  font-size: 18px;
  text-shadow: 0 0 20px color-mix(in srgb, var(--brand) 70%, transparent);
  animation: flowArrow 1.8s ease-in-out infinite;
}

.store-price {
  color: var(--muted);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 36%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 13%, transparent);
  color: var(--brand);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.is-featured .store-badge {
  animation: badgePulse 2.6s ease-in-out infinite;
}

.store-badge.soft {
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
  color: var(--muted);
}

.store-mini-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-mini-note::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 18px color-mix(in srgb, var(--brand) 80%, transparent);
  content: "";
  animation: livePulse 1.7s ease-in-out infinite;
}

.store-card .primary-button,
.store-card .secondary-button {
  align-self: end;
  width: 100%;
  margin-top: auto;
}

.store-action.requires-login,
[data-open-invoice].requires-login {
  border-color: color-mix(in srgb, var(--muted) 28%, var(--border));
  filter: saturate(0.72);
}

.store-card button:disabled,
.custom-deal button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.62;
}

.hosting-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 22px;
}

.hosting-card {
  min-height: 260px;
}

.amount-chip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.amount-chip-grid span,
.fee-grid span,
.store-list li,
.invoice-grid label {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 74%, transparent);
}

.amount-chip-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.amount-chip-grid span:hover {
  background: color-mix(in srgb, var(--brand) 14%, var(--surface-2));
  transform: translateY(-2px);
}

.store-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 12px 14px;
}

.store-list strong {
  color: var(--ink);
  font-weight: 950;
}

.store-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}

.store-list.compact li {
  min-height: 44px;
}

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

.fee-grid span {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 78px;
  padding: 14px;
}

.fee-grid b {
  color: var(--brand);
  font-size: 27px;
  font-weight: 950;
  line-height: 1;
}

.fee-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-card {
  min-height: 560px;
}

.rank-card {
  min-height: 260px;
}

.rank-card .store-badge {
  margin-top: auto;
}

.tier-grid {
  align-items: stretch;
}

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

.rank-grid + .rank-grid {
  margin-top: 28px;
}

.rank-grid-top .rank-card {
  min-height: 530px;
}

.rank-card-compact {
  gap: 16px;
}

.rank-card-compact h3 {
  max-width: none;
  font-size: 32px;
  min-height: 60px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.rank-card-compact .tier-price {
  font-size: 16px;
  min-height: 72px;
}

.rank-card-compact > p {
  min-height: 76px;
}

.rank-card-compact .tier-list {
  gap: 10px;
}

.rank-card-compact .tier-list li {
  font-size: 13px;
  line-height: 1.35;
}

.rank-grid-featured {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  margin: 0 auto;
  gap: 14px;
}

.rank-card-premium {
  min-height: unset;
  display: block;
  gap: 0;
  padding: 18px 20px;
  overflow: hidden;
  position: relative;
  border-color: color-mix(in srgb, var(--tier) 56%, var(--border));
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--tier) 14%, rgba(255, 255, 255, 0.9)), transparent 28%),
    radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--tier) 10%, rgba(255, 255, 255, 0.78)), transparent 26%),
    linear-gradient(135deg, color-mix(in srgb, var(--tier) 8%, rgba(255, 255, 255, 0.92)), color-mix(in srgb, var(--surface) 92%, transparent) 42%, color-mix(in srgb, var(--tier) 7%, rgba(255, 255, 255, 0.95)) 100%),
    var(--surface);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.14),
    0 0 0 1px color-mix(in srgb, var(--tier) 20%, transparent),
    0 0 38px color-mix(in srgb, var(--tier) 14%, transparent);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
  animation: premiumCardReveal 420ms ease both;
}

.rank-card-premium:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tier) 72%, var(--border));
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.16),
    0 0 0 1px color-mix(in srgb, var(--tier) 26%, transparent),
    0 0 52px color-mix(in srgb, var(--tier) 20%, transparent);
}

.rank-card-premium::after {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--tier) 32%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--tier) 14%, rgba(255, 255, 255, 0.88));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--tier) 10%, transparent);
  color: color-mix(in srgb, var(--tier) 88%, var(--ink));
  font-size: 10px;
  font-weight: 950;
  line-height: 26px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rank-card-premium h3 {
  max-width: none;
  font-size: clamp(42px, 4.6vw, 64px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.premium-shell {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 12px;
  align-items: start;
}

.premium-overview {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 8px;
  min-height: auto;
  padding: 0 8px 0 0;
}

.premium-overview::before {
  content: "";
  position: absolute;
  inset: auto -8px -26px auto;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--tier) 24%, #ffffff) 0%, color-mix(in srgb, var(--tier) 10%, rgba(255, 255, 255, 0.9)) 34%, transparent 72%);
  opacity: 0.78;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.rank-card-premium:hover .premium-overview::before {
  opacity: 0.92;
  transform: translate3d(4px, -2px, 0);
}

@keyframes premiumCardReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.premium-topline-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.premium-topline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  align-self: center;
}

.premium-icon {
  box-shadow:
    0 16px 32px color-mix(in srgb, var(--tier) 14%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.premium-heading {
  display: grid;
  gap: 4px;
}

.premium-price {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin: 0;
  text-shadow: 0 10px 26px color-mix(in srgb, var(--tier) 16%, transparent);
}

.premium-price small {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--tier) 72%, var(--muted));
  margin-bottom: 4px;
}

.premium-overview > p {
  max-width: 28ch;
  font-size: 13px;
  line-height: 1.32;
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
}

.premium-badge {
  min-height: 30px;
  margin: 0;
  width: max-content;
  padding-inline: 14px;
  line-height: 1;
  align-self: center;
}

.premium-purchase-card {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: auto;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--tier) 30%, var(--border));
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tier) 10%, rgba(255, 255, 255, 0.78)), color-mix(in srgb, var(--surface) 92%, transparent)),
    color-mix(in srgb, var(--surface-2) 86%, white 14%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 20px 38px rgba(0, 0, 0, 0.1);
}

.premium-benefits-card {
  display: grid;
  gap: 6px;
}

.premium-purchase-card h4 {
  margin: 0;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--tier) 86%, var(--ink));
}

.premium-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 12px;
  align-content: start;
}

.premium-benefits li {
  font-size: 11px;
  line-height: 1.18;
}

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

.premium-plan-option {
  appearance: none;
  display: grid;
  gap: 3px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--tier) 24%, var(--border));
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tier) 9%, white), color-mix(in srgb, var(--surface) 92%, transparent));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.premium-plan-option:hover,
.premium-plan-option:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tier) 48%, var(--border));
  box-shadow: 0 12px 22px color-mix(in srgb, var(--tier) 14%, transparent);
  outline: none;
}

.premium-plan-option.is-active {
  border-color: color-mix(in srgb, var(--tier) 64%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tier) 20%, white), color-mix(in srgb, var(--tier) 8%, var(--surface)));
  box-shadow:
    0 14px 24px color-mix(in srgb, var(--tier) 16%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--tier) 26%, transparent);
}

.premium-plan-duration {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 68%, var(--muted));
}

.premium-plan-value {
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.premium-cta {
  width: 100%;
  min-height: 38px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tier) 78%, #35ff96), color-mix(in srgb, var(--tier) 96%, #0f6d3c));
  color: #04120a;
  box-shadow:
    0 20px 34px color-mix(in srgb, var(--tier) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.premium-cta:hover,
.premium-cta:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 24px 42px color-mix(in srgb, var(--tier) 28%, transparent),
    0 0 0 1px color-mix(in srgb, var(--tier) 18%, transparent);
  filter: saturate(1.05);
}

.premium-marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tier) 20%, var(--border));
  border-radius: 999px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 78%, transparent));
  box-shadow:
    0 14px 32px color-mix(in srgb, var(--tier) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.premium-marquee-inline {
  margin-top: 10px;
}

.premium-marquee::before,
.premium-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 74px;
  z-index: 1;
  pointer-events: none;
}

.premium-marquee::before {
  left: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 96%, white), transparent);
}

.premium-marquee::after {
  right: 0;
  background: linear-gradient(270deg, color-mix(in srgb, var(--surface) 96%, white), transparent);
}

.premium-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-width: max-content;
  padding: 10px 0;
  white-space: nowrap;
  animation: premiumMarquee 24s linear infinite;
}

.premium-marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--ink) 74%, var(--muted));
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.premium-marquee-track span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tier) 72%, white 14%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tier) 16%, transparent);
}

@keyframes premiumMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

body[data-theme="dark"] .rank-grid + .rank-grid {
  margin-top: 34px;
}

body[data-theme="dark"] .rank-card-premium {
  border-color: color-mix(in srgb, var(--brand) 44%, rgba(255, 222, 150, 0.16));
  background:
    radial-gradient(circle at 10% 18%, rgba(244, 196, 78, 0.07), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(239, 189, 69, 0.05), transparent 24%),
    linear-gradient(145deg, rgba(17, 18, 16, 0.98), rgba(11, 13, 11, 0.98) 52%, rgba(15, 16, 13, 0.98));
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(244, 196, 78, 0.08),
    0 0 38px rgba(239, 189, 69, 0.08);
}

body[data-theme="dark"] .rank-card-premium:hover {
  border-color: color-mix(in srgb, var(--brand) 62%, rgba(255, 222, 150, 0.18));
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(244, 196, 78, 0.12),
    0 0 50px rgba(239, 189, 69, 0.1);
}

body[data-theme="dark"] .rank-card-premium::after {
  border-color: rgba(244, 196, 78, 0.22);
  background: rgba(244, 196, 78, 0.08);
  color: var(--brand);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .premium-overview::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 196, 78, 0.14) 0%, rgba(244, 196, 78, 0.035) 34%, transparent 72%);
  opacity: 0.14;
}

body[data-theme="dark"] .rank-card-premium:hover .premium-overview::before {
  opacity: 0.18;
}

body[data-theme="dark"] .premium-price {
  text-shadow: 0 12px 28px rgba(239, 189, 69, 0.12);
}

body[data-theme="dark"] .premium-price small,
body[data-theme="dark"] .premium-purchase-card h4 {
  color: var(--brand);
}

body[data-theme="dark"] .premium-overview > p {
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
}

body[data-theme="dark"] .premium-purchase-card {
  border-color: rgba(244, 196, 78, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 236, 176, 0.05), rgba(255, 236, 176, 0.015)),
    linear-gradient(145deg, rgba(28, 29, 25, 0.98), rgba(19, 20, 18, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 170, 0.08),
    0 22px 44px rgba(0, 0, 0, 0.24);
}

body[data-theme="dark"] .premium-plan-option {
  border-color: rgba(244, 196, 78, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 244, 205, 0.06), rgba(255, 244, 205, 0.015)),
    linear-gradient(180deg, rgba(28, 29, 25, 0.98), rgba(18, 19, 17, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 238, 170, 0.05);
}

body[data-theme="dark"] .premium-plan-option:hover,
body[data-theme="dark"] .premium-plan-option:focus-visible {
  border-color: rgba(244, 196, 78, 0.28);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.2),
    0 0 18px rgba(239, 189, 69, 0.08);
}

body[data-theme="dark"] .premium-plan-option.is-active {
  border-color: rgba(244, 196, 78, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 241, 194, 0.1), rgba(255, 241, 194, 0.025)),
    linear-gradient(180deg, rgba(31, 31, 27, 0.99), rgba(18, 19, 17, 0.99));
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(244, 196, 78, 0.12);
}

body[data-theme="dark"] .premium-plan-duration {
  color: color-mix(in srgb, var(--ink) 54%, var(--brand));
}

body[data-theme="dark"] .premium-cta {
  background: linear-gradient(180deg, #f6d56f, #e6b843);
  color: #0a0906;
  box-shadow:
    0 20px 36px rgba(239, 189, 69, 0.18),
    inset 0 1px 0 rgba(255, 246, 190, 0.28);
}

body[data-theme="dark"] .premium-cta:hover,
body[data-theme="dark"] .premium-cta:focus-visible {
  box-shadow:
    0 24px 42px rgba(239, 189, 69, 0.24),
    0 0 0 1px rgba(244, 196, 78, 0.12);
}

body[data-theme="dark"] .premium-marquee {
  border-color: rgba(244, 196, 78, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 241, 194, 0.04), rgba(255, 241, 194, 0.01)),
    linear-gradient(145deg, rgba(18, 19, 17, 0.98), rgba(12, 13, 12, 0.98));
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 238, 170, 0.06);
}

body[data-theme="dark"] .premium-marquee::before {
  background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 98%, #0e0f0e), transparent);
}

body[data-theme="dark"] .premium-marquee::after {
  background: linear-gradient(270deg, color-mix(in srgb, var(--surface) 98%, #0e0f0e), transparent);
}

body[data-theme="dark"] .premium-marquee-track span {
  color: color-mix(in srgb, var(--ink) 72%, var(--brand));
}

.pricing-tier {
  --tier: var(--brand);
  --tier-soft: color-mix(in srgb, var(--tier) 12%, transparent);
  --tier-border: color-mix(in srgb, var(--tier) 36%, var(--border));
  grid-template-rows: auto auto auto auto 1fr auto auto;
  align-content: stretch;
  gap: 20px;
  min-height: 620px;
  border-color: var(--tier-border);
  background:
    radial-gradient(circle at 84% 10%, color-mix(in srgb, var(--tier) 13%, transparent), transparent 30%),
    linear-gradient(145deg, color-mix(in srgb, var(--tier) 5%, var(--surface)), color-mix(in srgb, var(--surface-2) 82%, transparent)),
    var(--surface);
}

.pricing-tier.rank-card-premium {
  grid-template-rows: none;
  align-content: start;
  min-height: auto !important;
  height: auto !important;
  align-self: start;
}

.pricing-tier::before {
  background:
    radial-gradient(circle at var(--glow-x, 16%) var(--glow-y, 10%), color-mix(in srgb, var(--tier) 16%, transparent), transparent 34%),
    linear-gradient(135deg, transparent 0 40%, color-mix(in srgb, var(--tier) 7%, transparent) 54%, transparent 72%);
}

.pricing-tier:hover {
  border-color: color-mix(in srgb, var(--tier) 56%, var(--border));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    0 0 0 1px color-mix(in srgb, var(--tier) 18%, transparent),
    0 0 42px color-mix(in srgb, var(--tier) 14%, transparent);
}

.tier-blue {
  --tier: #4f8cff;
}

.tier-green {
  --tier: #17b86a;
}

.tier-orange {
  --tier: #e88422;
}

.tier-purple {
  --tier: #a855f7;
}

body[data-theme="dark"] .tier-blue {
  --tier: #79a7ff;
}

body[data-theme="dark"] .tier-green {
  --tier: #4fe39b;
}

body[data-theme="dark"] .tier-orange {
  --tier: #ffb45c;
}

body[data-theme="dark"] .tier-purple {
  --tier: #c084fc;
}

.tier-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tier-topline > span:first-child {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--tier) 38%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--tier) 11%, transparent);
  color: var(--tier);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-tier .card-icon {
  border-color: color-mix(in srgb, var(--tier) 28%, transparent);
  background: color-mix(in srgb, var(--tier) 9%, transparent);
  color: var(--tier);
}

.pricing-tier h3 {
  max-width: 10ch;
  color: var(--ink);
  font-size: 42px;
  line-height: 0.92;
  text-transform: uppercase;
}

.pricing-tier .tier-price {
  display: block;
  color: var(--tier);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-tier .tier-price small {
  display: block;
  margin-top: 6px;
  color: color-mix(in srgb, var(--ink) 64%, var(--muted));
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.pricing-tier h4 {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tier-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tier-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 12px;
  color: color-mix(in srgb, var(--ink) 72%, var(--muted));
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.tier-list li span {
  position: relative;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border: 1px solid color-mix(in srgb, var(--tier) 70%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--tier) 9%, transparent);
}

.tier-list li span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tier);
  content: "";
}

.rank-pricing-options {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.rank-pricing-options span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--tier) 24%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--tier) 8%, transparent);
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  font-size: 12px;
  font-weight: 950;
}

.pricing-tier .primary-button,
.pricing-tier .secondary-button {
  align-self: end;
  min-height: 46px;
  border-color: color-mix(in srgb, var(--tier) 46%, transparent);
}

.pricing-tier .primary-button {
  background: var(--tier);
  color: #06100b;
  box-shadow: 0 22px 46px color-mix(in srgb, var(--tier) 20%, transparent);
}

.pricing-tier .secondary-button {
  background: color-mix(in srgb, var(--tier) 10%, var(--surface-2));
  color: var(--ink);
}

.custom-deal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 210px;
  padding: 34px;
  box-shadow: none;
}

.custom-deal > div {
  display: grid;
  gap: 14px;
  max-width: 780px;
}

.invoice-dialog {
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.invoice-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.invoice-panel {
  display: grid;
  gap: 20px;
  padding: 28px;
  overflow: hidden;
  animation: panelIn 260ms ease both;
}

.invoice-head {
  margin: 0;
}

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

.invoice-grid label {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.invoice-grid label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.invoice-grid input,
.invoice-grid select,
.invoice-grid textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  resize: vertical;
}

.invoice-grid select {
  color-scheme: light;
}

.invoice-grid select option {
  background: #ffffff;
  color: #061c11;
  font-weight: 850;
}

body[data-theme="dark"] .invoice-grid select {
  color-scheme: dark;
}

body[data-theme="dark"] .invoice-grid select option {
  background: #101113;
  color: #fff9df;
}

.invoice-grid textarea {
  min-height: 118px;
}

.invoice-wide {
  grid-column: 1 / -1;
}

.invoice-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.invoice-status {
  margin: 0 auto 0 0;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.invoice-panel button:disabled,
.invoice-panel input:disabled,
.invoice-panel select:disabled,
.invoice-panel textarea:disabled {
  cursor: wait;
  opacity: 0.72;
}

.invoice-guard-panel {
  gap: 18px;
}

.invoice-guard-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 38%),
    color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.invoice-guard-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.invoice-guard-card p:not([hidden]) {
  display: block;
}

@keyframes dashboardFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-18px) rotate(2deg);
  }
}

@keyframes v2LogoDrift {
  0%,
  100% {
    transform: translateY(-50%) rotate(-4deg) scale(1);
  }

  50% {
    transform: translateY(calc(-50% - 16px)) rotate(3deg) scale(1.03);
  }
}

@keyframes ambientPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes stickerFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(-14px) rotate(4deg);
  }
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes progressGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(32, 207, 93, 0);
  }

  50% {
    box-shadow: 0 0 24px rgba(32, 207, 93, 0.7);
  }
}

@keyframes storeHaloSpin {
  from {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.06);
  }

  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes featuredBreath {
  0%,
  100% {
    opacity: 0.72;
    filter: saturate(1);
  }

  50% {
    opacity: 1;
    filter: saturate(1.35);
  }
}

@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 0 0 color-mix(in srgb, var(--brand) 0%, transparent);
    transform: translateY(0);
  }

  50% {
    box-shadow: 0 0 26px color-mix(in srgb, var(--brand) 24%, transparent);
    transform: translateY(-1px);
  }
}

@keyframes flowLift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes flowArrow {
  0%,
  100% {
    opacity: 0.62;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(3px);
  }
}

@keyframes leaderboardRowIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes profileGlowDrift {
  0%,
  100% {
    opacity: 0.62;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate3d(0, -8px, 0) scale(1.015);
  }
}

@keyframes panelLineIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes panelBootProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes togglePop {
  0% {
    scale: 0.86;
  }

  55% {
    scale: 1.1;
  }

  100% {
    scale: 1;
  }
}

@keyframes controlSweep {
  0% {
    opacity: 0;
    transform: translateX(-70%);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(78%);
  }
}

@keyframes soundPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 transparent);
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--brand) 38%, transparent));
    transform: scale(1.06);
  }
}

@keyframes barDance {
  0%,
  100% {
    transform: scaleY(0.72);
  }

  50% {
    transform: scaleY(1);
  }
}

@media (max-width: 1320px) {
  .dashboard-sidebar {
    left: 18px;
    width: 250px;
  }

  .dashboard-body .dashboard-topbar {
    left: 292px;
    right: 24px;
  }

  .dashboard-topbar .nav-links a {
    padding: 8px 12px;
  }

  .dashboard-topbar .header-actions {
    gap: 8px;
  }

  .top-balance {
    padding: 0 10px;
  }

  .dashboard-main {
    margin-left: 292px;
    padding-right: 24px;
  }

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

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

  .panel-editor-grid {
    grid-template-columns: 1fr;
  }

  .panel-stat-card {
    grid-template-columns: minmax(0, 1fr) 160px 140px;
  }

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

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

  .goal-card {
    min-height: 260px;
  }

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

@media (max-width: 980px) {
  .dashboard-sidebar {
    position: static;
    width: auto;
    margin: 18px;
  }

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

  .dashboard-body .dashboard-topbar {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    flex-wrap: wrap;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
    padding: 12px 18px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(16px);
  }

  .dashboard-topbar .brand {
    display: inline-flex;
  }

  .dashboard-topbar .brand,
  .store-page-body .dashboard-topbar .brand {
    flex: 0 1 auto;
  }

  .dashboard-topbar .nav-links,
  .store-page-body .dashboard-topbar .nav-links {
    position: static;
    left: auto;
    transform: none;
  }

  .dashboard-topbar .header-actions,
  .store-page-body .dashboard-topbar .header-actions {
    flex: 0 1 auto;
  }

  .dashboard-topbar .nav-links {
    display: flex;
    justify-self: start;
    flex-wrap: wrap;
    gap: 18px;
    letter-spacing: 0.12em;
  }

  .dashboard-main,
  .giveaways-dashboard,
  .store-dashboard {
    margin-left: 0;
    padding: 28px 18px 32px;
  }

  .dashboard-welcome {
    padding: 34px;
  }

  .dashboard-welcome h1 {
    font-size: 52px;
  }
}

@media (max-width: 680px) {
  .sidebar-nav,
  .dashboard-stats,
  .dashboard-panels,
  .profile-layout,
  .timeline,
  .stat-strip,
  .meta-grid,
  .dialog-grid,
  .store-info-strip,
  .store-product-grid,
  .hosting-layout,
  .invoice-grid,
  .leaderboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar .header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .top-balance {
    width: 100%;
    justify-content: space-between;
    padding-right: 14px;
  }

  .dashboard-welcome {
    min-height: 0;
    padding: 26px;
  }

  .dashboard-welcome h1,
  .giveaways-dashboard .dashboard-welcome h1,
  .leaderboard-hero h1,
  .store-hero h1,
  .store-section-head h2,
  .custom-deal h2 {
    font-size: 38px;
  }

  .dashboard-welcome .hero-copy,
  .giveaways-dashboard .dashboard-welcome p:not(.live-pill),
  .store-info-strip p,
  .custom-deal p {
    font-size: 16px;
  }

  .summary-card {
    min-height: 160px;
  }

  .summary-card strong {
    font-size: 44px;
  }

  .leaderboard-board {
    min-height: 0;
    padding: 18px;
  }

  .leaderboard-row {
    grid-template-columns: 44px 42px minmax(0, 1fr);
  }

  .leaderboard-score {
    grid-column: 2 / -1;
    justify-self: stretch;
    min-width: 0;
    text-align: left;
  }

  .panel-editor-grid,
  .panel-stat-card {
    grid-template-columns: 1fr;
  }

  .panel-member-summary {
    grid-template-columns: 1fr;
  }

  .panel-roblox-slot {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-payout-row,
  .payout-form-grid,
  .payout-form-actions {
    grid-template-columns: 1fr;
  }

  .panel-payout-row,
  .payout-form-actions {
    align-items: stretch;
  }

  .panel-payout-head,
  .panel-payout-head-actions,
  .panel-payout-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-section-head {
    display: grid;
  }

  .panel-section-actions {
    justify-items: stretch;
  }

  .panel-section-head > span {
    text-align: left;
  }

  .store-section-head,
  .custom-deal,
  .invoice-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .diamond-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    text-align: center;
  }

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

  .invoice-actions .primary-button,
  .invoice-actions .secondary-button,
  .custom-deal .primary-button,
  .store-section-head .secondary-button {
    width: 100%;
  }

  .pricing-tier {
    min-height: 0;
  }
}

.discord-login,
.dashboard-topbar .discord-login,
.store-page-body .dashboard-topbar .discord-login {
  width: 124px;
  min-width: 124px;
  height: 42px;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 124px;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
}

.discord-login.is-logged-in {
  letter-spacing: 0.12em;
}

.logout-dialog {
  width: min(440px, calc(100vw - 32px));
  max-width: 440px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.logout-dialog::backdrop {
  background: color-mix(in srgb, #000 58%, transparent);
  backdrop-filter: blur(10px);
}

.logout-panel {
  display: grid;
  gap: 22px;
  padding: 26px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, var(--brand) 18%);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 96%, var(--bg) 4%), color-mix(in srgb, var(--surface-2) 82%, var(--surface) 18%));
  box-shadow:
    0 28px 70px color-mix(in srgb, #000 22%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 72%, transparent);
}

body[data-theme="dark"] .logout-panel {
  border-color: color-mix(in srgb, var(--brand) 34%, #2c2613);
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 34%),
    linear-gradient(145deg, #12110e, #080808 64%, #0f0d08);
  box-shadow:
    0 30px 80px color-mix(in srgb, #000 72%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--brand) 14%, transparent);
}

.logout-panel h2 {
  margin: 8px 0 8px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.02em;
}

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

.logout-actions .primary-button,
.logout-actions .secondary-button {
  min-width: 118px;
  min-height: 40px;
  padding: 0 16px;
}

@media (max-width: 520px) {
  .logout-actions {
    flex-direction: column-reverse;
  }

  .logout-actions .primary-button,
  .logout-actions .secondary-button {
    width: 100%;
  }
}

/* Responsive hardening layer */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

button,
input,
select,
textarea {
  min-width: 0;
}

.dashboard-body,
.store-page-body,
.dashboard-main,
.store-dashboard,
.giveaways-dashboard,
.leaderboard-grid,
.profile-workspace,
.member-panel,
.panel-editor-grid,
.store-product-grid,
.diamond-grid,
.rank-grid,
.giveaway-grid {
  min-width: 0;
}

.dashboard-welcome h1,
.leaderboard-hero h1,
.store-hero h1,
.store-section-head h2,
.custom-deal h2,
.panel-intro-card h1,
.member-panel h2,
.leaderboard-board h2,
.pricing-tier h3,
.diamond-card h3 {
  overflow-wrap: anywhere;
}

.mobile-menu-toggle {
  display: none;
}

@media (max-width: 1180px) {
  .dashboard-topbar .brand,
  .store-page-body .dashboard-topbar .brand {
    min-width: 0;
  }

  .dashboard-topbar .nav-links a,
  .store-page-body .dashboard-topbar .nav-links a {
    padding-inline: 12px;
  }

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

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

  .rank-card-premium {
    padding: 24px 26px;
  }

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

  .premium-overview {
    padding-right: 0;
    justify-content: start;
  }

  .premium-overview > p {
    max-width: none;
  }

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

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

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

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

@media (max-width: 760px) {
  .rank-card-premium {
    padding: 16px;
  }

  .rank-card-premium::after {
    top: 16px;
    right: 16px;
  }

  .premium-overview {
    gap: 14px;
  }

  .premium-shell {
    gap: 16px;
  }

  .premium-benefits {
    grid-template-columns: 1fr;
    gap: 9px;
  }

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

  .premium-purchase-card {
    padding: 12px;
    border-radius: 16px;
  }

  .premium-plan-option {
    min-height: 54px;
    padding: 9px 11px;
  }

  .premium-plan-value {
    font-size: 14px;
  }

  .premium-marquee-track {
    gap: 18px;
    padding: 9px 0;
  }

  .premium-marquee-track span {
    font-size: 10px;
  }
}

@media (max-width: 980px) {
  body.dashboard-body,
  body.store-page-body {
    display: block;
  }

  .dashboard-sidebar {
    position: static;
    width: auto;
    margin: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .sidebar-brand,
  .sidebar-nav {
    grid-column: 1 / -1;
  }

  .sidebar-user,
  .sidebar-balance {
    min-height: 0;
  }

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

  .dashboard-body .dashboard-topbar,
  .store-page-body .dashboard-topbar {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    z-index: 50;
    width: 100%;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .dashboard-topbar .brand,
  .store-page-body .dashboard-topbar .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .dashboard-topbar .brand strong,
  .store-page-body .dashboard-topbar .brand strong {
    white-space: nowrap;
  }

  .dashboard-topbar .nav-links,
  .store-page-body .dashboard-topbar .nav-links {
    order: 3;
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .dashboard-topbar .nav-links::-webkit-scrollbar,
  .store-page-body .dashboard-topbar .nav-links::-webkit-scrollbar,
  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .dashboard-topbar .nav-links a,
  .store-page-body .dashboard-topbar .nav-links a {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
  }

  .dashboard-topbar .header-actions,
  .store-page-body .dashboard-topbar .header-actions {
    flex: 0 1 auto;
    margin-left: auto;
    min-width: 0;
    justify-content: flex-end;
    gap: 8px;
  }

  .dashboard-main,
  .giveaways-dashboard,
  .store-dashboard {
    margin-left: 0;
    padding: 24px 18px 34px;
  }

  .dashboard-main,
  .store-dashboard,
  .giveaways-dashboard {
    padding-top: 24px;
  }

  .dashboard-welcome {
    min-height: 360px;
    padding: 36px;
  }

  .dashboard-welcome > img:not(.v2-orbit-logo) {
    width: 340px;
    height: 340px;
    right: 18px;
    opacity: 0.1;
  }

  .v2-orbit-logo {
    width: 420px;
    max-width: 72%;
    right: -42px;
    opacity: 0.09;
  }

  .profile-layout,
  .store-grid,
  .panel-editor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dashboard-body .profile-section .section-heading h2 {
    font-size: 40px;
  }

  .dashboard-sidebar {
    margin: 10px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sidebar-brand {
    min-height: 58px;
    padding: 10px 14px;
    font-size: 20px;
  }

  .sidebar-brand img {
    width: 44px;
    height: 44px;
  }

  .sidebar-user {
    min-height: 0;
    padding: 16px;
    grid-template-columns: 58px 1fr;
  }

  .sidebar-avatar,
  .sidebar-user img {
    width: 58px;
    height: 58px;
  }

  .sidebar-balance {
    min-height: 0;
    padding: 16px;
    gap: 10px;
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 10px;
    scroll-snap-type: x proximity;
  }

  .sidebar-nav a {
    flex: 0 0 152px;
    min-height: 48px;
    grid-template-columns: 30px 1fr;
    padding: 0 12px;
    font-size: 14px;
    scroll-snap-align: start;
  }

  .dashboard-body .dashboard-topbar,
  .store-page-body .dashboard-topbar {
    padding: 10px;
    gap: 8px;
  }

  .dashboard-topbar .brand,
  .store-page-body .dashboard-topbar .brand {
    display: none;
  }

  .dashboard-topbar .header-actions,
  .store-page-body .dashboard-topbar .header-actions {
    order: 1;
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 7px;
  }

  .dashboard-topbar .nav-links,
  .store-page-body .dashboard-topbar .nav-links {
    order: 2;
  }

  .top-balance {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.1em;
  }

  .top-balance span,
  .top-balance strong {
    white-space: nowrap;
  }

  .control-cluster {
    flex: 0 0 auto;
  }

  .discord-login,
  .dashboard-topbar .discord-login,
  .store-page-body .dashboard-topbar .discord-login {
    width: 104px;
    min-width: 104px;
    height: 38px;
    min-height: 38px;
    padding: 0 10px;
    flex: 0 0 104px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .control-cluster .sound-toggle,
  .dashboard-body .control-cluster .sound-toggle {
    width: 28px;
    min-width: 28px;
    height: 28px;
  }

  .control-cluster .theme-toggle-root,
  .dashboard-body .control-cluster .theme-toggle-root {
    width: 56px;
    min-width: 56px;
    height: 28px;
  }

  .dashboard-main,
  .giveaways-dashboard,
  .store-dashboard {
    padding: 16px 10px 28px;
    gap: 18px;
  }

  .dashboard-stats,
  .store-info-strip,
  .store-product-grid,
  .diamond-grid,
  .rank-grid,
  .giveaway-grid,
  .leaderboard-grid,
  .meta-grid,
  .stat-strip,
  .side-ledger,
  .invoice-grid,
  .panel-member-summary,
  .payout-form-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stats {
    gap: 10px;
  }

  .summary-card {
    min-height: 128px;
    padding: 16px;
  }

  .summary-card strong {
    font-size: 32px;
  }

  .summary-card p {
    font-size: 10px;
  }

  .dashboard-welcome,
  .giveaways-dashboard .dashboard-welcome,
  .store-hero,
  .leaderboard-hero {
    min-height: 310px;
    padding: 24px 18px;
  }

  .dashboard-welcome h1,
  .giveaways-dashboard .dashboard-welcome h1,
  .leaderboard-hero h1,
  .store-hero h1,
  .store-section-head h2,
  .custom-deal h2 {
    font-size: 40px;
    line-height: 0.95;
  }

  .dashboard-welcome .hero-copy,
  .giveaways-dashboard .dashboard-welcome p:not(.live-pill),
  .store-info-strip p,
  .custom-deal p {
    max-width: 100%;
    font-size: 15px;
  }

  .welcome-actions,
  .hero-actions,
  .store-section-head,
  .custom-deal,
  .invoice-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .welcome-actions a,
  .hero-actions a,
  .store-section-head .secondary-button,
  .custom-deal .primary-button,
  .invoice-actions .primary-button,
  .invoice-actions .secondary-button {
    width: 100%;
  }

  .profile-workspace,
  .member-panel,
  .side-ledger > div,
  .leaderboard-board,
  .store-card,
  .diamond-card,
  .pricing-tier,
  .panel-member-card,
  .panel-stat-group,
  .panel-payout-manager {
    padding: 16px;
  }

  .searchbar,
  .panel-searchbar {
    grid-template-columns: 1fr;
  }

  .searchbar button,
  .panel-searchbar button {
    width: 100%;
    min-height: 44px;
  }

  .member-header,
  .panel-profile-head {
    align-items: flex-start;
    gap: 12px;
  }

  .member-header img,
  .profile-avatar,
  #profileAvatar,
  #panelAvatar {
    width: 64px;
    height: 64px;
  }

  .meta-grid,
  .stat-strip {
    gap: 8px;
  }

  .payout-item,
  .panel-payout-row,
  .panel-stat-card,
  .giveaway-meta {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .payout-item .status,
  .payout-item .claim-mini,
  .panel-payout-actions,
  .panel-stat-actions {
    justify-self: stretch;
  }

  .giveaway-actions-row,
  .giveaway-action-pair,
  .panel-payout-head,
  .panel-payout-head-actions,
  .payout-form-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .leaderboard-list {
    grid-auto-rows: minmax(76px, auto);
  }

  .leaderboard-row {
    min-height: 76px;
    height: auto;
    grid-template-columns: 42px 42px minmax(0, 1fr);
    gap: 10px;
  }

  .leaderboard-score {
    grid-column: 3;
    justify-self: start;
    min-width: 0;
    text-align: left;
  }

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

  .diamond-flow {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .diamond-card h3 {
    font-size: 38px;
  }

  .panel-intro-card {
    padding: 22px;
  }

  .panel-intro-card h1 {
    font-size: 40px;
    line-height: 0.95;
  }

  .invoice-dialog,
  .giveaway-dialog,
  .payout-dialog,
  .public-payout-dialog,
  .logout-dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .dialog-panel,
  .invoice-panel,
  .logout-panel {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .dashboard-sidebar {
    margin: 8px;
  }

  .sidebar-nav a {
    flex-basis: 142px;
  }

  .top-balance {
    max-width: none;
    padding: 0 8px;
    letter-spacing: 0.06em;
    font-size: 10px;
  }

  .top-balance span {
    display: none;
  }

  .discord-login,
  .dashboard-topbar .discord-login,
  .store-page-body .dashboard-topbar .discord-login {
    width: 92px;
    min-width: 92px;
    flex-basis: 92px;
    padding: 0 8px;
    font-size: 11px;
  }

  .control-cluster .theme-toggle-root,
  .dashboard-body .control-cluster .theme-toggle-root {
    width: 52px;
    min-width: 52px;
  }

  .dashboard-welcome h1,
  .giveaways-dashboard .dashboard-welcome h1,
  .leaderboard-hero h1,
  .store-hero h1,
  .store-section-head h2,
  .custom-deal h2 {
    font-size: 34px;
  }

  .dashboard-welcome,
  .giveaways-dashboard .dashboard-welcome,
  .store-hero,
  .leaderboard-hero {
    min-height: 280px;
    padding: 22px 14px;
  }

  .summary-card {
    min-height: 112px;
  }

  .leaderboard-row {
    grid-template-columns: 40px 40px minmax(0, 1fr);
  }

  .leaderboard-score {
    grid-column: 2 / -1;
  }

  .amount-chip-grid,
  .fee-grid {
    grid-template-columns: 1fr;
  }

  .panel-intro-card h1 {
    font-size: 34px;
  }
}

@media (max-width: 720px) {
  .dashboard-sidebar > *,
  .dashboard-topbar > *,
  .dashboard-topbar .header-actions > * {
    max-width: 100%;
    min-width: 0;
  }

  .sidebar-balance div {
    justify-content: flex-start;
  }

  .sidebar-balance strong {
    margin-left: 8px;
  }

  .sidebar-nav {
    max-width: 100%;
    min-width: 0;
  }

  .dashboard-topbar .header-actions,
  .store-page-body .dashboard-topbar .header-actions {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 140px) auto 88px;
    align-items: center;
    justify-content: start;
    column-gap: 7px;
  }

  .top-balance {
    width: 100%;
    max-width: 140px;
    min-width: 0;
  }

  .top-balance span {
    display: none;
  }

  .discord-login,
  .dashboard-topbar .discord-login,
  .store-page-body .dashboard-topbar .discord-login {
    width: 88px;
    min-width: 88px;
    max-width: 88px;
    flex-basis: 88px;
  }
}

@keyframes mobileMenuDrop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .dashboard-sidebar .sidebar-nav {
    display: none;
  }

  .mobile-menu-toggle {
    order: 2;
    display: inline-flex;
    width: 46px;
    height: 38px;
    margin-left: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
    border-radius: 8px;
    background:
      radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 52%),
      color-mix(in srgb, var(--surface) 86%, transparent);
    color: var(--ink);
    box-shadow: 0 12px 28px color-mix(in srgb, #000 10%, transparent);
    cursor: pointer;
    transition:
      border-color 180ms ease,
      background 180ms ease,
      transform 180ms ease,
      box-shadow 180ms ease;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition:
      transform 220ms ease,
      opacity 180ms ease;
  }

  .mobile-menu-toggle:hover {
    border-color: color-mix(in srgb, var(--brand) 44%, var(--border));
    transform: translateY(-1px);
  }

  .dashboard-topbar.is-menu-open .mobile-menu-toggle {
    background: var(--brand);
    color: #031108;
    box-shadow: 0 16px 34px color-mix(in srgb, var(--brand) 22%, transparent);
  }

  .dashboard-topbar.is-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .dashboard-topbar.is-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .dashboard-topbar.is-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body[data-theme="dark"] .mobile-menu-toggle {
    background:
      radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 54%),
      #10100e;
    color: var(--brand);
  }

  body[data-theme="dark"] .dashboard-topbar.is-menu-open .mobile-menu-toggle {
    color: #090806;
  }

  .dashboard-topbar .nav-links,
  .store-page-body .dashboard-topbar .nav-links {
    display: none;
    order: 3;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 8px;
    border-radius: 8px;
    background:
      radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 44%),
      color-mix(in srgb, var(--surface) 92%, transparent);
  }

  .dashboard-topbar.is-menu-open .nav-links,
  .store-page-body .dashboard-topbar.is-menu-open .nav-links {
    display: grid;
    animation: mobileMenuDrop 180ms ease both;
  }

  .dashboard-topbar .nav-links a,
  .store-page-body .dashboard-topbar .nav-links a {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .dashboard-topbar .header-actions,
  .store-page-body .dashboard-topbar .header-actions {
    grid-template-columns: minmax(0, 108px) auto 82px;
    gap: 6px;
  }

  .discord-login,
  .dashboard-topbar .discord-login,
  .store-page-body .dashboard-topbar .discord-login {
    width: 82px;
    min-width: 82px;
    max-width: 82px;
    flex-basis: 82px;
  }
}

@media (max-width: 720px) {
  body.dashboard-body,
  body.store-page-body {
    padding-top: 58px;
  }

  .dashboard-body .dashboard-topbar,
  .store-page-body .dashboard-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    display: grid;
    width: 100%;
    min-height: 58px;
    grid-template-columns: minmax(0, min(326px, calc(100vw - 66px))) 44px;
    align-items: center;
    justify-content: start;
    gap: 7px;
    padding: 8px 10px;
    border-width: 0 0 1px;
    border-radius: 0 0 8px 8px;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--bg) 88%, transparent));
    box-shadow:
      0 14px 32px color-mix(in srgb, #052113 12%, transparent),
      inset 0 -1px 0 color-mix(in srgb, var(--brand) 10%, transparent);
    backdrop-filter: blur(18px);
  }

  body[data-theme="dark"].dashboard-body .dashboard-topbar,
  body[data-theme="dark"].store-page-body .dashboard-topbar {
    background:
      linear-gradient(180deg, color-mix(in srgb, #11100d 94%, transparent), color-mix(in srgb, #080807 92%, transparent));
    box-shadow:
      0 18px 42px color-mix(in srgb, #000 55%, transparent),
      inset 0 -1px 0 color-mix(in srgb, var(--brand) 16%, transparent);
  }

  .dashboard-topbar .header-actions,
  .store-page-body .dashboard-topbar .header-actions {
    grid-column: 1;
    grid-row: 1;
    order: 0;
    display: grid;
    width: auto;
    min-width: 0;
    grid-template-columns: minmax(0, 106px) auto 82px;
    align-items: center;
    justify-content: start;
    gap: 6px;
    margin: 0;
  }

  .mobile-menu-toggle {
    grid-column: 2;
    grid-row: 1;
    order: 0;
    width: 44px;
    height: 38px;
    margin: 0;
  }

  .dashboard-topbar .nav-links,
  .store-page-body .dashboard-topbar .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 0;
    margin-top: 2px;
  }

  .top-balance {
    height: 38px;
    max-width: 106px;
  }

  .discord-login,
  .dashboard-topbar .discord-login,
  .store-page-body .dashboard-topbar .discord-login {
    width: 86px;
    min-width: 82px;
    max-width: 82px;
    height: 38px;
    min-height: 38px;
    flex-basis: 82px;
    padding: 0 8px;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .dashboard-body .dashboard-topbar,
  .store-page-body .dashboard-topbar {
    min-height: 56px;
    grid-template-columns: minmax(0, min(302px, calc(100vw - 58px))) 42px;
    gap: 6px;
    padding: 8px;
  }

  body.dashboard-body,
  body.store-page-body {
    padding-top: 56px;
  }

  .dashboard-topbar .header-actions,
  .store-page-body .dashboard-topbar .header-actions {
    grid-template-columns: minmax(0, 94px) auto 78px;
    gap: 5px;
  }

  .top-balance {
    max-width: 94px;
  }

  .mobile-menu-toggle {
    width: 42px;
    height: 38px;
  }

  .discord-login,
  .dashboard-topbar .discord-login,
  .store-page-body .dashboard-topbar .discord-login {
    width: 78px;
    min-width: 78px;
    max-width: 78px;
    flex-basis: 78px;
    padding: 0 6px;
  }
}

.sidebar-user p::before {
  display: none;
}

.control-cluster .theme-toggle-root,
.dashboard-body .control-cluster .theme-toggle-root {
  isolation: isolate;
}

.control-cluster .theme-toggle-root::before,
.dashboard-body .control-cluster .theme-toggle-root::before {
  z-index: 4;
  box-shadow:
    0 8px 18px color-mix(in srgb, var(--brand) 24%, transparent),
    0 0 0 1px color-mix(in srgb, var(--brand) 32%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.control-cluster .theme-toggle-track,
.dashboard-body .control-cluster .theme-toggle-track {
  z-index: 3;
}

@keyframes iconSwapPop {
  0% {
    filter: drop-shadow(0 0 0 transparent);
  }

  45% {
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--brand) 38%, transparent));
  }

  100% {
    filter: drop-shadow(0 0 0 transparent);
  }
}

.control-cluster .theme-toggle-root::before,
.dashboard-body .control-cluster .theme-toggle-root::before {
  display: none !important;
  content: none !important;
}

.control-cluster .theme-toggle-root,
.dashboard-body .control-cluster .theme-toggle-root {
  overflow: hidden;
}

.control-cluster .theme-toggle-track,
.dashboard-body .control-cluster .theme-toggle-track {
  z-index: 1;
}

.control-cluster .theme-toggle-root .theme-moon,
.control-cluster .theme-toggle-root .theme-sun,
.dashboard-body .control-cluster .theme-toggle-root .theme-moon,
.dashboard-body .control-cluster .theme-toggle-root .theme-sun {
  position: relative;
  z-index: 1;
  transition:
    color 220ms ease,
    opacity 220ms ease,
    transform 320ms cubic-bezier(.2, .9, .18, 1.18),
    filter 220ms ease;
}

body[data-theme="light"] .control-cluster .theme-toggle-root .theme-moon,
body[data-theme="light"].dashboard-body .control-cluster .theme-toggle-root .theme-moon {
  opacity: 0.5;
  transform: translateX(24px) scale(0.88) rotate(-8deg) !important;
}

body[data-theme="light"] .control-cluster .theme-toggle-root .theme-sun,
body[data-theme="light"].dashboard-body .control-cluster .theme-toggle-root .theme-sun {
  opacity: 1;
  transform: translateX(-24px) scale(1.08) rotate(0.001deg) !important;
}

body[data-theme="dark"] .control-cluster .theme-toggle-root .theme-moon,
body[data-theme="dark"].dashboard-body .control-cluster .theme-toggle-root .theme-moon {
  opacity: 1;
  transform: translateX(24px) scale(1.08) rotate(0.001deg) !important;
}

body[data-theme="dark"] .control-cluster .theme-toggle-root .theme-sun,
body[data-theme="dark"].dashboard-body .control-cluster .theme-toggle-root .theme-sun {
  opacity: 0.5;
  transform: translateX(-24px) scale(0.88) rotate(8deg) !important;
}

body.theme-swapping .control-cluster .theme-toggle-root .theme-moon,
body.theme-swapping .control-cluster .theme-toggle-root .theme-sun,
body.theme-swapping.dashboard-body .control-cluster .theme-toggle-root .theme-moon,
body.theme-swapping.dashboard-body .control-cluster .theme-toggle-root .theme-sun {
  animation: iconSwapPop 360ms ease both;
}

.control-cluster .theme-toggle-root .theme-moon,
.control-cluster .theme-toggle-root .theme-sun,
.dashboard-body .control-cluster .theme-toggle-root .theme-moon,
.dashboard-body .control-cluster .theme-toggle-root .theme-sun {
  display: grid;
  place-items: center;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.control-cluster .theme-toggle-root .theme-moon::before,
.dashboard-body .control-cluster .theme-toggle-root .theme-moon::before {
  position: static;
  border: 0;
  background: transparent;
  content: "вѕ";
}

.control-cluster .theme-toggle-root .theme-sun::before,
.dashboard-body .control-cluster .theme-toggle-root .theme-sun::before {
  position: static;
  border: 0;
  background: transparent;
  content: "вЂ";
}

.control-cluster .theme-toggle-root .theme-moon::after,
.control-cluster .theme-toggle-root .theme-sun::after,
.dashboard-body .control-cluster .theme-toggle-root .theme-moon::after,
.dashboard-body .control-cluster .theme-toggle-root .theme-sun::after {
  display: none !important;
  content: none !important;
}

/* Legal pages */
.legal-page {
  min-height: 100vh;
  background:
    linear-gradient(color-mix(in srgb, var(--grid) 72%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--grid) 72%, transparent) 1px, transparent 1px),
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 34%),
    linear-gradient(135deg, var(--bg), color-mix(in srgb, var(--surface-2) 68%, var(--bg)));
  background-size: 28px 28px, 28px 28px, auto, auto;
}

body[data-theme="dark"].legal-page {
  background:
    linear-gradient(color-mix(in srgb, var(--grid) 54%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--grid) 54%, transparent) 1px, transparent 1px),
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 32%),
    linear-gradient(135deg, #060606, #10100d 58%, #070706);
}

.legal-shell {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 82px;
}

.legal-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  box-shadow:
    0 22px 60px color-mix(in srgb, #072916 10%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 74%, transparent);
  backdrop-filter: blur(18px);
}

body[data-theme="dark"] .legal-header {
  background: color-mix(in srgb, #11100d 88%, transparent);
  box-shadow:
    0 24px 70px color-mix(in srgb, #000 50%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--brand) 10%, transparent);
}

.legal-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.legal-nav a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-nav a:hover {
  background: #07120d;
  color: #fff;
}

body[data-theme="dark"] .legal-nav a:hover {
  background: var(--brand);
  color: #080704;
}

.legal-hero {
  position: relative;
  isolation: isolate;
  margin: 54px 0 22px;
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--border));
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 12%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-2) 78%, transparent));
  box-shadow: 0 30px 80px color-mix(in srgb, #052713 10%, transparent);
}

.legal-hero::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  z-index: -1;
  width: 360px;
  height: 360px;
  border: 42px solid color-mix(in srgb, var(--brand) 13%, transparent);
  border-radius: 50%;
  content: "";
}

.legal-hero h1 {
  max-width: 880px;
  margin: 10px 0 0;
  font-size: clamp(48px, 8vw, 106px);
  font-style: italic;
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal-hero p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}

.legal-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.legal-toc,
.legal-document {
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-2) 74%, transparent));
  box-shadow: 0 24px 70px color-mix(in srgb, #052713 9%, transparent);
}

.legal-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.legal-toc p {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.legal-toc a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 950;
}

.legal-toc a:hover,
.legal-toc a.is-active {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--ink);
}

.legal-document {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 44px);
}

.legal-document section {
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 52%, transparent);
}

.legal-document h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 950;
  letter-spacing: 0.02em;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.75;
}

.legal-document p {
  margin: 0;
}

.legal-document p + p,
.legal-document ul + p {
  margin-top: 12px;
}

.legal-document ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-document li::marker {
  color: var(--brand);
}

/* Theme toggle: original icon style, no sliding circle */
.control-cluster .theme-toggle-root::before,
.dashboard-body .control-cluster .theme-toggle-root::before {
  display: none !important;
  content: none !important;
}

.control-cluster .theme-toggle-root .theme-moon,
.control-cluster .theme-toggle-root .theme-sun,
.dashboard-body .control-cluster .theme-toggle-root .theme-moon,
.dashboard-body .control-cluster .theme-toggle-root .theme-sun {
  position: relative;
  z-index: 1;
  display: block;
  width: 15px;
  height: 15px;
  margin: 0;
  font-size: 0 !important;
  line-height: 0;
  background: transparent;
  color: currentColor;
  transition:
    color 220ms ease,
    opacity 220ms ease,
    transform 320ms cubic-bezier(.2, .9, .18, 1.18),
    filter 220ms ease;
}

.control-cluster .theme-toggle-root .theme-moon,
.dashboard-body .control-cluster .theme-toggle-root .theme-moon {
  border: 0 !important;
  border-radius: 50%;
  box-shadow: inset -5px 0 0 currentColor !important;
}

.control-cluster .theme-toggle-root .theme-sun,
.dashboard-body .control-cluster .theme-toggle-root .theme-sun {
  border: 1.6px solid currentColor !important;
  border-radius: 50%;
  box-shadow: none !important;
}

.control-cluster .theme-toggle-root .theme-sun::before,
.control-cluster .theme-toggle-root .theme-sun::after,
.dashboard-body .control-cluster .theme-toggle-root .theme-sun::before,
.dashboard-body .control-cluster .theme-toggle-root .theme-sun::after {
  position: absolute;
  inset: -5px;
  display: block !important;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  content: "" !important;
}

.control-cluster .theme-toggle-root .theme-sun::before,
.dashboard-body .control-cluster .theme-toggle-root .theme-sun::before {
  transform: scale(0.76);
}

.control-cluster .theme-toggle-root .theme-sun::after,
.dashboard-body .control-cluster .theme-toggle-root .theme-sun::after {
  transform: rotate(90deg) scale(0.76);
}

.control-cluster .theme-toggle-root .theme-moon::before,
.control-cluster .theme-toggle-root .theme-moon::after,
.dashboard-body .control-cluster .theme-toggle-root .theme-moon::before,
.dashboard-body .control-cluster .theme-toggle-root .theme-moon::after {
  display: none !important;
  content: none !important;
}

body[data-theme="light"] .control-cluster .theme-toggle-root .theme-moon,
body[data-theme="light"].dashboard-body .control-cluster .theme-toggle-root .theme-moon {
  opacity: 0.48;
  transform: translateX(24px) scale(0.88) rotate(-8deg) !important;
}

body[data-theme="light"] .control-cluster .theme-toggle-root .theme-sun,
body[data-theme="light"].dashboard-body .control-cluster .theme-toggle-root .theme-sun {
  color: var(--brand);
  opacity: 1;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--brand) 34%, transparent));
  transform: translateX(-24px) scale(1.04) rotate(0.001deg) !important;
}

body[data-theme="dark"] .control-cluster .theme-toggle-root .theme-moon,
body[data-theme="dark"].dashboard-body .control-cluster .theme-toggle-root .theme-moon {
  color: var(--brand);
  opacity: 1;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--brand) 34%, transparent));
  transform: translateX(24px) scale(1.04) rotate(0.001deg) !important;
}

body[data-theme="dark"] .control-cluster .theme-toggle-root .theme-sun,
body[data-theme="dark"].dashboard-body .control-cluster .theme-toggle-root .theme-sun {
  opacity: 0.48;
  transform: translateX(-24px) scale(0.88) rotate(8deg) !important;
}

@media (max-width: 900px) {
  .legal-header,
  .legal-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-nav {
    width: 100%;
    border-radius: 8px;
  }

  .legal-nav a {
    justify-content: center;
  }

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

  .legal-toc {
    position: static;
  }
}

@media (max-width: 560px) {
  .legal-shell {
    width: min(100% - 20px, 1220px);
    padding-top: 10px;
  }

  .legal-header {
    position: static;
  }

  .legal-hero {
    margin-top: 18px;
    padding: 24px 18px;
  }

  .legal-document {
    padding: 14px;
  }

  .legal-document section {
    padding: 16px;
  }

  .legal-document p,
  .legal-document li {
    font-size: 15px;
  }
}

/* Legal pages inside the main dashboard shell */
.dashboard-body.legal-page .dashboard-main.legal-shell {
  width: auto;
  max-width: none;
  margin: 0 0 0 350px;
  padding: 122px 42px 72px 0;
}

.dashboard-body.legal-page .legal-header,
.dashboard-body.legal-page .legal-toc {
  display: none;
}

.dashboard-body.legal-page .legal-hero {
  margin: 0 0 22px;
}

.dashboard-body.legal-page .legal-layout {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-body.legal-page .legal-document {
  width: 100%;
}

.dashboard-body.legal-page .legal-document section {
  padding: clamp(18px, 3vw, 34px);
}

@media (max-width: 1320px) {
  .dashboard-body.legal-page .dashboard-main.legal-shell {
    margin-left: 292px;
    padding-right: 24px;
  }
}

@media (max-width: 980px) {
  .dashboard-body.legal-page .dashboard-main.legal-shell {
    margin-left: 0;
    padding: 24px 18px 34px;
  }
}

@media (max-width: 720px) {
  .dashboard-body.legal-page .dashboard-main.legal-shell {
    padding: 16px 10px 28px;
  }

  .dashboard-body.legal-page .legal-hero {
    min-height: 0;
    padding: 24px 18px;
  }
}

.legal-back-home {
  display: inline-flex;
  width: max-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border));
  border-radius: 8px;
  background: var(--brand);
  color: #041109;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--brand) 22%, transparent);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.legal-back-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 52px color-mix(in srgb, var(--brand) 28%, transparent);
}

body[data-theme="dark"].dashboard-body.legal-page {
  background:
    radial-gradient(circle at 38% 18%, rgba(32, 207, 93, 0.1), transparent 24%),
    radial-gradient(circle at 78% 76%, rgba(255, 255, 255, 0.04), transparent 20%),
    linear-gradient(115deg, transparent 0 44%, rgba(32, 207, 93, 0.035) 44% 48%, transparent 48% 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, auto, 48px 48px, 48px 48px, auto;
}

body[data-theme="dark"].dashboard-body.legal-page .legal-hero,
body[data-theme="dark"].dashboard-body.legal-page .legal-document,
body[data-theme="dark"].dashboard-body.legal-page .legal-document section {
  border-color: var(--border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-2) 50%, transparent));
  box-shadow: var(--shadow);
}

body[data-theme="dark"].dashboard-body.legal-page .legal-hero::after {
  border-color: color-mix(in srgb, var(--brand) 12%, transparent);
}

body[data-theme="dark"].dashboard-body.legal-page .legal-back-home {
  color: #070707;
}

@media (max-width: 560px) {
  .legal-back-home {
    width: 100%;
  }
}

/* Final mobile comfort pass: keep the desktop dashboard language, only reflow it. */
@media (max-width: 720px) {
  body.dashboard-body,
  body.store-page-body {
    padding-top: 134px;
    font-size: 16px;
  }

  .dashboard-body .dashboard-topbar,
  .store-page-body .dashboard-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    grid-template-areas:
      "brand menu"
      "actions actions"
      "nav nav";
    gap: 9px;
    width: 100%;
    min-height: 0;
    padding: 10px;
    border-width: 0 0 1px;
    border-radius: 0 0 12px 12px;
    background:
      radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 38%),
      linear-gradient(180deg, color-mix(in srgb, var(--surface) 95%, transparent), color-mix(in srgb, var(--bg) 91%, transparent));
    box-shadow:
      0 18px 46px color-mix(in srgb, #052113 13%, transparent),
      inset 0 -1px 0 color-mix(in srgb, var(--brand) 10%, transparent);
    backdrop-filter: blur(18px);
  }

  body[data-theme="dark"].dashboard-body .dashboard-topbar,
  body[data-theme="dark"].store-page-body .dashboard-topbar {
    background:
      radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 38%),
      linear-gradient(180deg, color-mix(in srgb, #11100d 96%, transparent), color-mix(in srgb, #080807 94%, transparent));
    box-shadow:
      0 18px 46px color-mix(in srgb, #000 55%, transparent),
      inset 0 -1px 0 color-mix(in srgb, var(--brand) 18%, transparent);
  }

  .dashboard-topbar .brand,
  .store-page-body .dashboard-topbar .brand {
    grid-area: brand;
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 6px 8px;
    justify-content: flex-start;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
  }

  .dashboard-topbar .brand img,
  .store-page-body .dashboard-topbar .brand img {
    width: 34px;
    height: 34px;
  }

  .dashboard-topbar .brand span,
  .store-page-body .dashboard-topbar .brand span {
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-toggle {
    grid-area: menu;
    display: inline-flex;
    width: 46px;
    height: 46px;
    margin: 0;
  }

  .dashboard-topbar .header-actions,
  .store-page-body .dashboard-topbar .header-actions {
    grid-area: actions;
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(116px, 1fr) auto minmax(94px, auto);
    gap: 8px;
    margin: 0;
    align-items: center;
  }

  .top-balance {
    width: 100%;
    max-width: none;
    height: 42px;
    justify-content: center;
    padding: 0 10px;
    gap: 6px;
    letter-spacing: 0.12em;
  }

  .top-balance span {
    display: inline;
  }

  .top-balance strong {
    white-space: nowrap;
  }

  .control-cluster,
  .dashboard-body .control-cluster {
    min-height: 42px;
    padding: 4px;
  }

  .control-cluster .sound-toggle,
  .dashboard-body .control-cluster .sound-toggle {
    width: 31px;
    min-width: 31px;
    height: 32px;
  }

  .control-cluster .theme-toggle-root,
  .dashboard-body .control-cluster .theme-toggle-root {
    width: 58px;
    min-width: 58px;
    height: 32px;
    min-height: 32px;
  }

  .discord-login,
  .dashboard-topbar .discord-login,
  .store-page-body .dashboard-topbar .discord-login {
    width: 100%;
    min-width: 94px;
    max-width: none;
    height: 42px;
    min-height: 42px;
    padding: 0 10px;
    flex-basis: auto;
    font-size: 12px;
  }

  .dashboard-topbar .nav-links,
  .store-page-body .dashboard-topbar .nav-links {
    grid-area: nav;
    display: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
      radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 44%),
      color-mix(in srgb, var(--surface) 94%, transparent);
  }

  .dashboard-topbar.is-menu-open .nav-links,
  .store-page-body .dashboard-topbar.is-menu-open .nav-links {
    display: grid;
    animation: mobileMenuDrop 180ms ease both;
  }

  .dashboard-topbar .nav-links a,
  .store-page-body .dashboard-topbar .nav-links a {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    justify-content: center;
    font-size: 12px;
  }

  .dashboard-sidebar {
    width: auto;
    margin: 14px 10px 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .dashboard-sidebar .sidebar-brand,
  .dashboard-sidebar .sidebar-nav {
    display: none;
  }

  .sidebar-user,
  .sidebar-balance {
    min-height: 132px;
    padding: 16px;
  }

  .sidebar-user {
    grid-template-columns: 62px 1fr;
    gap: 12px;
  }

  .sidebar-avatar,
  .sidebar-user img {
    width: 62px;
    height: 62px;
  }

  .sidebar-user h2 {
    font-size: 18px;
  }

  .sidebar-user p,
  .sidebar-balance p {
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  .sidebar-balance b {
    font-size: 18px;
  }

  .dashboard-main,
  .giveaways-dashboard,
  .store-dashboard,
  .dashboard-body.legal-page .dashboard-main.legal-shell {
    margin-left: 0;
    padding: 10px 10px 30px;
    gap: 18px;
  }

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

  .summary-card {
    min-height: 146px;
    padding: 16px;
    gap: 12px;
  }

  .summary-card p {
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .summary-card small {
    font-size: 10px;
  }

  .summary-card strong {
    font-size: 34px;
  }

  .dashboard-welcome,
  .giveaways-dashboard .dashboard-welcome,
  .store-hero,
  .leaderboard-hero {
    min-height: 420px;
    padding: 28px 22px;
  }

  .dashboard-welcome > img:not(.v2-orbit-logo) {
    right: -48px;
    bottom: -28px;
    width: 285px;
    height: 285px;
    opacity: 0.13;
  }

  .v2-orbit-logo {
    right: -82px;
    width: 360px;
    max-width: 95%;
    opacity: 0.08;
  }

  .live-pill {
    max-width: 100%;
    font-size: 10px;
  }

  .dashboard-welcome h1,
  .giveaways-dashboard .dashboard-welcome h1,
  .leaderboard-hero h1,
  .store-hero h1,
  .store-section-head h2,
  .custom-deal h2 {
    font-size: clamp(42px, 13vw, 56px);
    line-height: 0.94;
  }

  .dashboard-welcome .hero-copy,
  .giveaways-dashboard .dashboard-welcome p:not(.live-pill),
  .store-info-strip p,
  .custom-deal p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions,
  .welcome-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }

  .hero-actions a,
  .welcome-actions a,
  .primary-button,
  .secondary-button {
    width: auto;
    min-height: 46px;
    padding-inline: 12px;
  }

  .profile-workspace,
  .dashboard-body .profile-workspace {
    padding: 14px;
  }

  .searchbar,
  .panel-searchbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px;
  }

  .searchbar button,
  .panel-searchbar button {
    width: auto;
    min-width: 96px;
    min-height: 46px;
  }

  .profile-layout,
  .dashboard-body .profile-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .member-panel,
  .dashboard-body .member-panel,
  .side-ledger > div,
  .dashboard-body .side-ledger > div {
    padding: 18px;
  }

  .dashboard-body .member-panel {
    width: 100%;
    min-width: 0;
    min-height: 0;
  }

  .side-ledger,
  .dashboard-body .side-ledger {
    width: 100%;
    min-width: 0;
  }

  .meta-grid,
  .dashboard-body .meta-grid,
  .stat-strip,
  .dashboard-body .stat-strip,
  .panel-member-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-ledger,
  .dashboard-body .side-ledger {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  body.dashboard-body,
  body.store-page-body {
    padding-top: 136px;
  }

  .dashboard-body .dashboard-topbar,
  .store-page-body .dashboard-topbar {
    padding: 9px 8px;
    gap: 8px;
  }

  .dashboard-topbar .brand span,
  .store-page-body .dashboard-topbar .brand span {
    font-size: 16px;
  }

  .dashboard-topbar .header-actions,
  .store-page-body .dashboard-topbar .header-actions {
    grid-template-columns: minmax(98px, 1fr) auto minmax(78px, auto);
    gap: 6px;
  }

  .top-balance span {
    display: none;
  }

  .discord-login,
  .dashboard-topbar .discord-login,
  .store-page-body .dashboard-topbar .discord-login {
    min-width: 78px;
    font-size: 11px;
  }

  .sidebar-user,
  .sidebar-balance {
    min-height: 104px;
  }

  .summary-card {
    min-height: 132px;
  }

  .summary-card strong {
    font-size: 36px;
  }

  .meta-grid,
  .dashboard-body .meta-grid,
  .stat-strip,
  .dashboard-body .stat-strip,
  .panel-member-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .dashboard-sidebar,
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}

/* Desktop-like mobile viewport polish */
.panel-intro-card {
  width: min(720px, calc(100vw - 28px));
}

.panel-intro-card h1 {
  font-size: clamp(34px, 4.8vw, 58px);
  letter-spacing: 0.02em;
  overflow-wrap: normal;
  word-break: keep-all;
}

/* Phone desktop mode: keep the PC layout feel, but replace the left rail with one fixed top bar. */
html.desktop-mobile-viewport body.dashboard-body,
html.desktop-mobile-viewport body.store-page-body {
  padding-top: 0;
}

html.desktop-mobile-viewport .dashboard-sidebar {
  display: none !important;
}

html.desktop-mobile-viewport .dashboard-body .dashboard-topbar,
html.desktop-mobile-viewport .store-page-body .dashboard-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  display: grid;
  grid-template-areas:
    "brand actions"
    "nav nav";
  grid-template-columns: minmax(220px, 1fr) minmax(0, auto);
  gap: 8px 18px;
  min-height: 116px;
  padding: 10px 22px 12px;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0 0 12px 12px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow:
    0 18px 44px color-mix(in srgb, #0a2a17 14%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

html.desktop-mobile-viewport body[data-theme="dark"].dashboard-body .dashboard-topbar,
html.desktop-mobile-viewport body[data-theme="dark"].store-page-body .dashboard-topbar {
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 34%),
    color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow:
    0 18px 44px color-mix(in srgb, #000 58%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--gold) 16%, transparent);
}

html.desktop-mobile-viewport .dashboard-topbar .brand,
html.desktop-mobile-viewport .store-page-body .dashboard-topbar .brand {
  grid-area: brand;
  align-self: center;
  flex: 1 1 0;
  min-width: 210px;
  pointer-events: none;
  cursor: default;
}

html.desktop-mobile-viewport .dashboard-topbar .nav-links,
html.desktop-mobile-viewport .store-page-body .dashboard-topbar .nav-links {
  grid-area: nav;
  position: static;
  display: flex;
  justify-self: center;
  transform: none;
}

html.desktop-mobile-viewport .dashboard-topbar .nav-links a,
html.desktop-mobile-viewport .store-page-body .dashboard-topbar .nav-links a {
  min-height: 44px;
  padding: 12px 24px;
  font-size: 13px;
  letter-spacing: 0.14em;
}

html.desktop-mobile-viewport .dashboard-topbar .header-actions,
html.desktop-mobile-viewport .store-page-body .dashboard-topbar .header-actions {
  grid-area: actions;
  align-self: center;
  flex: 1 1 0;
  display: flex;
  justify-content: flex-end;
}

html.desktop-mobile-viewport .dashboard-main,
html.desktop-mobile-viewport .giveaways-dashboard,
html.desktop-mobile-viewport .store-dashboard,
html.desktop-mobile-viewport .dashboard-body.legal-page .dashboard-main.legal-shell {
  margin-left: 0;
  padding: 144px 26px 42px;
}

html.desktop-mobile-viewport .store-dashboard #ranks .rank-grid-top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html.desktop-mobile-viewport .store-dashboard #ranks .rank-grid-featured {
  grid-template-columns: minmax(0, 1fr);
}

html.desktop-mobile-viewport .store-dashboard #ranks .rank-card-premium {
  padding: 18px 20px;
}

html.desktop-mobile-viewport .store-dashboard #ranks .premium-shell {
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 12px;
}

html.desktop-mobile-viewport .store-dashboard #ranks .premium-benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 12px;
}

html.desktop-mobile-viewport .store-dashboard #ranks .premium-plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html.desktop-mobile-viewport .store-dashboard #ads .ad-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html.desktop-mobile-viewport .dashboard-body.legal-page .dashboard-main.legal-shell {
  max-width: none;
}

/* Credits page */
.credits-dashboard {
  gap: 30px;
}

.credits-hero,
.credits-owner-card,
.credit-member-card,
.credits-thanks-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--surface-2) 72%, transparent));
  box-shadow: var(--shadow);
}

.credits-hero {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 280px;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(34px, 5vw, 66px);
  isolation: isolate;
}

.credits-hero::before,
.credits-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.credits-hero::before {
  right: -120px;
  bottom: -170px;
  width: 430px;
  height: 430px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--brand) 12%, transparent), transparent 62%);
  animation: storeHaloSpin 10s linear infinite;
}

.credits-hero::after {
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 48%, color-mix(in srgb, var(--brand) 6%, transparent) 48% 52%, transparent 52% 100%);
}

.credits-hero h1 {
  max-width: 780px;
  margin: 10px 0 0;
  font-size: clamp(62px, 10vw, 132px);
  font-style: italic;
  font-weight: 950;
  line-height: 0.84;
  text-transform: uppercase;
}

.credits-hero .hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.55;
}

.credits-owner-card {
  padding: clamp(16px, 3vw, 26px);
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.credits-thanks-section {
  display: grid;
  gap: 24px;
  padding: clamp(20px, 3vw, 30px);
}

.credits-thanks-section .section-heading {
  align-items: end;
  grid-template-columns: minmax(0, 1fr);
}

.credits-thanks-section .section-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.6;
}

.credit-member-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  animation: panelIn 520ms ease both;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.credit-member-card:hover {
  border-color: color-mix(in srgb, var(--brand) 34%, var(--border));
  box-shadow:
    var(--shadow),
    0 22px 54px color-mix(in srgb, var(--brand) 13%, transparent);
  transform: translateY(-3px);
}

.credit-member-card.is-owner {
  min-height: 390px;
}

.credit-banner {
  min-height: 138px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  background:
    radial-gradient(circle at 24% 20%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 38%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 70%, transparent), color-mix(in srgb, var(--brand) 8%, transparent));
  background-position: center;
  background-size: cover;
}

.credit-member-card.is-owner .credit-banner {
  min-height: 190px;
}

.credit-avatar-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  margin: -54px 0 0 24px;
}

.credit-member-card.is-owner .credit-avatar-wrap {
  width: 132px;
  height: 132px;
  margin-top: -66px;
}

.credit-avatar,
.credit-avatar-decoration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.credit-avatar {
  border: 5px solid color-mix(in srgb, var(--surface) 96%, transparent);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 40px color-mix(in srgb, #000 18%, transparent);
}

.credit-avatar-decoration {
  z-index: 2;
  pointer-events: none;
  transform: scale(1.22);
  object-fit: contain;
}

.credit-card-body {
  display: grid;
  gap: 8px;
  padding: 18px 24px 24px;
}

.credit-role {
  width: max-content;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.credit-card-body h3 {
  margin: 4px 0 0;
  max-width: 100%;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 950;
  letter-spacing: 0.01em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.credit-member-card.is-owner .credit-card-body h3 {
  font-size: clamp(28px, 3vw, 40px);
}

.credit-tag {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.credit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.credit-meta span {
  min-height: 30px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 62%, transparent);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.credits-loading {
  margin: 0;
  padding: 28px;
  border: 1px dashed color-mix(in srgb, var(--brand) 30%, var(--border));
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
}

.credits-union-link {
  justify-self: center;
  width: max-content;
  margin: 10px auto 4px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.credits-union-link:hover {
  color: var(--brand);
  transform: translateY(-2px);
}

body[data-theme="dark"] .credits-hero,
body[data-theme="dark"] .credits-owner-card,
body[data-theme="dark"] .credit-member-card,
body[data-theme="dark"] .credits-thanks-section {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 95%, transparent), color-mix(in srgb, var(--surface-2) 62%, transparent));
}

@media (max-width: 900px) {
  .credits-hero {
    align-items: start;
    flex-direction: column;
  }
}

/* Final sound toggle redesign */
.control-cluster .sound-toggle,
.dashboard-body .control-cluster .sound-toggle {
  position: relative;
  width: 32px;
  min-width: 32px;
  height: 28px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: color-mix(in srgb, var(--ink) 74%, var(--muted));
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

body[data-theme="dark"] .control-cluster .sound-toggle,
body[data-theme="dark"].dashboard-body .control-cluster .sound-toggle {
  color: color-mix(in srgb, var(--gold) 56%, var(--ink));
}

.control-cluster .sound-toggle:hover,
.dashboard-body .control-cluster .sound-toggle:hover {
  transform: translateY(-1px) scale(1.03);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

body[data-theme="dark"] .control-cluster .sound-toggle:hover,
body[data-theme="dark"].dashboard-body .control-cluster .sound-toggle:hover {
  background: color-mix(in srgb, var(--gold) 10%, transparent);
}

.control-cluster .sound-toggle.is-active,
.dashboard-body .control-cluster .sound-toggle.is-active {
  color: color-mix(in srgb, var(--brand) 88%, var(--ink));
}

body[data-theme="dark"] .control-cluster .sound-toggle.is-active,
body[data-theme="dark"].dashboard-body .control-cluster .sound-toggle.is-active {
  color: color-mix(in srgb, var(--gold) 30%, var(--brand));
}

.control-cluster .sound-toggle .sound-icon,
.dashboard-body .control-cluster .sound-toggle .sound-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  margin: 0;
  background: currentColor;
  border: 0;
  clip-path: polygon(0 35%, 25% 35%, 58% 10%, 58% 90%, 25% 65%, 0 65%);
  color: inherit;
  opacity: 1;
  transform: translateX(-1px);
}

.control-cluster .sound-toggle .sound-icon::before,
.control-cluster .sound-toggle .sound-icon::after,
.dashboard-body .control-cluster .sound-toggle .sound-icon::before,
.dashboard-body .control-cluster .sound-toggle .sound-icon::after {
  position: absolute;
  top: 50%;
  left: 8px;
  border: 2.4px solid currentColor;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 999px;
  content: "";
  transform: translateY(-50%) rotate(45deg);
  transform-origin: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.control-cluster .sound-toggle .sound-icon::before,
.dashboard-body .control-cluster .sound-toggle .sound-icon::before {
  width: 9px;
  height: 9px;
  opacity: 0.88;
}

.control-cluster .sound-toggle .sound-icon::after,
.dashboard-body .control-cluster .sound-toggle .sound-icon::after {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.control-cluster .sound-toggle.is-muted,
.dashboard-body .control-cluster .sound-toggle.is-muted {
  color: color-mix(in srgb, var(--ink) 34%, var(--muted));
}

.control-cluster .sound-toggle.is-muted .sound-icon::before,
.control-cluster .sound-toggle.is-muted .sound-icon::after,
.dashboard-body .control-cluster .sound-toggle.is-muted .sound-icon::before,
.dashboard-body .control-cluster .sound-toggle.is-muted .sound-icon::after {
  opacity: 0;
}

.control-cluster .sound-toggle.is-muted::after,
.dashboard-body .control-cluster .sound-toggle.is-muted::after {
  position: absolute;
  top: 13px;
  left: 7px;
  z-index: 2;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  opacity: 0.92;
  transform: rotate(-42deg);
}

/* Website v2 control panel parity */
.control-cluster.nav-control-panel,
.dashboard-body .control-cluster.nav-control-panel {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: auto;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  padding: 2px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow:
    0 10px 30px color-mix(in srgb, var(--brand) 8%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--ink) 5%, transparent);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition:
    border-color 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease;
}

body[data-theme="dark"] .control-cluster.nav-control-panel,
body[data-theme="dark"].dashboard-body .control-cluster.nav-control-panel {
  border-color: color-mix(in srgb, var(--gold) 20%, transparent);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 color-mix(in srgb, var(--gold) 8%, transparent);
}

.nav-control-divider {
  width: 1px;
  height: 20px;
  margin: 0 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 82%, transparent);
  flex: 0 0 auto;
}

body[data-theme="dark"] .nav-control-divider {
  background: color-mix(in srgb, var(--gold) 18%, transparent);
}

.nav-control-panel .sound-toggle-root,
.dashboard-body .nav-control-panel .sound-toggle-root {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: color-mix(in srgb, var(--ink) 72%, var(--muted));
  overflow: hidden;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.nav-control-panel .sound-toggle-root::before,
.nav-control-panel .sound-toggle-root::after,
.dashboard-body .nav-control-panel .sound-toggle-root::before,
.dashboard-body .nav-control-panel .sound-toggle-root::after {
  display: none !important;
  content: none !important;
}

.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root.is-muted::after,
.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root.sound-off::after,
.dashboard-body .control-cluster.nav-control-panel .sound-toggle.sound-toggle-root.is-muted::after,
.dashboard-body .control-cluster.nav-control-panel .sound-toggle.sound-toggle-root.sound-off::after {
  display: none !important;
  content: none !important;
}

.nav-control-panel .sound-toggle-root:hover,
.dashboard-body .nav-control-panel .sound-toggle-root:hover {
  background: color-mix(in srgb, var(--ink) 5.5%, transparent);
  color: var(--ink);
  transform: translateY(-1px);
}

body[data-theme="dark"] .nav-control-panel .sound-toggle-root,
body[data-theme="dark"].dashboard-body .nav-control-panel .sound-toggle-root {
  color: color-mix(in srgb, var(--gold) 58%, var(--ink));
}

body[data-theme="dark"] .nav-control-panel .sound-toggle-root:hover,
body[data-theme="dark"].dashboard-body .nav-control-panel .sound-toggle-root:hover {
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  color: var(--gold);
}

.nav-control-panel .sound-toggle-root.is-active,
.nav-control-panel .sound-toggle-root.sound-on,
.dashboard-body .nav-control-panel .sound-toggle-root.is-active,
.dashboard-body .nav-control-panel .sound-toggle-root.sound-on {
  color: var(--brand);
}

body[data-theme="dark"] .nav-control-panel .sound-toggle-root.is-active,
body[data-theme="dark"] .nav-control-panel .sound-toggle-root.sound-on,
body[data-theme="dark"].dashboard-body .nav-control-panel .sound-toggle-root.is-active,
body[data-theme="dark"].dashboard-body .nav-control-panel .sound-toggle-root.sound-on {
  color: var(--gold);
}

.nav-control-panel .sound-toggle-root .sound-icon,
.dashboard-body .nav-control-panel .sound-toggle-root .sound-icon {
  grid-area: 1 / 1;
  display: block;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 0 !important;
  background: none !important;
  clip-path: none !important;
  color: inherit;
  opacity: 1;
  overflow: visible;
  transform: translateZ(0);
}

.nav-control-panel .sound-toggle-root .sound-icon::before,
.nav-control-panel .sound-toggle-root .sound-icon::after,
.dashboard-body .nav-control-panel .sound-toggle-root .sound-icon::before,
.dashboard-body .nav-control-panel .sound-toggle-root .sound-icon::after {
  display: none !important;
  content: none !important;
}

.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root .sound-icon::before,
.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root .sound-icon::after,
.dashboard-body .control-cluster.nav-control-panel .sound-toggle.sound-toggle-root .sound-icon::before,
.dashboard-body .control-cluster.nav-control-panel .sound-toggle.sound-toggle-root .sound-icon::after {
  display: none !important;
  content: none !important;
}

.nav-control-panel .sound-toggle-root .sound-icon polygon,
.nav-control-panel .sound-toggle-root .sound-icon path,
.dashboard-body .nav-control-panel .sound-toggle-root .sound-icon polygon,
.dashboard-body .nav-control-panel .sound-toggle-root .sound-icon path {
  stroke: currentColor;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-control-panel .sound-toggle-root.is-muted,
.nav-control-panel .sound-toggle-root.sound-off,
.dashboard-body .nav-control-panel .sound-toggle-root.is-muted,
.dashboard-body .nav-control-panel .sound-toggle-root.sound-off {
  color: color-mix(in srgb, var(--ink) 45%, var(--muted));
}

.nav-control-panel .sound-toggle-root.is-muted .sound-icon path,
.nav-control-panel .sound-toggle-root.sound-off .sound-icon path,
.dashboard-body .nav-control-panel .sound-toggle-root.is-muted .sound-icon path,
.dashboard-body .nav-control-panel .sound-toggle-root.sound-off .sound-icon path {
  opacity: 0;
  transform: translateX(-2px);
}

.nav-control-panel .sound-toggle-root .sound-slash,
.dashboard-body .nav-control-panel .sound-toggle-root .sound-slash {
  position: absolute;
  grid-area: 1 / 1;
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: rotate(-38deg) scaleX(0);
  transform-origin: center;
  transition:
    opacity 120ms ease,
    transform 180ms ease;
}

.nav-control-panel .sound-toggle-root.is-muted .sound-slash,
.nav-control-panel .sound-toggle-root.sound-off .sound-slash,
.dashboard-body .nav-control-panel .sound-toggle-root.is-muted .sound-slash,
.dashboard-body .nav-control-panel .sound-toggle-root.sound-off .sound-slash {
  opacity: 1;
  transform: rotate(-38deg) scaleX(1);
}

.nav-control-panel .theme-toggle-root,
.dashboard-body .nav-control-panel .theme-toggle-root {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 58px;
  min-width: 58px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  color: color-mix(in srgb, var(--ink) 68%, var(--muted));
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-control-panel .theme-toggle-root::before,
.dashboard-body .nav-control-panel .theme-toggle-root::before {
  display: none !important;
  content: none !important;
}

.nav-control-panel .theme-toggle-root:hover,
.dashboard-body .nav-control-panel .theme-toggle-root:hover {
  background: color-mix(in srgb, var(--ink) 5.5%, transparent);
  color: var(--ink);
  transform: translateY(-1px);
}

body[data-theme="dark"] .nav-control-panel .theme-toggle-root,
body[data-theme="dark"].dashboard-body .nav-control-panel .theme-toggle-root {
  color: color-mix(in srgb, var(--gold) 58%, var(--ink));
}

body[data-theme="dark"] .nav-control-panel .theme-toggle-root:hover,
body[data-theme="dark"].dashboard-body .nav-control-panel .theme-toggle-root:hover {
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  color: var(--gold);
}

.nav-control-panel .theme-toggle-track,
.dashboard-body .nav-control-panel .theme-toggle-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.nav-control-panel .theme-toggle-thumb,
.dashboard-body .nav-control-panel .theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 76%, var(--surface));
  box-shadow:
    0 4px 12px color-mix(in srgb, var(--ink) 8%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent);
  pointer-events: none;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

body[data-theme="light"] .nav-control-panel .theme-toggle-thumb,
body[data-theme="light"].dashboard-body .nav-control-panel .theme-toggle-thumb {
  transform: translateX(30px);
}

body[data-theme="dark"] .nav-control-panel .theme-toggle-thumb,
body[data-theme="dark"].dashboard-body .nav-control-panel .theme-toggle-thumb {
  border-color: color-mix(in srgb, var(--gold) 18%, transparent);
  background: color-mix(in srgb, #222425 82%, var(--surface));
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 color-mix(in srgb, var(--gold) 7%, transparent);
  transform: translateX(0);
}

.nav-control-panel .theme-toggle-root .theme-moon,
.nav-control-panel .theme-toggle-root .theme-sun,
.dashboard-body .nav-control-panel .theme-toggle-root .theme-moon,
.dashboard-body .nav-control-panel .theme-toggle-root .theme-sun {
  grid-area: 1 / 1;
  display: block;
  width: 14px;
  height: 14px;
  margin: 0;
  opacity: 0.62;
  transform: scale(0.92);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-control-panel .theme-toggle-root .theme-moon,
.dashboard-body .nav-control-panel .theme-toggle-root .theme-moon {
  border-radius: 50%;
  background: transparent;
  box-shadow: inset -4px 0 0 currentColor;
}

.nav-control-panel .theme-toggle-root .theme-moon::before,
.nav-control-panel .theme-toggle-root .theme-moon::after,
.dashboard-body .nav-control-panel .theme-toggle-root .theme-moon::before,
.dashboard-body .nav-control-panel .theme-toggle-root .theme-moon::after {
  display: none !important;
  content: none !important;
}

.nav-control-panel .theme-toggle-root .theme-sun,
.dashboard-body .nav-control-panel .theme-toggle-root .theme-sun {
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 15%, transparent);
}

.nav-control-panel .theme-toggle-root .theme-sun::before,
.nav-control-panel .theme-toggle-root .theme-sun::after,
.dashboard-body .nav-control-panel .theme-toggle-root .theme-sun::before,
.dashboard-body .nav-control-panel .theme-toggle-root .theme-sun::after {
  position: absolute;
  inset: -4px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  border-radius: 0;
  background: transparent !important;
  content: "";
  opacity: 0.72;
}

.nav-control-panel .theme-toggle-root .theme-sun::after,
.dashboard-body .nav-control-panel .theme-toggle-root .theme-sun::after {
  transform: rotate(90deg);
}

body[data-theme="dark"] .nav-control-panel .theme-toggle-thumb .theme-moon,
body[data-theme="dark"].dashboard-body .nav-control-panel .theme-toggle-thumb .theme-moon,
body[data-theme="light"] .nav-control-panel .theme-toggle-thumb .theme-sun,
body[data-theme="light"].dashboard-body .nav-control-panel .theme-toggle-thumb .theme-sun {
  opacity: 1;
  transform: scale(1);
}

body[data-theme="dark"] .nav-control-panel .theme-toggle-thumb .theme-sun,
body[data-theme="dark"].dashboard-body .nav-control-panel .theme-toggle-thumb .theme-sun,
body[data-theme="light"] .nav-control-panel .theme-toggle-thumb .theme-moon,
body[data-theme="light"].dashboard-body .nav-control-panel .theme-toggle-thumb .theme-moon {
  opacity: 0;
  transform: scale(0.72);
}

body[data-theme="dark"] .nav-control-panel .theme-toggle-track .theme-moon,
body[data-theme="dark"].dashboard-body .nav-control-panel .theme-toggle-track .theme-moon,
body[data-theme="light"] .nav-control-panel .theme-toggle-track .theme-sun,
body[data-theme="light"].dashboard-body .nav-control-panel .theme-toggle-track .theme-sun {
  opacity: 0;
  transform: scale(0.72);
}

body[data-theme="dark"] .nav-control-panel .theme-toggle-track .theme-sun,
body[data-theme="dark"].dashboard-body .nav-control-panel .theme-toggle-track .theme-sun,
body[data-theme="light"] .nav-control-panel .theme-toggle-track .theme-moon,
body[data-theme="light"].dashboard-body .nav-control-panel .theme-toggle-track .theme-moon {
  opacity: 0.58;
  transform: scale(0.9);
}

body.theme-swapping .nav-control-panel .theme-toggle-thumb,
body.theme-swapping.dashboard-body .nav-control-panel .theme-toggle-thumb {
  transition-duration: 260ms;
}

/* Hard reset for the Website v2-style compact controls. This keeps old toggle generations from drawing extra circles/slashes. */
.control-cluster.nav-control-panel {
  --control-icon: color-mix(in srgb, var(--ink) 66%, var(--muted));
  --control-icon-active: var(--brand);
}

body[data-theme="dark"] .control-cluster.nav-control-panel {
  --control-icon: color-mix(in srgb, var(--gold) 50%, var(--ink));
  --control-icon-active: var(--gold);
}

.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root::before,
.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root::after,
.dashboard-body .control-cluster.nav-control-panel .sound-toggle.sound-toggle-root::before,
.dashboard-body .control-cluster.nav-control-panel .sound-toggle.sound-toggle-root::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  content: none !important;
  opacity: 0 !important;
}

.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root {
  color: var(--control-icon-active) !important;
}

.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root.is-muted {
  color: var(--control-icon) !important;
}

.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root .sound-icon {
  position: static !important;
  width: 16px !important;
  height: 16px !important;
  background: transparent !important;
  border: 0 !important;
  clip-path: none !important;
  transform: none !important;
}

.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root .sound-icon::before,
.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root .sound-icon::after {
  display: none !important;
  content: none !important;
}

.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root .sound-slash {
  left: 50% !important;
  top: 50% !important;
  display: block !important;
  width: 17px !important;
  height: 1.6px !important;
  margin: 0 !important;
  background: currentColor !important;
  border-radius: 999px !important;
  opacity: 0 !important;
  transform: translate(-50%, -50%) rotate(-42deg) scaleX(0) !important;
  transform-origin: center !important;
}

.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root.is-muted .sound-slash {
  opacity: 1 !important;
  transform: translate(-50%, -50%) rotate(-42deg) scaleX(1) !important;
}

.control-cluster.nav-control-panel .theme-toggle-root,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-root {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  place-items: center !important;
  width: 58px !important;
  min-width: 58px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.control-cluster.nav-control-panel .theme-toggle-root::before,
.control-cluster.nav-control-panel .theme-toggle-root::after,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-root::before,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-root::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  content: none !important;
  opacity: 0 !important;
}

.control-cluster.nav-control-panel .theme-toggle-thumb,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-thumb {
  display: none !important;
}

.control-cluster.nav-control-panel .theme-toggle-track,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  align-items: center !important;
  justify-items: center !important;
  width: 58px !important;
  height: 28px !important;
  pointer-events: none !important;
}

.control-cluster.nav-control-panel .theme-toggle-track .theme-moon,
.control-cluster.nav-control-panel .theme-toggle-track .theme-sun,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-moon,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-sun {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--control-icon) !important;
  filter: none !important;
  opacity: 0.72 !important;
  transform: none !important;
}

.control-cluster.nav-control-panel .theme-toggle-track .theme-moon {
  border-radius: 50% !important;
  box-shadow: inset -4px 0 0 currentColor !important;
}

.control-cluster.nav-control-panel .theme-toggle-track .theme-moon::before,
.control-cluster.nav-control-panel .theme-toggle-track .theme-moon::after,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-moon::before,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-moon::after {
  display: none !important;
  content: none !important;
}

.control-cluster.nav-control-panel .theme-toggle-track .theme-sun,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-sun {
  width: 12px !important;
  height: 12px !important;
  border: 1.6px solid currentColor !important;
  border-radius: 50% !important;
}

.control-cluster.nav-control-panel .theme-toggle-track .theme-sun::before,
.control-cluster.nav-control-panel .theme-toggle-track .theme-sun::after,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-sun::before,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-sun::after {
  position: absolute !important;
  inset: -5px !important;
  display: block !important;
  border-top: 1.4px solid currentColor !important;
  border-bottom: 1.4px solid currentColor !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  content: "" !important;
  opacity: 0.72 !important;
}

.control-cluster.nav-control-panel .theme-toggle-track .theme-sun::after,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-sun::after {
  transform: rotate(90deg) !important;
}

body[data-theme="light"] .control-cluster.nav-control-panel .theme-toggle-track .theme-sun,
body[data-theme="dark"] .control-cluster.nav-control-panel .theme-toggle-track .theme-moon {
  color: var(--control-icon-active) !important;
  opacity: 1 !important;
}

/* Restore the single Website v2 active theme circle, without bringing back the duplicate old thumb. */
.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root .sound-slash,
.dashboard-body .control-cluster.nav-control-panel .sound-toggle.sound-toggle-root .sound-slash {
  left: 15px !important;
  top: 14px !important;
  width: 16px !important;
  height: 1.45px !important;
  transform: translate(-50%, -50%) rotate(-38deg) scaleX(0) !important;
}

.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root.is-muted .sound-slash,
.dashboard-body .control-cluster.nav-control-panel .sound-toggle.sound-toggle-root.is-muted .sound-slash {
  transform: translate(-50%, -50%) rotate(-38deg) scaleX(1) !important;
}

.control-cluster.nav-control-panel .theme-toggle-thumb,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-thumb {
  position: absolute !important;
  top: 2px !important;
  left: 2px !important;
  z-index: 3 !important;
  display: grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--surface-2) 72%, var(--surface)) !important;
  box-shadow:
    0 4px 14px color-mix(in srgb, var(--ink) 9%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent) !important;
  pointer-events: none !important;
  opacity: 1 !important;
  transform: translateX(0) !important;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease !important;
}

body[data-theme="light"] .control-cluster.nav-control-panel .theme-toggle-thumb,
body[data-theme="light"].dashboard-body .control-cluster.nav-control-panel .theme-toggle-thumb {
  transform: translateX(30px) !important;
}

body[data-theme="dark"] .control-cluster.nav-control-panel .theme-toggle-thumb,
body[data-theme="dark"].dashboard-body .control-cluster.nav-control-panel .theme-toggle-thumb {
  border-color: color-mix(in srgb, var(--gold) 20%, transparent) !important;
  background: color-mix(in srgb, #242524 84%, var(--surface)) !important;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 color-mix(in srgb, var(--gold) 8%, transparent) !important;
}

.control-cluster.nav-control-panel .theme-toggle-thumb .theme-moon,
.control-cluster.nav-control-panel .theme-toggle-thumb .theme-sun,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-thumb .theme-moon,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-thumb .theme-sun {
  position: relative !important;
  inset: auto !important;
  grid-area: 1 / 1 !important;
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  color: var(--control-icon-active) !important;
  filter: none !important;
  opacity: 0 !important;
  transform: scale(0.72) !important;
}

body[data-theme="dark"] .control-cluster.nav-control-panel .theme-toggle-thumb .theme-moon,
body[data-theme="dark"].dashboard-body .control-cluster.nav-control-panel .theme-toggle-thumb .theme-moon,
body[data-theme="light"] .control-cluster.nav-control-panel .theme-toggle-thumb .theme-sun,
body[data-theme="light"].dashboard-body .control-cluster.nav-control-panel .theme-toggle-thumb .theme-sun {
  opacity: 1 !important;
  transform: scale(1) !important;
}

body[data-theme="dark"] .control-cluster.nav-control-panel .theme-toggle-track .theme-moon,
body[data-theme="dark"].dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-moon,
body[data-theme="light"] .control-cluster.nav-control-panel .theme-toggle-track .theme-sun,
body[data-theme="light"].dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-sun {
  opacity: 0 !important;
  transform: scale(0.72) !important;
}

body[data-theme="light"] .control-cluster.nav-control-panel .theme-toggle-track .theme-moon,
body[data-theme="light"].dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-moon,
body[data-theme="dark"] .control-cluster.nav-control-panel .theme-toggle-track .theme-sun,
body[data-theme="dark"].dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-sun {
  color: var(--control-icon) !important;
  opacity: 0.7 !important;
  transform: scale(0.9) !important;
}

/* Final control shape: two fixed theme icons, active one highlighted. */
.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root,
.dashboard-body .control-cluster.nav-control-panel .sound-toggle.sound-toggle-root {
  display: grid !important;
  place-items: center !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 28px !important;
  min-height: 28px !important;
  overflow: hidden !important;
}

.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root .sound-icon,
.dashboard-body .control-cluster.nav-control-panel .sound-toggle.sound-toggle-root .sound-icon {
  grid-area: 1 / 1 !important;
  width: 17px !important;
  height: 17px !important;
  transform: none !important;
}

.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root .sound-slash,
.dashboard-body .control-cluster.nav-control-panel .sound-toggle.sound-toggle-root .sound-slash {
  left: 14px !important;
  top: 14px !important;
  width: 14px !important;
  height: 1.55px !important;
  transform: translate(-50%, -50%) rotate(-40deg) scaleX(0) !important;
}

.control-cluster.nav-control-panel .sound-toggle.sound-toggle-root.is-muted .sound-slash,
.dashboard-body .control-cluster.nav-control-panel .sound-toggle.sound-toggle-root.is-muted .sound-slash {
  opacity: 1 !important;
  transform: translate(-50%, -50%) rotate(-40deg) scaleX(1) !important;
}

.control-cluster.nav-control-panel .theme-toggle-thumb,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-thumb {
  display: none !important;
}

.control-cluster.nav-control-panel .theme-toggle-root,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-root {
  width: 62px !important;
  min-width: 62px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.control-cluster.nav-control-panel .theme-toggle-track,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  align-items: center !important;
  justify-items: center !important;
  width: 62px !important;
  height: 28px !important;
}

.control-cluster.nav-control-panel .theme-toggle-track .theme-sun,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-sun {
  grid-column: 1 !important;
}

.control-cluster.nav-control-panel .theme-toggle-track .theme-moon,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-moon {
  grid-column: 2 !important;
}

.control-cluster.nav-control-panel .theme-toggle-track .theme-moon,
.control-cluster.nav-control-panel .theme-toggle-track .theme-sun,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-moon,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-sun {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--control-icon) !important;
  filter: none !important;
  opacity: 0.76 !important;
  transform: none !important;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease !important;
}

.control-cluster.nav-control-panel .theme-toggle-track .theme-moon::before,
.control-cluster.nav-control-panel .theme-toggle-track .theme-moon::after,
.control-cluster.nav-control-panel .theme-toggle-track .theme-sun::before,
.control-cluster.nav-control-panel .theme-toggle-track .theme-sun::after,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-moon::before,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-moon::after,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-sun::before,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-sun::after {
  position: static !important;
  display: block !important;
  inset: auto !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  content: "" !important;
}

.control-cluster.nav-control-panel .theme-toggle-track .theme-sun::before,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-sun::before {
  width: 12px !important;
  height: 12px !important;
  border: 1.6px solid currentColor !important;
  border-radius: 50% !important;
  background:
    linear-gradient(currentColor, currentColor) center -4px / 1.5px 4px no-repeat,
    linear-gradient(currentColor, currentColor) center 12px / 1.5px 4px no-repeat,
    linear-gradient(90deg, currentColor, currentColor) -4px center / 4px 1.5px no-repeat,
    linear-gradient(90deg, currentColor, currentColor) 12px center / 4px 1.5px no-repeat !important;
}

.control-cluster.nav-control-panel .theme-toggle-track .theme-sun::after,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-sun::after {
  display: none !important;
  content: none !important;
}

.control-cluster.nav-control-panel .theme-toggle-track .theme-moon::before,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-moon::before {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  box-shadow: inset -4px 0 0 currentColor !important;
}

.control-cluster.nav-control-panel .theme-toggle-track .theme-moon::after,
.dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-moon::after {
  display: none !important;
  content: none !important;
}

body[data-theme="light"] .control-cluster.nav-control-panel .theme-toggle-track .theme-sun,
body[data-theme="light"].dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-sun,
body[data-theme="dark"] .control-cluster.nav-control-panel .theme-toggle-track .theme-moon,
body[data-theme="dark"].dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-moon {
  border-color: color-mix(in srgb, var(--control-icon-active) 28%, transparent) !important;
  background: color-mix(in srgb, var(--control-icon-active) 13%, transparent) !important;
  color: var(--control-icon-active) !important;
  opacity: 1 !important;
  transform: scale(1.02) !important;
}

body[data-theme="light"] .control-cluster.nav-control-panel .theme-toggle-track .theme-moon,
body[data-theme="light"].dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-moon,
body[data-theme="dark"] .control-cluster.nav-control-panel .theme-toggle-track .theme-sun,
body[data-theme="dark"].dashboard-body .control-cluster.nav-control-panel .theme-toggle-track .theme-sun {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--control-icon) !important;
  opacity: 0.66 !important;
  transform: scale(0.92) !important;
}

/* Final simplified controls: two standalone icon buttons, no slider UI. */
.control-cluster.nav-control-panel.simple-control-panel,
.dashboard-body .control-cluster.nav-control-panel.simple-control-panel {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: visible !important;
}

.simple-control-panel .nav-control-divider,
.simple-control-panel .theme-toggle-thumb,
.simple-control-panel .theme-toggle-track,
.simple-control-panel .sound-slash {
  display: none !important;
}

.simple-control-panel .control-icon-button,
.dashboard-body .simple-control-panel .control-icon-button {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent) !important;
  border-radius: 12px !important;
  background: color-mix(in srgb, var(--surface) 84%, transparent) !important;
  box-shadow:
    0 10px 26px color-mix(in srgb, var(--brand) 8%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 46%, transparent) !important;
  color: color-mix(in srgb, var(--ink) 70%, var(--muted)) !important;
  overflow: hidden !important;
  transform: none !important;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease !important;
}

body[data-theme="dark"] .simple-control-panel .control-icon-button,
body[data-theme="dark"].dashboard-body .simple-control-panel .control-icon-button {
  border-color: color-mix(in srgb, var(--gold) 24%, transparent) !important;
  background: color-mix(in srgb, var(--surface) 88%, transparent) !important;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 color-mix(in srgb, var(--gold) 8%, transparent) !important;
  color: color-mix(in srgb, var(--gold) 58%, var(--ink)) !important;
}

.simple-control-panel .control-icon-button::before,
.simple-control-panel .control-icon-button::after,
.simple-control-panel .control-icon-button .sound-icon::before,
.simple-control-panel .control-icon-button .sound-icon::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  content: none !important;
  opacity: 0 !important;
}

.simple-control-panel .control-icon-button:hover,
.dashboard-body .simple-control-panel .control-icon-button:hover {
  border-color: color-mix(in srgb, var(--brand) 38%, var(--border)) !important;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface)) !important;
  color: var(--brand) !important;
  transform: translateY(-1px) !important;
  box-shadow:
    0 14px 30px color-mix(in srgb, var(--brand) 16%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 50%, transparent) !important;
}

body[data-theme="dark"] .simple-control-panel .control-icon-button:hover,
body[data-theme="dark"].dashboard-body .simple-control-panel .control-icon-button:hover {
  border-color: color-mix(in srgb, var(--gold) 44%, transparent) !important;
  background: color-mix(in srgb, var(--gold) 10%, var(--surface)) !important;
  color: var(--gold) !important;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 color-mix(in srgb, var(--gold) 12%, transparent) !important;
}

.simple-control-panel .control-icon-button:active,
.dashboard-body .simple-control-panel .control-icon-button:active {
  transform: translateY(0) scale(0.97) !important;
}

.simple-control-panel .control-icon-svg,
.dashboard-body .simple-control-panel .control-icon-svg {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  flex: 0 0 19px !important;
  stroke: currentColor !important;
  transform: none !important;
}

body[data-theme="light"] .simple-control-panel #themeToggle,
body[data-theme="light"].dashboard-body .simple-control-panel #themeToggle,
.simple-control-panel #soundToggle.is-active,
.dashboard-body .simple-control-panel #soundToggle.is-active {
  border-color: color-mix(in srgb, var(--brand) 36%, var(--border)) !important;
  color: var(--brand) !important;
}

body[data-theme="dark"] .simple-control-panel #themeToggle,
body[data-theme="dark"].dashboard-body .simple-control-panel #themeToggle,
body[data-theme="dark"] .simple-control-panel #soundToggle.is-active,
body[data-theme="dark"].dashboard-body .simple-control-panel #soundToggle.is-active {
  border-color: color-mix(in srgb, var(--gold) 38%, transparent) !important;
  color: var(--gold) !important;
}

.simple-control-panel #soundToggle.is-muted,
.dashboard-body .simple-control-panel #soundToggle.is-muted {
  color: color-mix(in srgb, var(--ink) 45%, var(--muted)) !important;
}

body[data-theme="dark"] .simple-control-panel #soundToggle.is-muted,
body[data-theme="dark"].dashboard-body .simple-control-panel #soundToggle.is-muted {
  color: color-mix(in srgb, var(--gold) 42%, var(--muted)) !important;
}

/* Width lock for simplified controls: override older theme-toggle width rules. */
.control-cluster.nav-control-panel.simple-control-panel .theme-toggle-root.control-icon-button,
.control-cluster.nav-control-panel.simple-control-panel .sound-toggle-root.control-icon-button,
.dashboard-body .control-cluster.nav-control-panel.simple-control-panel .theme-toggle-root.control-icon-button,
.dashboard-body .control-cluster.nav-control-panel.simple-control-panel .sound-toggle-root.control-icon-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  grid-template-columns: none !important;
}
