:root {
  color-scheme: dark;
  --bg: #0f1117;
  --surface: #171b26;
  --card: #1e2433;
  --accent: #6ee7ff;
  --accent-strong: #1aa7ff;
  --text: #f4f7ff;
  --muted: #9ba4bc;
  --danger: #ff6b6b;
  --success: #7ef29d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1100px 640px at 10% -10%, rgba(46, 187, 255, 0.2), transparent 65%),
    radial-gradient(900px 580px at 100% 0%, rgba(126, 242, 157, 0.12), transparent 64%),
    linear-gradient(180deg, #0f1117 0%, #0b0d13 100%);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 72px;
}

.page {
  padding: 32px 48px 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.7px;
}

.admin-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.admin-link:hover {
  color: var(--accent);
}

.hero {
  display: block;
}

.hero-content {
  /* Handled by page-level inline styles for two-column layout */
}

.auth-shell {
  min-height: 0;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  color: #dff7ff;
  border-color: rgba(110, 231, 255, 0.55);
  background: rgba(110, 231, 255, 0.12);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-size: 14px;
  color: var(--muted);
}

input {
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
}

textarea {
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  resize: vertical;
}

select {
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(110, 231, 255, 0.2);
}

textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(110, 231, 255, 0.2);
}

.hint {
  color: var(--muted);
  font-size: 12px;
}

.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #0b0e16;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.required-star {
  color: #ff7d7d;
}

.primary:hover {
  opacity: 0.92;
}

.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
}

.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.error {
  color: var(--danger);
  min-height: 18px;
  font-size: 13px;
}

.success {
  color: var(--success);
  font-size: 14px;
}

.hero-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 32px;
  min-height: 260px;
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.reference {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 12px 16px;
  background: var(--card);
  border-radius: 16px;
  text-align: center;
}

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

.hidden {
  display: none !important;
}

.auth-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--surface);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar h2 {
  margin: 0;
  font-size: 18px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  background: var(--card);
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
}

.nav-link.active {
  background: linear-gradient(120deg, rgba(110, 231, 255, 0.2), rgba(26, 167, 255, 0.35));
  color: var(--accent);
}

.admin-main {
  padding: 48px;
  display: grid;
  gap: 24px;
}

.table-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  overflow-x: auto;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.table th,
.table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.table th {
  color: var(--muted);
  font-weight: 500;
}

.empty {
  color: var(--muted);
  font-size: 14px;
}

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  background: var(--surface);
  border-radius: 20px;
  padding: 32px;
  display: grid;
  gap: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.login-card h1 {
  margin: 0;
}

.treasury-card {
  display: grid;
  gap: 24px;
}

.treasury-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.address-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.balance-tile {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
}

.transfer-form {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.review-card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

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

.hidden {
  display: none;
}

.user-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.dashboard-page {
  place-items: start;
  padding: 36px 28px 96px;
}

.dash-shell {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.14), rgba(26, 167, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 18px 20px;
}

.dash-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.dash-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dash-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(23, 27, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 12px;
}

.dash-pill-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dash-pill-value {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 1px;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.dash-card {
  background: var(--surface);
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.dash-card-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.3px;
}

.dash-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(110, 231, 255, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
}

.dash-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.dash-balance-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-balance-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.dash-meta-grid {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.dash-meta-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-meta-value {
  margin: 6px 0 0;
  font-size: 14px;
  word-break: break-all;
}

.dash-address-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dash-copy {
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.dash-status {
  margin: 10px 0 0;
  min-height: 18px;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.dash-progress .pyramid {
  gap: 10px;
}

/* Mobile-first dashboard redesign */
@media (max-width: 980px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }


  .auth-shell {
    min-height: auto;
  }
  .dashboard-page {
    padding: 16px 12px 100px;
  }
}

@media (max-width: 600px) {
  .dashboard-page {
    padding: 12px 10px 110px;
  }

  .dash-shell {
    gap: 14px;
  }

  .dash-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 14px;
    border-radius: 20px;
  }

  .dash-identity {
    gap: 12px;
  }

  .avatar {
    width: 48px;
    height: 48px;
    font-size: 18px;
    border-radius: 14px;
  }

  .dash-title {
    font-size: 18px;
  }

  .dash-subtitle {
    font-size: 11px;
    margin-top: 2px;
  }

  .dash-pill {
    justify-content: space-between;
    padding: 10px 14px;
    gap: 8px;
  }

  .dash-pill-label {
    font-size: 11px;
  }

  .dash-pill-value {
    font-size: 13px;
    flex: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dash-copy {
    padding: 6px 10px;
    font-size: 12px;
  }

  .dash-card {
    padding: 16px 14px;
    border-radius: 20px;
  }

  .dash-card-head {
    margin-bottom: 12px;
  }

  .dash-card-title {
    font-size: 14px;
  }

  .dash-card-badge {
    padding: 5px 8px;
    font-size: 10px;
  }

  .dash-balance-row {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .dash-balance-value {
    font-size: 26px;
    margin-top: 4px;
  }

  .dash-meta-grid {
    margin-top: 12px;
    gap: 10px;
  }

  .dash-meta-item {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .dash-meta-value {
    font-size: 13px;
    margin-top: 4px;
  }

  .dash-address-row {
    flex-direction: column;
    gap: 10px;
  }

  .dash-address-row .dash-copy {
    align-self: flex-start;
  }

  .dash-link {
    font-size: 12px;
    padding: 8px 12px;
  }

  .dash-progress .pyramid {
    gap: 8px;
  }

  .bottom-nav {
    bottom: 10px;
    padding: 8px 16px;
    gap: 16px;
    border-radius: 24px;
  }

  .nav-item {
    font-size: 13px;
  }
}

.profile-card {
  width: min(680px, 100%);
  background: var(--surface);
  border-radius: 28px;
  padding: 36px;
  display: grid;
  gap: 28px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.wallet-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 16px;
}

.wallet-card h2 {
  margin: 8px 0 0;
}

.wallet-meta {
  display: grid;
  gap: 12px;
  font-size: 14px;
  word-break: break-all;
}

.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(23, 27, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  gap: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  z-index: 100;
}

.nav-item {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.nav-item.active {
  color: var(--accent);
}

.game-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.score-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.tap-button {
  width: 100%;
  height: 140px;
  border-radius: 28px;
  border: 1px solid rgba(110, 231, 255, 0.3);
  background: radial-gradient(circle at top, rgba(110, 231, 255, 0.35), rgba(26, 167, 255, 0.2));
  font-size: 28px;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.tap-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.game-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.25), rgba(26, 167, 255, 0.45));
  font-weight: 700;
  color: var(--accent);
  font-size: 20px;
}

.user-name {
  margin: 0;
  font-size: 24px;
}

.user-role {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pyramid {
  display: grid;
  gap: 12px;
}

/* Tier Cards - compact merged rows */
/* ── Flip card container ── */
.tier-flip {
  perspective: 800px;
  cursor: pointer;
}
.tier-flip-inner {
  position: relative;
  width: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
}
.tier-flip.flipped .tier-flip-inner {
  transform: rotateY(180deg);
}
.tier-front {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(0deg);
}
.tier-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
}
.tier-back-lock {
  font-size: 22px;
}
.tier-back-amount {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 21px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "cv01" 1;
  letter-spacing: -0.015em;
}
.tier-back-name {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.tier-card .tier-flip {
  flex: 1;
  min-width: 0;
  height: 100%;
}
.tier-lock-face {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.tier-flip-inner {
  height: 100%;
}
.tier-locked-row {
  padding: 0;
}
.tier-locked-row .tier-flip {
  padding: 16px 18px;
}

.tier-card,
.tier-card-large {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.tier-card::before,
.tier-card-large::before {
  content: none;
  display: none;
}

/* Shimmering tier titles */
.tier-title {
  font-weight: 800;
  color: var(--tier-color, #FFD700);
  letter-spacing: 0.2px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .tier-title {
    background-image: linear-gradient(
      110deg,
      var(--shimmer-lo, var(--tier-color, #FFD700)) 0%,
      var(--shimmer-hi, rgba(255, 255, 255, 0.95)) 38%,
      var(--shimmer-lo, var(--tier-color, #FFD700)) 65%
    );
    /* Use a periodic size so the animation loops without a visible restart */
    background-size: 200% 100%;
    background-repeat: repeat;
    background-position: 50% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    will-change: background-position;
    animation: tierTitleShimmer 3.8s linear infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tier-title {
    animation: none !important;
  }
}

@keyframes tierTitleShimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.tier-card:hover,
.tier-card-large:hover {
  box-shadow: none;
}

.tier-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tier-label {
  font-weight: 700;
  font-size: 15px;
  color: #FFD700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  min-width: 48px;
}

.tier-strips {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.tier-strip {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
}

.tier-strip.filled {
  background: #FFD700;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

.tier-gauge {
  flex: 1;
  height: 8px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 999px;
  overflow: hidden;
  min-width: 0;
}

.tier-gauge-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.tier-earn-amount {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #7ef29d;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "cv01" 1;
  letter-spacing: -0.015em;
  min-width: 90px;
  text-align: right;
  opacity: 0;
  visibility: hidden;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, max-width 0.25s ease, visibility 0.25s ease;
}

.tier-unlocked.js-tier-reveal {
  cursor: pointer;
}

.tier-unlocked.is-showing-price .tier-earn-amount {
  opacity: 1;
  visibility: visible;
  max-width: 120px;
}

/* Level complete badge */
.tier-complete-badge {
  position: absolute;
  top: -6px;
  right: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #07110b;
  background: #22c55e;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
  z-index: 2;
  pointer-events: none;
}

.tier-level-complete {
  border-color: rgba(34, 197, 94, 0.35) !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.12), inset 0 0 0 1px rgba(34, 197, 94, 0.15);
}

.tier-group-complete {
  position: relative;
}

/* Mobile adjustments for tier cards */
@media (max-width: 600px) {
  .tier-card,
  .tier-card-large {
    padding: 14px 16px;
    gap: 12px;
    border-radius: 12px;
  }

  .tier-label {
    font-size: 14px;
    min-width: 44px;
  }

  .tier-earn-amount {
    font-size: 14px;
    min-width: 80px;
  }
}

@media (max-width: 900px) {
  .page {
    padding: 24px;
  }

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

  .sidebar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================
   PREMIUM DASHBOARD STYLES
   ============================================ */

.dash-body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: linear-gradient(145deg, #0a0d14 0%, #0f1318 50%, #101520 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--text);
  overflow-x: hidden;
}

.dash-container {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 120px;
  min-height: 100vh;
}

/* Decorative background glows */
.dash-bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.dash-bg-glow-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(110, 231, 255, 0.25) 0%, transparent 70%);
  top: -80px;
  right: -100px;
}

.dash-bg-glow-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(138, 79, 255, 0.2) 0%, transparent 70%);
  bottom: 200px;
  left: -80px;
}

/* Header */
.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.dash-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.08);
  color: #ffd700;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 0 10px rgba(255, 215, 0, 0.18),
    0 0 22px rgba(255, 215, 0, 0.10);
  animation: guideGlow 2.6s ease-in-out infinite;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

@keyframes guideGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.16), 0 0 20px rgba(255, 215, 0, 0.08);
  }
  50% {
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.38), 0 0 36px rgba(255, 215, 0, 0.18);
  }
}

.dash-guide-btn:hover {
  transform: scale(1.05);
  border-color: rgba(255, 215, 0, 0.75);
  background: rgba(255, 215, 0, 0.14);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.40), 0 0 44px rgba(255, 215, 0, 0.20);
}

.dash-guide-btn:focus-visible {
  outline: 2px solid rgba(255, 215, 0, 0.7);
  outline-offset: 2px;
}

.dash-guide-icon {
  display: none;
}

/* Guide on balance card (former BSC badge slot) */
.dash-guide-btn-hero {
  height: 30px;
  padding: 0 12px;
  font-size: 11px;
  flex-shrink: 0;
}

.dash-hero-top .dash-guide-btn-hero {
  border-color: rgba(110, 231, 255, 0.5);
  background: rgba(110, 231, 255, 0.08);
  color: #6ee7ff;
  box-shadow: 0 0 10px rgba(110, 231, 255, 0.18), 0 0 22px rgba(110, 231, 255, 0.10);
  animation: guideGlowCyan 2.6s ease-in-out infinite;
}

@keyframes guideGlowCyan {
  0%, 100% {
    box-shadow: 0 0 8px rgba(110, 231, 255, 0.16), 0 0 20px rgba(110, 231, 255, 0.08);
  }
  50% {
    box-shadow: 0 0 16px rgba(110, 231, 255, 0.38), 0 0 36px rgba(110, 231, 255, 0.18);
  }
}

.dash-hero-top .dash-guide-btn-hero:hover {
  border-color: rgba(110, 231, 255, 0.75);
  background: rgba(110, 231, 255, 0.14);
  box-shadow: 0 0 22px rgba(110, 231, 255, 0.40), 0 0 44px rgba(110, 231, 255, 0.20);
}

.dash-hero-top .dash-guide-btn-hero:focus-visible {
  outline-color: rgba(110, 231, 255, 0.7);
}

.dash-guide-dialog {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.dash-guide-dialog[hidden] {
  display: none;
}

.dash-guide-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.dash-guide-dialog-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 22px 22px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #1e2433 0%, #141a28 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.dash-guide-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.dash-guide-dialog-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 215, 0, 0.75);
}

.dash-guide-theme-vip .dash-guide-dialog-eyebrow {
  color: rgba(255, 215, 0, 0.9);
}

.dash-guide-theme-allin .dash-guide-dialog-eyebrow {
  color: rgba(255, 107, 107, 0.92);
}

.dash-guide-theme-packages .dash-guide-dialog-eyebrow {
  background: linear-gradient(90deg, #ffd700, #ff9a1f, #2f6bff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: pkgGuideEyebrow 4s linear infinite;
}

.dash-guide-theme-mcoin .dash-guide-dialog-eyebrow {
  background: linear-gradient(90deg, #daa520, #ffd700, #fffceb, #ffd700, #daa520);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: mcGuideEyebrow 3s linear infinite;
}

@keyframes mcGuideEyebrow {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.dash-guide-btn-gold {
  border-color: rgba(255, 215, 0, 0.55);
  color: #ffd700;
}

.dash-guide-btn-gold:hover {
  border-color: rgba(255, 215, 0, 0.80);
  background: rgba(255, 215, 0, 0.14);
}

.dash-guide-btn-header {
  margin-right: 4px;
}

.dash-guide-dialog-title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.dash-guide-dialog-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.dash-guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.dash-guide-item {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-guide-item-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 16px;
  align-items: start;
}

.dash-guide-item-copy {
  min-width: 0;
}

.dash-guide-item-figure {
  margin: 0;
  flex-shrink: 0;
}

.dash-guide-item-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  object-fit: cover;
  object-position: top center;
}

.dash-guide-item-trust .dash-guide-item-layout {
  align-items: center;
}

@media (max-width: 480px) {
  .dash-guide-item-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dash-guide-item-figure {
    max-width: 220px;
  }
}

.dash-guide-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.dash-guide-item-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.dash-guide-item p {
  margin: 0;
}

.dash-guide-item-copy .dash-guide-quote {
  margin-top: 0;
}

.dash-guide-item strong {
  color: rgba(244, 247, 255, 0.92);
  font-weight: 600;
}

.dash-guide-item-trust .dash-guide-item-title {
  margin-bottom: 10px;
}

.dash-guide-quote {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid rgba(255, 255, 255, 0.22);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  line-height: 1.7;
  font-style: italic;
  color: rgba(226, 232, 240, 0.88);
}

.dash-guide-placeholder {
  margin: 0;
  color: rgba(155, 164, 188, 0.9);
}

.dash-logout {
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.dash-logout:hover {
  border-color: rgba(255, 107, 107, 0.35);
  transform: translateY(-1px);
}

.dash-logout:active {
  transform: translateY(0px);
}

.dash-logout-label {
  font-size: 12px;
}

.dash-greeting {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-greeting-label {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

.dash-greeting-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.02em;
}

.dash-avatar-wrap {
  position: relative;
}

.dash-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6ee7ff 0%, #8a4fff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #0f1117;
  box-shadow: 0 4px 20px rgba(110, 231, 255, 0.25);
}

.dash-avatar-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid #0a0d14;
}

/* Gold ID avatar — matches Moon Coin page theme */
.dash-avatar.dash-avatar-gold {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.45);
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.14);
}

.dash-avatar-status-gold {
  border-color: #0a0d14;
}

/* Packages — ID account menu (matches Moon Coin); keep it above page content */
body[data-guide-theme="packages"] .dash-top {
  position: relative;
  z-index: 50;
  overflow: visible;
}

body[data-guide-theme="packages"] .dash-avatar-menu {
  z-index: 60;
}

body[data-guide-theme="packages"] .dash-header-toast {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  margin: 0;
  text-align: right;
  pointer-events: none;
}

/* Home header — professional greeting + clickable avatar */
.dash-container-home {
  padding-top: 12px;
}

body:has(.dash-nav-has-allin) .dash-container,
body:has(.dash-nav-has-allin) .mc-page,
body:has(.dash-nav-has-allin) .mx-shell {
  padding-bottom: 108px;
}

.dash-top-pro {
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  position: relative;
}

.dash-top-pro .dash-top-actions {
  flex-shrink: 0;
  transform: translateX(14px);
}

.dash-moon-catcher-head {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dash-moon-catcher-tagline {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.2;
}

.dash-moon-catcher-title {
  font-size: min(8vw, 36px);
  font-weight: 800;
  letter-spacing: 1.5px;
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 1) 18%,
    rgba(226, 232, 240, 0.75) 36%,
    rgba(255, 255, 255, 1) 52%,
    rgba(248, 250, 252, 0.7) 70%,
    rgba(255, 255, 255, 1) 88%,
    rgba(255, 255, 255, 0.65) 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffffff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.18));
  animation: dash-moon-catcher-shimmer 3.4s ease-in-out infinite;
}

@keyframes dash-moon-catcher-shimmer {
  0%, 100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.14));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.42));
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-moon-catcher-title {
    animation: none;
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    filter: none;
  }
}

/* Home — swipe slider to All In */
.home-allin-slide {
  margin: 0 0 14px;
  padding: 0 2px;
}

.home-allin-slide-track {
  position: relative;
  height: 54px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(40, 0, 0, 0.92) 0%, rgba(18, 0, 0, 0.98) 100%);
  border: 1px solid rgba(220, 20, 60, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 120, 120, 0.12),
    0 8px 28px rgba(139, 0, 0, 0.28);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.home-allin-slide-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(220, 20, 60, 0.14) 50%,
    transparent 65%
  );
  background-size: 220% 100%;
  animation: home-allin-slide-shimmer 3.6s ease-in-out infinite;
  pointer-events: none;
}

.home-allin-slide-eyebrow {
  position: absolute;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 160, 160, 0.55);
  pointer-events: none;
  z-index: 1;
}

.home-allin-slide-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -58%);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffb3b3;
  text-shadow: 0 0 14px rgba(220, 20, 60, 0.45);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-allin-slide-hint {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: rgba(255, 180, 180, 0.72);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.home-allin-slide-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 54px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5c0000 0%, #8b0000 42%, #dc143c 100%);
  box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 0;
  will-change: width;
}

.home-allin-slide-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  display: grid;
  place-items: center;
  gap: 0;
  padding: 0;
  cursor: grab;
  background: linear-gradient(145deg, #ff6b6b 0%, #8b0000 55%, #3d0000 100%);
  box-shadow:
    0 4px 16px rgba(220, 20, 60, 0.45),
    inset 0 1px 0 rgba(255, 200, 200, 0.35);
  color: #fff;
  z-index: 2;
  will-change: transform;
  touch-action: none;
}

.home-allin-slide-thumb:active {
  cursor: grabbing;
}

.home-allin-slide-flame {
  display: block;
  filter: drop-shadow(0 0 4px rgba(255, 120, 120, 0.5));
}

.home-allin-slide-arrow {
  display: none;
}

.home-allin-slide-track.is-dragging .home-allin-slide-thumb {
  box-shadow:
    0 6px 22px rgba(220, 20, 60, 0.62),
    inset 0 1px 0 rgba(255, 220, 220, 0.42);
}

.home-allin-slide-track.is-complete .home-allin-slide-title {
  opacity: 0;
  transform: translate(-50%, -70%) scale(0.96);
}

.home-allin-slide-track.is-complete .home-allin-slide-hint {
  opacity: 0;
}

.home-allin-slide-track.is-complete .home-allin-slide-arrow {
  display: block;
  color: #ffe0e0;
}

.home-allin-slide-track.is-complete .home-allin-slide-flame {
  display: none;
}

.home-allin-slide-track.is-launching {
  animation: home-allin-slide-launch 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes home-allin-slide-shimmer {
  0%, 100% { background-position: 120% 0; opacity: 0.55; }
  50% { background-position: -20% 0; opacity: 1; }
}

@keyframes home-allin-slide-launch {
  to {
    transform: scale(0.98);
    opacity: 0.72;
    filter: brightness(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-allin-slide-shimmer {
    animation: none;
  }
}

/* Nav-embedded All In slide (dashboard) — icons row + slide underneath */
.dash-nav-icons {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: flex-end;
  width: 100%;
}

.dash-nav-has-allin .dash-nav-item {
  flex: 1;
  min-width: 0;
  max-width: none;
  padding: 4px 0;
}

.dash-nav-allin-slide {
  flex: none;
  width: 100%;
  margin: 0;
  padding: 0 2px;
  position: relative;
  z-index: 6;
  pointer-events: auto;
}

.dash-nav-allin-slide::after {
  content: "";
  position: absolute;
  inset: -2px 0;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.14) 0%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

.dash-nav-allin-slide.home-allin-slide {
  margin: 0;
}

.dash-nav-allin-slide .home-allin-slide-track {
  height: 34px;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 120, 120, 0.1),
    0 4px 16px rgba(139, 0, 0, 0.22);
}

.dash-nav-allin-slide .home-allin-slide-eyebrow {
  display: none;
}

.dash-nav-allin-slide .home-allin-slide-title {
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  letter-spacing: 1.8px;
}

.dash-nav-allin-slide .home-allin-slide-hint {
  right: 12px;
  font-size: 9px;
  letter-spacing: 0.2px;
  opacity: 0.85;
}

.dash-nav-allin-slide .home-allin-slide-fill {
  width: 34px;
}

.dash-nav-allin-slide .home-allin-slide-thumb {
  left: 3px;
  top: 3px;
  width: 28px;
  height: 28px;
  box-shadow:
    0 3px 12px rgba(220, 20, 60, 0.4),
    inset 0 1px 0 rgba(255, 200, 200, 0.32);
}

.dash-nav-allin-slide .home-allin-slide-track.is-dragging .home-allin-slide-thumb {
  box-shadow:
    0 5px 18px rgba(220, 20, 60, 0.55),
    inset 0 1px 0 rgba(255, 220, 220, 0.4);
}

@media (max-width: 380px) {
  .dash-nav.dash-nav-has-allin {
    padding-left: 10px;
    padding-right: 10px;
  }

  .dash-nav-allin-slide .home-allin-slide-hint {
    font-size: 8px;
    right: 10px;
  }

  .dash-nav-allin-slide .home-allin-slide-title {
    font-size: 9px;
    letter-spacing: 1.4px;
  }

  body:has(.dash-nav-has-allin) .dash-container,
  body:has(.dash-nav-has-allin) .mc-page,
  body:has(.dash-nav-has-allin) .mx-shell {
    padding-bottom: 102px;
  }
}

.dash-greeting-pro {
  flex: 1;
  min-width: 0;
  gap: 4px;
}

.dash-greeting-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 28px;
}

.dash-greeting-eyebrow {
  margin: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.dash-greeting-eyebrow-text {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(110, 231, 255, 0.95) 35%,
    rgba(255, 215, 0, 0.9) 50%,
    rgba(110, 231, 255, 0.95) 65%,
    rgba(255, 255, 255, 0.45) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: dashEyebrowShimmer 5s ease-in-out infinite;
}

@keyframes dashEyebrowShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.dash-header-ref {
  position: absolute;
  left: auto;
  right: 58px;
  top: 50%;
  z-index: 0;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: min(52vw, 220px);
  opacity: 0;
  transform: translateY(calc(-50% + 4px));
  pointer-events: none;
}

.dash-header-ref.is-revealed {
  animation: dashRefReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
  pointer-events: auto;
}

@keyframes dashRefReveal {
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

.dash-header-ref-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 255, 0.35);
  background: rgba(110, 231, 255, 0.06);
  text-align: center;
}

.dash-header-ref-code {
  font-family: "SF Mono", "Cascadia Mono", "Consolas", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.dash-header-toast {
  min-height: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(126, 242, 157, 0.95);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.dash-header-toast:not(:empty) {
  opacity: 1;
}

.dash-avatar-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.dash-avatar-btn:hover {
  transform: scale(1.06);
}

.dash-avatar-btn:active {
  transform: scale(0.98);
}

.dash-avatar-btn:focus-visible {
  outline: 2px solid rgba(110, 231, 255, 0.75);
  outline-offset: 3px;
}

.dash-avatar-btn .dash-avatar {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.12);
  pointer-events: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.dash-avatar-btn:hover .dash-avatar {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 4px 24px rgba(255, 255, 255, 0.2),
    0 0 0 2px rgba(255, 255, 255, 0.15);
}

.dash-avatar-btn.is-flash .dash-avatar {
  animation: dashAvatarFlash 0.55s ease;
}

.dash-avatar-menu-wrap {
  position: relative;
}

.dash-avatar-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 148px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 18, 28, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.dash-avatar-menu[hidden] {
  display: none;
}

.dash-avatar-menu-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dash-avatar-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dash-avatar-menu-logout {
  color: #ff8a8a;
}

.dash-avatar-menu-logout:hover {
  background: rgba(255, 107, 107, 0.12);
}

.dash-avatar-btn.is-open .dash-avatar {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 4px 24px rgba(255, 255, 255, 0.22),
    0 0 0 2px rgba(255, 255, 255, 0.25);
}

/* VIP / All In welcome headers */
.dash-welcome-vip .dash-greeting-eyebrow-text {
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.45) 0%,
    rgba(255, 215, 0, 0.95) 35%,
    rgba(255, 160, 0, 0.95) 50%,
    rgba(255, 215, 0, 0.95) 65%,
    rgba(255, 215, 0, 0.45) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: dashEyebrowShimmer 5s ease-in-out infinite;
}

.dash-welcome-allin .dash-greeting-eyebrow-text {
  background: linear-gradient(
    90deg,
    rgba(255, 100, 100, 0.45) 0%,
    rgba(255, 59, 48, 0.95) 35%,
    rgba(255, 23, 68, 0.95) 50%,
    rgba(255, 59, 48, 0.95) 65%,
    rgba(255, 100, 100, 0.45) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: dashEyebrowShimmer 5s ease-in-out infinite;
}

.dash-welcome-vip .dash-header-ref-pill {
  border-color: rgba(255, 215, 0, 0.38);
  background: rgba(255, 215, 0, 0.08);
}

.dash-welcome-allin .dash-header-ref-pill {
  border-color: rgba(220, 20, 60, 0.38);
  background: rgba(220, 20, 60, 0.08);
}

.dash-welcome-mcoin .dash-greeting-eyebrow-text {
  background: linear-gradient(
    90deg,
    rgba(218, 165, 32, 0.45) 0%,
    rgba(255, 215, 0, 0.95) 35%,
    rgba(255, 246, 176, 0.95) 50%,
    rgba(255, 215, 0, 0.95) 65%,
    rgba(218, 165, 32, 0.45) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: dashEyebrowShimmer 5s ease-in-out infinite;
}

.dash-welcome-mcoin .dash-header-ref-pill {
  border-color: rgba(255, 215, 0, 0.38);
  background: rgba(255, 215, 0, 0.08);
}

/* M Coin — ID menu opens down; push page content when open so it doesn't cover MOON COIN */
.mc-page #mcoin-page-header {
  z-index: 50;
  overflow: visible;
  margin-bottom: 22px;
  transition: margin-bottom 0.22s ease;
}

.mc-page #mcoin-page-header:has(.dash-avatar-btn.is-open) {
  margin-bottom: 108px;
}

.mc-page #mcoin-page-header .dash-top-actions {
  position: relative;
  z-index: 2;
}

.mc-page #mcoin-page-header .dash-avatar-menu {
  z-index: 60;
}

.mc-page #mcoin-page-header .dash-header-ref {
  z-index: 1;
}

.mc-page .mc-cosmic {
  position: relative;
  z-index: 1;
  transition: transform 0.22s ease;
}

.dash-avatar-btn-gold .dash-avatar {
  width: 48px;
  height: 48px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.45);
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.14);
  pointer-events: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.dash-avatar-btn-gold:hover .dash-avatar {
  background: rgba(255, 215, 0, 0.16);
  border-color: rgba(255, 215, 0, 0.65);
  box-shadow:
    0 4px 24px rgba(255, 215, 0, 0.22),
    0 0 0 2px rgba(255, 215, 0, 0.15);
}

.dash-avatar-btn-gold:focus-visible {
  outline: 2px solid rgba(255, 215, 0, 0.75);
  outline-offset: 3px;
}

.dash-avatar-btn-gold.is-open .dash-avatar {
  background: rgba(255, 215, 0, 0.18);
  border-color: rgba(255, 215, 0, 0.72);
  box-shadow:
    0 4px 24px rgba(255, 215, 0, 0.28),
    0 0 0 2px rgba(255, 215, 0, 0.22);
}

.dash-avatar-btn-gold .dash-avatar-status {
  border-color: #0a0d14;
}

.dash-avatar-btn-red .dash-avatar {
  width: 48px;
  height: 48px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #ffb3b3;
  background: rgba(220, 20, 60, 0.12);
  border: 1px solid rgba(220, 20, 60, 0.45);
  box-shadow: 0 4px 18px rgba(220, 20, 60, 0.16);
  pointer-events: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.dash-avatar-btn-red:hover .dash-avatar {
  background: rgba(220, 20, 60, 0.18);
  border-color: rgba(255, 80, 100, 0.65);
  box-shadow:
    0 4px 24px rgba(220, 20, 60, 0.26),
    0 0 0 2px rgba(220, 20, 60, 0.15);
}

.dash-avatar-btn-red:focus-visible {
  outline: 2px solid rgba(220, 20, 60, 0.75);
  outline-offset: 3px;
}

.dash-avatar-btn-red.is-open .dash-avatar {
  background: rgba(220, 20, 60, 0.22);
  border-color: rgba(255, 100, 120, 0.72);
  box-shadow:
    0 4px 24px rgba(220, 20, 60, 0.32),
    0 0 0 2px rgba(220, 20, 60, 0.22);
}

.dash-avatar-btn-gold.is-flash .dash-avatar {
  animation: dashAvatarFlashGold 0.55s ease;
}

.dash-avatar-btn-red.is-flash .dash-avatar {
  animation: dashAvatarFlashRed 0.55s ease;
}

.dash-avatar-btn-red .dash-avatar-status {
  border-color: #0a0d14;
}

.dash-avatar-btn-green .dash-avatar {
  width: 48px;
  height: 48px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #00e676;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.45);
  box-shadow: 0 4px 18px rgba(0, 230, 118, 0.14);
  pointer-events: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.dash-avatar-btn-green:hover .dash-avatar {
  background: rgba(0, 230, 118, 0.16);
  border-color: rgba(132, 255, 175, 0.65);
  box-shadow:
    0 4px 24px rgba(0, 230, 118, 0.22),
    0 0 0 2px rgba(0, 230, 118, 0.15);
}

.dash-avatar-btn-green:focus-visible {
  outline: 2px solid rgba(0, 230, 118, 0.75);
  outline-offset: 3px;
}

.dash-avatar-btn-green.is-open .dash-avatar {
  background: rgba(0, 230, 118, 0.18);
  border-color: rgba(132, 255, 175, 0.72);
  box-shadow:
    0 4px 24px rgba(0, 230, 118, 0.28),
    0 0 0 2px rgba(0, 230, 118, 0.22);
}

.dash-avatar-btn-green.is-flash .dash-avatar {
  animation: dashAvatarFlashGreen 0.55s ease;
}

.dash-avatar-btn-green .dash-avatar-status {
  border-color: #0a0d14;
}

@keyframes dashAvatarFlashGreen {
  0%, 100% { box-shadow: 0 4px 18px rgba(0, 230, 118, 0.14); }
  40% { box-shadow: 0 0 0 6px rgba(0, 230, 118, 0.3), 0 4px 28px rgba(0, 230, 118, 0.34); }
}

@keyframes dashAvatarFlashGold {
  0%, 100% { box-shadow: 0 4px 18px rgba(255, 215, 0, 0.14); }
  40% { box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.3), 0 4px 28px rgba(255, 215, 0, 0.34); }
}

@keyframes dashAvatarFlashRed {
  0%, 100% { box-shadow: 0 4px 18px rgba(220, 20, 60, 0.16); }
  40% { box-shadow: 0 0 0 6px rgba(220, 20, 60, 0.3), 0 4px 28px rgba(220, 20, 60, 0.34); }
}

@keyframes dashAvatarFlash {
  0%, 100% { box-shadow: 0 4px 18px rgba(255, 255, 255, 0.12); }
  40% { box-shadow: 0 0 0 6px rgba(126, 242, 157, 0.35), 0 4px 28px rgba(255, 255, 255, 0.28); }
}

@media (prefers-reduced-motion: reduce) {
  .dash-greeting-eyebrow-text {
    animation: none;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.65);
    background: none;
  }
  .dash-header-ref.is-revealed {
    animation: none;
    opacity: 1;
    transform: translateY(-50%);
  }
  .dash-avatar-btn.is-flash .dash-avatar {
    animation: none;
  }
}

@media (max-width: 520px) {
  .dash-top-pro .dash-top-actions {
    transform: translateX(8px);
  }

  .dash-greeting-row {
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .dash-greeting-eyebrow {
    flex-shrink: 0;
  }

  .dash-top-pro .dash-header-ref {
    position: static;
    right: auto;
    top: auto;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin-left: auto;
    justify-content: flex-end;
    transform: none;
    opacity: 0;
  }

  .dash-top-pro .dash-header-ref.is-revealed {
    opacity: 1;
    transform: none;
    animation: dashRefRevealRow 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
  }

  @keyframes dashRefRevealRow {
    from {
      opacity: 0;
      transform: translateX(6px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

@media (max-width: 400px) {
  .dash-container-home {
    padding-top: 10px;
  }

  .dash-top-pro .dash-header-ref {
    margin-left: 6px;
  }

  .dash-header-ref-code {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .dash-header-ref-pill {
    padding: 4px 8px;
  }
}

/* Hero Balance Card */
.dash-hero-card {
  position: relative;
  border-radius: 26px;
  padding: 28px 24px;
  margin-bottom: 20px;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

/* Inner hairline for a refined double-frame look (matches network frame) */
.dash-hero-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 0;
}

.dash-hero-bg {
  position: absolute;
  inset: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  z-index: -1;
}

.dash-hero-bg::before {
  content: none;
}

.dash-hero-content {
  position: relative;
  z-index: 1;
}

.dash-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-hero-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dash-hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.dash-hero-icon {
  font-size: 16px;
}

.dash-hero-badge {
  background: rgba(110, 231, 255, 0.1);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(110, 231, 255, 0.2);
}

.dash-hero-balance {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

/* Entry fee badge */
.dash-entry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.dash-entry-badge.unpaid {
  background: rgba(255, 80, 80, 0.12);
  color: #ff6b6b;
  border: 1px solid rgba(255, 80, 80, 0.2);
}

.dash-entry-badge.paid {
  background: rgba(126, 242, 157, 0.12);
  color: #7ef29d;
  border: 1px solid rgba(126, 242, 157, 0.2);
}

.dash-entry-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Balance row with withdraw button */
.dash-hero-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-withdraw-btn {
  background: #22c55e;
  color: #07110b;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dash-withdraw-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.dash-withdraw-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.dash-withdraw-msg {
  font-size: 12px;
  margin: 0 0 8px;
}

/* Withdrawable / Locked balance rows */
.dash-withdrawable-row,
.dash-locked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}
.dash-withdrawable-label {
  color: #22c55e;
  font-weight: 600;
}
.dash-withdrawable-amount {
  color: #22c55e;
  font-weight: 700;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
}
.dash-locked-label {
  color: #FF9A1F;
  font-weight: 600;
}
.dash-locked-amount {
  color: #FF9A1F;
  font-weight: 700;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
}
.dash-locked-row + .dash-withdraw-msg {
  margin-top: 6px;
}

.dash-hero-amount {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  color: var(--muted);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.dash-hero-currency {
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
}

.dash-hero-address,
.dash-hero-referral {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.tier-locked {
  justify-content: center;
}
.tier-locked .tier-earn-amount,
.tier-locked .tier-strips,
.tier-locked .tier-gauge {
  display: none;
}
.tier-locked .tier-left {
  flex: unset;
  justify-content: center;
}
.tier-unlocked {
  opacity: 1;
}


.dash-deposit-bnb-hint {
  font-size: 11px;
  font-weight: 700;
  color: #22c55e;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
  text-transform: none;
}

.dash-hero-addr-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0;
}

.ref-countdown {
  font-size: 11px;
  font-weight: 700;
  color: #ff4d4d;
  margin-left: 8px;
  letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
}
.ref-countdown.expired {
  color: #ff1a1a;
}

.dash-hero-addr-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-hero-addr-text {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-hero-addr-text.inactive {
  color: rgba(255, 80, 80, 0.5);
  font-style: italic;
  font-family: "Inter", system-ui, sans-serif;
}

.dash-hero-copy {
  background: rgba(110, 231, 255, 0.1);
  border: none;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.dash-hero-copy:hover {
  background: rgba(110, 231, 255, 0.2);
  transform: scale(1.05);
}

.dash-hero-copy:active {
  transform: scale(0.95);
}

.dash-hero-status {
  font-size: 12px;
  color: var(--success);
  margin: 8px 0 0;
  min-height: 18px;
}

/* Quick Stats Row */
.dash-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.dash-stats-stack {
  flex-direction: column;
}

.dash-stat-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 36, 51, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}

.dash-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.dash-stat-icon-ref {
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.15) 0%, rgba(110, 231, 255, 0.05) 100%);
}

.dash-stat-icon-name {
  background: linear-gradient(135deg, rgba(138, 79, 255, 0.15) 0%, rgba(138, 79, 255, 0.05) 100%);
}

.dash-stat-info {
  flex: 1;
  min-width: 0;
}

.dash-stat-label {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
}

.dash-stat-value {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-stat-action {
  background: none;
  border: none;
  color: var(--muted);
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.dash-stat-action:hover {
  color: var(--accent);
  background: rgba(110, 231, 255, 0.1);
}

/* Network Growth Section */
.dash-network {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 26px 18px 32px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

/* Inner hairline for a refined double-frame look */
.dash-network::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 600px) {
  .dash-network {
    padding: 22px 14px 28px;
    border-radius: 22px;
  }
  .dash-network::before {
    inset: 5px;
    border-radius: 17px;
  }
}

/* White frames + levels on the home dashboard */
.dash-container-home .dash-network,
.dash-container-home .dash-hero-card {
  border-color: rgba(255, 255, 255, 0.85);
  background: transparent;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.dash-container-home .dash-network::before,
.dash-container-home .dash-hero-card::before {
  content: none;
}

.dash-container-home .dash-hero-bg {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(244, 247, 255, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(185, 242, 255, 0.18) 0%, transparent 50%),
    linear-gradient(145deg, rgba(24, 28, 36, 0.92) 0%, rgba(12, 14, 20, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px;
  box-shadow: inset 0 0 40px rgba(244, 247, 255, 0.14);
}

.dash-container-home .tier-title {
  --tier-color: #F4F7FF;
  --shimmer-lo: #C8D0E0;
  --shimmer-hi: rgba(255, 255, 255, 0.95);
}

.dash-container-home .tier-earn-amount {
  color: #F4F7FF;
}

/* Gold frames on the VIP page */
.vip-page .dash-network,
.vip-page .dash-hero-card {
  border-color: rgba(255, 215, 0, 0.85);
  background: transparent;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.vip-page .dash-network::before,
.vip-page .dash-hero-card::before {
  content: none;
}

.vip-page .dash-hero-bg {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 215, 0, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 160, 0, 0.18) 0%, transparent 50%),
    linear-gradient(145deg, rgba(40, 32, 8, 0.92) 0%, rgba(18, 14, 4, 0.96) 100%);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 26px;
  box-shadow: inset 0 0 40px rgba(255, 160, 0, 0.14);
}

.vip-page .tier-title {
  --tier-color: #FFD700;
  --shimmer-lo: #FFA000;
  --shimmer-hi: rgba(255, 240, 160, 0.95);
}

.vip-page .tier-earn-amount {
  color: #FFD700;
}

/* Bloody red frames on the ALL IN page (single border, no inner hairline) */
.allin-page .dash-network,
.allin-page .dash-hero-card {
  border-color: rgba(220, 20, 60, 0.9);
  background: transparent;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.allin-page .dash-network::before,
.allin-page .dash-hero-card::before {
  content: none;
}

.allin-page .dash-hero-bg {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(220, 20, 60, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(139, 0, 0, 0.18) 0%, transparent 50%),
    linear-gradient(145deg, rgba(40, 8, 12, 0.92) 0%, rgba(18, 4, 8, 0.96) 100%);
  border: 1px solid rgba(178, 34, 34, 0.28);
  border-radius: 26px;
  box-shadow: inset 0 0 40px rgba(139, 0, 0, 0.14);
}

.allin-page .tier-title {
  --tier-color: #DC143C;
  --shimmer-lo: #B22222;
  --shimmer-hi: rgba(255, 100, 100, 0.95);
}

.allin-page .tier-earn-amount {
  color: #DC143C;
}

/* News ribbon (scrolling ticker) */
.news-ribbon {
  width: 100%;
  margin: 0 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.news-marquee {
  width: 100%;
  overflow: hidden;
  padding: 10px 12px;
}

.news-marquee-inner {
  display: flex;
  width: max-content;
  gap: 28px;
  animation: newsScroll 18s linear infinite;
  will-change: transform;
}

.news-seq {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.news-item {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.2px;
}

.news-sep {
  color: var(--muted);
  font-size: 12px;
}

@keyframes newsScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-marquee-inner {
    animation: none;
  }
}

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

.dash-section-head-centered {
  justify-content: center;
  text-align: center;
}

.dash-section-head-centered > div {
  width: 100%;
}

.dash-section-head-centered .dash-section-title {
  color: var(--muted);
}

.dash-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.dash-section-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.dash-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 14px;
  background: rgba(110, 231, 255, 0.08);
  border-radius: 10px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dash-section-link:hover {
  background: rgba(110, 231, 255, 0.15);
  transform: translateY(-1px);
}

/* ── Page-level network swipe motion ── */
.dash-body {
  --home-swipe-x: 0px;
  --network-a: #6ee7ff;
  --network-b: #2f6bff;
  touch-action: pan-y;
}

.dash-body.is-network-switching {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

.network-swipe-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.home-network-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── Dotted helix that weaves down around the network levels ── */
.network-helix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.hx-strand {
  fill: none;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 0.1 7;
}

.hx-strand-2 {
  stroke: rgba(255, 255, 255, 0.62);
}

/* Filter-free glow: a soft translucent halo circle behind a solid core. */
.hx-moon {
  fill: #ffffff;
}

.hx-moon-halo {
  fill: rgba(255, 255, 255, 0.22);
}

/* Gold variant (VIP page) */
.vip-helix .hx-strand {
  stroke: rgba(255, 215, 0, 0.95);
}

.vip-helix .hx-strand-2 {
  stroke: rgba(255, 215, 0, 0.82);
}

.vip-helix .hx-moon {
  fill: #ffd700;
}

.vip-helix .hx-moon-halo {
  fill: rgba(255, 200, 0, 0.4);
}

/* Burning red variant (ALL IN page) */
.allin-helix .hx-strand {
  stroke: #ff3b30;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 5px rgba(255, 59, 48, 0.55));
  animation: allin-strand-flicker 2.4s ease-in-out infinite;
}

.allin-helix .hx-strand-2 {
  stroke: #ff6b35;
  filter: drop-shadow(0 0 4px rgba(255, 107, 53, 0.45));
  animation: allin-strand-flicker 2.4s ease-in-out infinite 0.6s;
}

.allin-helix .hx-moon {
  fill: #ff1744;
  animation: allin-moon-burn 1.6s ease-in-out infinite;
}

.allin-helix .hx-moon-halo {
  fill: rgba(255, 59, 48, 0.42);
  animation: allin-moon-burn-halo 1.6s ease-in-out infinite;
}

@keyframes allin-strand-flicker {
  0%, 100% { stroke-opacity: 1; }
  45% { stroke-opacity: 0.72; }
  55% { stroke-opacity: 0.95; }
}

@keyframes allin-moon-burn {
  0%, 100% {
    fill: #ff1744;
    filter: drop-shadow(0 0 6px rgba(255, 23, 68, 0.85));
  }
  50% {
    fill: #ff5722;
    filter: drop-shadow(0 0 14px rgba(255, 87, 34, 1));
  }
}

@keyframes allin-moon-burn-halo {
  0%, 100% { fill: rgba(255, 59, 48, 0.35); }
  50% { fill: rgba(255, 120, 50, 0.62); }
}

/* Give the level column room so the helix breathes around it */
.dash-tiers.home-has-helix {
  align-items: center;
}

.dash-tiers.home-has-helix > .tier-group {
  width: min(78%, 262px);
}

@media (prefers-reduced-motion: reduce) {
  .hx-strand { animation: none; }
  .hx-moon { display: none; }
  .allin-helix .hx-strand,
  .allin-helix .hx-strand-2,
  .allin-helix .hx-moon,
  .allin-helix .hx-moon-halo { animation: none; }
}

.network-swipe-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: width 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.network-swipe-dot.is-active {
  width: 16px;
  background: var(--network-a);
  box-shadow: 0 0 12px color-mix(in srgb, var(--network-a) 55%, transparent);
}

.network-swipe-dot.is-locked {
  opacity: 0.35;
}

.network-purchase-card {
  margin: 18px auto 8px;
  max-width: 420px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--network-a) 35%, rgba(255,255,255,0.1));
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--network-a) 20%, transparent), transparent 42%),
    rgba(12, 16, 28, 0.86);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  text-align: center;
}

.network-purchase-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--network-a);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.network-purchase-card h3 {
  margin: 0 0 8px;
  color: #f4f7ff;
  font-size: 22px;
}

.network-purchase-card p {
  margin: 0 auto 14px;
  max-width: 340px;
  color: #aab4cf;
  font-size: 13px;
  line-height: 1.55;
}

.network-purchase-price {
  margin: 0 auto 14px;
  color: #ffd700;
  font-size: 14px;
  font-weight: 900;
}

.network-purchase-btn {
  border: 1px solid color-mix(in srgb, var(--network-a) 70%, white);
  border-radius: 999px;
  padding: 11px 18px;
  background: color-mix(in srgb, var(--network-a) 18%, transparent);
  color: #f4f7ff;
  font-weight: 800;
  cursor: pointer;
}

.network-purchase-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.network-purchase-status {
  min-height: 18px;
  margin-top: 12px !important;
  color: #6ee7ff !important;
}

.network-payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.78);
}

.network-payment-overlay[hidden] {
  display: none;
}

.network-payment-dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 26px 22px;
  border: 1px solid rgba(110, 231, 255, 0.18);
  border-radius: 22px;
  background: #131825;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  color: #f4f7ff;
}

.network-payment-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: #9ba4bc;
  cursor: pointer;
}

.network-payment-eyebrow,
.network-payment-label {
  margin: 0 0 8px;
  color: #7b89a8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.network-payment-dialog h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.network-payment-copy {
  margin: 0 0 18px;
  color: #9ba4bc;
  font-size: 13px;
  line-height: 1.5;
}

.network-payment-amount {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(110,231,255,0.18);
  border-radius: 12px;
  background: rgba(110,231,255,0.07);
}

.network-payment-amount span {
  color: #6ee7ff;
  font-size: 22px;
  font-weight: 900;
}

.network-payment-amount small {
  margin-left: auto;
  color: #9ba4bc;
  font-weight: 700;
}

.network-payment-address-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(110,231,255,0.15);
  border-radius: 10px;
  background: #0f1117;
}

.network-payment-address-row span {
  flex: 1;
  color: #f4f7ff;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-all;
}

.network-payment-address-row button,
.network-payment-check {
  border: 1px solid rgba(110,231,255,0.32);
  border-radius: 8px;
  background: rgba(110,231,255,0.08);
  color: #6ee7ff;
  font-weight: 800;
  cursor: pointer;
}

.network-payment-address-row button {
  padding: 7px 9px;
}

.network-payment-timer,
.network-payment-status,
.network-payment-partial {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.network-payment-timer {
  justify-content: space-between;
  border: 1px solid rgba(245,158,11,0.22);
  background: rgba(245,158,11,0.07);
  color: #f59e0b;
}

.network-payment-timer.is-expired,
.network-payment-partial {
  border: 1px solid rgba(255,152,0,0.35);
  background: rgba(255,152,0,0.12);
  color: #ffe0b2;
}

.network-payment-status {
  padding-left: 2px;
  color: #9ba4bc;
}

.network-payment-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #9ba4bc;
}

.network-payment-dot.waiting {
  background: #f59e0b;
  animation: pulse 1.4s ease-in-out infinite;
}

.network-payment-dot.checking {
  background: #6ee7ff;
  animation: pulse 0.6s ease-in-out infinite;
}

.network-payment-dot.paid {
  background: #00e676;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.network-payment-check {
  width: 100%;
  padding: 12px;
}

.network-payment-check:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dash-body.is-home-swiping .dash-container {
  transform: translateX(var(--home-swipe-x));
  transition: none;
}

.dash-body.is-page-fading-out .dash-container {
  opacity: 0;
  transform: scale(.965);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(.4,0,.2,1);
}

.dash-body.is-page-hidden .dash-container {
  opacity: 0;
  transform: scale(.965);
  transition: none;
}

.dash-body.is-page-fading-in .dash-container {
  animation: dashboardFadeIn 620ms cubic-bezier(.16,.84,.28,1) both;
}

.network-switch-word {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1000;
  transform: translate(-50%, -50%);
  display: block;
  width: max-content;
  max-width: 92vw;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  color: #f7fbff;
  font-size: clamp(22px, 8vw, 44px);
  font-weight: 900;
  letter-spacing: .18em;
  text-shadow:
    0 0 18px color-mix(in srgb, var(--network-a) 70%, transparent),
    0 0 42px color-mix(in srgb, var(--network-b) 35%, transparent);
}

.network-switch-word span {
  display: block;
  width: max-content;
  padding-right: .45em;
  clip-path: inset(0 100% 0 0);
  background: linear-gradient(90deg, var(--network-a), #fff, var(--network-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dash-body.is-network-wording .network-switch-word {
  opacity: 1;
}

.dash-body.is-network-wording .network-switch-word span {
  animation: mooncatcherWriteErase 1850ms steps(14, end) both;
}

.dash-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--network-a) 16%, transparent), transparent 28%, transparent 72%, color-mix(in srgb, var(--network-b) 12%, transparent)),
    radial-gradient(circle at 50% 8%, color-mix(in srgb, var(--network-a) 10%, transparent), transparent 42%);
  transition: opacity 280ms ease;
}

.dash-body.is-home-swiping::after,
.dash-body.is-network-wording::after,
.dash-body.is-network-switching::after {
  opacity: .76;
}

@keyframes mooncatcherWriteErase {
  0% { clip-path: inset(0 100% 0 0); opacity: 0; }
  8% { clip-path: inset(0 100% 0 0); opacity: 1; }
  38% { clip-path: inset(0 0 0 0); opacity: 1; }
  76% { clip-path: inset(0 0 0 0); opacity: 1; }
  97% { clip-path: inset(0 100% 0 0); opacity: 1; }
  100% { clip-path: inset(0 100% 0 0); opacity: 0; }
}

@keyframes dashboardFadeIn {
  0% { opacity: 0; transform: scale(.965); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .dash-body.is-home-swiping .dash-container,
  .dash-body.is-page-fading-out .dash-container,
  .dash-body.is-page-hidden .dash-container,
  .dash-body.is-page-fading-in .dash-container,
  .network-switch-word,
  .network-switch-word span,
  .network-swipe-dot,
  .dash-tiers,
  .dash-body::after {
    transition: none;
    animation: none;
  }
}

/* ── Tier groups (paired sub-tiers) ── */
.dash-tiers {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  position: relative;
}

.home-moon-orbat {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  min-height: 220px;
}

.home-sphere-reward {
  --lock: #dbefff;
  --lock-glow: rgba(185, 242, 255, 0.7);
  position: relative;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-hollow-sphere {
  width: 160px;
  height: 160px;
}

/* ── Shake + lock construction reveal (home + VIP) ── */
.reward-shaker {
  position: relative;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
}

.reward-shaker > .vip-tree-sphere,
.reward-shaker > .allin-tree-sphere {
  grid-area: 1 / 1;
}

.reward-lock {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
}

.reward-lock-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.reward-soon-word {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 14px;
  margin-top: 1px;
}

.reward-soon-letter {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  line-height: 1;
  color: var(--lock);
  text-shadow: 0 0 8px var(--lock-glow);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  filter: blur(2px);
}

.reward-lock-svg {
  display: block;
  overflow: visible;
}

.reward-lock-body {
  fill: rgba(8, 12, 20, 0.55);
  stroke: var(--lock);
  stroke-width: 3.4;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0);
  opacity: 0;
}

.reward-lock-shackle {
  fill: none;
  stroke: var(--lock);
  stroke-width: 3.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 82;
  stroke-dashoffset: 82;
}

.reward-lock-hole,
.reward-lock-pin {
  fill: var(--lock);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  opacity: 0;
}

/* Reveal sequence: moon shakes, then the lock builds piece by piece */
.home-sphere-reward.is-revealed .reward-shaker,
.vip-sphere-reward.is-revealed .reward-shaker,
.allin-sphere-reward.is-revealed .reward-shaker {
  animation: rewardShake 600ms cubic-bezier(.36,.07,.19,.97);
}

.home-sphere-reward.is-revealed .reward-shaker > .vip-tree-sphere,
.vip-sphere-reward.is-revealed .reward-shaker > .vip-tree-sphere,
.allin-sphere-reward.is-revealed .reward-shaker > .allin-tree-sphere {
  opacity: 0.65;
  transition: opacity 320ms ease 560ms;
}

.home-sphere-reward.is-revealed .reward-lock,
.vip-sphere-reward.is-revealed .reward-lock,
.allin-sphere-reward.is-revealed .reward-lock {
  opacity: 1;
  transition: opacity 180ms linear 560ms;
}

.home-sphere-reward.is-revealed .reward-lock-body,
.vip-sphere-reward.is-revealed .reward-lock-body,
.allin-sphere-reward.is-revealed .reward-lock-body {
  animation: lockBody 560ms cubic-bezier(.2,.9,.2,1) 600ms forwards;
}

.home-sphere-reward.is-revealed .reward-lock-shackle,
.vip-sphere-reward.is-revealed .reward-lock-shackle,
.allin-sphere-reward.is-revealed .reward-lock-shackle {
  animation: lockShackle 900ms ease-out 1150ms forwards;
}

.home-sphere-reward.is-revealed .reward-lock-hole,
.vip-sphere-reward.is-revealed .reward-lock-hole,
.allin-sphere-reward.is-revealed .reward-lock-hole {
  animation: lockPop 320ms ease-out 2060ms forwards;
}

.home-sphere-reward.is-revealed .reward-lock-pin,
.vip-sphere-reward.is-revealed .reward-lock-pin,
.allin-sphere-reward.is-revealed .reward-lock-pin {
  animation: lockPop 360ms ease-out 2180ms forwards;
}

.home-sphere-reward.is-revealed .reward-lock-svg,
.vip-sphere-reward.is-revealed .reward-lock-svg,
.allin-sphere-reward.is-revealed .reward-lock-svg {
  animation: lockGlow 1300ms ease-in-out 2300ms forwards;
}

.home-sphere-reward.is-revealed .reward-soon-letter:nth-child(1),
.vip-sphere-reward.is-revealed .reward-soon-letter:nth-child(1),
.allin-sphere-reward.is-revealed .reward-soon-letter:nth-child(1) {
  animation: soonLetter 460ms cubic-bezier(.2,.9,.2,1) 2540ms forwards;
}

.home-sphere-reward.is-revealed .reward-soon-letter:nth-child(2),
.vip-sphere-reward.is-revealed .reward-soon-letter:nth-child(2),
.allin-sphere-reward.is-revealed .reward-soon-letter:nth-child(2) {
  animation: soonLetter 460ms cubic-bezier(.2,.9,.2,1) 2740ms forwards;
}

.home-sphere-reward.is-revealed .reward-soon-letter:nth-child(3),
.vip-sphere-reward.is-revealed .reward-soon-letter:nth-child(3),
.allin-sphere-reward.is-revealed .reward-soon-letter:nth-child(3) {
  animation: soonLetter 460ms cubic-bezier(.2,.9,.2,1) 2940ms forwards;
}

.home-sphere-reward.is-revealed .reward-soon-letter:nth-child(4),
.vip-sphere-reward.is-revealed .reward-soon-letter:nth-child(4),
.allin-sphere-reward.is-revealed .reward-soon-letter:nth-child(4) {
  animation: soonLetter 460ms cubic-bezier(.2,.9,.2,1) 3140ms forwards;
}

.home-sphere-reward.is-revealed .reward-soon-word,
.vip-sphere-reward.is-revealed .reward-soon-word,
.allin-sphere-reward.is-revealed .reward-soon-word {
  animation: soonGlow 900ms ease-in-out 3600ms forwards;
}

@keyframes soonLetter {
  0% { opacity: 0; transform: scaleY(0); filter: blur(2px); }
  62% { opacity: 1; transform: scaleY(1.14); filter: blur(0); }
  100% { opacity: 1; transform: scaleY(1); filter: blur(0); }
}

@keyframes soonGlow {
  0% { filter: drop-shadow(0 0 0 transparent); }
  55% { filter: drop-shadow(0 0 8px var(--lock-glow)); }
  100% { filter: drop-shadow(0 0 4px var(--lock-glow)); }
}

@keyframes rewardShake {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  10% { transform: translate3d(-5px, 0, 0) rotate(-3deg); }
  20% { transform: translate3d(6px, 0, 0) rotate(3deg); }
  30% { transform: translate3d(-7px, 0, 0) rotate(-4deg); }
  40% { transform: translate3d(7px, 0, 0) rotate(4deg); }
  50% { transform: translate3d(-6px, 0, 0) rotate(-3deg); }
  60% { transform: translate3d(5px, 0, 0) rotate(2deg); }
  70% { transform: translate3d(-4px, 0, 0) rotate(-2deg); }
  80% { transform: translate3d(3px, 0, 0) rotate(1deg); }
  90% { transform: translate3d(-2px, 0, 0) rotate(0deg); }
}

@keyframes lockBody {
  0% { transform: scaleY(0); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: scaleY(1); opacity: 1; }
}

@keyframes lockShackle {
  0% { stroke-dashoffset: 82; }
  100% { stroke-dashoffset: 0; }
}

@keyframes lockPop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes lockGlow {
  0% { filter: drop-shadow(0 0 0 transparent); }
  45% { filter: drop-shadow(0 0 12px var(--lock-glow)); }
  100% { filter: drop-shadow(0 0 7px var(--lock-glow)); }
}

/* Glowing connector line between tier groups */
.tier-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  position: relative;
  z-index: 1;
}

.tier-connector-line {
  width: 2px;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

/* Gradient background: top-color to bottom-color */
.tier-connector-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--conn-top), var(--conn-bot));
  opacity: 0.4;
}

/* Animated pulse flowing down */
.tier-connector-line::after {
  content: "";
  position: absolute;
  left: -1px;
  width: 4px;
  height: 10px;
  border-radius: 2px;
  background: var(--conn-bot);
  box-shadow: 0 0 8px var(--conn-bot), 0 0 16px var(--conn-bot);
  animation: connPulse 2s ease-in-out infinite;
  opacity: 0;
}

/* Node dot at junction */
.tier-connector-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--conn-bot);
  box-shadow: 0 0 6px var(--conn-bot), 0 0 12px rgba(255,255,255,0.15);
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

@keyframes connPulse {
  0%   { top: -10px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes moonSwing {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(3deg); }
  50%  { transform: rotate(0deg); }
  75%  { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

.tier-group {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.moon-orb,
.moon-tier {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* Cards inside a group: flush, no individual border/radius */
.tier-group .tier-card,
.tier-group .tier-card-large,
.tier-group .tier-locked-row {
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  background: transparent;
}

/* Subtle separator between sub-tier I and II */
.tier-sub-ii {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Locked row inside group */
.tier-group .tier-locked-row {
  padding: 0;
}

/* Bottom Navigation */
.dash-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  --dash-nav-pad-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 17, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: none;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: flex-end;
  padding: 12px 0 var(--dash-nav-pad-bottom);
  z-index: 100;
  overflow: visible;
}

.dash-nav.dash-nav-has-allin {
  flex-direction: row;
  align-items: flex-end;
  justify-content: stretch;
  --dash-nav-pad-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  padding: 8px 14px var(--dash-nav-pad-bottom);
  gap: 0;
  overflow: visible;
}

.dash-nav.dash-nav-has-allin .dash-nav-icons {
  order: 0;
  flex: 1 1 auto;
  width: 100%;
}

.dash-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 6px 0;
  border-radius: 12px;
  position: relative;
  z-index: 3;
  flex: 1;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
}

.dash-nav-item svg {
  transition: all 0.3s ease;
}

.dash-nav-item:hover {
  color: var(--text);
}

.dash-nav-item.active {
  color: #fff;
}

.dash-nav-item.active svg {
  filter: drop-shadow(0 0 6px rgba(60, 160, 255, 0.5));
}

/* Small dot indicator under active icon */
.dash-nav-item.active::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3ca0ff;
}

/* ── ALL IN entry cinematic (M slide up) ── */
.allin-slide-cinematic {
  position: fixed;
  inset: 0;
  z-index: 1998;
  pointer-events: none;
  visibility: hidden;
}

.allin-slide-cinematic.is-dragging,
.allin-slide-cinematic.is-launching {
  visibility: visible;
}

.allin-slide-cinematic-dim {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 0.07s linear;
}

.allin-slide-cinematic-red {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 90% at 50% 105%, rgba(220, 20, 60, 0.98) 0%, rgba(120, 0, 0, 0.88) 38%, rgba(40, 0, 0, 0.82) 100%);
  opacity: 0;
  transition: opacity 0.08s linear, background 0.45s ease;
}

.allin-slide-cinematic.is-launching .allin-slide-cinematic-dim {
  opacity: 1;
  transition: opacity 0.38s ease;
}

.allin-slide-cinematic.is-launching .allin-slide-cinematic-red {
  opacity: 1;
  transition: opacity 0.32s ease, background 0.55s ease 0.15s;
}

.allin-slide-cinematic.is-launching.is-black .allin-slide-cinematic-red {
  background: rgba(5, 2, 4, 0.98);
}

.allin-slide-cinematic-welcome {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.allin-slide-cinematic.is-welcome .allin-slide-cinematic-welcome {
  opacity: 1;
  visibility: visible;
}

.allin-big-leagues-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, rgba(80, 0, 0, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at center, transparent 22%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
}

.allin-big-leagues-fire-wrap {
  position: relative;
  z-index: 1;
  padding: 28px 24px 36px;
  text-align: center;
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.7s ease;
}

.allin-slide-cinematic.is-welcome .allin-big-leagues-fire-wrap {
  transform: scale(1);
  opacity: 1;
}

.allin-big-leagues-flames {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(92vw, 340px);
  height: 72px;
  pointer-events: none;
}

.allin-bl-flame {
  position: absolute;
  bottom: 0;
  border-radius: 50% 50% 45% 45% / 55% 55% 35% 35%;
  filter: blur(10px);
  opacity: 0;
  mix-blend-mode: screen;
  animation: allinBlFlameDance 2.2s ease-in-out infinite;
}

.allin-slide-cinematic.is-welcome .allin-bl-flame {
  opacity: 0.42;
}

.allin-bl-flame-1 {
  left: 18%;
  width: 52px;
  height: 64px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 140, 50, 0.55) 0%, rgba(220, 20, 60, 0.35) 50%, transparent 78%);
  animation-delay: 0s;
}

.allin-bl-flame-2 {
  left: 42%;
  width: 68px;
  height: 78px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 170, 70, 0.5) 0%, rgba(178, 34, 34, 0.38) 48%, transparent 80%);
  animation-delay: 0.45s;
}

.allin-bl-flame-3 {
  left: 66%;
  width: 48px;
  height: 58px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 110, 40, 0.48) 0%, rgba(139, 0, 0, 0.32) 52%, transparent 76%);
  animation-delay: 0.9s;
}

.allin-big-leagues-msg {
  position: relative;
  margin: 0;
  font-size: clamp(21px, 5.8vw, 34px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  animation: allinBigLeaguesPulse 2.4s ease-in-out infinite;
  animation-delay: 1.85s;
}

.allin-bl-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px) scale(0.12);
  filter: blur(14px) brightness(2);
  background: linear-gradient(
    180deg,
    rgba(255, 200, 120, 0.85) 0%,
    #ff4d4d 22%,
    #dc143c 48%,
    #8b0000 78%,
    #4a0000 100%
  );
  background-size: 100% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  will-change: transform, opacity, filter;
}

.allin-bl-letter-space {
  width: 0.38em;
}

.allin-slide-cinematic.is-welcome .allin-bl-letter {
  animation:
    allinBlLetterBuild 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    allinBlLetterFireDrift 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.075s), calc(var(--i) * 0.075s + 0.55s);
}

.allin-big-leagues-msg::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -6px;
  height: 28px;
  background: linear-gradient(to top, rgba(220, 20, 60, 0.22), transparent);
  filter: blur(12px);
  animation: allinEmberGlow 1.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes allinBlLetterBuild {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.12);
    filter: blur(14px) brightness(2.2);
  }
  58% {
    opacity: 1;
    transform: translateY(-4px) scale(1.14);
    filter: blur(0) brightness(1.25) drop-shadow(0 0 14px rgba(220, 20, 60, 0.85));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) brightness(1) drop-shadow(0 0 10px rgba(220, 20, 60, 0.55));
  }
}

@keyframes allinBlLetterFireDrift {
  0%, 100% { background-position: 0% 35%; }
  50% { background-position: 0% 62%; }
}

@keyframes allinBlFlameDance {
  0%, 100% { transform: scaleY(1) scaleX(1) translateY(0); opacity: 0.32; }
  40% { transform: scaleY(1.08) scaleX(0.94) translateY(-5px); opacity: 0.48; }
  70% { transform: scaleY(0.94) scaleX(1.04) translateY(2px); opacity: 0.36; }
}

@keyframes allinFireTextDrift {
  0%, 100% { background-position: 0% 35%; }
  50% { background-position: 0% 62%; }
}

@keyframes allinBigLeaguesPulse {
  0%, 100% { filter: brightness(0.96); }
  50% { filter: brightness(1.08); }
}

@keyframes allinEmberGlow {
  0%, 100% { opacity: 0.45; transform: scaleX(1); }
  50% { opacity: 0.72; transform: scaleX(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .allin-bl-flame,
  .allin-big-leagues-msg,
  .allin-big-leagues-msg::after,
  .allin-bl-letter {
    animation: none !important;
  }

  .allin-bl-letter {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .allin-slide-cinematic-dim,
  .allin-slide-cinematic-red,
  .allin-big-leagues-fire-wrap,
  .allin-slide-cinematic-welcome {
    transition: none !important;
  }

  .vip-slide-nav-hint,
  .vip-slide-nav-label,
  .vip-slide-nav-icon {
    animation: none !important;
  }

  .vip-slide-nav-label {
    opacity: 0.85 !important;
  }

  .vip-slide-nav.is-slide-hint-ready .vip-slide-nav-hint {
    opacity: 0.9 !important;
  }
}

/* ── VIP slide-up nav → All In entry ── */
.dash-nav-item.vip-slide-nav {
  --allin-lift: 0;
  --vip-slide-travel: 26px;
  transform: translateY(-4px);
  z-index: 8;
  touch-action: none;
  cursor: grab;
  overflow: visible;
  gap: 3px;
  color: rgba(255, 255, 255, 0.52);
}

.vip-slide-nav-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: calc(var(--vip-slide-travel) + 34px);
  transform: translate(-50%, -18px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.vip-slide-nav.is-slide-hint-active .vip-slide-nav-hint {
  opacity: 1;
}

.vip-slide-nav-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.28) 38%,
    rgba(255, 255, 255, 0.52) 72%,
    rgba(255, 255, 255, 0.82) 100%
  );
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.vip-slide-nav-shimmer {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0.72) 45%, rgba(255, 255, 255, 0) 72%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
  opacity: 0;
}

.vip-slide-nav.is-slide-hint-active .vip-slide-nav-shimmer {
  animation: vipSlideShimmer 3s cubic-bezier(0.45, 0, 0.55, 1) 1 forwards;
}

.vip-slide-nav-cap {
  position: absolute;
  left: 50%;
  top: -2px;
  width: 14px;
  height: 3px;
  margin-left: -7px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
  opacity: 0.35;
  transform: scaleX(0.6);
}

.vip-slide-nav.is-slide-hint-active .vip-slide-nav-cap {
  animation: vipSlideCapPulse 3s cubic-bezier(0.45, 0, 0.55, 1) 1 forwards;
}

.vip-slide-nav-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  will-change: transform;
}

.vip-slide-nav.is-slide-hint-active:not(.is-allin-dragging):not(.is-allin-lifting):not(.is-allin-launching) .vip-slide-nav-icon {
  animation: vipSlideHintDemo 3s cubic-bezier(0.45, 0, 0.55, 1) 1 forwards;
}

.vip-slide-nav-label {
  position: absolute;
  left: 50%;
  bottom: calc(-1 * var(--dash-nav-pad-bottom) - 2px);
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.22);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.vip-slide-nav.is-slide-hint-active .vip-slide-nav-label {
  animation: vipSlideLabelPulse 3s ease-in-out 1 forwards;
}

.vip-slide-nav.is-slide-hint-done .vip-slide-nav-hint,
.vip-slide-nav.is-slide-hint-done .vip-slide-nav-label {
  opacity: 0;
  animation: none;
}

@keyframes vipSlideHintDemo {
  0%, 16% { transform: translateY(0); }
  38%, 54% { transform: translateY(calc(-1 * var(--vip-slide-travel))); }
  76%, 100% { transform: translateY(0); }
}

@keyframes vipSlideShimmer {
  0%, 14% { transform: translateY(0); opacity: 0; }
  24% { opacity: 1; }
  38%, 54% { transform: translateY(calc(-1 * var(--vip-slide-travel) - 8px)); opacity: 1; }
  68%, 100% { transform: translateY(calc(-1 * var(--vip-slide-travel) - 8px)); opacity: 0; }
}

@keyframes vipSlideCapPulse {
  0%, 34% { opacity: 0.25; transform: scaleX(0.55); }
  42%, 58% { opacity: 1; transform: scaleX(1); box-shadow: 0 0 10px rgba(255, 255, 255, 0.45); }
  72%, 100% { opacity: 0.25; transform: scaleX(0.55); }
}

@keyframes vipSlideLabelPulse {
  0%, 100% { opacity: 0.45; }
  45%, 55% { opacity: 0.95; }
}

.dash-nav-item.vip-slide-nav.is-allin-dragging .vip-slide-nav-hint,
.dash-nav-item.vip-slide-nav.is-allin-lifting .vip-slide-nav-hint,
.dash-nav-item.vip-slide-nav.is-allin-launching .vip-slide-nav-hint,
.dash-nav-item.vip-slide-nav.is-allin-dragging .vip-slide-nav-label,
.dash-nav-item.vip-slide-nav.is-allin-lifting .vip-slide-nav-label,
.dash-nav-item.vip-slide-nav.is-allin-launching .vip-slide-nav-label {
  opacity: 0;
  animation: none;
}

.dash-nav-item.vip-slide-nav.is-allin-dragging .vip-slide-nav-icon,
.dash-nav-item.vip-slide-nav.is-allin-lifting .vip-slide-nav-icon,
.dash-nav-item.vip-slide-nav.is-allin-launching .vip-slide-nav-icon {
  animation: none;
  transform: none;
}

.dash-nav-item.vip-slide-nav.is-allin-dragging {
  cursor: grabbing;
  z-index: 2002;
  position: relative;
}

.dash-nav-item.vip-slide-nav.is-allin-dragging .vip-slide-nav-icon > svg {
  animation: none;
}

.dash-nav-item.vip-slide-nav.is-allin-lifting .vip-slide-nav-icon > svg {
  filter: drop-shadow(0 0 calc(10px + var(--allin-lift) * 20px) rgba(220, 20, 60, 0.75));
}

.dash-nav-item.vip-slide-nav.is-allin-complete .vip-slide-nav-icon > svg {
  filter: drop-shadow(0 0 22px rgba(220, 20, 60, 0.9));
}

.dash-nav-item.vip-slide-nav.is-allin-launching {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.dash-nav-item.vip-slide-nav .vip-slide-nav-icon > svg {
  width: 36px;
  height: 36px;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
  animation: vip-crown-sparkle 2.2s ease-in-out infinite;
}

.dash-nav-item.vip-slide-nav .vip-slide-nav-title {
  display: block;
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.52);
  text-shadow: none;
  line-height: 1.1;
  margin-top: 1px;
}

.dash-nav-item.vip-slide-nav:hover .vip-slide-nav-title {
  color: rgba(255, 255, 255, 0.82);
}

.dash-nav-item.vip-slide-nav.active .vip-slide-nav-title {
  color: #ffffff;
}

@keyframes vip-crown-sparkle {
  0%   { filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.28)); }
  25%  { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.62)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.18)); }
  50%  { filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.28)); }
  75%  { filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.72)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.22)); }
  100% { filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.28)); }
}

/* ── M Coin raised sparkle nav icon (always gold on every page theme) ── */
.dash-nav-item.mcoin-nav {
  transform: translate(-4px, -6px);
  z-index: 7;
  overflow: visible;
}

.dash-nav-item.mcoin-nav > svg {
  width: 40px;
  height: 40px;
  color: #FFD700;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
  animation: mcoin-gold-sparkle 2s ease-in-out infinite;
}

.dash-nav-item.mcoin-nav > span {
  display: none;
}

.dash-nav-item.mcoin-nav .mcoin-nav-ring {
  display: none;
}

.dash-nav-item.mcoin-nav > svg circle {
  stroke: #DAA520;
}

.dash-nav-item.mcoin-nav > svg text {
  fill: #FFD700;
}

.dash-nav-item.mcoin-nav::after {
  display: none;
}

@keyframes mcoin-gold-sparkle {
  0%   { filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4)); }
  25%  { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 20px rgba(255, 180, 0, 0.3)); }
  50%  { filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4)); }
  75%  { filter: drop-shadow(0 0 12px rgba(255, 200, 0, 0.9)) drop-shadow(0 0 24px rgba(218, 165, 32, 0.4)); }
  100% { filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4)); }
}

/* ── ALL IN blood-red flame nav icon ── */
.dash-nav-item.allin-nav {
  color: #c8d0e0;
}

.dash-nav-item.allin-nav:hover {
  color: #f4f7ff;
}

.dash-nav-item.allin-nav .allin-nav-flame-svg {
  width: 22px;
  height: 26px;
  overflow: visible;
  animation: allin-nav-flame-burn 2.2s ease-in-out infinite;
  transform-origin: 50% 90%;
}

.dash-nav-item.allin-nav .allin-flame-outer {
  fill: #5c0000;
}

.dash-nav-item.allin-nav .allin-flame-mid {
  fill: #8b0000;
}

.dash-nav-item.allin-nav .allin-flame-core {
  fill: #dc143c;
}

.dash-nav-item.allin-nav.active {
  color: #ffb3b3;
}

.dash-nav-item.allin-nav.active .allin-nav-flame-svg {
  filter:
    drop-shadow(0 0 6px rgba(220, 20, 60, 0.65))
    drop-shadow(0 0 14px rgba(139, 0, 0, 0.4));
}

.dash-nav-item.allin-nav.active::before {
  background: #dc143c;
  box-shadow: 0 0 8px rgba(220, 20, 60, 0.55);
}

@keyframes allin-nav-flame-burn {
  0%, 100% {
    transform: scaleY(1) scaleX(1);
    filter:
      drop-shadow(0 0 4px rgba(139, 0, 0, 0.45))
      drop-shadow(0 0 10px rgba(220, 20, 60, 0.28));
  }
  35% {
    transform: scaleY(1.06) scaleX(0.97);
    filter:
      drop-shadow(0 0 7px rgba(220, 20, 60, 0.72))
      drop-shadow(0 0 16px rgba(178, 34, 34, 0.42));
  }
  68% {
    transform: scaleY(0.96) scaleX(1.02);
    filter:
      drop-shadow(0 0 5px rgba(139, 0, 0, 0.5))
      drop-shadow(0 0 11px rgba(220, 20, 60, 0.32));
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-nav-item.allin-nav .allin-nav-flame-svg {
    animation: none;
  }
}

/* ── Page-themed bottom nav ── */

/* Home — dark bar, white icons & labels */
.dash-nav.dash-nav-theme-home {
  background: rgba(15, 17, 23, 0.94);
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-nav-theme-home .dash-nav-item {
  color: rgba(255, 255, 255, 0.52);
}

.dash-nav-theme-home .dash-nav-item:hover {
  color: rgba(255, 255, 255, 0.82);
}

.dash-nav-theme-home .dash-nav-item.active {
  color: #ffffff;
}

.dash-nav-theme-home .dash-nav-item.vip-slide-nav:hover {
  color: rgba(255, 255, 255, 0.82);
}

.dash-nav-theme-home .dash-nav-item.vip-slide-nav.active {
  color: #ffffff;
}

.dash-nav-theme-home .dash-nav-item.vip-slide-nav.active svg,
.dash-nav-theme-home .dash-nav-item.vip-slide-nav .vip-slide-nav-icon > svg {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

.dash-nav-theme-home .dash-nav-item.active svg {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

.dash-nav-theme-home .dash-nav-item.active::before {
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
}

.dash-nav-theme-home .dash-nav-allin-slide::after {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, transparent 75%);
}

.dash-nav-theme-home .dash-nav-allin-slide .home-allin-slide-track {
  background: linear-gradient(180deg, rgba(28, 31, 42, 0.95) 0%, rgba(12, 14, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 14px rgba(0, 0, 0, 0.25);
}

.dash-nav-theme-home .dash-nav-allin-slide .home-allin-slide-shimmer {
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.08) 50%, transparent 65%);
}

.dash-nav-theme-home .dash-nav-allin-slide .home-allin-slide-title {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.dash-nav-theme-home .dash-nav-allin-slide .home-allin-slide-hint {
  color: rgba(255, 255, 255, 0.72);
}

.dash-nav-theme-home .dash-nav-allin-slide .home-allin-slide-fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.28) 42%, rgba(255, 255, 255, 0.4) 100%);
  box-shadow: inset 0 -1px 4px rgba(0, 0, 0, 0.2);
}

.dash-nav-theme-home .dash-nav-allin-slide .home-allin-slide-thumb {
  background: linear-gradient(145deg, #ffffff 0%, #e2e8f0 55%, #94a3b8 100%);
  box-shadow: 0 3px 12px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.dash-nav-theme-home .dash-nav-allin-slide .home-allin-slide-flame path:nth-child(1) { fill: #64748b; }
.dash-nav-theme-home .dash-nav-allin-slide .home-allin-slide-flame path:nth-child(2) { fill: #cbd5e1; }
.dash-nav-theme-home .dash-nav-allin-slide .home-allin-slide-flame path:nth-child(3) { fill: #ffffff; }

/* VIP — gold */
.dash-nav.dash-nav-theme-vip {
  background: linear-gradient(180deg, rgba(28, 22, 0, 0.96) 0%, rgba(12, 10, 0, 0.98) 100%);
  border-top: 1px solid rgba(255, 215, 0, 0.22);
  box-shadow: 0 -8px 32px rgba(255, 215, 0, 0.08);
}

.dash-nav-theme-vip .dash-nav-item {
  color: rgba(255, 215, 0, 0.45);
}

.dash-nav-theme-vip .dash-nav-item:hover {
  color: rgba(255, 215, 0, 0.72);
}

.dash-nav-theme-vip .dash-nav-item.active {
  color: #ffd700;
}

.dash-nav-theme-vip .dash-nav-item.active svg {
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.55));
}

.dash-nav-theme-vip .dash-nav-item.active::before {
  background: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.55);
}

.dash-nav-theme-vip .dash-nav-allin-slide::after {
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.2) 0%, transparent 75%);
}

.dash-nav-theme-vip .dash-nav-allin-slide .home-allin-slide-track {
  background: linear-gradient(180deg, rgba(40, 32, 0, 0.95) 0%, rgba(20, 16, 0, 0.98) 100%);
  border: 1px solid rgba(255, 215, 0, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 215, 0, 0.12), 0 4px 16px rgba(255, 215, 0, 0.1);
}

.dash-nav-theme-vip .dash-nav-allin-slide .home-allin-slide-shimmer {
  background: linear-gradient(105deg, transparent 35%, rgba(255, 215, 0, 0.16) 50%, transparent 65%);
}

.dash-nav-theme-vip .dash-nav-allin-slide .home-allin-slide-title {
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

.dash-nav-theme-vip .dash-nav-allin-slide .home-allin-slide-hint {
  color: rgba(255, 215, 0, 0.72);
}

.dash-nav-theme-vip .dash-nav-allin-slide .home-allin-slide-fill {
  background: linear-gradient(90deg, #5c4a00 0%, #8b7200 42%, #ffd700 100%);
}

.dash-nav-theme-vip .dash-nav-allin-slide .home-allin-slide-thumb {
  background: linear-gradient(145deg, #ffe566 0%, #daa520 55%, #5c4a00 100%);
  box-shadow: 0 3px 12px rgba(255, 215, 0, 0.35), inset 0 1px 0 rgba(255, 240, 180, 0.45);
}

.dash-nav-theme-vip .dash-nav-allin-slide .home-allin-slide-flame path:nth-child(1) { fill: #5c4a00; }
.dash-nav-theme-vip .dash-nav-allin-slide .home-allin-slide-flame path:nth-child(2) { fill: #b8860b; }
.dash-nav-theme-vip .dash-nav-allin-slide .home-allin-slide-flame path:nth-child(3) { fill: #ffd700; }

/* All In — red */
.dash-nav.dash-nav-theme-allin {
  background: linear-gradient(180deg, rgba(40, 0, 0, 0.96) 0%, rgba(18, 0, 0, 0.98) 100%);
  border-top: 1px solid rgba(220, 20, 60, 0.35);
  box-shadow: 0 -8px 32px rgba(139, 0, 0, 0.22);
}

.dash-nav-theme-allin .dash-nav-item {
  color: rgba(255, 160, 160, 0.5);
}

.dash-nav-theme-allin .dash-nav-item:hover {
  color: rgba(255, 180, 180, 0.78);
}

.dash-nav-theme-allin .dash-nav-item.active {
  color: #ffb3b3;
}

.dash-nav-theme-allin .dash-nav-item.active svg {
  filter: drop-shadow(0 0 8px rgba(220, 20, 60, 0.55));
}

.dash-nav-theme-allin .dash-nav-item.active::before {
  background: #dc143c;
  box-shadow: 0 0 8px rgba(220, 20, 60, 0.55);
}

.dash-nav-theme-allin .dash-nav-allin-slide::after {
  background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.28) 0%, transparent 75%);
}

.dash-nav-theme-allin .dash-nav-allin-slide .home-allin-slide-track {
  background: linear-gradient(180deg, rgba(60, 0, 0, 0.95) 0%, rgba(24, 0, 0, 0.98) 100%);
  border: 1px solid rgba(220, 20, 60, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 120, 120, 0.14), 0 4px 18px rgba(139, 0, 0, 0.35);
}

.dash-nav-theme-allin .dash-nav-allin-slide .home-allin-slide-title {
  color: #ffb3b3;
  text-shadow: 0 0 14px rgba(220, 20, 60, 0.45);
}

.dash-nav-theme-allin .dash-nav-allin-slide .home-allin-slide-hint {
  color: rgba(255, 180, 180, 0.82);
}

.dash-nav-theme-allin .dash-nav-allin-slide .home-allin-slide-fill {
  background: linear-gradient(90deg, #5c0000 0%, #8b0000 42%, #dc143c 100%);
}

.dash-nav-theme-allin .dash-nav-allin-slide .home-allin-slide-thumb {
  background: linear-gradient(145deg, #ff6b6b 0%, #8b0000 55%, #3d0000 100%);
  box-shadow: 0 3px 14px rgba(220, 20, 60, 0.5), inset 0 1px 0 rgba(255, 200, 200, 0.35);
}

/* Packages — cyan blue */
.dash-nav.dash-nav-theme-packages {
  background: linear-gradient(180deg, rgba(8, 20, 36, 0.96) 0%, rgba(4, 12, 24, 0.98) 100%);
  border-top: 1px solid rgba(110, 231, 255, 0.28);
  box-shadow: 0 -8px 32px rgba(47, 107, 255, 0.12);
}

.dash-nav-theme-packages .dash-nav-item {
  color: rgba(110, 231, 255, 0.45);
}

.dash-nav-theme-packages .dash-nav-item:hover {
  color: rgba(110, 231, 255, 0.72);
}

.dash-nav-theme-packages .dash-nav-item.active {
  color: #6ee7ff;
}

.dash-nav-theme-packages .dash-nav-item.active svg {
  filter: drop-shadow(0 0 8px rgba(110, 231, 255, 0.55));
}

.dash-nav-theme-packages .dash-nav-item.active::before {
  background: #6ee7ff;
  box-shadow: 0 0 8px rgba(110, 231, 255, 0.55);
}

.dash-nav-theme-packages .dash-nav-allin-slide::after {
  background: radial-gradient(ellipse at center, rgba(110, 231, 255, 0.2) 0%, transparent 75%);
}

.dash-nav-theme-packages .dash-nav-allin-slide .home-allin-slide-track {
  background: linear-gradient(180deg, rgba(10, 28, 48, 0.95) 0%, rgba(4, 16, 32, 0.98) 100%);
  border: 1px solid rgba(110, 231, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(185, 242, 255, 0.1), 0 4px 16px rgba(47, 107, 255, 0.18);
}

.dash-nav-theme-packages .dash-nav-allin-slide .home-allin-slide-shimmer {
  background: linear-gradient(105deg, transparent 35%, rgba(110, 231, 255, 0.16) 50%, transparent 65%);
}

.dash-nav-theme-packages .dash-nav-allin-slide .home-allin-slide-title {
  color: #6ee7ff;
  text-shadow: 0 0 12px rgba(110, 231, 255, 0.35);
}

.dash-nav-theme-packages .dash-nav-allin-slide .home-allin-slide-hint {
  color: rgba(185, 242, 255, 0.78);
}

.dash-nav-theme-packages .dash-nav-allin-slide .home-allin-slide-fill {
  background: linear-gradient(90deg, #0f2847 0%, #2f6bff 42%, #6ee7ff 100%);
}

.dash-nav-theme-packages .dash-nav-allin-slide .home-allin-slide-thumb {
  background: linear-gradient(145deg, #b9f2ff 0%, #2f6bff 55%, #0a1628 100%);
  box-shadow: 0 3px 12px rgba(110, 231, 255, 0.35), inset 0 1px 0 rgba(185, 242, 255, 0.4);
}

.dash-nav-theme-packages .dash-nav-allin-slide .home-allin-slide-flame path:nth-child(1) { fill: #0f2847; }
.dash-nav-theme-packages .dash-nav-allin-slide .home-allin-slide-flame path:nth-child(2) { fill: #2f6bff; }
.dash-nav-theme-packages .dash-nav-allin-slide .home-allin-slide-flame path:nth-child(3) { fill: #6ee7ff; }

/* M Coin — warm lunar gold (matches MOONCOIN page) */
.dash-nav.dash-nav-theme-mcoin {
  background: linear-gradient(180deg, rgba(22, 18, 8, 0.96) 0%, rgba(10, 8, 4, 0.98) 100%);
  border-top: 1px solid rgba(255, 215, 0, 0.24);
  box-shadow: 0 -8px 32px rgba(255, 215, 0, 0.1);
}

.dash-nav-theme-mcoin .dash-nav-item {
  color: rgba(255, 215, 0, 0.42);
}

.dash-nav-theme-mcoin .dash-nav-item:hover {
  color: rgba(255, 246, 176, 0.78);
}

.dash-nav-theme-mcoin .dash-nav-item.active {
  color: #ffd700;
}

.dash-nav-theme-mcoin .dash-nav-item.active svg {
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.55));
}

.dash-nav-theme-mcoin .dash-nav-item.active::before {
  background: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.55);
}

.dash-nav-theme-mcoin .dash-nav-allin-slide::after {
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.18) 0%, transparent 75%);
}

.dash-nav-theme-mcoin .dash-nav-allin-slide .home-allin-slide-track {
  background: linear-gradient(180deg, rgba(32, 24, 6, 0.95) 0%, rgba(16, 12, 4, 0.98) 100%);
  border: 1px solid rgba(255, 215, 0, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 246, 176, 0.1), 0 4px 16px rgba(255, 215, 0, 0.12);
}

.dash-nav-theme-mcoin .dash-nav-allin-slide .home-allin-slide-shimmer {
  background: linear-gradient(105deg, transparent 35%, rgba(255, 215, 0, 0.16) 50%, transparent 65%);
}

.dash-nav-theme-mcoin .dash-nav-allin-slide .home-allin-slide-title {
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

.dash-nav-theme-mcoin .dash-nav-allin-slide .home-allin-slide-hint {
  color: rgba(255, 246, 176, 0.78);
}

.dash-nav-theme-mcoin .dash-nav-allin-slide .home-allin-slide-fill {
  background: linear-gradient(90deg, #5c4a00 0%, #b8860b 42%, #ffd700 100%);
}

.dash-nav-theme-mcoin .dash-nav-allin-slide .home-allin-slide-thumb {
  background: linear-gradient(145deg, #fff6b0 0%, #daa520 55%, #5c4a00 100%);
  box-shadow: 0 3px 12px rgba(255, 215, 0, 0.35), inset 0 1px 0 rgba(255, 246, 176, 0.4);
}

.dash-nav-theme-mcoin .dash-nav-allin-slide .home-allin-slide-flame path:nth-child(1) { fill: #5c4a00; }
.dash-nav-theme-mcoin .dash-nav-allin-slide .home-allin-slide-flame path:nth-child(2) { fill: #b8860b; }
.dash-nav-theme-mcoin .dash-nav-allin-slide .home-allin-slide-flame path:nth-child(3) { fill: #ffd700; }

/* Multiplier — back home only */
.mx-nav-back {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(110, 231, 255, 0.1);
  border: 1px solid rgba(110, 231, 255, 0.38);
  color: #6ee7ff;
  text-decoration: none;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mx-nav-back:hover {
  background: rgba(110, 231, 255, 0.16);
  border-color: rgba(110, 231, 255, 0.55);
}

.mx-nav-back:active {
  transform: translateX(-50%) scale(0.98);
}

@media (min-width: 600px) {
  .dash-nav.dash-nav-theme-home {
    border-radius: 20px 20px 0 0;
  }

  .dash-nav.dash-nav-theme-vip,
  .dash-nav.dash-nav-theme-allin,
  .dash-nav.dash-nav-theme-packages,
  .dash-nav.dash-nav-theme-mcoin {
    border-radius: 20px 20px 0 0;
  }
}

@keyframes mcoin-silver-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(244, 247, 255, 0.42)) drop-shadow(0 0 22px rgba(185, 242, 255, 0.16)); }
  50% { filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.78)) drop-shadow(0 0 38px rgba(185, 242, 255, 0.34)); }
}

@keyframes mc-spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@keyframes vip-coin-horizontal-spin {
  0% { transform: rotateY(0deg); filter: drop-shadow(0 0 12px rgba(244, 247, 255, 0.48)) drop-shadow(0 0 26px rgba(185, 242, 255, 0.2)); }
  50% { transform: rotateY(180deg); filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.78)) drop-shadow(0 0 42px rgba(185, 242, 255, 0.34)); }
  100% { transform: rotateY(360deg); filter: drop-shadow(0 0 12px rgba(244, 247, 255, 0.48)) drop-shadow(0 0 26px rgba(185, 242, 255, 0.2)); }
}

.vip-tree-mcoin {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
  min-height: 220px;
}

.vip-sphere-reward {
  --lock: #ffd700;
  --lock-glow: rgba(255, 200, 0, 0.7);
  position: relative;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.vip-tree-sphere {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(244, 247, 255, 0.82);
  box-shadow:
    0 0 24px rgba(244, 247, 255, 0.58),
    0 0 56px rgba(185, 242, 255, 0.28),
    0 0 92px rgba(185, 242, 255, 0.14),
    inset 0 0 18px rgba(244, 247, 255, 0.18);
  animation: vipSphereBreathe 6.8s ease-in-out infinite;
}

.vip-tree-sphere::before {
  content: none;
}

.vip-tree-sphere::after {
  content: none;
}

.vip-tree-mcoin .vip-tree-sphere {
  border-color: rgba(255, 215, 0, 0.88);
  box-shadow:
    0 0 24px rgba(255, 215, 0, 0.58),
    0 0 56px rgba(255, 160, 0, 0.28),
    0 0 92px rgba(255, 215, 0, 0.14),
    inset 0 0 18px rgba(255, 215, 0, 0.18);
  animation: vipGoldSphereBreathe 6.8s ease-in-out infinite;
}

@keyframes vipSphereBreathe {
  0%, 100% {
    transform: scale(1);
    filter: brightness(.94);
    box-shadow:
      0 0 20px rgba(244, 247, 255, 0.42),
      0 0 46px rgba(185, 242, 255, 0.20),
      0 0 78px rgba(185, 242, 255, 0.10),
      inset 0 0 14px rgba(244, 247, 255, 0.14);
  }
  50% {
    transform: scale(1.018);
    filter: brightness(1.08);
    box-shadow:
      0 0 34px rgba(244, 247, 255, 0.78),
      0 0 72px rgba(185, 242, 255, 0.34),
      0 0 118px rgba(185, 242, 255, 0.18),
      inset 0 0 22px rgba(244, 247, 255, 0.22);
  }
}

@keyframes vipGoldSphereBreathe {
  0%, 100% {
    transform: scale(1);
    filter: brightness(.96);
    box-shadow:
      0 0 20px rgba(255, 215, 0, 0.44),
      0 0 46px rgba(255, 160, 0, 0.20),
      0 0 78px rgba(255, 215, 0, 0.10),
      inset 0 0 14px rgba(255, 215, 0, 0.14);
  }
  50% {
    transform: scale(1.018);
    filter: brightness(1.1);
    box-shadow:
      0 0 34px rgba(255, 215, 0, 0.82),
      0 0 72px rgba(255, 160, 0, 0.36),
      0 0 118px rgba(255, 215, 0, 0.18),
      inset 0 0 22px rgba(255, 215, 0, 0.24);
  }
}

/* ── ALL IN reward sphere (same hollow moon as main/VIP, bloody red) ── */
.allin-tree-mcoin {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 28px;
  min-height: 220px;
}

.allin-sphere-reward {
  --lock: #dc143c;
  --lock-glow: rgba(220, 20, 60, 0.85);
  position: relative;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.allin-tree-sphere {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(220, 20, 60, 0.88);
  box-shadow:
    0 0 24px rgba(178, 34, 34, 0.58),
    0 0 56px rgba(139, 0, 0, 0.34),
    0 0 92px rgba(220, 20, 60, 0.16),
    inset 0 0 18px rgba(178, 34, 34, 0.2);
  animation: allinRedSphereBreathe 6.8s ease-in-out infinite;
}

.allin-tree-sphere::before,
.allin-tree-sphere::after {
  content: none;
}

.allin-tree-mcoin .allin-tree-sphere {
  border-color: rgba(220, 20, 60, 0.92);
  box-shadow:
    0 0 24px rgba(178, 34, 34, 0.62),
    0 0 56px rgba(139, 0, 0, 0.32),
    0 0 92px rgba(220, 20, 60, 0.16),
    inset 0 0 18px rgba(178, 34, 34, 0.22);
  animation: allinRedSphereBreathe 6.8s ease-in-out infinite;
}

@keyframes allinRedSphereBreathe {
  0%, 100% {
    transform: scale(1);
    filter: brightness(0.94) saturate(1.15);
    box-shadow:
      0 0 20px rgba(178, 34, 34, 0.48),
      0 0 46px rgba(139, 0, 0, 0.24),
      0 0 78px rgba(220, 20, 60, 0.12),
      inset 0 0 14px rgba(178, 34, 34, 0.16);
  }
  50% {
    transform: scale(1.018);
    filter: brightness(1.1) saturate(1.35);
    box-shadow:
      0 0 34px rgba(220, 20, 60, 0.88),
      0 0 72px rgba(178, 34, 34, 0.42),
      0 0 118px rgba(139, 0, 0, 0.22),
      inset 0 0 22px rgba(220, 20, 60, 0.28);
  }
}

@keyframes vipSphereLightSweep {
  0%, 100% { transform: translateX(-18%) rotate(0deg); opacity: .54; }
  50% { transform: translateX(18%) rotate(8deg); opacity: .82; }
}

/* Responsive adjustments for dashboard */
@media (max-width: 400px) {
  .dash-container-home {
    padding-top: 10px;
  }

  .dash-container {
    padding: 20px 16px 110px;
  }

  .dash-greeting-name {
    font-size: 20px;
  }

  .dash-hero-card {
    padding: 24px 20px;
    border-radius: 22px;
  }
  .dash-hero-card::before {
    inset: 5px;
    border-radius: 17px;
  }

  .dash-hero-amount {
    font-size: 36px;
  }

  .dash-section-head {
    flex-direction: column;
    gap: 12px;
  }

  .dash-section-link {
    align-self: flex-start;
  }

  .dash-nav {
    --dash-nav-pad-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 10px 0 var(--dash-nav-pad-bottom);
  }
}

/* Desktop enhancement */
@media (min-width: 600px) {
  .dash-hero-amount {
    font-size: 48px;
  }

  .dash-nav {
    width: 420px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    --dash-nav-pad-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    padding: 16px 0 var(--dash-nav-pad-bottom);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
  }

  .dash-nav.dash-nav-has-allin {
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

/* ============================================
   RPS DUEL UI
   ============================================ */
.rps-lobby {
  display: grid;
  gap: 34px;
}

.rps-icons {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.rps-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--accent, #a78bfa);
  transition: transform .18s ease, box-shadow .18s ease;
}

.rps-icon-badge:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 18px rgba(167,139,250,0.25);
  border-color: var(--accent, #a78bfa);
}

.rps-icons span {
  font-size: 22px;
  line-height: 1;
}

.rps-header-title {
  margin: 8px 0 4px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.rps-header-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.rps-card {
  position: relative;
  z-index: 1;
  background: transparent;
  border: 0;
  border-radius: 20px;
  padding: 0;
  backdrop-filter: none;
}

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

.rps-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rps-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.rps-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  white-space: nowrap;
}

.rps-pill[data-kind="live"] {
  color: var(--accent);
  border-color: rgba(110, 231, 255, 0.25);
  background: rgba(110, 231, 255, 0.10);
}

.rps-pill[data-kind="waiting"] {
  color: #ffd666;
  border-color: rgba(255, 214, 102, 0.25);
  background: rgba(255, 214, 102, 0.08);
}

.rps-pill[data-kind="done"] {
  color: var(--success);
  border-color: rgba(126, 242, 157, 0.25);
  background: rgba(126, 242, 157, 0.08);
}

.rps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
}

.rps-primary {
  flex: 1;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  color: #0a0d14;
  background: linear-gradient(135deg, #6ee7ff 0%, #1aa7ff 100%);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(26, 167, 255, 0.18);
}

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

.rps-ghost {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  cursor: pointer;
}

.rps-ghost:hover {
  border-color: rgba(110, 231, 255, 0.25);
}

.rps-ghost:disabled,
.rps-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rps-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.rps-join {
  margin-bottom: 14px;
}

.rps-join-row {
  display: flex;
  gap: 10px;
}

.rps-input {
  flex: 1;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.20);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.rps-input:focus {
  border-color: rgba(110, 231, 255, 0.30);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.10);
}

.rps-created {
  display: none;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

/* Two stacked dialogs (Money + Network) */
.rps-dialog {
  margin-top: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(30, 36, 51, 0.7);
  padding: 12px 12px;
}

.rps-dialog-network {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Rules box between the two dialogs */
.rps-rules-box {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(30, 36, 51, 0.5);
  padding: 16px 18px;
  text-align: center;
}

.rps-rules-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.rps-rules-desc {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.rps-rules-list {
  margin: 0;
  padding: 0 0 0 18px;
  text-align: left;
  list-style: disc;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.rps-rules-list strong {
  color: var(--text);
}

/* Extra visual separation between the two dialogs */
.rps-dialog + .rps-dialog {
  position: relative;
}

.rps-dialog + .rps-dialog::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: -18px;
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.rps-dialog-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.rps-dialog-title {
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 36px;
}

.rps-money-title {
  font-size: 52px;
  background-image: linear-gradient(
    110deg,
    #22c55e 0%,
    #4ade80 20%,
    #fbbf24 40%,
    #f0fdf4 50%,
    #fbbf24 60%,
    #4ade80 80%,
    #22c55e 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: money-shimmer 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(34,197,94,0.4));
}

@keyframes money-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.rps-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 0;
}

.rps-vote {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rps-vote-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rps-vote-btn {
  padding: 10px 12px;
}

.rps-vote-btn.active {
  border-color: rgba(110, 231, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.08);
}

@media (max-width: 420px) {
  .rps-games-grid {
    grid-template-columns: 1fr;
  }
}

.rps-game {
  border-radius: 14px;
  padding: 12px 12px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.rps-game:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 231, 255, 0.25);
}

.rps-game.active {
  border-color: rgba(110, 231, 255, 0.32);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.10);
}

.rps-pay {
  margin: 6px 0 8px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.14);
}

.rps-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rps-pay-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.rps-pay-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  white-space: nowrap;
}

.rps-pay-pill[data-kind="ok"] {
  color: var(--success);
  border-color: rgba(126, 242, 157, 0.25);
  background: rgba(126, 242, 157, 0.08);
}

.rps-pay-pill[data-kind="need"] {
  color: #ffd666;
  border-color: rgba(255, 214, 102, 0.25);
  background: rgba(255, 214, 102, 0.08);
}

/* Money lock modal */
.rps-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.rps-modal[hidden] {
  display: none;
}

.rps-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.rps-modal-card {
  position: relative;
  width: min(340px, 100%);
  border-radius: 18px;
  padding: 16px 14px;
  background: rgba(30, 36, 51, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

.rps-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.rps-modal-title {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
}

.rps-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.rps-modal-text {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.rps-modal-block {
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
  margin-bottom: 12px;
}

/* Network title shimmer: uses the same tier palette from the homepage */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .rps-network-title {
    background-image: linear-gradient(
      110deg,
      #FF9A1F 0%,
      #FF4D2E 12%,
      #E8E8E8 24%,
      #FFD700 36%,
      #7E8794 48%,
      #2F6BFF 60%,
      #00E676 72%,
      #FF1E7A 84%,
      #B9F2FF 100%
    );
    background-size: 240% 100%;
    background-repeat: repeat;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: tierTitleShimmer 4.2s linear infinite;
  }
}

.rps-mode {
  margin-top: 8px;
}

.rps-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 12px;
}

.rps-mode-card {
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  padding: 12px 12px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.rps-mode-card:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 231, 255, 0.20);
}

.rps-mode-card.active {
  border-color: rgba(110, 231, 255, 0.32);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.10);
}

.rps-mode-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.rps-mode-title {
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 12px;
}

.rps-mode-tag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.rps-mode-desc {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.rps-fields {
  margin-bottom: 14px;
}

.rps-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.22);
}

.rps-divider::before,
.rps-divider::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  flex: 1;
}

.rps-divider span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

@media (max-width: 420px) {
  .rps-mode-grid {
    grid-template-columns: 1fr;
  }
}

.rps-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rps-code {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 11px;
  word-break: break-all;
  flex: 1;
  min-width: 0;
}

.rps-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.rps-level {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--text);
}

.rps-level-inline {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rps-warning {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.rps-arena {
  margin-top: 10px;
}

.rps-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rps-player {
  min-width: 0;
}

.rps-name {
  margin: 0;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rps-score-num {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.rps-vs {
  font-weight: 900;
  font-size: 12px;
  color: var(--muted);
}

.rps-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 4px 0;
  font-size: 12px;
  color: var(--muted);
}

.rps-meta strong {
  color: var(--text);
}

.rps-moves {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.rps-move {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  padding: 14px 10px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  place-items: center;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.rps-move:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 231, 255, 0.25);
}

.rps-move:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.rps-move-emoji {
  font-size: 22px;
}

.rps-move-label {
  font-size: 12px;
  font-weight: 800;
}

.rps-result {
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rps-result-text {
  margin: 0;
  font-weight: 900;
}

.rps-result-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.rps-message {
  margin: 12px 2px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  min-height: 18px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.rps-message[data-tone="info"] {
  color: #60a5fa;
  background: rgba(96,165,250,0.08);
}

.rps-message[data-tone="good"] {
  color: var(--success);
  background: rgba(34,197,94,0.08);
}

.rps-message[data-tone="bad"] {
  color: var(--danger);
  background: rgba(239,68,68,0.08);
}

/* Status pill */
.rps-status-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.rps-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  transition: all 0.3s ease;
}

.rps-status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.rps-status-pill[data-kind="offline"] {
  color: #6b7280;
}

.rps-status-pill[data-kind="waiting"] {
  color: #f59e0b;
  background: rgba(245,158,11,0.1);
  animation: pill-pulse 1.5s ease-in-out infinite;
}

.rps-status-pill[data-kind="live"] {
  color: #22c55e;
  background: rgba(34,197,94,0.1);
}

.rps-status-pill[data-kind="done"] {
  color: #60a5fa;
  background: rgba(96,165,250,0.1);
}

@keyframes pill-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   ENTRY FEE CARD
   ============================================ */

.dash-entry-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(255, 214, 102, 0.06) 0%, rgba(255, 159, 128, 0.04) 100%);
  border: 1px solid rgba(255, 214, 102, 0.15);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 28px;
}

.dash-entry-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.dash-entry-icon {
  font-size: 28px;
  line-height: 1;
}

.dash-entry-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
}

.dash-entry-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.dash-entry-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  margin-bottom: 12px;
}

.dash-entry-amount span:first-child {
  font-size: 20px;
  font-weight: 800;
  color: #ffd666;
  letter-spacing: -0.02em;
}

.dash-entry-usd {
  font-size: 13px;
  color: var(--muted);
}

.dash-entry-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.dash-stat-value-sm {
  font-size: 11px;
}

/* ============================================
   OPTIONAL LABEL (landing page)
   ============================================ */

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

.required-star {
  color: #ff6b6b;
  font-weight: 700;
}

/* Commission table responsive */
@media (max-width: 400px) {
  .dash-comm-row {
    grid-template-columns: 1.2fr 0.7fr 0.9fr;
    font-size: 11px;
    padding: 10px 10px;
    gap: 2px;
  }

  .dash-comm-header {
    font-size: 10px;
    padding: 8px 10px;
  }

  .dash-entry-card {
    padding: 16px;
    border-radius: 16px;
  }

  .dash-entry-amount span:first-child {
    font-size: 18px;
  }
}

/* ── Deposit address box ── */
.dash-deposit-box {
  margin-top: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px dashed rgba(110, 231, 255, 0.3);
}

.dash-deposit-label {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}

.dash-deposit-addr-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-deposit-addr {
  font-size: 12px;
  font-family: "Courier New", monospace;
  word-break: break-all;
  color: var(--accent);
  background: transparent;
  flex: 1;
}

.dash-entry-price {
  font-size: 12px;
  color: var(--muted);
}

.entry-paid {
  border-color: var(--success) !important;
  background: linear-gradient(135deg, rgba(126, 242, 157, 0.08) 0%, rgba(30, 36, 51, 0.9) 100%) !important;
}

.entry-paid .dash-entry-hint,
.entry-paid .dash-deposit-box {
  display: none;
}

/* ── Withdraw section ── */
.dash-withdraw-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
}

.dash-withdraw-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.dash-withdraw-form .field label {
  font-size: 13px;
  color: var(--muted);
}

.dash-withdraw-form input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 16px;
  width: 100%;
}

/* ── Transaction history ── */
.dash-history-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
}

.dash-history-list {
  margin-top: 12px;
}

.history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  flex-wrap: wrap;
}

.history-row:last-child {
  border-bottom: none;
}

.history-amount {
  font-weight: 600;
  color: var(--text);
  min-width: 80px;
}

.history-usd {
  color: var(--muted);
  min-width: 60px;
}

.history-status {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-confirmed { background: rgba(126, 242, 157, 0.15); color: #7ef29d; }
.status-swept { background: rgba(110, 231, 255, 0.15); color: #6ee7ff; }
.status-sent { background: rgba(255, 214, 102, 0.15); color: #ffd666; }
.status-pending { background: rgba(255, 159, 128, 0.15); color: #ff9f80; }
.status-failed { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }

.history-date {
  color: var(--muted);
  font-size: 12px;
  margin-left: auto;
}

.history-tx {
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
}

/* ── Admin stats grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

/* ── Admin badges ── */
.badge {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.badge-active { background: rgba(126, 242, 157, 0.15); color: #7ef29d; }
.badge-suspended { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }
.badge-paid { background: rgba(126, 242, 157, 0.15); color: #7ef29d; }
.badge-unpaid { background: rgba(255, 159, 128, 0.15); color: #ff9f80; }

/* ============================================
   ARENA PAGE
   ============================================ */

.arena-container {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Header */
.arena-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.arena-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.arena-back:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.arena-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
}

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

.arena-status-pill[data-kind="live"] {
  color: #22c55e;
  background: rgba(34,197,94,0.12);
  animation: pill-pulse 1.5s ease-in-out infinite;
}

.arena-status-pill[data-kind="done"] {
  color: #60a5fa;
  background: rgba(96,165,250,0.12);
}

.arena-status-pill[data-kind="offline"] {
  color: #6b7280;
}

.arena-status-pill[data-kind="waiting"] {
  color: #f59e0b;
  background: rgba(245,158,11,0.12);
  animation: pill-pulse 1.5s ease-in-out infinite;
}

/* Scoreboard */
.arena-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 24px 16px;
  border-radius: 20px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
}

.arena-player {
  text-align: center;
}

.arena-player-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(110,231,255,0.2), rgba(110,231,255,0.05));
  border: 2px solid rgba(110,231,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent, #6ee7ff);
  margin: 0 auto 8px;
}

.arena-player-opp .arena-player-avatar {
  background: linear-gradient(135deg, rgba(255,107,107,0.2), rgba(255,107,107,0.05));
  border-color: rgba(255,107,107,0.25);
  color: #ff6b6b;
}

.arena-player-name {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arena-player-score {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent, #6ee7ff);
  line-height: 1;
  margin-top: 6px;
}

.arena-player-opp .arena-player-score {
  color: #ff6b6b;
}

.arena-vs-block {
  text-align: center;
}

.arena-vs {
  font-size: 20px;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.arena-round-info {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.arena-round-info strong {
  color: var(--text);
}

/* Round dots */
.arena-rounds {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.arena-round-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.15);
  transition: all 0.3s ease;
}

.arena-round-dot.won {
  background: #22c55e;
  border-color: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
}

.arena-round-dot.lost {
  background: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 0 8px rgba(239,68,68,0.5);
}

.arena-round-dot.draw {
  background: #f59e0b;
  border-color: #f59e0b;
}

/* Status message */
.arena-message {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  min-height: 22px;
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.arena-message[data-tone="info"] {
  color: #60a5fa;
  background: rgba(96,165,250,0.08);
}

.arena-message[data-tone="good"] {
  color: #22c55e;
  background: rgba(34,197,94,0.08);
}

.arena-message[data-tone="bad"] {
  color: #ef4444;
  background: rgba(239,68,68,0.08);
}

/* Move buttons */
.arena-moves {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1;
  align-content: start;
}

.arena-move-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px;
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.2);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: rgba(110,231,255,0.15);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  z-index: 1;
}

.arena-move-btn:hover {
  transform: translateY(-4px);
  border-color: rgba(110,231,255,0.3);
  background: rgba(110,231,255,0.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.arena-move-btn:active {
  transform: translateY(-1px) scale(0.97);
}

.arena-move-btn.selected {
  border-color: var(--accent, #6ee7ff);
  background: rgba(110,231,255,0.1);
  box-shadow: 0 0 20px rgba(110,231,255,0.15);
}

.arena-move-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.arena-move-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  pointer-events: none;
}

.arena-move-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Round result overlay */
.arena-round-result {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.arena-round-result.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.arena-result-headline {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 20px;
}

.arena-result-headline.win { color: #22c55e; }
.arena-result-headline.lose { color: #ef4444; }

.arena-result-moves {
  display: flex;
  align-items: center;
  gap: 24px;
}

.arena-result-move {
  text-align: center;
}

.arena-result-move-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.arena-result-move-icon {
  font-size: 42px;
}

.arena-result-vs {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}

/* Match finished overlay */
.arena-finished-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.arena-finished-overlay.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.arena-finished-card {
  text-align: center;
  padding: 40px 32px;
  border-radius: 24px;
  background: rgba(15,17,23,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 320px;
  width: 90%;
  position: relative;
  z-index: 1;
}

.arena-fireworks-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.arena-finished-emoji {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 12px;
  animation: arena-emoji-pop 0.5s ease-out;
}

.arena-finished-headline.win {
  color: #22c55e;
}

.arena-finished-headline.lose {
  color: #ef4444;
  animation: arena-head-shake 0.6s ease-in-out;
}

@keyframes arena-emoji-pop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes arena-head-shake {
  0%, 100% { transform: translateX(0); }
  15%      { transform: translateX(-8px) rotate(-2deg); }
  30%      { transform: translateX(7px) rotate(1.5deg); }
  45%      { transform: translateX(-6px) rotate(-1deg); }
  60%      { transform: translateX(4px) rotate(0.5deg); }
  75%      { transform: translateX(-2px); }
}

.arena-finished-headline {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 12px;
}

.arena-finished-score {
  font-size: 48px;
  font-weight: 900;
  color: var(--accent, #6ee7ff);
  margin: 0 0 28px;
  letter-spacing: 0.05em;
}

/* ── Settlement cards (RPS seats mode) ── */
.settlement-card {
  margin: 0 0 20px;
  padding: 18px 22px;
  border-radius: 14px;
  text-align: center;
}
.settlement-win {
  background: linear-gradient(135deg, rgba(0,230,118,0.10), rgba(0,230,118,0.03));
  border: 1px solid rgba(0,230,118,0.25);
}
.settlement-loss {
  background: linear-gradient(135deg, rgba(255,77,46,0.10), rgba(255,77,46,0.03));
  border: 1px solid rgba(255,77,46,0.25);
}
.settlement-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.settlement-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}
.settlement-win .settlement-title { color: #00E676; }
.settlement-loss .settlement-title { color: #FF4D2E; }
.settlement-detail {
  font-size: 14px;
  font-weight: 600;
  color: #ccc;
  margin: 0 0 6px;
}
.settlement-sub {
  font-size: 12px;
  color: #8b949e;
  margin: 0 0 12px;
  line-height: 1.5;
}
.settlement-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0,230,118,0.08);
  border: 1px solid rgba(0,230,118,0.15);
  border-radius: 10px;
}
.settlement-highlight-label {
  font-size: 12px;
  color: #8b949e;
  font-weight: 600;
}
.settlement-highlight-value {
  font-size: 16px;
  font-weight: 800;
  color: #00E676;
}
.settlement-pay-btn {
  display: inline-block;
  padding: 10px 22px;
  background: linear-gradient(135deg, #FF4D2E, #FF9A1F);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.settlement-pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,77,46,0.4);
}

.arena-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arena-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}

