:root {
  --bg: #06050a;
  --bg-2: #100a17;
  --ink: #07050c;
  --surface: rgba(17, 12, 24, 0.9);
  --surface-2: rgba(28, 20, 39, 0.92);
  --surface-3: rgba(41, 30, 56, 0.94);
  --line: rgba(255, 239, 198, 0.16);
  --line-strong: rgba(255, 239, 198, 0.35);
  --line-glow: rgba(255, 207, 82, 0.52);
  --text: #fff8ed;
  --muted: #d2c3df;
  --muted-2: #9b88ad;
  --monad: #8b5cf6;
  --monad-deep: #4d2d91;
  --mouch: #ffcf52;
  --mouch-2: #fff0a6;
  --mint: #78f7aa;
  --rose: #ff5f95;
  --cyan: #70d7ff;
  --green: #78f7aa;
  --yellow: #ffcf52;
  --red: #ff657f;
  --red-soft: rgba(255, 101, 127, 0.14);
  --shadow: 0 24px 54px rgba(0, 0, 0, 0.45);
  --shadow-panel: 0 20px 52px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 240, 166, 0.035);
  --shadow-hard: 5px 6px 0 rgba(0, 0, 0, 0.34);
  --radius: 8px;
}

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

  50% {
    transform: translateY(-7px) rotate(1deg);
  }
}

@keyframes badge-pop {
  0%,
  100% {
    box-shadow:
      var(--shadow-hard),
      0 0 0 rgba(255, 207, 82, 0);
  }

  50% {
    box-shadow:
      var(--shadow-hard),
      0 0 24px rgba(255, 207, 82, 0.18);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scrollbar-color: rgba(255, 207, 82, 0.85) rgba(14, 9, 20, 0.92);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(139, 92, 246, 0.2), rgba(6, 5, 10, 0) 260px),
    linear-gradient(90deg, rgba(255, 207, 82, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(120, 247, 170, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 95, 149, 0.08), transparent 32%),
    linear-gradient(180deg, #130b1d 0%, #06050a 58%, #0e0914 100%);
  background-size: auto, 64px 64px, 64px 64px, auto, auto;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 248, 237, 0.04), transparent 30%),
    linear-gradient(315deg, rgba(120, 247, 170, 0.08), transparent 38%);
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(90deg, rgba(6, 5, 10, 0.36), rgba(6, 5, 10, 0.78)),
    url("/assets/mouch/mouch-swarm.jpg");
  background-size: auto, 560px auto;
  background-position: center, right -70px bottom -40px;
  background-repeat: no-repeat;
  filter: saturate(1.08);
}

::selection {
  background: rgba(255, 207, 82, 0.32);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(255, 207, 82, 0.04), rgba(139, 92, 246, 0.04)),
    rgba(12, 8, 17, 0.94);
  border: 1px solid rgba(255, 239, 198, 0.08);
}

::-webkit-scrollbar-thumb {
  border: 2px solid rgba(12, 8, 17, 0.94);
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--mouch), var(--monad) 58%, var(--mint));
  box-shadow: inset 0 0 0 1px rgba(255, 248, 237, 0.16);
}

::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, var(--mouch-2), var(--rose), var(--mint));
}

button,
input,
select {
  font: inherit;
}

button,
input,
select {
  min-height: 42px;
  border: 1px solid rgba(255, 239, 198, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012)),
    rgba(9, 7, 14, 0.96);
  color: var(--text);
}

button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  overflow: hidden;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 10px 22px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.018);
  transition:
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 166, 0.13), transparent);
  opacity: 0;
  transform: translateX(-36%);
  transition:
    opacity 150ms ease,
    transform 240ms ease;
}

button:hover {
  border-color: rgba(255, 207, 82, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 207, 82, 0.08), rgba(139, 92, 246, 0.08)),
    #21152f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 3px rgba(255, 207, 82, 0.1),
    0 13px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

button:hover::before {
  opacity: 1;
  transform: translateX(36%);
}

button:active {
  transform: translateY(1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(120, 247, 170, 0.72);
  outline-offset: 2px;
}

button.primary {
  border-color: rgba(255, 207, 82, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 207, 82, 0.95), rgba(139, 92, 246, 0.82) 48%, rgba(120, 247, 170, 0.62)),
    #352052;
  color: #fffaf0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.38);
}

button.primary:hover {
  border-color: rgba(255, 240, 166, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 3px rgba(255, 207, 82, 0.12),
    0 16px 28px rgba(0, 0, 0, 0.32);
}

button.primary.is-connected {
  border-color: rgba(120, 247, 170, 0.78);
  background:
    linear-gradient(135deg, rgba(120, 247, 170, 0.72), rgba(139, 92, 246, 0.78), rgba(255, 207, 82, 0.7)),
    #173229;
}

button.danger {
  border-color: rgba(255, 101, 127, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 101, 127, 0.16), rgba(255, 101, 127, 0.03)),
    #2a121d;
  color: #ffd9e1;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
  transform: none;
  box-shadow: none;
}

input,
select {
  width: 100%;
  padding: 0 12px;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 -18px 30px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--mouch) 50%),
    linear-gradient(135deg, var(--mouch) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(9, 7, 14, 0.94), rgba(9, 7, 14, 0.94));
  background-position:
    calc(100% - 18px) 17px,
    calc(100% - 12px) 17px,
    0 0,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    auto,
    auto;
  background-repeat: no-repeat;
}

input::placeholder {
  color: rgba(210, 195, 223, 0.62);
}

input:hover,
select:hover {
  border-color: rgba(255, 207, 82, 0.6);
  background:
    linear-gradient(180deg, rgba(255, 207, 82, 0.055), rgba(255, 255, 255, 0.01)),
    rgba(11, 8, 16, 0.96);
}

input:focus,
select:focus {
  border-color: rgba(255, 207, 82, 0.9);
  box-shadow:
    0 0 0 3px rgba(255, 207, 82, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

input[readonly],
input:disabled,
select:disabled {
  color: #bdb3cf;
  background: rgba(8, 8, 14, 0.7);
}

.layout {
  width: min(1520px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.app-shell,
.metric,
.panel {
  border: 1px solid rgba(255, 239, 198, 0.18);
  background:
    linear-gradient(180deg, rgba(43, 29, 62, 0.94), rgba(12, 8, 17, 0.97)),
    var(--surface);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(14px);
}

.metric,
.panel,
.token-card,
.setup-card {
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.panel:hover,
.metric:hover,
.token-card:hover,
.setup-card:hover {
  border-color: rgba(255, 239, 198, 0.34);
  box-shadow:
    var(--shadow-panel),
    0 0 0 1px rgba(255, 207, 82, 0.08),
    0 0 28px rgba(139, 92, 246, 0.08);
}

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(250px, 0.7fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 148px;
  margin-bottom: 10px;
  padding: 16px;
  overflow: hidden;
  border-radius: var(--radius);
}

.topbar::after,
.panel::after,
.metric::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--mouch), var(--monad), var(--mint), var(--rose));
}

.mouch-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 5, 10, 0.96), rgba(6, 5, 10, 0.46) 50%, rgba(6, 5, 10, 0.86)),
    url("/assets/mouch/mouch-swarm.jpg") center 38% / cover;
  opacity: 0.86;
}

.mouch-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 207, 82, 0.08) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, rgba(120, 247, 170, 0.045) 0 1px, transparent 1px 24px),
    linear-gradient(135deg, transparent 0 42%, rgba(139, 92, 246, 0.16) 42% 44%, transparent 44%);
  mask-image: linear-gradient(90deg, #000, transparent 82%);
}

.brand-block {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.brand-mark {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border: 2px solid rgba(255, 240, 166, 0.84);
  border-radius: var(--radius);
  overflow: hidden;
  background: #150d20;
  box-shadow:
    var(--shadow-hard),
    0 0 28px rgba(139, 92, 246, 0.28);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow:
    3px 4px 0 rgba(0, 0, 0, 0.42),
    0 0 26px rgba(139, 92, 246, 0.3);
}

h2 {
  font-size: 1rem;
}

.eyebrow {
  color: var(--mouch);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.subline {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.actions,
.filters {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
}

.actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.actions button {
  min-width: 158px;
}

.filters select {
  min-width: 152px;
}

.filters button {
  min-width: 112px;
}

.mouch-hero-art {
  position: relative;
  z-index: 1;
  min-width: 250px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mouch-hero-face {
  width: 96px;
  height: 96px;
  border: 3px solid rgba(255, 240, 166, 0.86);
  border-radius: 18px;
  object-fit: cover;
  transform: rotate(-5deg);
  box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.34);
}

.mouch-hero-player {
  height: 134px;
  max-width: 126px;
  object-fit: contain;
  margin-left: -18px;
  filter: drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.26));
}

.mouch-hero-badge {
  align-self: flex-end;
  margin-left: -10px;
  margin-bottom: 18px;
  border: 2px solid rgba(255, 240, 166, 0.8);
  border-radius: var(--radius);
  padding: 7px 9px;
  background:
    linear-gradient(180deg, rgba(255, 207, 82, 0.14), rgba(139, 92, 246, 0.14)),
    rgba(18, 10, 28, 0.9);
  color: #fff8ed;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(2deg);
  box-shadow: var(--shadow-hard);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

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

.metric {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow:
    var(--shadow-panel),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 207, 82, 0.1), transparent 46%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 18px);
}

.metric-hot {
  border-color: rgba(255, 207, 82, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 207, 82, 0.18), rgba(21, 13, 32, 0.96)),
    var(--surface);
}

.metric span,
label span,
.token-card span,
.setup-card span,
.setup-total span {
  position: relative;
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 820;
  text-transform: uppercase;
}

.metric strong {
  position: relative;
  display: block;
  margin-top: 14px;
  font-size: 1.75rem;
  line-height: 1;
  overflow-wrap: anywhere;
  text-shadow: 0 0 18px rgba(255, 207, 82, 0.12);
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, rgba(120, 247, 170, 0.03) 0 1px, transparent 1px 24px),
    radial-gradient(circle at top right, rgba(255, 207, 82, 0.075), transparent 34%);
  opacity: 0.62;
}

.wallet-panel,
.settings-grid {
  margin-bottom: 10px;
}

.panel-title {
  position: relative;
  z-index: 1;
  min-height: 60px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 239, 198, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255, 207, 82, 0.055), rgba(139, 92, 246, 0.025)),
    rgba(255, 255, 255, 0.014);
}

.panel-title h2::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--mouch), var(--monad));
  box-shadow: 0 0 12px rgba(255, 207, 82, 0.4);
}

.wallet-grid,
.referral-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.wallet-grid {
  grid-template-columns: minmax(230px, 1.15fr) minmax(170px, 0.9fr) minmax(190px, 0.8fr);
}

.token-probe {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 0 12px 12px;
}

.token-probe button {
  min-width: 132px;
  height: 44px;
}

.token-details {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.95fr 1.15fr;
  gap: 10px;
  padding: 0 12px 12px;
}

.token-card {
  min-height: 106px;
  border: 1px solid rgba(255, 239, 198, 0.15);
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(8, 8, 16, 0.75);
}

.token-card-main {
  border-color: rgba(255, 207, 82, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 207, 82, 0.13), rgba(139, 92, 246, 0.1)),
    rgba(10, 6, 15, 0.76);
}

.token-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.26rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.token-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.setup-total {
  position: relative;
  z-index: 1;
  min-width: 170px;
  border: 1px solid rgba(120, 247, 170, 0.38);
  border-radius: var(--radius);
  padding: 8px 10px;
  background:
    linear-gradient(135deg, rgba(120, 247, 170, 0.18), rgba(139, 92, 246, 0.12)),
    rgba(8, 8, 16, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(120, 247, 170, 0.045);
  text-align: right;
}

.setup-total strong {
  display: block;
  margin-top: 4px;
  color: var(--mint);
  font-size: 1.1rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.summary-line {
  position: relative;
  z-index: 1;
  padding: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.referral-grid {
  grid-template-columns: minmax(260px, 1fr) auto;
}

.referral-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.setup-card {
  min-height: 102px;
  border: 1px solid rgba(255, 239, 198, 0.15);
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(8, 8, 16, 0.74);
}

.setup-card-main {
  border-color: rgba(120, 247, 170, 0.3);
  background:
    linear-gradient(135deg, rgba(120, 247, 170, 0.13), rgba(139, 92, 246, 0.1)),
    rgba(10, 6, 15, 0.76);
}

.setup-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.2rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.setup-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

label span {
  margin-bottom: 6px;
}

.wallet-grid button,
.referral-grid button {
  align-self: end;
}

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

.table-panel {
  min-width: 0;
}

.table-wrap {
  position: relative;
  z-index: 1;
  max-height: calc(100vh - 430px);
  overflow: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  border-top: 1px solid rgba(255, 239, 198, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 207, 82, 0.045), rgba(139, 92, 246, 0.025)),
    rgba(6, 5, 10, 0.28);
}

table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 239, 198, 0.11);
  text-align: left;
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(40, 28, 56, 0.98), rgba(18, 13, 26, 0.98));
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 870;
  text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(255, 239, 198, 0.12);
  backdrop-filter: blur(10px);
}

th:first-child,
td:first-child {
  width: 46px;
}

tbody tr {
  background: rgba(9, 7, 14, 0.32);
  transition:
    background 120ms ease,
    box-shadow 120ms ease;
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.024);
}

tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(255, 207, 82, 0.08), rgba(139, 92, 246, 0.055)),
    rgba(183, 168, 255, 0.035);
  box-shadow: inset 3px 0 0 rgba(255, 207, 82, 0.78);
}

tbody tr.rank-s {
  box-shadow: inset 3px 0 0 rgba(255, 207, 82, 0.58);
}

tbody tr.rank-a {
  box-shadow: inset 3px 0 0 rgba(120, 247, 170, 0.38);
}

tbody tr.rank-b {
  box-shadow: inset 3px 0 0 rgba(112, 215, 255, 0.3);
}

td {
  font-size: 0.86rem;
}

input[type="checkbox"] {
  min-height: 0;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  accent-color: var(--mouch);
  cursor: pointer;
}

.row-amount {
  min-height: 34px;
  width: 122px;
  border-color: rgba(255, 239, 198, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008)),
    rgba(5, 5, 10, 0.84);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rank-cell {
  width: 230px;
}

.rank-card {
  width: 212px;
  border: 1px solid rgba(255, 239, 198, 0.15);
  border-radius: var(--radius);
  padding: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.01)),
    rgba(7, 6, 12, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.rank-top,
.rank-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rank-position {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.rank-tier {
  min-width: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 2px 7px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 950;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rank-main {
  margin-top: 7px;
}

.rank-main strong {
  font-size: 1.34rem;
  line-height: 1;
}

.rank-main span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 860;
  text-transform: uppercase;
}

.rank-meter {
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 239, 198, 0.1);
  border-radius: 999px;
  background: rgba(4, 4, 9, 0.74);
}

.rank-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--monad), var(--mouch), var(--mint));
  box-shadow: 0 0 12px rgba(255, 207, 82, 0.24);
}

.rank-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1.25;
}

.rank-s .rank-card,
.rank-card.rank-s {
  border-color: rgba(255, 207, 82, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 207, 82, 0.16), rgba(120, 247, 170, 0.075)),
    rgba(8, 6, 12, 0.78);
}

.rank-a .rank-card,
.rank-card.rank-a {
  border-color: rgba(120, 247, 170, 0.34);
}

.rank-b .rank-card,
.rank-card.rank-b {
  border-color: rgba(112, 215, 255, 0.28);
}

.rank-c .rank-card,
.rank-card.rank-c {
  border-color: rgba(210, 195, 223, 0.18);
}

.rank-s .rank-tier {
  color: #130d06;
  background: linear-gradient(135deg, var(--mouch), var(--mint));
}

.rank-a .rank-tier {
  color: #062011;
  background: linear-gradient(135deg, var(--mint), #caffde);
}

.rank-b .rank-tier {
  color: #061622;
  background: linear-gradient(135deg, var(--cyan), #c8efff);
}

.rank-c .rank-tier {
  color: #fff8ed;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(210, 195, 223, 0.5));
}

.row-choice {
  min-width: 170px;
}

.row-choice,
.choice-chip {
  white-space: nowrap;
}

.row-choice {
  display: flex;
  gap: 7px;
  align-items: center;
}

.row-skip {
  min-height: 30px;
  padding: 0 9px;
  font-size: 0.75rem;
}

.wallet {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #f0ecff;
}

.choice-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(255, 239, 198, 0.16);
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 820;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.choice-ready {
  color: #e7ffef;
  border-color: rgba(120, 247, 170, 0.24);
  background: rgba(120, 247, 170, 0.09);
}

.choice-selected {
  color: #fff7d2;
  border-color: rgba(255, 207, 82, 0.36);
  background: rgba(255, 207, 82, 0.12);
}

.choice-skipped {
  color: #d6c8e6;
  border-color: rgba(210, 195, 223, 0.18);
  background: rgba(210, 195, 223, 0.07);
}

.choice-sent {
  color: #d8ecff;
  border-color: rgba(112, 215, 255, 0.28);
  background: rgba(112, 215, 255, 0.09);
}

.user-selected {
  box-shadow: inset 3px 0 0 rgba(255, 207, 82, 0.72);
}

.user-skipped,
.user-sent {
  opacity: 0.72;
}

.user-skipped .wallet,
.user-sent .wallet {
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .mouch-hero-player {
    animation: mouch-float 4.8s ease-in-out infinite;
  }

  .mouch-hero-badge {
    animation: badge-pop 3.2s ease-in-out infinite;
  }

  .panel:hover,
  .metric:hover,
  .token-card:hover,
  .setup-card:hover {
    transform: translateY(-1px);
  }
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  border: 1px solid rgba(120, 247, 170, 0.26);
  border-radius: 7px;
  padding: 3px 8px;
  background:
    linear-gradient(180deg, rgba(120, 247, 170, 0.13), rgba(139, 92, 246, 0.05));
  color: #e7ffef;
  font-size: 0.72rem;
  font-weight: 780;
  white-space: nowrap;
}

.status-queued,
.status-observed,
.status-sent,
.status-excluded {
  font-weight: 880;
  text-transform: capitalize;
}

.status-queued {
  color: var(--green);
  text-shadow: 0 0 14px rgba(120, 247, 170, 0.16);
}

.status-observed {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(112, 215, 255, 0.14);
}

.status-sent {
  color: var(--yellow);
  text-shadow: 0 0 14px rgba(255, 207, 82, 0.16);
}

.status-excluded {
  color: var(--red);
}

.empty {
  padding: 24px;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .topbar,
  .settings-grid,
  .main-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
  }

  .mouch-hero-art {
    justify-content: flex-start;
  }

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

  .table-wrap {
    max-height: none;
  }
}

@media (max-width: 980px) {
  .token-details,
  .referral-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .referral-grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 860px) {
  .layout {
    width: min(100% - 20px, 1520px);
    padding-top: 10px;
  }

  h1 {
    font-size: 1.42rem;
  }

  .topbar,
  .panel-title {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    display: flex;
    min-height: 0;
  }

  .mouch-hero-art {
    height: 88px;
    min-width: 0;
  }

  .mouch-hero-face {
    width: 72px;
    height: 72px;
  }

  .mouch-hero-player {
    height: 104px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .actions,
  .filters {
    width: 100%;
    flex-wrap: wrap;
  }

  .actions button,
  .filters button,
  .filters select {
    flex: 1 1 150px;
  }

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

  .wallet-grid,
  .token-probe,
  .referral-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-total {
    text-align: left;
  }
}

@media (max-width: 560px) {
  body::after {
    opacity: 0.08;
    background-size: auto, 360px auto;
  }

  .layout {
    width: min(100% - 14px, 1520px);
  }

  .topbar,
  .panel-title,
  .wallet-grid,
  .token-probe,
  .referral-grid,
  .token-details,
  .referral-stats {
    padding-inline: 10px;
  }

  .metrics,
  .wallet-grid,
  .token-probe,
  .referral-grid,
  .token-details,
  .referral-stats {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 82px;
  }

  .metric strong {
    font-size: 1.45rem;
  }

  .actions button,
  .filters button,
  .filters select {
    flex-basis: 100%;
  }

  .mouch-hero-art {
    display: none;
  }

  .table-wrap {
    margin-inline: -1px;
  }
}
