:root {
  --bg: #05070C;
  --bg-2: #0A0E16;
  --card: #0E131C;
  --glass: rgba(255, 255, 255, 0.05);
  --gold: #C9A227;
  --gold-soft: #E8C547;
  --gold-glow: rgba(201, 162, 39, 0.22);
  --emerald: #1FB87A;
  --emerald-soft: #5CE0A8;
  --emerald-glow: rgba(31, 184, 122, 0.18);
  --violet: #8B7CF6;
  --violet-soft: #B4A7FF;
  --coral: #FF5C70;
  --blue: #5B9FD4;
  --text: #F4F6FA;
  --text-2: #9BA6B8;
  --muted: #5E6878;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.28);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-pill: 999px;
  --chrome-radius: 21px;
  --chrome-radius-mobile: 20px;
  --max: 1180px;
  --font: "Aptos", "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --action-font: "Bahnschrift", "Aptos Display", "Segoe UI Variable Display", "Arial Narrow", sans-serif;
  --price-font: "Bahnschrift", "Aptos", "Segoe UI Variable", monospace;
  --app-accent: var(--gold);
  --app-accent-soft: var(--gold-soft);
  --app-profit: var(--emerald-soft);
  --app-surface: rgba(10, 14, 22, 0.94);
  --app-surface-elevated: rgba(14, 19, 28, 0.98);

  /* ── Casino energy layer (redesign) ───────────────────────── */
  --gold-grad: linear-gradient(135deg, #F7E29B 0%, #E8C547 38%, #C9A227 100%);
  --gold-grad-deep: linear-gradient(135deg, #E8C547 0%, #C9A227 55%, #8C6F19 100%);
  --emerald-grad: linear-gradient(135deg, #5CE0A8 0%, #1FB87A 100%);
  --neon-gold-glow: 0 0 0 1px rgba(232, 197, 71, 0.5), 0 0 18px rgba(232, 197, 71, 0.42), 0 0 44px rgba(201, 162, 39, 0.28);
  --neon-emerald-glow: 0 0 0 1px rgba(92, 224, 168, 0.4), 0 0 18px rgba(31, 184, 122, 0.4);
  --card-grad: linear-gradient(160deg, rgba(20, 27, 40, 0.96) 0%, rgba(9, 13, 21, 0.97) 100%);
  --card-grad-raise: linear-gradient(160deg, rgba(27, 36, 53, 0.98) 0%, rgba(12, 17, 27, 0.98) 100%);
  /* per-game accents */
  --game-aviator: #FF5C70;
  --game-aviator-soft: #FF8A99;
  --game-aviator-glow: rgba(255, 92, 112, 0.34);
  --game-wheel: #8B7CF6;
  --game-wheel-soft: #B4A7FF;
  --game-wheel-glow: rgba(139, 124, 246, 0.34);
  --game-legends: #E8C547;
  --game-legends-soft: #F7E29B;
  --game-legends-glow: rgba(232, 197, 71, 0.34);
  --game-markets: #5CE0A8;
  --game-markets-soft: #9BFFBD;
  --game-markets-glow: rgba(92, 224, 168, 0.3);
  --game-managed: #5CE0A8;
  --game-managed-soft: #9BFFBD;
  --game-managed-glow: rgba(31, 184, 122, 0.28);
  /* bottom nav metrics */
  --bottomnav-h: 50px;
  --bottomnav-occupy: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(214, 180, 106, 0.13), transparent 30rem),
    radial-gradient(circle at bottom right, rgba(77, 163, 255, 0.09), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 75%);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.section-wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: fit-content;
  font-weight: 800;
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(214, 180, 106, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #14100A;
  box-shadow: 0 14px 30px rgba(214, 180, 106, 0.18);
}

.top-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav a,
.site-footer nav a,
.side-nav a,
.bottom-nav a {
  color: var(--text-2);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.top-nav a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--text);
  border-color: var(--border);
  background: var(--glass);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #151008;
  box-shadow: 0 18px 36px rgba(214, 180, 106, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 20px 48px rgba(241, 210, 138, 0.28);
}

.btn-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.btn-danger {
  border-color: rgba(255, 92, 112, 0.32);
  background: rgba(255, 92, 112, 0.12);
  color: #FFD9DE;
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.88rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 92px);
  padding: 46px 0 72px;
}

.eyebrow,
.micro-label {
  display: inline-flex;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 760px;
  font-size: clamp(2.65rem, 7vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.25;
}

p {
  color: var(--text-2);
  line-height: 1.7;
}

.hero-text {
  max-width: 640px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 16px;
}

.trust-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.terminal-preview,
.feature-card,
.experience-panel,
.terminal-top-card,
.chart-panel,
.stats-row,
.panel-card,
.pair-card,
.page-hero,
.featured-path,
.lesson-card,
.metric-card,
.table-card,
.insight-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.terminal-preview {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.terminal-preview::after,
.chart-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.preview-top,
.terminal-top-card,
.table-title,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-top h2,
.panel-title h2,
.pair-heading h1,
.table-title h2 {
  margin: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(214, 180, 106, 0.2);
  border-radius: 999px;
  background: rgba(214, 180, 106, 0.1);
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.terminal-preview canvas,
.chart-panel canvas {
  display: block;
  width: 100%;
  height: auto;
}

.preview-metrics,
.stats-row,
.position-readout,
.metric-grid {
  display: grid;
  gap: 12px;
}

.preview-metrics {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.preview-metrics div,
.stats-row div,
.position-readout div,
.metric-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(7, 11, 18, 0.48);
}

.preview-metrics span,
.stats-row span,
.position-readout span,
.metric-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.preview-metrics strong,
.stats-row strong,
.position-readout strong,
.metric-card strong {
  font-size: 1rem;
}

.positive {
  color: var(--emerald) !important;
}

.negative {
  color: var(--coral) !important;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.feature-grid,
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.lesson-card {
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card:hover,
.lesson-card:hover,
.pair-card:hover,
.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 180, 106, 0.25);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid rgba(214, 180, 106, 0.24);
  border-radius: 16px;
  background: rgba(214, 180, 106, 0.1);
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.feature-card p,
.lesson-card p {
  margin-bottom: 0;
  color: var(--text-2);
  font-size: 0.94rem;
}

.lesson-card p {
  min-height: 82px;
  margin-bottom: 18px;
}

.experience-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  margin: 80px auto;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(214, 180, 106, 0.12), rgba(77, 163, 255, 0.04)),
    rgba(16, 23, 34, 0.92);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 32px 0 46px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer .disclaimer {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.84rem;
}

.app-shell {
  min-height: 100vh;
  padding-left: 260px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 260px;
  padding: 28px 18px;
  border-right: 1px solid var(--border);
  background: rgba(7, 11, 18, 0.92);
  backdrop-filter: blur(18px);
}

.side-nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.side-nav a {
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
}

.side-nav a:hover,
.side-nav a.active {
  color: var(--text);
  border-color: var(--border);
  background: var(--glass);
}

.side-note {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
}

.mobile-app-header,
.bottom-nav {
  display: none;
}

.terminal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  width: min(100% - 32px, 1420px);
  margin: 0 auto;
  padding: 24px 0 74px;
}

.chart-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.terminal-top-card {
  padding: 20px;
}

.pair-heading h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.pair-heading p {
  margin: 4px 0 0;
}

.terminal-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.terminal-status strong {
  display: block;
  margin-top: 4px;
  font-size: 1.3rem;
}

.segmented-control,
.choice-grid {
  display: flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 11, 18, 0.56);
}

.segment,
.choice {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-weight: 800;
  white-space: nowrap;
}

.segment.active,
.choice.active {
  background: rgba(214, 180, 106, 0.16);
  color: var(--gold-soft);
}

.chart-panel {
  position: relative;
  overflow: hidden;
  padding: 16px;
  background: linear-gradient(180deg, rgba(11, 17, 28, 0.94), rgba(7, 11, 18, 0.96));
}

.chart-tooltip {
  position: absolute;
  right: 26px;
  top: 26px;
  max-width: 230px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(7, 11, 18, 0.88);
  color: var(--text-2);
  font-size: 0.82rem;
  box-shadow: var(--shadow);
}

.stats-row {
  grid-template-columns: repeat(4, 1fr);
}

.pair-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-color: rgba(214, 180, 106, 0.5) transparent;
}

.pair-card {
  min-width: 170px;
  padding: 16px;
  color: var(--text);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease;
}

.pair-card.active {
  border-color: rgba(214, 180, 106, 0.42);
  background: linear-gradient(180deg, rgba(214, 180, 106, 0.12), rgba(255, 255, 255, 0.04));
}

.pair-card span,
.pair-card strong,
.pair-card small {
  display: block;
}

.pair-card span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.pair-card strong {
  margin: 5px 0;
}

.pair-card small {
  color: var(--muted);
}

.pair-card canvas {
  width: 100%;
  margin-top: 10px;
}

.practice-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.panel-card {
  padding: 22px;
}

.form-group {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.form-group label {
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 800;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 18px;
}

.choice {
  border-radius: 14px;
}

select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  outline: 0;
  background: #0B111C;
  color: var(--text);
}

.button-stack {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.position-readout {
  grid-template-columns: repeat(2, 1fr);
}

.explanation-card p {
  margin-bottom: 0;
}

.result-summary {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.92rem;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: 340px;
  padding: 14px 16px;
  border: 1px solid rgba(214, 180, 106, 0.28);
  border-radius: 18px;
  background: rgba(16, 23, 34, 0.94);
  color: var(--text);
  box-shadow: var(--shadow);
}

.terminal-disclaimer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: 520px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 11, 18, 0.84);
  color: var(--muted);
  font-size: 0.74rem;
}

.page-hero {
  margin-top: 34px;
  padding: 48px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.page-hero p {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.academy-layout,
.history-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 80px;
}

.featured-path,
.insight-card {
  align-self: start;
  padding: 28px;
  position: sticky;
  top: 92px;
}

.path-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding-left: 22px;
  color: var(--text-2);
}

.path-list li::marker {
  color: var(--gold);
  font-weight: 900;
}

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

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

.history-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.metric-grid {
  grid-template-columns: repeat(5, 1fr);
}

.metric-card {
  min-height: 106px;
}

.metric-card strong {
  font-size: 1.55rem;
}

.table-card {
  overflow: hidden;
  padding: 22px;
}

.table-scroll {
  overflow-x: auto;
}

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

th,
td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td:first-child,
td:nth-child(2) {
  color: var(--text);
  font-weight: 800;
}

.insight-card p {
  margin-bottom: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 620ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 90ms;
}

.reveal:nth-child(3) {
  animation-delay: 160ms;
}

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

@media (max-width: 1120px) {
  .hero,
  .terminal-grid,
  .academy-layout,
  .history-layout {
    grid-template-columns: 1fr;
  }

  .terminal-grid {
    padding-top: 88px;
  }

  .practice-panel {
    grid-template-columns: 1fr 1fr;
  }

  .featured-path,
  .insight-card {
    position: static;
  }

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

@media (max-width: 860px) {
  .site-header {
    position: relative;
  }

  .top-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .terminal-preview {
    min-width: 0;
  }

  .feature-grid,
  .lesson-grid,
  .practice-panel,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .experience-panel {
    grid-template-columns: 1fr;
    margin: 54px auto;
    padding: 26px;
  }

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

  .app-shell {
    padding-left: 0;
    padding-bottom: 74px;
  }

  .sidebar {
    display: none;
  }

  .mobile-app-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 11, 18, 0.9);
    backdrop-filter: blur(16px);
  }

  .bottom-nav {
    position: fixed;
    inset: auto 12px 12px 12px;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(11, 17, 28, 0.94);
    box-shadow: var(--shadow);
  }

  .bottom-nav a {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 800;
  }

  .bottom-nav a.active {
    background: rgba(214, 180, 106, 0.14);
    color: var(--gold-soft);
  }

  .terminal-top-card,
  .preview-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .terminal-status {
    justify-content: flex-start;
    width: 100%;
  }

  .segmented-control {
    width: 100%;
    overflow-x: auto;
  }

  .segment {
    flex: 1;
  }

  .pair-strip {
    display: flex;
  }

  .terminal-disclaimer {
    display: none;
  }

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

@media (max-width: 560px) {
  .section-wrap,
  .site-header,
  .site-footer,
  .terminal-grid {
    width: min(100% - 22px, var(--max));
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 3.55rem);
  }

  .hero-actions,
  .site-footer nav {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .site-header .btn {
    width: 100%;
  }

  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-metrics,
  .position-readout,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .chart-panel {
    padding: 8px;
  }

  .panel-card,
  .feature-card,
  .lesson-card,
  .table-card,
  .featured-path,
  .insight-card {
    padding: 18px;
  }

  .metric-grid {
    gap: 10px;
  }

  .table-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Full-screen app terminal */
.page-redirect {
  display: grid;
  place-items: center;
}

.redirect-screen {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(100% - 32px, 420px);
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.82);
  box-shadow: var(--shadow);
}

.terminal-app {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #070B12;
}

.terminal-app::before {
  background-size: 64px 64px;
  opacity: 0.54;
}

.trade-shell {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 340px;
  width: 100vw;
  height: 100vh;
  min-height: 620px;
}

.app-rail {
  z-index: 20;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 18px;
  padding: 14px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(16px);
}

.rail-logo,
.app-rail nav a,
.rail-dot {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
}

.rail-logo {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #14100A;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(214, 180, 106, 0.22);
}

.app-rail nav {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 26px;
}

.app-rail nav a {
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.app-rail nav a:hover,
.app-rail nav a.active {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-soft);
}

.rail-dot {
  border: 1px solid rgba(32, 201, 151, 0.26);
  background: rgba(32, 201, 151, 0.12);
}

.rail-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 18px rgba(32, 201, 151, 0.7);
}

.candle-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(214, 180, 106, 0.11), transparent 28rem),
    #070B12;
}

.trade-topbar {
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 11, 18, 0.78);
  backdrop-filter: blur(16px);
}

.instrument-picker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 180, 106, 0.5) transparent;
}

.instrument {
  min-width: 128px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
}

.instrument.active {
  border-color: rgba(214, 180, 106, 0.4);
  background: rgba(214, 180, 106, 0.11);
}

.instrument span,
.instrument small {
  display: block;
}

.instrument span {
  font-size: 0.84rem;
  font-weight: 900;
}

.instrument small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.market-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-head strong {
  display: block;
  margin-top: 2px;
  min-width: 82px;
  font-size: 1.12rem;
}

.chart-switch {
  min-width: 174px;
}

.chart-switch .segment {
  flex: 1;
  min-height: 34px;
}

.full-chart-panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.full-chart-panel canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-watermark {
  position: absolute;
  left: 28px;
  bottom: 38px;
  display: grid;
  gap: 2px;
  color: rgba(245, 247, 250, 0.16);
  pointer-events: none;
}

.chart-watermark span {
  font-size: clamp(2rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
}

.chart-watermark strong {
  color: rgba(214, 180, 106, 0.22);
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.terminal-app .chart-tooltip {
  top: 74px;
  right: 18px;
  color: var(--text-2);
}

.chart-status-strip {
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 11, 18, 0.78);
  backdrop-filter: blur(16px);
}

.chart-status-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.chart-status-strip strong {
  color: var(--text);
}

.ticket-panel {
  z-index: 25;
  display: grid;
  align-content: start;
  gap: 14px;
  height: 100vh;
  overflow-y: auto;
  padding: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(12, 17, 28, 0.94);
  box-shadow: -22px 0 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.ticket-brand,
.ticket-field,
.ticket-readout,
.learn-card,
.ticket-disclaimer {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.ticket-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
}

.ticket-brand h1 {
  margin: 4px 0 0;
  font-size: 1.36rem;
  line-height: 1.08;
}

.ticket-field {
  padding: 12px;
}

.ticket-field label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 800;
}

.stepper {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
}

.stepper button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 900;
}

.stepper strong {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(7, 11, 18, 0.48);
  color: var(--text);
}

.direction-actions {
  display: grid;
  gap: 10px;
}

.direction-btn {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 86px;
  padding: 16px;
  border: 0;
  border-radius: 20px;
  color: white;
  text-align: left;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, filter 180ms ease;
}

.direction-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.direction-btn:disabled {
  cursor: not-allowed;
  filter: saturate(0.55) brightness(0.72);
  opacity: 0.62;
  transform: none;
}

.direction-btn span {
  font-size: 1.24rem;
  font-weight: 900;
}

.direction-btn small {
  opacity: 0.76;
}

.direction-btn.long {
  background: linear-gradient(135deg, #16B978, #20C997);
}

.direction-btn.short {
  background: linear-gradient(135deg, #E8455B, #FF5C70);
}

.close-ticket {
  width: 100%;
}

.ticket-readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}

.ticket-readout div {
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;
  background: rgba(7, 11, 18, 0.52);
}

.ticket-readout span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.72rem;
}

.ticket-readout strong {
  font-size: 0.98rem;
}

.learn-card {
  padding: 16px;
}

.learn-card p {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.ticket-disclaimer {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .trade-shell {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .ticket-panel {
    position: fixed;
    right: 12px;
    top: 82px;
    bottom: 52px;
    width: min(340px, calc(100vw - 84px));
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
  }
}

@media (max-width: 760px) {
  .terminal-app {
    overflow: auto;
  }

  .trade-shell {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    height: auto;
    padding-bottom: 0;
  }

  .app-rail {
    position: fixed;
    inset: auto 10px 10px 10px;
    z-index: 70;
    display: flex;
    justify-content: space-between;
    height: 58px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 20px;
  }

  .app-rail nav {
    display: flex;
    padding-top: 0;
  }

  .rail-logo,
  .app-rail nav a,
  .rail-dot {
    width: 40px;
    height: 40px;
  }

  .candle-stage {
    height: 62vh;
    min-height: 440px;
  }

  .trade-topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .market-head {
    justify-content: space-between;
  }

  .full-chart-panel {
    min-height: 320px;
  }

  .ticket-panel {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    margin: 12px 10px 86px;
    border-radius: 22px;
  }

  .chart-watermark {
    left: 18px;
    bottom: 24px;
  }
}

@media (max-width: 480px) {
  .instrument {
    min-width: 112px;
  }

  .market-head {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .chart-switch {
    width: 100%;
  }

  .ticket-readout {
    grid-template-columns: 1fr;
  }
}

/* Chart-only terminal reset */
html:has(.chart-only-app),
body.chart-only-app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.chart-only-app {
  margin: 0;
  background: #05070B;
  color: #EEF6FF;
  font-family: var(--font);
  --nav-surface: rgba(8, 11, 16, 0.98);
  --nav-border: rgba(238, 246, 255, 0.08);
  --nav-row-h: 48px;
  --header-inner-h: 52px;
  --topbar-occupy: calc(env(safe-area-inset-top) + var(--header-inner-h) + 20px);
}

.chart-viewport {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #05070B;
  z-index: 1;
}

.chart-viewport canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

.chart-viewport canvas:active {
  cursor: grabbing;
}

.chart-pair-badge {
  position: fixed;
  top: calc(var(--topbar-occupy) + 4px);
  left: max(12px, env(safe-area-inset-left));
  z-index: 36;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 2px 8px 2px 4px;
  border: 1px solid rgba(238, 246, 255, 0.07);
  border-radius: var(--chrome-radius);
  background:
    linear-gradient(180deg, rgba(10, 14, 22, 0.8), rgba(6, 9, 14, 0.76));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  color: rgba(248, 251, 255, 0.82);
  font-family: var(--action-font);
  backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0.9;
}

.chart-pair-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.chart-pair-icon img,
.chart-pair-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

.chart-pair-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.chart-pair-copy {
  display: grid;
  gap: 2px;
}

.chart-pair-copy strong {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
}

.chart-pair-copy small {
  color: rgba(238, 246, 255, 0.38);
  font-size: 0.46rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.chart-pair-badge.is-live-mode {
  border-color: rgba(43, 217, 138, 0.28);
  box-shadow: 0 4px 14px rgba(43, 217, 138, 0.08);
}

.chart-pair-badge.is-live-mode .chart-pair-copy small {
  color: #7ddeb0;
}

/* Floating Spin & Win promo on the chart home screen */
.chart-wheel-promo {
  --wheel-promo-size: 62px;
  position: fixed;
  left: max(10px, env(safe-area-inset-left));
  top: 50%;
  z-index: 14;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  animation: chart-wheel-promo-float 3.4s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

.chart-wheel-promo:hover {
  animation-play-state: paused;
}

.chart-wheel-promo:focus-visible {
  outline: 2px solid rgba(255, 209, 102, 0.85);
  outline-offset: 4px;
  border-radius: 18px;
}

.chart-wheel-promo-aura {
  position: absolute;
  top: 2px;
  left: 50%;
  width: calc(var(--wheel-promo-size) + 28px);
  height: calc(var(--wheel-promo-size) + 28px);
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 0, 110, 0.34) 0%, rgba(131, 56, 236, 0.16) 42%, transparent 72%);
  animation: chart-wheel-promo-pulse 2.1s ease-in-out infinite;
  pointer-events: none;
}

.chart-wheel-promo-burst {
  position: absolute;
  top: 6px;
  left: 50%;
  width: calc(var(--wheel-promo-size) + 12px);
  height: calc(var(--wheel-promo-size) + 12px);
  border-radius: 50%;
  transform: translateX(-50%);
  background: conic-gradient(from 0deg, transparent, rgba(255, 190, 11, 0.45), rgba(255, 0, 110, 0.35), transparent 55%);
  animation: wheel-promo-spin 5s linear infinite;
  opacity: 0.85;
  pointer-events: none;
}

.chart-wheel-promo-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--wheel-promo-size) + 10px);
  height: calc(var(--wheel-promo-size) + 10px);
}

.chart-wheel-promo-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--wheel-promo-size);
  height: var(--wheel-promo-size);
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(255, 209, 102, 0.55),
    0 0 22px rgba(255, 0, 110, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.45);
}

.chart-wheel-promo-segments {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from -15deg,
    #FF006E 0deg 30deg,
    #141828 30deg 60deg,
    #8338EC 60deg 90deg,
    #0D4A42 90deg 120deg,
    #FFD166 120deg 150deg,
    #141828 150deg 180deg,
    #06D6A0 180deg 210deg,
    #FB5607 210deg 240deg,
    #0D4A42 240deg 270deg,
    #141828 270deg 300deg,
    #FF007F 300deg 330deg,
    #FFBE0B 330deg 360deg
  );
  animation: wheel-promo-spin 7s linear infinite;
}

.chart-wheel-promo-hub {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7d6, #ffbe0b 55%, #8338ec);
  box-shadow: 0 0 10px rgba(255, 190, 11, 0.65);
}

.chart-wheel-promo-pointer {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 13px solid #ffd166;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.85));
  animation: chart-wheel-promo-pointer-blink 1.4s ease-in-out infinite;
}

.chart-wheel-promo-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 6px 8px 7px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 12px;
  background: rgba(5, 7, 11, 0.78);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.chart-wheel-promo-copy strong {
  font-family: var(--action-font);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffe08a;
  text-shadow: 0 0 12px rgba(255, 190, 11, 0.45);
}

.chart-wheel-promo-copy small {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(238, 246, 255, 0.62);
  white-space: nowrap;
}

.chart-wheel-promo-live {
  position: absolute;
  top: calc(50% - 52px);
  right: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 0, 110, 0.92);
  color: #fff;
  font-family: var(--action-font);
  font-size: 0.48rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  box-shadow: 0 0 14px rgba(255, 0, 110, 0.55);
  animation: chart-wheel-promo-live-blink 1.8s ease-in-out infinite;
}

.chart-wheel-promo:hover .chart-wheel-promo-segments {
  animation-duration: 2.4s;
}

.chart-wheel-promo:hover .chart-wheel-promo-copy strong {
  color: #fff;
}

@keyframes chart-wheel-promo-float {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(calc(-50% - 7px)) translateX(3px); }
}

@keyframes chart-wheel-promo-pulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(0.94); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

@keyframes chart-wheel-promo-pointer-blink {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.85)); }
  50% { opacity: 0.72; filter: drop-shadow(0 0 14px rgba(255, 209, 102, 1)); }
}

@keyframes chart-wheel-promo-live-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 14px rgba(255, 0, 110, 0.55); }
  50% { opacity: 0.55; box-shadow: 0 0 6px rgba(255, 0, 110, 0.25); }
}

.wheel-deposit-panel {
  gap: 12px;
  width: min(100%, 380px);
  padding: 20px;
}

.wheel-deposit-chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 190, 11, 0.14);
  color: #ffe08a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wheel-deposit-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.wheel-deposit-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 8px;
  margin-top: 4px;
}

.chart-float {
  position: fixed;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 24px);
  border: 1px solid rgba(238, 246, 255, 0.09);
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.56);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.top-left {
  top: 14px;
  left: 14px;
  padding: 6px;
}

.top-right {
  top: 14px;
  right: 14px;
  padding: 6px;
}

.chart-zoom-controls {
  gap: 4px;
  padding: 5px 6px;
}

.chart-zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(238, 246, 255, 0.82);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.chart-zoom-btn--compact {
  width: 30px;
  height: 30px;
  font-size: 0.95rem;
}

.chart-zoom-btn--reset {
  font-size: 0.92rem;
}

.chart-zoom-btn:hover,
.chart-zoom-btn:focus-visible {
  border-color: rgba(126, 231, 255, 0.25);
  background: rgba(126, 231, 255, 0.1);
  color: #7EE7FF;
  outline: none;
}

.chart-zoom-divider {
  width: 1px;
  height: 22px;
  background: rgba(238, 246, 255, 0.12);
}

.bottom-left {
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  color: rgba(238, 246, 255, 0.68);
  font-size: 0.76rem;
}

.bottom-left span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(238, 246, 255, 0.055);
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px 0 4px;
  color: #EEF6FF;
}

.mini-brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7EE7FF, #9BFFBD);
  color: #061018;
  font-weight: 950;
}

.mini-brand strong {
  font-size: 0.92rem;
  letter-spacing: 0;
}

.pair-chip,
.mode-chip,
.chart-float a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(238, 246, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.pair-chip {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 92px;
  padding: 0 14px;
}

.pair-chip span {
  color: #EEF6FF;
  line-height: 1.05;
}

.pair-chip small {
  color: rgba(238, 246, 255, 0.46);
  font-size: 0.62rem;
  line-height: 1.05;
}

.mode-chip,
.chart-float a {
  padding: 0 13px;
}

.mode-chip.active,
.chart-float a:hover,
.pair-chip.active {
  border-color: rgba(126, 231, 255, 0.25);
  background: rgba(126, 231, 255, 0.1);
  color: #7EE7FF;
}

.live-price {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(155, 255, 189, 0.11);
  color: #9BFFBD;
  font-size: 0.98rem;
}

.chart-disclaimer {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 10;
  max-width: min(520px, calc(100vw - 28px));
  margin: 0;
  padding: 10px 13px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.5);
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.68rem;
  line-height: 1.35;
  backdrop-filter: blur(16px);
}

@media (max-width: 820px) {
  .top-left,
  .top-right {
    left: 10px;
    right: 10px;
  }

  .top-left {
    justify-content: space-between;
  }

  .top-right {
    top: 70px;
    overflow-x: auto;
  }

  .mini-brand strong {
    display: none;
  }

  .chart-disclaimer {
    right: 10px;
    bottom: 10px;
    border-radius: 18px;
  }

  .bottom-left {
    display: none;
  }
}

@media (max-width: 520px) {
  .pair-chip {
    min-width: 78px;
    padding: 0 10px;
  }

  .live-price {
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .chart-float a,
  .mode-chip {
    padding: 0 10px;
  }
}

/* Polished line-chart app shell */
.chart-only-app .app-chart-header {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 8px;
  border: 1px solid rgba(216, 230, 255, 0.1);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.78), rgba(7, 10, 16, 0.58));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
}

.header-left,
.header-center,
.header-right,
.header-links {
  display: flex;
  align-items: center;
}

.header-left {
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.header-center {
  justify-self: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(216, 230, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.header-right {
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.chart-only-app .mini-brand {
  gap: 9px;
  min-height: 48px;
  padding: 0 12px 0 5px;
  border-radius: 999px;
}

.chart-only-app .mini-brand span {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #8AE8FF, #A6FFCB);
}

.chart-only-app .mini-brand strong {
  color: #F4F8FF;
  font-size: 0.98rem;
  font-weight: 950;
}

.asset-select {
  display: grid;
  align-content: center;
  min-width: 126px;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(138, 232, 255, 0.22);
  border-radius: 18px;
  background: rgba(138, 232, 255, 0.075);
  color: #F4F8FF;
  text-align: left;
}

.asset-select span,
.asset-select small {
  display: block;
}

.asset-select span {
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.1;
}

.asset-select small {
  margin-top: 2px;
  color: rgba(216, 230, 255, 0.48);
  font-size: 0.66rem;
}

.time-pill {
  min-width: 46px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(216, 230, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 900;
}

.time-pill.active {
  border-color: rgba(138, 232, 255, 0.18);
  background: rgba(138, 232, 255, 0.12);
  color: #8AE8FF;
}

.price-cluster {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 116px;
}

.price-cluster span {
  color: rgba(216, 230, 255, 0.42);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chart-only-app .live-price {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: #A6FFCB;
  font-size: 1.12rem;
  font-weight: 950;
}

.header-links {
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(216, 230, 255, 0.075);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.header-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(216, 230, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 850;
}

.header-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #F4F8FF;
}

.chart-only-app .chart-disclaimer,
.chart-only-app .bottom-left {
  display: none !important;
}

@media (max-width: 880px) {
  .chart-only-app .app-chart-header {
    grid-template-columns: 1fr auto;
    border-radius: 22px;
  }

  .header-center {
    order: 3;
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
  }

  .header-links {
    display: none;
  }
}

@media (max-width: 560px) {
  .chart-only-app .app-chart-header {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 8px;
    min-height: 58px;
    padding: 6px;
  }

  .chart-only-app .mini-brand strong {
    display: none;
  }

  .asset-select {
    min-width: 104px;
    min-height: 44px;
    padding: 0 12px;
  }

  .price-cluster span {
    display: none;
  }

  .chart-only-app .live-price {
    font-size: 0.98rem;
  }

  .time-pill {
    flex: 1;
  }
}

/* Headerless edge-action terminal */
.chart-only-app .app-chart-header,
.chart-only-app .chart-float,
.chart-only-app .header-links,
.chart-only-app .chart-disclaimer {
  display: none !important;
}

.corner-brand {
  display: none;
}

.corner-brand span {
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.corner-brand .live-price {
  color: #A6FFCB;
  font-size: 1.62rem;
  font-weight: 950;
}

.app-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 38;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: var(--header-inner-h);
  padding:
    calc(env(safe-area-inset-top) + 10px)
    max(16px, env(safe-area-inset-right))
    10px
    max(16px, env(safe-area-inset-left));
  border: 0;
  border-bottom: 1px solid var(--nav-border);
  border-radius: 0;
  background: var(--nav-surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: #F8FBFF;
  font-family: var(--action-font);
  backdrop-filter: blur(12px);
  box-sizing: border-box;
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar-balance {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 2px;
  min-width: 0;
  margin-left: auto;
  padding: 0 2px;
  text-align: right;
}

.topbar-balance span {
  color: rgba(238, 246, 255, 0.42);
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.topbar-balance strong {
  color: var(--emerald-soft);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.topbar-support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  min-width: 0;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(238, 246, 255, 0.55);
  font-family: var(--action-font);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.topbar-support-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.topbar-support-link:hover {
  color: #7ee7ff;
  border-color: rgba(126, 231, 255, 0.22);
  background: rgba(91, 159, 212, 0.08);
}

.topbar-support-label {
  display: none;
}

.topbar-support-link:active {
  opacity: 0.75;
}

.live-pnl-readout {
  position: fixed;
  top: calc(var(--topbar-occupy) + 6px);
  right: max(12px, env(safe-area-inset-right));
  z-index: 37;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-family: var(--action-font);
  pointer-events: none;
}

.live-pnl-readout[hidden] {
  display: none;
}

.live-pnl-card {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  text-align: right;
  transform: none;
  opacity: 1;
}

.live-pnl-readout:not([hidden]) .live-pnl-card {
  opacity: 1;
  transform: none;
  transition: none;
}

.live-pnl-readout.is-entering .live-pnl-card {
  animation: none;
}

.live-pnl-status {
  color: rgba(238, 246, 255, 0.56);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.live-pnl-value {
  font-size: clamp(0.95rem, 2.1vw, 1.22rem);
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.live-pnl-readout.positive .live-pnl-card,
.live-pnl-readout.negative .live-pnl-card {
  border: 0;
  box-shadow: none;
}

.live-pnl-readout.positive .live-pnl-value {
  color: #5CE0A8;
}

.live-pnl-readout.negative .live-pnl-value {
  color: #FF7A8E;
}

.live-pnl-readout.is-closed .live-pnl-card {
  animation: none;
}

@keyframes pnl-card-enter {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pnl-card-close {
  0%,
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

.account-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

.account-identity strong {
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(238, 246, 255, 0.92);
}

.account-identity span {
  display: none;
}

.top-managed-cta {
  position: relative;
  isolation: isolate;
  justify-self: end;
  min-width: 0;
  max-width: 112px;
  min-height: 35px;
  overflow: hidden;
  padding: 0 10px;
  border: 0;
  border-radius: 17px;
  background: rgba(8, 13, 19, 0.96);
  color: rgba(246, 255, 250, 0.98);
  cursor: pointer;
  font-family: var(--action-font);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 180ms ease, filter 180ms ease;
}

.top-managed-cta::before {
  content: "";
  position: absolute;
  inset: -120%;
  z-index: -2;
  background:
    conic-gradient(
      from 0deg,
      rgba(43, 217, 138, 0.04),
      rgba(43, 217, 138, 0.95),
      rgba(126, 231, 255, 0.88),
      rgba(43, 217, 138, 0.95),
      rgba(43, 217, 138, 0.04)
    );
  animation: cta-border-spin 4.2s linear infinite;
}

.top-managed-cta::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(43, 217, 138, 0.22), transparent 38%),
    rgba(8, 13, 19, 0.98);
}

.top-managed-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.top-managed-cta:active {
  transform: translateY(0) scale(0.98);
}

@keyframes cta-border-spin {
  to {
    transform: rotate(1turn);
  }
}

.menu-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(238, 246, 255, 0.68);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(238, 246, 255, 0.92);
}

.menu-button[aria-expanded="true"] {
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.24);
  color: var(--gold-soft);
}

.menu-button svg {
  width: 17px;
  height: 17px;
}

.menu-button path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.app-screen {
  position: fixed;
  inset: 0;
  z-index: 34;
  overflow-x: hidden;
  overflow-y: auto;
  padding: calc(var(--topbar-occupy) + 8px) 12px 18px;
  background: #05070B;
  color: #F8FBFF;
  pointer-events: auto;
}

.app-screen[hidden] {
  display: none;
}

body.chart-only-app[data-view]:not([data-view="chart"]) .chart-viewport,
body.chart-only-app[data-view]:not([data-view="chart"]) .trade-control-row,
body.chart-only-app[data-view]:not([data-view="chart"]) .edge-actions,
body.chart-only-app[data-view]:not([data-view="chart"]) .live-pnl-readout,
body.chart-only-app[data-view]:not([data-view="chart"]) .chart-pair-badge,
body.chart-only-app[data-view]:not([data-view="chart"]) .chart-wheel-promo {
  visibility: hidden;
  pointer-events: none;
}

.screen-shell {
  display: grid;
  gap: 12px;
  width: min(100%, 760px);
  margin: 0 auto;
  font-family: var(--action-font);
}

.screen-head {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 82px;
  align-items: center;
  min-height: 48px;
  color: #F8FBFF;
}

.screen-head strong {
  justify-self: center;
  font-size: 1.06rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screen-back {
  min-height: 38px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 251, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-hero,
.pin-panel,
.managed-commit-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 136px;
  padding: 20px;
  border: 1px solid rgba(238, 246, 255, 0.12);
  border-radius: 26px;
  background: rgba(6, 9, 14, 0.92);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
}

.account-hero.compact {
  min-height: 104px;
}

.account-hero span,
.pin-panel span,
.managed-commit-card span,
.account-grid span {
  color: rgba(238, 246, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.account-hero strong {
  color: #9BFFBD;
  font-size: clamp(2.1rem, 8vw, 4.2rem);
  font-weight: 950;
  line-height: 1;
}

.dashboard-screen {
  background: linear-gradient(180deg, #070A10 0%, #05070C 100%);
}

.dashboard-screen .screen-shell {
  gap: 10px;
}

.dashboard-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  overflow: hidden;
  min-height: 188px;
  padding: 22px;
  border: 1px solid rgba(155, 255, 189, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 12%, rgba(126, 231, 255, 0.22), transparent 32%),
    radial-gradient(circle at 10% 0%, rgba(43, 217, 138, 0.32), transparent 38%),
    linear-gradient(135deg, rgba(15, 26, 22, 0.98), rgba(7, 11, 17, 0.96) 62%, rgba(9, 16, 24, 0.98));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 32%, rgba(255, 255, 255, 0.08) 42%, transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 54%);
  pointer-events: none;
}

.dashboard-spotlight::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -76px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(43, 217, 138, 0.16);
  filter: blur(2px);
  pointer-events: none;
}

.spotlight-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  max-width: 440px;
}

.spotlight-copy span,
.dashboard-balance-panel span,
.metric-card span {
  color: rgba(238, 246, 255, 0.56);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.spotlight-copy span {
  color: #9BFFBD;
}

.spotlight-copy strong {
  color: #FFFFFF;
  font-size: clamp(2rem, 7vw, 3.8rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.94;
}

.spotlight-copy small,
.dashboard-balance-panel small {
  max-width: 31rem;
  color: rgba(226, 236, 247, 0.68);
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.35;
}

.managed-hero-button {
  position: relative;
  z-index: 1;
  display: inline-grid;
  grid-template-columns: auto 22px;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 17px 0 19px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, #35E998, #139864);
  box-shadow: 0 16px 34px rgba(19, 152, 100, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  cursor: pointer;
  font-family: var(--action-font);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: transform 180ms ease, filter 180ms ease;
}

.managed-hero-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.managed-hero-button:active {
  transform: translateY(0) scale(0.985);
}

.managed-hero-button svg {
  width: 22px;
  height: 22px;
}

.managed-hero-button path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.dashboard-balance-panel {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(238, 246, 255, 0.12);
  border-radius: 25px;
  background:
    radial-gradient(circle at 85% 18%, rgba(126, 231, 255, 0.1), transparent 30%),
    rgba(7, 11, 17, 0.9);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.dashboard-balance-panel strong {
  color: #9BFFBD;
  font-size: clamp(2.2rem, 8vw, 4.4rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

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

.metric-card {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 6px;
  min-height: 92px;
  overflow: hidden;
  padding: 15px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 24px;
  background: rgba(6, 9, 14, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -36px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  opacity: 0.42;
  pointer-events: none;
}

.metric-account::after {
  background: #7EE7FF;
}

.metric-locked::after {
  background: #FFD166;
}

.metric-managed::after {
  background: #2BD98A;
}

.metric-card strong {
  position: relative;
  z-index: 1;
  color: #FFFFFF;
  font-size: clamp(1.02rem, 4vw, 1.42rem);
  font-weight: 950;
  letter-spacing: 0;
}

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

.dashboard-actions .secondary-app-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.055)),
    rgba(7, 11, 17, 0.86);
}

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

.account-grid div {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(238, 246, 255, 0.12);
  border-radius: 22px;
  background: rgba(6, 9, 14, 0.82);
}

.account-grid strong {
  margin-top: 4px;
  color: #F8FBFF;
  font-size: 1rem;
  font-weight: 950;
  text-align: center;
}

.dashboard-actions {
  display: grid;
  gap: 8px;
}

.primary-app-button,
.secondary-app-button,
.amount-drawer-button {
  min-height: 56px;
  border: 0;
  border-radius: 24px;
  color: #FFFFFF;
  font-family: var(--action-font);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-app-button {
  background: linear-gradient(180deg, #2BD98A, #159D66);
}

.secondary-app-button {
  border: 1px solid rgba(238, 246, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.pin-grid {
  display: grid;
  grid-template-columns: repeat(4, 56px);
  gap: 8px;
}

.pin-grid input,
.managed-commit-card input {
  width: 100%;
  border: 1px solid rgba(238, 246, 255, 0.12);
  border-radius: 20px;
  outline: 0;
  background: rgba(255, 255, 255, 0.055);
  color: #FFFFFF;
  font-family: var(--action-font);
  font-weight: 950;
  text-align: center;
}

.pin-grid input {
  height: 58px;
  font-size: 1.4rem;
}

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

.managed-commit-card {
  gap: 10px;
  min-height: 188px;
}

.managed-commit-card strong {
  color: #9BFFBD;
  font-size: 2.1rem;
  line-height: 1;
}

.managed-commit-card input {
  height: 54px;
  font-size: 1.25rem;
}

.managed-commit-card small {
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.dashboard-shell {
  gap: 14px;
}

.dashboard-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(238, 246, 255, 0.72);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trust-pill-live {
  border-color: rgba(43, 217, 138, 0.28);
  background: rgba(43, 217, 138, 0.1);
  color: #9BFFBD;
}

.dashboard-hero-card {
  position: relative;
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(155, 255, 189, 0.24);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 8%, rgba(126, 231, 255, 0.18), transparent 34%),
    radial-gradient(circle at 8% 0%, rgba(43, 217, 138, 0.28), transparent 40%),
    linear-gradient(145deg, rgba(14, 24, 20, 0.98), rgba(7, 11, 17, 0.96) 58%, rgba(9, 16, 24, 0.98));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.07) 44%, transparent 54%);
  pointer-events: none;
}

.hero-badge {
  position: relative;
  z-index: 1;
  justify-self: start;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(214, 180, 106, 0.34);
  border-radius: 999px;
  background: rgba(214, 180, 106, 0.12);
  color: #F1D28A;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 28px;
  text-transform: uppercase;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.hero-eyebrow {
  color: #9BFFBD;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.hero-desc {
  max-width: 36rem;
  margin: 0;
  color: rgba(226, 236, 247, 0.76);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.45;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.hero-features li {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 18px;
  background: rgba(6, 9, 14, 0.52);
}

.hero-features span {
  color: #F8FBFF;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.hero-features small {
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero-cta-primary {
  position: relative;
  z-index: 1;
  justify-self: start;
  min-width: min(100%, 260px);
}

.dashboard-wallet-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wallet-stat {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 22px;
  background: rgba(6, 9, 14, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wallet-stat span {
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wallet-stat strong {
  color: #FFFFFF;
  font-size: clamp(1rem, 3.8vw, 1.35rem);
  font-weight: 950;
  line-height: 1.1;
}

.wallet-stat-primary strong {
  color: #9BFFBD;
}

.wallet-stat-highlight {
  border-color: rgba(43, 217, 138, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(43, 217, 138, 0.12), transparent 42%),
    rgba(6, 9, 14, 0.82);
}

.wallet-stat-highlight strong {
  color: #9BFFBD;
}

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

.dashboard-section-head strong {
  display: block;
  color: #F8FBFF;
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-section-head small {
  display: block;
  margin-top: 4px;
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.76rem;
  font-weight: 700;
}

.history-count {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(238, 246, 255, 0.72);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 28px;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-paths,
.dashboard-history {
  display: grid;
  gap: 10px;
}

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

.path-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 14px 16px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 22px;
  background: rgba(6, 9, 14, 0.82);
  color: inherit;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.path-card:hover {
  transform: translateY(-1px);
  border-color: rgba(238, 246, 255, 0.18);
}

.path-card-managed {
  border-color: rgba(43, 217, 138, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(43, 217, 138, 0.1), transparent 38%),
    rgba(6, 9, 14, 0.82);
}

.path-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
}

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

.path-icon path,
.path-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.path-icon-managed {
  background: rgba(43, 217, 138, 0.14);
  color: #9BFFBD;
}

.path-icon-self {
  background: rgba(126, 231, 255, 0.12);
  color: #7EE7FF;
}

.path-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.path-copy strong {
  color: #F8FBFF;
  font-size: 0.86rem;
  font-weight: 950;
}

.path-copy span {
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.path-arrow {
  width: 18px;
  height: 18px;
  color: rgba(238, 246, 255, 0.42);
}

.path-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.dashboard-history-panel {
  overflow: hidden;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 22px;
  background: rgba(6, 9, 14, 0.82);
}

.dashboard-history-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 20px;
  text-align: center;
}

.dashboard-history-empty p {
  max-width: 22rem;
  margin: 0;
  color: rgba(238, 246, 255, 0.56);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.dashboard-history-empty .secondary-app-button {
  min-height: 46px;
  padding: 0 18px;
  font-size: 0.72rem;
}

.dashboard-history-table-wrap {
  overflow-x: auto;
}

.dashboard-history-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
}

.dashboard-history-table th,
.dashboard-history-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(238, 246, 255, 0.08);
  color: rgba(238, 246, 255, 0.62);
  font-size: 0.76rem;
  text-align: left;
}

.dashboard-history-table th {
  color: rgba(238, 246, 255, 0.42);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-history-table td:first-child,
.dashboard-history-table td:nth-child(2) {
  color: #F8FBFF;
  font-weight: 900;
}

.dashboard-history-table tr:last-child td {
  border-bottom: 0;
}

.dashboard-footer-actions {
  display: grid;
}

.managed-shell {
  gap: 12px;
}

.managed-program-banner {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(43, 217, 138, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(43, 217, 138, 0.14), transparent 40%),
    rgba(6, 9, 14, 0.88);
}

.managed-program-banner span {
  color: #9BFFBD;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.managed-program-banner strong {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 950;
}

.managed-program-banner small {
  color: rgba(238, 246, 255, 0.56);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

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

.managed-week-track {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(214, 180, 106, 0.18);
  border-radius: 22px;
  background: rgba(214, 180, 106, 0.06);
}

.week-track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.week-track-head span {
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.week-track-head strong {
  color: #F1D28A;
  font-size: 0.86rem;
  font-weight: 950;
}

.week-track-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.week-track-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #D6B46A, #F1D28A);
  transition: width 500ms ease;
}

.managed-week-track small {
  color: rgba(238, 246, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 800;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
}

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

.app-modal.is-open {
  pointer-events: auto;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
}

.app-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(100%, 520px);
  max-height: min(calc(100vh - 36px), 760px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(238, 246, 255, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(43, 217, 138, 0.12), transparent 34%),
    rgba(6, 9, 14, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  color: #F8FBFF;
  font-family: var(--action-font);
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: transform 220ms ease, opacity 220ms ease;
}

.app-modal.is-open .app-modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-icon-ring {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(43, 217, 138, 0.24);
  border-radius: 18px;
  background: rgba(43, 217, 138, 0.12);
  color: #9BFFBD;
}

.modal-icon-ring svg {
  width: 24px;
  height: 24px;
}

.modal-icon-ring path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.managed-modal-panel h2 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.modal-lead {
  margin: 0;
  color: rgba(226, 236, 247, 0.72);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.45;
}

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

.managed-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(43, 217, 138, 0.14);
  color: #9BFFBD;
  font-size: 0.82rem;
  font-weight: 950;
}

.managed-steps strong {
  display: block;
  margin-bottom: 4px;
  color: #F8FBFF;
  font-size: 0.86rem;
  font-weight: 950;
}

.managed-steps p {
  margin: 0;
  color: rgba(238, 246, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.modal-note {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(126, 231, 255, 0.16);
  border-radius: 16px;
  background: rgba(126, 231, 255, 0.06);
}

.modal-note svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #7EE7FF;
}

.modal-note path,
.modal-note circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.modal-note p {
  margin: 0;
  color: rgba(226, 236, 247, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
}

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

.modal-actions .primary-app-button,
.modal-actions .secondary-app-button {
  min-height: 52px;
}

.trade-control-row {
  position: fixed;
  left: 50%;
  bottom: calc(clamp(62px, 8dvh, 74px) + 10px);
  z-index: 26;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: min(calc(100vw - 24px), 760px);
  transform: translateX(-50%);
}

.trade-amount-control {
  display: grid;
  align-items: stretch;
  min-height: 44px;
  border: 1px solid rgba(43, 217, 138, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(43, 217, 138, 0.14), rgba(6, 9, 14, 0.94) 58%);
  box-shadow:
    0 0 0 1px rgba(43, 217, 138, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.3),
    0 0 22px rgba(43, 217, 138, 0.1);
  color: rgba(238, 246, 255, 0.72);
  font-family: var(--action-font);
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 0;
  padding: 3px;
  width: 100%;
}

.balance-control {
  display: none;
}

.amount-step,
.amount-display {
  position: relative;
  z-index: 1;
  border: 0;
  outline: 0;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--action-font);
  font-weight: 950;
}

.amount-step {
  display: grid;
  place-items: center;
  align-self: center;
  width: 36px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1rem;
  line-height: 1;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.amount-step:hover {
  background: rgba(255, 255, 255, 0.1);
}

.amount-step:active {
  transform: scale(0.94);
}

.amount-step:disabled,
.amount-display:disabled {
  cursor: default;
  opacity: 0.62;
}

.amount-display {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  min-width: 0;
  min-height: 38px;
  padding: 2px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #F8FBFF;
  text-align: center;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.amount-display-label {
  color: rgba(155, 255, 189, 0.88);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.amount-display-value {
  color: #F8FBFF;
  font-size: 0.94rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1;
}

.amount-display:hover,
.amount-display:focus-visible {
  background: rgba(43, 217, 138, 0.12);
  box-shadow: inset 0 0 0 1px rgba(43, 217, 138, 0.18);
}

.amount-display:hover .amount-display-value,
.amount-display:focus-visible .amount-display-value {
  color: #9BFFBD;
}

.trade-amount-control.is-locked {
  opacity: 0.78;
  border-color: rgba(255, 190, 120, 0.34);
  box-shadow:
    0 0 0 1px rgba(255, 190, 120, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.3);
}

.trade-amount-control.is-locked .amount-display-label {
  color: rgba(255, 210, 150, 0.78);
}

.trade-amount-control.is-locked .amount-step,
.trade-amount-control.is-locked .amount-display {
  pointer-events: none;
  color: rgba(255, 255, 255, 0.58);
}

.amount-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-items: end;
  pointer-events: none;
}

.amount-drawer[hidden] {
  display: none;
}

.amount-drawer.is-open {
  pointer-events: auto;
}

.amount-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(4px);
}

.amount-drawer-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(calc(100vw - 24px), 480px);
  margin: 0 auto 12px;
  padding: 18px;
  border: 1px solid rgba(238, 246, 255, 0.14);
  border-radius: 26px;
  background: rgba(6, 9, 14, 0.98);
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.44);
  color: #F8FBFF;
  font-family: var(--action-font);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

.amount-drawer.is-open .amount-drawer-panel {
  transform: translateY(0);
  opacity: 1;
}

.amount-drawer-panel h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.amount-drawer-panel label {
  color: rgba(238, 246, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.amount-drawer-panel input {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(238, 246, 255, 0.12);
  border-radius: 20px;
  outline: 0;
  background: rgba(255, 255, 255, 0.055);
  color: #FFFFFF;
  font-family: var(--action-font);
  font-size: 1.28rem;
  font-weight: 950;
  text-align: center;
}

.amount-drawer-panel input::-webkit-outer-spin-button,
.amount-drawer-panel input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.amount-drawer-panel input:focus {
  border-color: rgba(126, 231, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(126, 231, 255, 0.08);
}

.amount-drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.amount-drawer-button {
  min-height: 46px;
  border: 0;
  border-radius: 18px;
  color: #FFFFFF;
  font-family: var(--action-font);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.amount-drawer-button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.amount-drawer-button.primary {
  background: linear-gradient(180deg, #2BD98A, #159D66);
}

/* Tidio: launcher only — never block page clicks */
#tidio-chat {
  position: fixed !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: 16px !important;
  bottom: max(16px, env(safe-area-inset-bottom)) !important;
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  overflow: visible !important;
  pointer-events: none !important;
  z-index: 90 !important;
}

#tidio-chat iframe,
#tidio-chat iframe#tidio-chat-iframe {
  pointer-events: auto !important;
}

body:not(.tidio-chat-visible) #tidio-chat {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.nav-menu-open .chart-viewport,
body.nav-menu-open .trade-control-row,
body.nav-menu-open .edge-actions,
body.nav-menu-open .live-pnl-readout,
body.nav-menu-open .chart-pair-badge,
body.nav-menu-open .chart-wheel-promo {
  pointer-events: none;
}

.edge-actions {
  position: fixed;
  inset: auto auto 0 50%;
  z-index: 24;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  left: 50%;
  width: min(calc(100vw - 24px), 760px);
  height: clamp(62px, 8dvh, 74px);
  padding: 0;
  gap: 0;
  pointer-events: auto;
  border: 1px solid rgba(238, 246, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(6, 9, 14, 0.96);
  box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  transform: translateX(-50%) translateY(-10px);
}

.edge-actions::before {
  display: none;
}

.edge-action {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
  display: grid;
  place-items: center;
  align-content: center;
  grid-template-columns: auto auto;
  gap: 6px;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #F7FBFF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  isolation: isolate;
  overflow: hidden;
  border-radius: 0;
  transition: filter 180ms ease, transform 180ms ease;
}

.edge-action::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
  border: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.edge-action::after {
  content: "";
  position: absolute;
  inset: 18%;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0) 62%);
  opacity: 0;
  transform: scale(0.55);
  pointer-events: none;
}

.edge-action:hover::after {
  opacity: 0;
}

.edge-action:active {
  transform: translateY(1px) scale(0.992);
}

.edge-action.is-firing {
  animation: action-press 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.edge-action.is-firing::after {
  animation: action-ripple 620ms ease-out;
}

.edge-action.is-firing .trend-icon {
  animation: trend-kick 560ms cubic-bezier(0.17, 0.84, 0.44, 1);
}

.edge-action:disabled {
  cursor: default;
}

.edge-action:disabled::before {
  filter: saturate(0.9) brightness(0.92);
}

.edge-action.buy {
  border-left: 1px solid rgba(255, 255, 255, 0.34);
}

.edge-action.sell::before {
  background: linear-gradient(180deg, #ED5267, #C9354B);
}

.edge-action.buy::before {
  background: linear-gradient(180deg, #2BD98A, #159D66);
}

.edge-action.is-close::before {
  background: linear-gradient(180deg, #FFB26B, #E65D45);
}

.close-position-action {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
  border-left: 0;
  justify-content: center;
  align-items: center;
  grid-template-columns: unset;
}

.close-position-copy {
  position: relative;
  z-index: 3;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  max-width: calc(100% - 24px);
  padding: 0;
  text-align: center;
  white-space: nowrap;
}

.close-position-pnl {
  font-family: var(--action-font);
  color: #fff;
  font-size: clamp(0.94rem, 1.18vw, 1.1rem);
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
  flex-shrink: 0;
}

.close-position-action strong {
  font-size: clamp(0.94rem, 1.18vw, 1.1rem);
  letter-spacing: 0.1em;
  opacity: 1;
  white-space: nowrap;
}

.close-position-action::before {
  background: linear-gradient(180deg, #2BD98A, #159D66);
}

.close-position-action.is-profit::before {
  background: linear-gradient(180deg, #2BD98A, #159D66);
}

.close-position-action.is-loss::before {
  background: linear-gradient(180deg, #ED5267, #C9354B);
}

.close-position-action.is-ready {
  animation: close-ready-pulse 1.1s ease;
}

.close-position-action:disabled,
.close-position-action.is-locked {
  cursor: not-allowed;
  opacity: 0.72;
  filter: grayscale(0.2);
  animation: none;
}

.close-position-action.is-locked .close-position-pnl {
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  letter-spacing: 0.06em;
}

@keyframes close-ready-pulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  35% {
    transform: scale(1.02);
    filter: brightness(1.14);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.edge-actions.position-open {
  border-color: rgba(43, 217, 138, 0.32);
  grid-template-columns: 1fr;
  box-shadow: 0 -16px 44px rgba(43, 217, 138, 0.14), 0 -14px 36px rgba(0, 0, 0, 0.42);
}

.edge-actions.position-open.is-loss {
  border-color: rgba(237, 82, 103, 0.34);
  box-shadow: 0 -16px 44px rgba(237, 82, 103, 0.16), 0 -14px 36px rgba(0, 0, 0, 0.42);
}

.edge-actions.position-open.is-profit {
  border-color: rgba(43, 217, 138, 0.32);
  box-shadow: 0 -16px 44px rgba(43, 217, 138, 0.14), 0 -14px 36px rgba(0, 0, 0, 0.42);
}

.edge-actions.position-open .edge-action[data-direction-start] {
  display: none;
}

.edge-actions.position-open .close-position-action {
  display: flex;
  justify-content: center;
  align-items: center;
}

.edge-action strong {
  position: relative;
  z-index: 3;
  font-family: var(--action-font);
  color: #FFFFFF;
  font-size: clamp(0.94rem, 1.18vw, 1.14rem);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.36);
  opacity: 0.92;
  transform: none;
}

.edge-action small {
  display: none;
}

.trend-icon {
  position: relative;
  z-index: 3;
  display: block;
  width: 36px;
  height: 36px;
  opacity: 0.96;
  transform: translateX(0);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24));
}

.trend-stroke,
.trend-arrow,
.close-stroke {
  fill: none;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 4.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-bg {
  fill: rgba(255, 255, 255, 0.14);
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1.6;
}

.trend-arrow {
  stroke-width: 5;
}

.close-stroke {
  display: none;
  stroke-width: 5.2;
}

.edge-action.is-close .trend-stroke,
.edge-action.is-close .trend-arrow {
  display: none;
}

.edge-action.is-close .close-stroke {
  display: block;
}

@keyframes action-press {
  0% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  38% {
    transform: translateY(2px) scale(0.985);
    filter: brightness(1.12);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
}

@keyframes action-ripple {
  0% {
    opacity: 0.5;
    transform: scale(0.45);
  }
  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

@keyframes trend-kick {
  0% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

.position-close {
  position: fixed;
  left: 50%;
  bottom: calc(clamp(62px, 8dvh, 74px) + 20px);
  z-index: 25;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(216, 230, 255, 0.1);
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.58);
  color: rgba(244, 248, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 900;
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.action-split-line {
  display: none;
}

/* ── Refined dashboard, wizard & amount picker ── */

.dashboard-shell {
  gap: 0;
  width: min(100%, 400px);
  margin: 0 auto;
}

.dashboard-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: var(--app-surface-elevated);
  box-shadow: var(--shadow);
}

.dash-head {
  display: grid;
  gap: 4px;
}

.dash-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dash-head h2 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.dash-user-card {
  display: grid;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(126, 231, 255, 0.06), transparent 38%),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.dash-user-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.dash-user-identity {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dash-user-identity > strong {
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.2;
}

.dash-user-meta {
  color: var(--text-2);
  font-size: 0.68rem;
  font-weight: 700;
}

.dash-balance-hero {
  display: grid;
  gap: 6px;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.dash-balance-label {
  color: var(--text-2);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dash-balance-value,
.dash-balance-hero > strong {
  color: #9BFFBD;
  font-size: clamp(1.65rem, 6.5vw, 2rem);
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.dash-balance-strip,
.dash-balance-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.dash-balance-strip[hidden],
.dash-balance-grid[hidden] {
  display: none;
}

.dash-balance-strip[data-visible="1"],
.dash-balance-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.dash-balance-strip[data-visible="2"],
.dash-balance-grid.is-double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-balance-strip[data-visible="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-balance-strip[data-visible="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-balance-item[hidden] {
  display: none;
}

.dash-balance-item {
  display: grid;
  gap: 5px;
  align-content: center;
  justify-items: center;
  padding: 12px 10px;
  text-align: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(126, 231, 255, 0.04), transparent 42%),
    rgba(8, 11, 17, 0.96);
}

.dash-balance-strip[data-visible="1"] .dash-balance-item,
.dash-balance-grid.is-single .dash-balance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  text-align: left;
}

.dash-balance-strip[data-visible="1"] .dash-balance-item > span,
.dash-balance-grid.is-single .dash-balance-item > span {
  flex: 0 0 auto;
}

.dash-balance-strip[data-visible="1"] .dash-balance-item > strong,
.dash-balance-grid.is-single .dash-balance-item > strong {
  margin-left: auto;
  text-align: right;
}

.dash-balance-strip[data-visible="1"] .dash-balance-item--growth,
.dash-balance-grid.is-single .dash-balance-item--growth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.dash-balance-strip[data-visible="1"] .dash-balance-item--growth .dash-live-growth-value,
.dash-balance-grid.is-single .dash-balance-item--growth .dash-live-growth-value {
  margin-left: auto;
  text-align: right;
}

.dash-balance-strip[data-visible="2"] .dash-balance-item--growth,
.dash-balance-strip[data-visible="3"] .dash-balance-item--growth,
.dash-balance-strip[data-visible="4"] .dash-balance-item--growth {
  display: grid;
  justify-items: center;
  text-align: center;
}

.dash-balance-strip[data-visible="2"] .dash-balance-item--growth .dash-live-growth-hint,
.dash-balance-strip[data-visible="3"] .dash-balance-item--growth .dash-live-growth-hint,
.dash-balance-strip[data-visible="4"] .dash-balance-item--growth .dash-live-growth-hint {
  display: none;
}

.dash-balance-item-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.dash-balance-item--growth .dash-live-growth-value {
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dash-balance-item--growth.is-live .dash-live-growth-value {
  color: var(--emerald-soft);
}

.dash-balance-item--growth .dash-live-label {
  color: var(--text-2);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-balance-item--growth .dash-live-growth-hint {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
}

.dash-balance-item--growth.is-live .dash-live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-balance-item--growth.is-live .dash-live-label::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--emerald-soft);
  box-shadow: 0 0 8px rgba(92, 224, 168, 0.4);
}

.dash-balance-item--growth.is-live .dash-live-growth-hint {
  color: rgba(92, 224, 168, 0.55);
}

.dash-balance-strip.is-growth-only .dash-balance-item--growth {
  background: rgba(31, 184, 122, 0.04);
}

.dash-balance-item > span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-balance-item > strong {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 420px) {
  .dash-balance-strip[data-visible="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dash-wallet-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dash-wallet-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.dash-wallet-action:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.dash-wallet-action .app-nav-copy strong {
  font-size: 0.88rem;
  font-weight: 950;
}

.dash-wallet-action .app-nav-copy small {
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 700;
}

.dash-referral-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 12px 12px 14px;
  border: 1px solid rgba(139, 124, 246, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 124, 246, 0.12), transparent 50%),
    rgba(139, 124, 246, 0.05);
}

.dash-referral-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dash-referral-label {
  color: rgba(238, 246, 255, 0.45);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dash-referral-url {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #E8E2FF;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.dash-referral-hint {
  color: rgba(238, 246, 255, 0.42);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.4;
}

.dash-referral-copy-btn {
  flex-shrink: 0;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(139, 124, 246, 0.28);
  border-radius: 12px;
  background: rgba(139, 124, 246, 0.14);
  color: #E8E2FF;
  font-family: var(--action-font);
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.dash-wallet-action--deposit,
.dash-wallet-action--withdraw,
.dash-wallet-action--deposit:hover,
.dash-wallet-action--withdraw:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.dash-user-card--compact {
  gap: 6px;
}

.dash-user-card--compact > span {
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dash-user-card--compact .dash-balance-row > strong {
  font-size: clamp(1.28rem, 5vw, 1.56rem);
}

.dash-pin-panel {
  padding: 14px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.dash-amount-picker {
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.dash-panel-button {
  width: 100%;
  min-height: 52px;
}

.deposit-screen {
  background:
    radial-gradient(circle at 14% 0%, rgba(201, 162, 39, 0.08), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(91, 159, 212, 0.06), transparent 28%),
    linear-gradient(180deg, #070A10 0%, #05070C 100%);
}

.withdraw-screen {
  background: linear-gradient(180deg, #eef2f7 0%, #e4eaf2 100%);
}

.deposit-panel-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.deposit-panel-title {
  min-width: 0;
}

.deposit-back-btn {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #EEF6FF;
  font-family: var(--action-font);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.deposit-step {
  display: none;
  gap: 14px;
}

.deposit-step.is-active {
  display: grid;
}

.deposit-step-label {
  margin: 0;
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.78rem;
  font-weight: 800;
}

.deposit-method-list {
  display: grid;
  gap: 10px;
}

.deposit-method-card {
  display: grid;
  place-items: center;
  gap: 8px;
  width: 100%;
  min-height: 88px;
  padding: 16px 14px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #0B1018;
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.deposit-method-card--crypto {
  background: rgba(255, 255, 255, 0.04);
  color: #EEF6FF;
}

.deposit-method-card:hover {
  transform: translateY(-1px);
  border-color: rgba(238, 246, 255, 0.14);
}

.deposit-method-card:not(.deposit-method-card--crypto):hover {
  border-color: rgba(7, 10, 16, 0.12);
  background: #FFFFFF;
}

.deposit-method-card--crypto:hover {
  background: rgba(255, 255, 255, 0.06);
}

.deposit-method-logo {
  display: block;
  width: auto;
  max-width: min(220px, 100%);
  max-height: 52px;
  object-fit: contain;
}

.deposit-crypto-logos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.deposit-crypto-logos img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 999px;
}

.deposit-method-name {
  font-size: 0.84rem;
  font-weight: 900;
}

.deposit-method-hint {
  color: rgba(7, 10, 16, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.deposit-method-card--card {
  gap: 6px;
  border-color: rgba(70, 122, 255, 0.2);
  background: rgba(255, 255, 255, 0.96);
  color: #0B1018;
}

.deposit-method-card--card:hover {
  border-color: rgba(70, 122, 255, 0.38);
  background: #FFFFFF;
}

.deposit-card-brand {
  display: block;
  width: auto;
  object-fit: contain;
}

.deposit-card-brand--mastercard {
  height: 36px;
}

.deposit-card-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}

.deposit-card-presets button {
  flex: 1 1 auto;
  min-width: 64px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(238, 246, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #EEF6FF;
  font-weight: 800;
  cursor: pointer;
}

.deposit-card-presets button:hover {
  border-color: rgba(238, 246, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.deposit-voucher-logo {
  display: block;
  width: auto;
  max-width: min(220px, 100%);
  max-height: 56px;
  margin: 0 auto 4px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
}

.deposit-crypto-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  padding: 8px 12px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(238, 246, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
}

.deposit-crypto-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 999px;
}

.deposit-conversion {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 14px;
  background: rgba(201, 162, 39, 0.06);
  text-align: center;
}

.deposit-conversion span {
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deposit-conversion strong {
  font-size: 1.35rem;
  font-weight: 950;
  color: #F8FBFF;
}

.deposit-conversion small {
  color: rgba(238, 246, 255, 0.46);
  font-size: 0.7rem;
  font-weight: 700;
}

.deposit-pay-summary {
  display: grid;
  gap: 4px;
  text-align: center;
}

.deposit-pay-summary > span {
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deposit-pay-summary strong {
  font-size: 1.5rem;
  font-weight: 950;
}

.deposit-pay-summary small {
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.76rem;
  font-weight: 700;
}

.deposit-pay-summary em {
  font-style: normal;
  color: #F8FBFF;
  font-weight: 950;
}

.deposit-qr-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 16px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 18px;
  background: #fff;
}

.deposit-qr-image {
  display: block;
  width: 220px;
  height: 220px;
}

.deposit-qr-hint {
  margin: 0;
  color: rgba(7, 10, 16, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
}

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

.deposit-field > span {
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.deposit-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #F8FBFF;
  font-family: var(--action-font);
  font-size: 0.92rem;
  font-weight: 700;
}

.deposit-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.deposit-copy-btn {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(91, 159, 212, 0.28);
  border-radius: 14px;
  background: rgba(91, 159, 212, 0.1);
  color: #D8EEFF;
  font-family: var(--action-font);
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.deposit-crypto-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(91, 159, 212, 0.2);
  border-radius: 14px;
  background: rgba(91, 159, 212, 0.08);
}

.deposit-crypto-status-dot {
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #7EE7FF;
  box-shadow: 0 0 12px rgba(126, 231, 255, 0.55);
  animation: dash-live-dot 1.8s ease-in-out infinite;
}

.deposit-crypto-status.is-confirmed {
  border-color: rgba(92, 224, 168, 0.24);
  background: rgba(31, 184, 122, 0.08);
}

.deposit-crypto-status.is-confirmed .deposit-crypto-status-dot {
  background: #5CE0A8;
  box-shadow: 0 0 12px rgba(92, 224, 168, 0.55);
  animation: none;
}

.deposit-crypto-status.is-expired {
  border-color: rgba(255, 122, 142, 0.24);
  background: rgba(255, 122, 142, 0.06);
}

.deposit-crypto-status strong {
  font-size: 0.88rem;
  font-weight: 950;
}

.deposit-crypto-status small {
  grid-column: 2;
  color: rgba(238, 246, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 700;
}

.deposit-crypto-note {
  margin: 0;
  color: rgba(238, 246, 255, 0.42);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}

.app-nav-icon-withdraw {
  background: rgba(91, 159, 212, 0.12);
  color: var(--blue);
}

.dash-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(238, 246, 255, 0.08);
}

.dash-stat {
  display: grid;
  gap: 4px;
}

.dash-stat span {
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dash-stat strong {
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.1;
}

.dash-stat--live-growth {
  position: relative;
  overflow: hidden;
}

.dash-stat--live-growth.is-live {
  border: 1px solid rgba(92, 224, 168, 0.18);
  border-radius: 12px;
  padding: 8px 10px;
  margin: -8px -10px;
  background: rgba(31, 184, 122, 0.06);
}

.dash-stat--live-growth.is-live::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(92, 224, 168, 0.08) 48%, transparent 100%);
  transform: translateX(-120%);
  animation: dash-growth-shimmer 3.6s ease-in-out infinite;
  pointer-events: none;
}

.dash-live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-stat--live-growth.is-live .dash-live-label::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #5CE0A8;
  box-shadow: 0 0 10px rgba(92, 224, 168, 0.65);
  animation: dash-live-dot 1.8s ease-in-out infinite;
}

.dash-live-growth-value {
  color: rgba(238, 246, 255, 0.42);
  font-variant-numeric: tabular-nums;
  transition: color 220ms ease, text-shadow 220ms ease;
}

.dash-stat--live-growth.is-live .dash-live-growth-value {
  color: #5CE0A8;
  text-shadow: 0 0 20px rgba(92, 224, 168, 0.18);
}

.dash-live-growth-hint {
  color: rgba(238, 246, 255, 0.38);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
}

.dash-stat--live-growth.is-live .dash-live-growth-hint {
  color: rgba(92, 224, 168, 0.62);
}

@keyframes dash-growth-shimmer {
  0%,
  100% {
    transform: translateX(-120%);
  }
  50% {
    transform: translateX(120%);
  }
}

@keyframes dash-live-dot {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.dash-featured-action {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 14px 14px 14px 18px;
  border: 1px solid rgba(31, 184, 122, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(12, 20, 16, 0.98) 0%, rgba(8, 14, 12, 0.96) 100%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dash-featured-accent {
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #1FB87A, #D6B46A);
}

.dash-featured-action:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 184, 122, 0.45);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 24px rgba(31, 184, 122, 0.1);
}

.dash-featured-action:active {
  transform: translateY(0);
}

.dash-featured-rate {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 12px;
  border: 1px solid rgba(214, 180, 106, 0.28);
  background: rgba(214, 180, 106, 0.08);
  color: #E8D4A0;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.dash-featured-badge {
  display: none;
}

.dash-featured-action .app-nav-icon-managed {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #8FE8B8;
  background: rgba(31, 184, 122, 0.12);
  border: 1px solid rgba(31, 184, 122, 0.22);
  box-shadow: none;
}

.dash-featured-action .app-nav-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.dash-featured-action .app-nav-copy strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: #F4F8FC;
}

.dash-featured-action .app-nav-copy small {
  color: rgba(226, 236, 247, 0.58);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
}

.dash-featured-action .dash-primary-cta-sub {
  color: rgba(226, 236, 247, 0.58);
}

.dash-featured-action .dash-row-chevron {
  position: relative;
  z-index: 1;
  color: rgba(214, 180, 106, 0.75);
}

.dash-primary-cta-sub {
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.dash-row-chevron,
.dash-featured-chevron {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--muted);
}

.dash-row-chevron svg,
.dash-featured-chevron svg {
  width: 15px;
  height: 15px;
}

.dash-row-chevron path,
.dash-featured-chevron path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.dash-section-label {
  margin: 4px 0 0;
  padding: 0 2px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dash-leaderboard-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 190, 11, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 190, 11, 0.1), transparent 48%),
    rgba(255, 190, 11, 0.04);
}

.dash-leaderboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dash-leaderboard-head-copy {
  display: grid;
  gap: 2px;
}

.dash-leaderboard-eyebrow {
  color: rgba(255, 190, 11, 0.78);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dash-leaderboard-title {
  color: #F8FBFF;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.2;
}

.dash-leaderboard-more {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 190, 11, 0.28);
  border-radius: 999px;
  background: rgba(255, 190, 11, 0.1);
  color: #FFE08A;
  font-family: var(--action-font);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.dash-leaderboard-more:hover {
  border-color: rgba(255, 190, 11, 0.42);
  background: rgba(255, 190, 11, 0.16);
}

.dash-leaderboard-list {
  display: grid;
  gap: 6px;
}

.dash-leaderboard-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.dash-leaderboard-row--top1 {
  border-color: rgba(255, 190, 11, 0.34);
  background: linear-gradient(135deg, rgba(255, 190, 11, 0.12), rgba(201, 162, 39, 0.05));
}

.dash-leaderboard-row--top2 {
  border-color: rgba(200, 210, 230, 0.24);
  background: linear-gradient(135deg, rgba(200, 210, 230, 0.08), rgba(120, 130, 150, 0.04));
}

.dash-leaderboard-row--top3 {
  border-color: rgba(205, 127, 50, 0.28);
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(120, 70, 30, 0.04));
}

.dash-leaderboard-row--you {
  border-color: rgba(91, 159, 212, 0.34);
  background: rgba(91, 159, 212, 0.08);
}

.dash-leaderboard-rank {
  min-width: 1.8rem;
  color: rgba(238, 246, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.dash-leaderboard-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.dash-leaderboard-copy strong {
  color: #F8FBFF;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.2;
}

.dash-leaderboard-copy small {
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.68rem;
  font-weight: 700;
}

.dash-leaderboard-meta {
  display: grid;
  gap: 2px;
  justify-items: end;
}

.dash-leaderboard-prize {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dash-leaderboard-prize--1 {
  background: rgba(255, 190, 11, 0.18);
  color: #FFE08A;
}

.dash-leaderboard-prize--2 {
  background: rgba(200, 210, 230, 0.14);
  color: #E8EDF8;
}

.dash-leaderboard-prize--3 {
  background: rgba(205, 127, 50, 0.16);
  color: #F0C090;
}

.dash-leaderboard-points {
  color: rgba(238, 246, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.dash-leaderboard-empty {
  margin: 0;
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.dash-overview-list {
  display: grid;
  gap: 6px;
}

.dash-overview-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease;
}

.dash-overview-item:has(.dash-overview-tag) {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.dash-overview-item:has(.dash-row-chevron) {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.dash-overview-item:has(.dash-overview-tag):has(.dash-row-chevron) {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

button.dash-overview-item {
  cursor: pointer;
}

button.dash-overview-item:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-panel .app-nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  box-shadow: none;
  animation: none;
}

.dashboard-panel .app-nav-icon-managed {
  color: var(--emerald-soft);
  background: rgba(31, 184, 122, 0.08);
}

.dash-games-list .app-nav-icon-wheel {
  background: rgba(255, 0, 110, 0.12);
  color: #FF5C9A;
}

.dash-games-list .app-nav-icon-aviator {
  background: rgba(251, 86, 7, 0.12);
  color: #FF9F5C;
}

.dash-games-list .app-nav-icon-legends {
  background: rgba(255, 190, 11, 0.12);
  color: var(--gold-soft);
}

.dash-overview-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dash-overview-tag.is-muted {
  color: var(--muted);
  border-color: var(--border);
}

.dash-overview-item .app-nav-copy small {
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 700;
}

.dash-overview-item .app-nav-copy strong {
  font-size: 0.88rem;
  font-weight: 950;
}

.dash-footnote {
  margin: 2px 0 0;
  color: rgba(238, 246, 255, 0.38);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.screen-head--title-only {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.screen-head--title-only strong {
  justify-self: center;
}

body.chart-only-app[data-view]:not([data-view="chart"]) .app-screen {
  padding-bottom: max(78px, env(safe-area-inset-bottom) + 62px);
}

.placeholder-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--app-surface);
  box-shadow: var(--shadow-soft);
}

.placeholder-card span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.placeholder-card strong {
  color: var(--text);
  font-size: 1.24rem;
  font-weight: 950;
}

.placeholder-card p {
  margin: 0;
  color: rgba(244, 246, 250, 0.68);
  font-size: 0.86rem;
  line-height: 1.5;
}

.placeholder-card a.secondary-app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  text-decoration: none;
}

.back-to-market-btn {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 36;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(91, 159, 212, 0.28);
  border-radius: 999px;
  background: rgba(6, 10, 16, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
  color: #D8EEFF;
  font-family: var(--action-font);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
  transition: transform 180ms ease, border-color 180ms ease;
}

.back-to-market-btn[hidden],
body.chart-only-app[data-view="chart"] .back-to-market-btn {
  display: none !important;
}

.back-to-market-btn:hover {
  transform: translateX(-50%) translateY(-1px);
  border-color: rgba(126, 231, 255, 0.42);
}

.back-to-market-btn svg {
  width: 16px;
  height: 16px;
}

.back-to-market-btn path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.app-nav-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  justify-items: end;
  pointer-events: none;
}

.app-nav-menu[hidden] {
  display: none;
}

.app-nav-menu.is-open {
  pointer-events: auto;
}

.app-nav-menu-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: auto;
}

.app-nav-menu.is-open .app-nav-menu-backdrop {
  opacity: 1;
}

.app-nav-menu-panel {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(86vw, 320px);
  height: 100dvh;
  padding:
    calc(env(safe-area-inset-top) + 14px) 0
    calc(env(safe-area-inset-bottom) + 14px);
  border: 0;
  border-left: 1px solid var(--nav-border);
  border-radius: 0;
  background: var(--nav-surface);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.28);
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-nav-menu.is-open .app-nav-menu-panel {
  transform: translateX(0);
}

.app-nav-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--nav-border);
}

.app-nav-menu-head-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.app-nav-menu-eyebrow {
  display: none;
}

.app-nav-menu-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(238, 246, 255, 0.94);
}

.app-nav-menu-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  min-width: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(238, 246, 255, 0.48);
}

.app-nav-menu-meta #navMenuUserName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-nav-menu-meta-dot {
  flex: 0 0 auto;
  opacity: 0.5;
}

.app-nav-menu-meta #navMenuBalance {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--emerald-soft);
}

.app-nav-menu-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: 0;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(238, 246, 255, 0.55);
}

.app-nav-menu-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(238, 246, 255, 0.82);
}

.app-nav-menu-close svg {
  width: 16px;
  height: 16px;
}

.app-nav-menu-close path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.app-nav-menu-user {
  display: none;
}

.app-nav-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  padding: 10px 10px 0;
  scrollbar-width: thin;
}
.app-nav-menu-list::-webkit-scrollbar { width: 5px; }
.app-nav-menu-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(238, 246, 255, 0.12);
}

.app-nav-section-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 14px 8px 6px;
  color: rgba(238, 246, 255, 0.36);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.app-nav-section-label::before {
  content: "";
  flex: 0 0 auto;
  width: 3px;
  height: 11px;
  border-radius: 2px;
  background: var(--gold-soft);
  opacity: 0.65;
}

.app-nav-menu .app-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: var(--nav-row-h);
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background 140ms ease, color 140ms ease;
}
.app-nav-menu .app-nav-item--external {
  justify-content: flex-start;
}
.app-nav-menu .app-nav-item:active {
  background: rgba(255, 255, 255, 0.05);
}

.app-nav-menu .app-nav-item::before {
  display: none;
}

.app-nav-menu .app-nav-item:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.04);
}

.app-nav-menu .app-nav-item.is-active {
  background: rgba(201, 162, 39, 0.1);
}

.app-nav-menu .app-nav-item.is-active .app-nav-copy strong {
  color: var(--gold-soft);
  font-weight: 900;
}

.app-nav-menu .app-nav-item.is-active .app-nav-icon {
  color: var(--gold-soft);
  background: rgba(201, 162, 39, 0.12);
}

.app-nav-current,
.app-nav-menu .app-nav-tag {
  display: none !important;
}

.app-nav-menu .app-nav-copy {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.app-nav-menu .app-nav-copy small {
  display: none;
}

.app-nav-menu .app-nav-copy strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: rgba(238, 246, 255, 0.84);
}

.app-nav-menu .app-nav-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 0;
  color: rgba(238, 246, 255, 0.58);
  box-shadow: none;
}

.app-nav-menu .app-nav-icon svg {
  width: 17px;
  height: 17px;
}

.app-nav-menu .app-nav-icon path,
.app-nav-menu .app-nav-icon circle,
.app-nav-menu .app-nav-icon rect {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-nav-menu .app-nav-icon--fill path {
  fill: currentColor;
  stroke: none;
}

.app-nav-menu .app-nav-item--external {
  text-decoration: none;
}

.app-nav-external {
  flex: 0 0 auto;
  margin-left: auto;
  color: rgba(238, 246, 255, 0.32);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.app-nav-menu .app-nav-item--promo:not(.is-active) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-nav-tag--promo,
.app-nav-tag--featured {
  border-color: rgba(31, 184, 122, 0.28);
  background: rgba(31, 184, 122, 0.08);
  color: var(--emerald-soft);
}

.app-nav-tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(238, 246, 255, 0.45);
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-nav-tag.is-muted {
  color: var(--muted);
  border-color: var(--border);
}

.app-nav-copy {
  display: grid;
  gap: 2px;
}

.app-nav-copy strong {
  font-size: 0.88rem;
  font-weight: 950;
}

.app-nav-copy small {
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 700;
}

.app-nav-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.app-nav-icon svg {
  width: 18px;
  height: 18px;
}

.app-nav-icon path,
.app-nav-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-nav-icon-chart { background: rgba(91, 159, 212, 0.12); color: var(--blue); }
.app-nav-icon-dashboard { background: rgba(201, 162, 39, 0.12); color: var(--gold-soft); }
.app-nav-icon-history { background: rgba(139, 124, 246, 0.12); color: var(--violet-soft); }
.app-nav-icon-managed { background: rgba(31, 184, 122, 0.12); color: var(--emerald-soft); }
.app-nav-icon-wallet { background: rgba(201, 162, 39, 0.12); color: var(--gold-soft); }
.app-nav-icon-referrals { background: rgba(139, 124, 246, 0.12); color: var(--violet-soft); }
.app-nav-icon-academy { background: rgba(91, 159, 212, 0.12); color: var(--blue); }
.app-nav-icon-profile { background: rgba(238, 246, 255, 0.08); color: #EEF6FF; }

.dash-games-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.dash-game-tile {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px 12px 12px 14px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dash-game-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(238, 246, 255, 0.18);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.dash-game-tile-shine {
  position: absolute;
  inset: -50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.dash-game-tile:hover .dash-game-tile-shine {
  opacity: 1;
}

.dash-game-tile--wheel {
  border-color: rgba(255, 0, 110, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 190, 11, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(255, 0, 110, 0.1), rgba(131, 56, 236, 0.08));
}

.dash-game-tile--wheel .dash-game-tile-shine {
  background: conic-gradient(from 0deg, transparent, rgba(255, 190, 11, 0.14), rgba(131, 56, 236, 0.12), transparent);
  animation: wheel-promo-spin 10s linear infinite;
}

.dash-game-tile--aviator {
  border-color: rgba(251, 86, 7, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 209, 102, 0.12), transparent 40%),
    linear-gradient(145deg, rgba(10, 14, 31, 0.95), rgba(22, 8, 42, 0.92));
}

.dash-game-tile--aviator .dash-game-tile-shine {
  background: linear-gradient(115deg, transparent 30%, rgba(251, 86, 7, 0.12) 50%, transparent 70%);
  animation: aviator-tile-shine 3.2s ease-in-out infinite;
}

.dash-game-tile-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  flex-shrink: 0;
}

.dash-game-tile--wheel .dash-game-tile-icon {
  background: linear-gradient(135deg, rgba(255, 0, 110, 0.22), rgba(131, 56, 236, 0.22));
  color: #FFD166;
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.28);
}

.dash-game-tile--aviator .dash-game-tile-icon {
  background: linear-gradient(135deg, rgba(251, 86, 7, 0.26), rgba(255, 0, 110, 0.22));
  color: #FFD166;
  box-shadow: 0 0 20px rgba(251, 86, 7, 0.3);
}

.dash-game-tile-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-game-tile--aviator .dash-game-tile-icon svg {
  fill: currentColor;
  stroke: none;
}

.dash-game-tile-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dash-game-tile-copy strong {
  font-size: 0.84rem;
  font-weight: 950;
  line-height: 1.15;
}

.dash-game-tile-copy small {
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.35;
}

.dash-game-tile-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.54rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.dash-game-tile-badge--wheel {
  background: linear-gradient(135deg, #FF006E, #FFBE0B);
  color: #1A0A12;
  box-shadow: 0 0 14px rgba(255, 190, 11, 0.35);
}

.dash-game-tile-badge--aviator {
  background: linear-gradient(135deg, #06D6A0, #FFD166);
  color: #06241B;
  box-shadow: 0 0 14px rgba(6, 214, 160, 0.35);
}

.dash-game-tile-badge--locked {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(238, 246, 255, 0.55);
  box-shadow: none;
}

.dash-game-tile-badge--done {
  background: rgba(139, 124, 246, 0.18);
  color: #C8BFFF;
  box-shadow: none;
}

.dash-game-tile-chevron {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: rgba(238, 246, 255, 0.38);
}

.dash-game-tile-chevron svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-game-tile:hover .dash-game-tile-chevron {
  color: rgba(238, 246, 255, 0.72);
  transform: translateX(2px);
  transition: transform 180ms ease, color 180ms ease;
}

@keyframes aviator-tile-shine {
  0%, 100% { transform: translateX(-30%); opacity: 0.4; }
  50% { transform: translateX(30%); opacity: 0.9; }
}

@keyframes wheel-promo-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .dashboard-panel {
    border-radius: 20px;
    padding: 14px;
  }
}

.history-screen {
  background:
    radial-gradient(circle at 14% 0%, rgba(139, 124, 246, 0.08), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(91, 159, 212, 0.06), transparent 28%),
    linear-gradient(180deg, #070A10 0%, #05070C 100%);
}

.history-panel {
  width: 100%;
}

.history-type-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.history-type-tab {
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(238, 246, 255, 0.56);
  font-family: var(--action-font);
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.history-type-tab.is-active {
  background: rgba(139, 124, 246, 0.18);
  color: #F4F0FF;
}

.history-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.history-stat {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.history-stat span {
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.history-stat strong {
  font-size: 1.18rem;
  font-weight: 950;
  line-height: 1;
}

.history-stat--wins {
  border-color: rgba(92, 224, 168, 0.16);
  background: rgba(31, 184, 122, 0.06);
}

.history-stat--losses {
  border-color: rgba(255, 122, 142, 0.16);
  background: rgba(255, 122, 142, 0.05);
}

.history-list-empty[hidden],
.history-list[hidden],
.history-trade-filters[hidden] {
  display: none !important;
}

.history-trade-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-trade-filter {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(238, 246, 255, 0.62);
  font-family: var(--action-font);
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.history-trade-filter.is-active {
  border-color: rgba(91, 159, 212, 0.35);
  background: rgba(91, 159, 212, 0.12);
  color: #D8EEFF;
}

.history-item--loading {
  justify-content: center;
  text-align: center;
}

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

.history-list-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 18px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.history-list-empty strong {
  font-size: 0.96rem;
  font-weight: 950;
}

.history-list-empty p {
  margin: 0;
  max-width: 26ch;
  color: rgba(238, 246, 255, 0.56);
  font-size: 0.8rem;
  line-height: 1.45;
}

.history-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 4px;
  padding: 0 16px;
  border: 1px solid rgba(91, 159, 212, 0.28);
  border-radius: 999px;
  background: rgba(91, 159, 212, 0.1);
  color: #D8EEFF;
  font-family: var(--action-font);
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.history-empty-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 231, 255, 0.42);
  background: rgba(91, 159, 212, 0.14);
}

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

.history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 180ms ease, background 180ms ease;
}

.history-item:hover {
  border-color: rgba(238, 246, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.history-item .app-nav-copy strong {
  font-size: 0.86rem;
  font-weight: 950;
}

.history-item .app-nav-copy small {
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.7rem;
  font-weight: 700;
}

.history-item-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.history-item-icon svg {
  width: 22px;
  height: 22px;
}

.history-item-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4.4;
}

.history-item-icon--long {
  background: rgba(91, 159, 212, 0.12);
  color: var(--blue);
}

.history-item-icon--short {
  background: rgba(139, 124, 246, 0.12);
  color: var(--violet-soft);
}

.history-item-icon.is-win {
  box-shadow: inset 0 0 0 1px rgba(92, 224, 168, 0.18);
}

.history-item-icon.is-loss {
  box-shadow: inset 0 0 0 1px rgba(255, 122, 142, 0.18);
}

.history-item-icon--deposit {
  background: rgba(31, 184, 122, 0.12);
  color: #9AF0C8;
}

.history-item-icon--withdraw {
  background: rgba(91, 159, 212, 0.12);
  color: #B8E4FF;
}

.withdraw-panel {
  width: 100%;
  gap: 14px;
  padding: 18px 16px 20px;
  border: 1px solid rgba(15, 23, 36, 0.08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 36, 0.08);
  color: #0f1724;
}

.withdraw-eyebrow {
  margin: 0;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.withdraw-panel-head h2 {
  margin: 0;
  color: #0f1724;
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.withdraw-panel-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.withdraw-panel-title {
  min-width: 0;
}

.withdraw-back-btn {
  display: grid;
  place-items: center;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
}

.withdraw-back-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.withdraw-balance-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.withdraw-balance-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.withdraw-balance-label {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.withdraw-balance-value {
  font-size: clamp(1.45rem, 6vw, 1.75rem);
  font-weight: 950;
  line-height: 1;
  color: #0f1724;
  font-variant-numeric: tabular-nums;
}

.withdraw-balance-min {
  flex-shrink: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #475569;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.withdraw-balance-card {
  flex-wrap: wrap;
}

.withdraw-playthrough-note {
  flex: 1 1 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 190, 11, 0.1);
  border: 1px solid rgba(255, 190, 11, 0.22);
  color: rgba(238, 246, 255, 0.82);
  font-size: 0.78rem;
  line-height: 1.45;
}

.withdraw-step {
  display: none;
  gap: 14px;
}

.withdraw-step.is-active {
  display: grid;
}

.withdraw-section-label {
  margin: 0;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
}

.withdraw-method-grid {
  display: grid;
  gap: 10px;
}

.withdraw-method-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon name"
    "icon hint";
  gap: 2px 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  color: #0f1724;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.withdraw-method-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 6px 16px rgba(15, 23, 36, 0.06);
}

.withdraw-method-logo,
.withdraw-method-icon,
.withdraw-method-crypto-logos {
  grid-area: icon;
  justify-self: start;
}

.withdraw-method-logo {
  width: auto;
  max-width: 120px;
  max-height: 36px;
  object-fit: contain;
}

.withdraw-method-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.withdraw-method-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.withdraw-method-crypto-logos {
  display: flex;
  gap: 6px;
}

.withdraw-method-crypto-logos img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.withdraw-method-name {
  grid-area: name;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.2;
  color: #0f1724;
}

.withdraw-method-card small {
  grid-area: hint;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
}

.withdraw-method-card--crypto {
  border-color: #d1fae5;
  background: #f0fdf8;
}

.withdraw-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.withdraw-detail-method {
  margin: 0;
  color: #0f1724;
  font-size: 0.92rem;
  font-weight: 950;
}

.withdraw-change-method {
  border: none;
  background: none;
  color: #2563eb;
  font-family: var(--action-font);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 0;
}

.withdraw-amount-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.withdraw-amount-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.withdraw-amount-head > span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}

.withdraw-amount-value {
  font-size: clamp(1.4rem, 5.5vw, 1.7rem);
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #0f1724;
}

.withdraw-amount-available {
  margin: -4px 0 0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
}

.withdraw-amount-available em {
  font-style: normal;
  color: #0f1724;
  font-weight: 900;
}

.withdraw-amount-presets,
.withdraw-amount-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.withdraw-amount-presets button,
.withdraw-amount-stepper button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d8e0ea;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font-family: var(--action-font);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.withdraw-amount-presets button:hover,
.withdraw-amount-stepper button:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.withdraw-fields {
  display: grid;
  gap: 10px;
}

.withdraw-fields[hidden] {
  display: none !important;
}

.withdraw-fields-label {
  margin: 0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.withdraw-field {
  display: grid;
  gap: 6px;
}

.withdraw-field > span {
  color: #334155;
  font-size: 0.72rem;
  font-weight: 800;
}

.withdraw-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #0f1724;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
}

.withdraw-field input::placeholder {
  color: #94a3b8;
}

.withdraw-field input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.withdraw-field small {
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.4;
}

.withdraw-voucher-logo {
  width: auto;
  max-width: 140px;
  max-height: 40px;
  object-fit: contain;
}

.withdraw-crypto-rate {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}

.withdraw-crypto-rate > span {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.withdraw-crypto-rate strong {
  font-size: 1.15rem;
  font-weight: 950;
  color: #047857;
}

.withdraw-crypto-rate small {
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 600;
}

.withdraw-confirm-btn {
  min-height: 52px;
  width: 100%;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #ffffff;
  font-family: var(--action-font);
  font-size: 0.9rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.withdraw-method-hint {
  color: rgba(7, 10, 16, 0.55);
  font-size: 0.68rem;
  font-weight: 700;
}

.deposit-method-card--crypto .deposit-method-hint,
.deposit-method-card--crypto .withdraw-method-hint {
  color: rgba(238, 246, 255, 0.62);
}

.history-item-pnl {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.history-item-pnl strong {
  font-size: 0.88rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.history-item-pnl small {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.82;
}

.referrals-screen {
  background:
    radial-gradient(circle at 14% 0%, rgba(139, 124, 246, 0.12), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(201, 162, 39, 0.06), transparent 28%),
    linear-gradient(180deg, #070A10 0%, #05070C 100%);
}

.referrals-panel {
  width: 100%;
}

.referral-invite-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(139, 124, 246, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 124, 246, 0.16), transparent 46%),
    rgba(139, 124, 246, 0.06);
}

.referral-invite-label {
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.referral-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.referral-code-row > strong {
  font-size: clamp(1.28rem, 5vw, 1.5rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.referral-invite-url {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #E8E2FF;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.referral-invite-code {
  margin: 0;
  color: rgba(238, 246, 255, 0.45);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.referral-invite-code strong {
  color: rgba(232, 226, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.referral-copy-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(139, 124, 246, 0.28);
  border-radius: 12px;
  background: rgba(139, 124, 246, 0.12);
  color: #E8E2FF;
  font-family: var(--action-font);
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.referral-invite-lead {
  margin: 0;
  color: rgba(238, 246, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.referral-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
  padding: 0 14px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #EEF6FF;
  font-family: var(--action-font);
  font-size: 0.8rem;
  font-weight: 950;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.referral-share-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(238, 246, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.referral-share-btn .app-nav-icon {
  width: 32px;
  height: 32px;
}

.referral-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.referral-stat {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.referral-stat span {
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.referral-stat strong {
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.referral-stat--levels {
  border-color: rgba(139, 124, 246, 0.18);
  background: rgba(139, 124, 246, 0.06);
}

.referral-stat--earned {
  border-color: rgba(201, 162, 39, 0.18);
  background: rgba(201, 162, 39, 0.06);
}

.referral-stat--earned strong {
  color: var(--gold-soft);
}

.referral-program-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.referral-program-eyebrow {
  color: rgba(238, 246, 255, 0.44);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.referral-program-card > strong {
  font-size: 0.92rem;
  font-weight: 950;
}

.referral-program-card p {
  margin: 0;
  color: rgba(238, 246, 255, 0.54);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.referral-level-head {
  display: grid;
  gap: 10px;
}

.referral-level-head .dash-section-label {
  margin: 0;
}

.referral-level-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.referral-level-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(238, 246, 255, 0.56);
  font-family: var(--action-font);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.referral-level-tab em {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(238, 246, 255, 0.72);
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.referral-level-tab.is-active {
  background: rgba(139, 124, 246, 0.18);
  color: #F4F0FF;
}

.referral-level-tab.is-active em {
  background: rgba(139, 124, 246, 0.28);
  color: #F8F5FF;
}

.referral-network-panel {
  display: grid;
  gap: 8px;
  min-height: 120px;
}

.referral-network-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 18px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.referral-network-empty strong {
  font-size: 0.94rem;
  font-weight: 950;
}

.referral-network-empty p {
  margin: 0;
  max-width: 28ch;
  color: rgba(238, 246, 255, 0.56);
  font-size: 0.78rem;
  line-height: 1.45;
}

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

.referral-member-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 180ms ease, background 180ms ease;
}

.referral-member-item:hover {
  border-color: rgba(238, 246, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.referral-member-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(139, 124, 246, 0.14);
  color: #E8E2FF;
  font-size: 0.82rem;
  font-weight: 950;
}

.referral-member-item .app-nav-copy strong {
  font-size: 0.86rem;
  font-weight: 950;
}

.referral-member-item .app-nav-copy small {
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.7rem;
  font-weight: 700;
}

.referral-member-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.referral-member-status {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.referral-member-status.is-active {
  border: 1px solid rgba(92, 224, 168, 0.22);
  background: rgba(31, 184, 122, 0.1);
  color: #9AF0C8;
}

.referral-member-status.is-pending {
  border: 1px solid rgba(238, 246, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(238, 246, 255, 0.62);
}

.referral-member-chip {
  color: rgba(201, 162, 39, 0.88);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.daily-legends-screen {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 190, 11, 0.14), transparent 34%),
    radial-gradient(circle at 90% 6%, rgba(201, 162, 39, 0.1), transparent 30%),
    linear-gradient(180deg, #070A10 0%, #05070C 100%);
}

.daily-legends-panel {
  width: 100%;
}

.legends-reset-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 190, 11, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 190, 11, 0.16), transparent 48%),
    rgba(255, 190, 11, 0.06);
}

.legends-reset-label {
  color: rgba(238, 246, 255, 0.5);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legends-reset-countdown {
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 950;
  letter-spacing: 0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #FFE08A;
}

.legends-reset-card > p {
  margin: 2px 0 0;
  color: rgba(238, 246, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.legends-prizes-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.legends-prize {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 14px;
  text-align: center;
}

.legends-prize-rank {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.legends-prize strong {
  font-size: clamp(1rem, 4.2vw, 1.18rem);
  font-weight: 950;
  line-height: 1;
}

.legends-prize small {
  font-size: 0.58rem;
  font-weight: 700;
  opacity: 0.62;
}

.legends-prize--gold {
  border: 1px solid rgba(255, 190, 11, 0.42);
  background: linear-gradient(160deg, rgba(255, 190, 11, 0.2), rgba(201, 162, 39, 0.08));
  color: #FFE08A;
}

.legends-prize--silver {
  border: 1px solid rgba(200, 210, 230, 0.28);
  background: linear-gradient(160deg, rgba(200, 210, 230, 0.14), rgba(120, 130, 150, 0.08));
  color: #E8EDF8;
}

.legends-prize--bronze {
  border: 1px solid rgba(205, 127, 50, 0.34);
  background: linear-gradient(160deg, rgba(205, 127, 50, 0.18), rgba(120, 70, 30, 0.08));
  color: #F0C090;
}

.legends-points-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.legends-points-card--footer {
  margin-top: 4px;
  border-color: rgba(238, 246, 255, 0.06);
}

.legends-points-eyebrow {
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legends-points-lead {
  margin: 0;
  color: rgba(238, 246, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.legends-points-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legends-points-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.legends-points-item--highlight {
  border: 1px solid rgba(139, 124, 246, 0.28);
  background: rgba(139, 124, 246, 0.08);
}

.legends-points-activity {
  color: rgba(238, 246, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 700;
}

.legends-points-value {
  color: #C9F7DF;
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
}

.legends-points-item--highlight .legends-points-value {
  color: #E8E2FF;
}

.legends-your-rank {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(91, 159, 212, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(91, 159, 212, 0.14), transparent 50%),
    rgba(91, 159, 212, 0.06);
}

.legends-your-rank-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.legends-your-rank-label {
  color: rgba(238, 246, 255, 0.5);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legends-your-rank-value {
  font-size: clamp(1.4rem, 5vw, 1.7rem);
  font-weight: 950;
  line-height: 1;
  color: #B8DCFF;
}

.legends-your-rank-copy {
  margin: 0;
  color: rgba(238, 246, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.legends-leaderboard {
  display: grid;
  gap: 8px;
}

.legends-rank-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.legends-rank-row--you {
  border-color: rgba(91, 159, 212, 0.36);
  background:
    radial-gradient(circle at 100% 0%, rgba(91, 159, 212, 0.12), transparent 50%),
    rgba(91, 159, 212, 0.08);
}

.legends-rank-row--top1 {
  border-color: rgba(255, 190, 11, 0.38);
  background: linear-gradient(135deg, rgba(255, 190, 11, 0.14), rgba(201, 162, 39, 0.06));
}

.legends-rank-row--top2 {
  border-color: rgba(200, 210, 230, 0.28);
  background: linear-gradient(135deg, rgba(200, 210, 230, 0.1), rgba(120, 130, 150, 0.05));
}

.legends-rank-row--top3 {
  border-color: rgba(205, 127, 50, 0.3);
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.12), rgba(120, 70, 30, 0.05));
}

.legends-rank-position {
  min-width: 2rem;
  font-size: 0.82rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  color: rgba(238, 246, 255, 0.72);
}

.legends-rank-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(238, 246, 255, 0.08);
  color: #EEF6FF;
  font-size: 0.68rem;
  font-weight: 900;
}

.legends-rank-copy small {
  color: rgba(238, 246, 255, 0.48);
}

.legends-you-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(91, 159, 212, 0.2);
  color: #B8DCFF;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.legends-rank-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.legends-rank-points {
  font-size: 0.88rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.legends-prize-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.legends-prize-chip--1 {
  background: rgba(255, 190, 11, 0.2);
  color: #FFE08A;
}

.legends-prize-chip--2 {
  background: rgba(200, 210, 230, 0.16);
  color: #E8EDF8;
}

.legends-prize-chip--3 {
  background: rgba(205, 127, 50, 0.18);
  color: #F0C090;
}

.legends-rank-footnote {
  margin: 0;
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
}

.dash-legends-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 72px;
  margin-top: 10px;
  padding: 12px 12px 12px 14px;
  border: 1px solid rgba(255, 190, 11, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 190, 11, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(201, 162, 39, 0.12), rgba(120, 80, 10, 0.08));
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dash-legends-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 190, 11, 0.42);
  box-shadow: 0 14px 36px rgba(201, 162, 39, 0.18);
}

.dash-legends-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 190, 11, 0.16);
  color: #FFE08A;
}

.dash-legends-banner-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-legends-banner-copy strong {
  display: block;
  font-size: 0.92rem;
}

.dash-legends-banner-copy small {
  color: rgba(238, 246, 255, 0.56);
  font-size: 0.72rem;
}

.dash-legends-banner-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFBE0B, #C9A227);
  color: #1A1200;
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  box-shadow: 0 0 16px rgba(255, 190, 11, 0.35);
}

.managed-idle,
.managed-active {
  display: grid;
  gap: 14px;
}

.profile-screen {
  background:
    radial-gradient(circle at 14% 0%, rgba(238, 246, 255, 0.08), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(201, 162, 39, 0.08), transparent 28%),
    linear-gradient(180deg, #070A10 0%, #05070C 100%);
}

.profile-panel {
  width: 100%;
}

.profile-hero-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 162, 39, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.03);
}

.profile-hero-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(238, 246, 255, 0.08);
  color: #EEF6FF;
}

.profile-hero-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-hero-copy {
  display: grid;
  gap: 4px;
}

.profile-hero-copy > strong {
  font-size: 1.02rem;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.profile-hero-copy > span,
#profileAccountBadge {
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#profileHeroLead {
  margin: 6px 0 0;
  color: rgba(238, 246, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
}

.profile-settings-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.profile-settings-card--crypto {
  border-color: rgba(31, 184, 122, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 184, 122, 0.1), transparent 42%),
    rgba(31, 184, 122, 0.03);
}

.profile-settings-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.profile-settings-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.profile-settings-title .app-nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.profile-settings-title h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.2;
}

.profile-settings-title p {
  margin: 4px 0 0;
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
}

.profile-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(238, 246, 255, 0.58);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-status-pill.is-saved {
  border-color: rgba(31, 184, 122, 0.28);
  background: rgba(31, 184, 122, 0.12);
  color: #9FE8C8;
}

.profile-saved-preview {
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed rgba(238, 246, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(238, 246, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.profile-saved-preview--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.profile-form {
  display: grid;
  gap: 10px;
}

.profile-field-hint {
  margin: -2px 0 0;
  color: rgba(238, 246, 255, 0.46);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.45;
}

.profile-save-btn {
  margin-top: 4px;
}

.profile-save-btn {
  margin-top: 4px;
}

/* ── Lucky Wheel ── */
.wheel-screen {
  position: fixed;
  inset: 0;
  z-index: 34;
  overflow: hidden;
  background: #04050A;
  box-sizing: border-box;
  padding:
    var(--wheel-safe-top, var(--topbar-occupy))
    0
    var(--wheel-safe-bottom, max(72px, env(safe-area-inset-bottom) + 62px));
  display: grid;
  place-items: center;
}

.app-screen.wheel-screen {
  overflow: hidden;
}

body.chart-only-app[data-view="wheel"] .app-screen.wheel-screen {
  padding:
    var(--wheel-safe-top, var(--topbar-occupy))
    0
    var(--wheel-safe-bottom, max(72px, env(safe-area-inset-bottom) + 62px));
}

.wheel-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: min(100%, 360px);
  max-height: 100%;
  padding: 0 16px;
  margin: 0 auto;
}

.wheel-stage {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.wheel-disclaimer {
  flex: 0 0 auto;
  width: min(100%, 260px);
  margin: clamp(20px, 4.5vh, 30px) 0 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  color: rgba(238, 246, 255, 0.36);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.wheel-disclaimer.is-charged {
  color: rgba(255, 120, 140, 0.78);
}

.wheel-disclaimer.is-blocked {
  color: rgba(255, 196, 120, 0.88);
}

.wheel-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background: #04050A;
}

.wheel-bg::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vmin, 380px);
  height: min(92vmin, 380px);
  transform: translate(-50%, -56%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(131, 56, 236, 0.16) 0%, rgba(255, 0, 110, 0.07) 38%, transparent 70%);
  opacity: 0.9;
}

.wheel-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 46%, black 12%, transparent 62%);
  opacity: 0.28;
}

.wheel-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 16px 16px 28px;
}

.wheel-head {
  display: grid;
  gap: 6px;
  text-align: center;
}

.wheel-eyebrow {
  margin: 0;
  color: rgba(255, 190, 11, 0.88);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 190, 11, 0.35);
}

.wheel-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #FFF 0%, #FFD166 45%, #FF8FD1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 0, 110, 0.25));
}

.wheel-lead {
  margin: 0;
  color: rgba(238, 246, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.wheel-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wheel-stat {
  display: grid;
  gap: 4px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.wheel-stat span {
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wheel-stat strong {
  font-size: 0.92rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.wheel-stat--hot {
  border-color: rgba(255, 0, 110, 0.24);
  background: rgba(255, 0, 110, 0.08);
  box-shadow: inset 0 0 20px rgba(255, 0, 110, 0.08);
}

.wheel-stat--hot strong {
  color: #FF8FD1;
}

.wheel-stat--jackpot {
  border-color: rgba(255, 190, 11, 0.28);
  background: rgba(255, 190, 11, 0.08);
}

.wheel-stat--jackpot strong {
  color: #FFD166;
  text-shadow: 0 0 16px rgba(255, 190, 11, 0.35);
}

.wheel-stat--free {
  border-color: rgba(0, 245, 212, 0.24);
  background: rgba(0, 245, 212, 0.06);
  box-shadow: inset 0 0 20px rgba(0, 245, 212, 0.06);
}

.wheel-stat--free strong {
  color: #7FF5E3;
  text-shadow: 0 0 14px rgba(0, 245, 212, 0.28);
}

.wheel-arena {
  --wheel-size: min(68vmin, 288px);
  --wheel-radius: calc(var(--wheel-size) / 2);
  position: relative;
  width: var(--wheel-size);
  height: var(--wheel-size);
  margin: 0 auto;
  flex-shrink: 0;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wheel-arena-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.wheel-arena.is-spinning {
  transform: scale(1.012);
}

.wheel-neon-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.wheel-neon-ring {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
}

.wheel-neon-ring--outer {
  border: 2px solid rgba(255, 190, 11, 0.45);
  box-shadow:
    0 0 20px rgba(255, 190, 11, 0.35),
    0 0 50px rgba(255, 0, 110, 0.18),
    inset 0 0 30px rgba(255, 190, 11, 0.08);
  animation: wheel-neon-pulse 2s ease-in-out infinite;
}

.wheel-neon-ring--inner {
  inset: 8%;
  border: 1px solid rgba(131, 56, 236, 0.35);
  box-shadow: 0 0 24px rgba(131, 56, 236, 0.22);
}

.wheel-arena.is-spinning .wheel-neon-ring--outer {
  animation: wheel-neon-spin-glow 0.45s ease-in-out infinite alternate;
}

@keyframes wheel-neon-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes wheel-neon-spin-glow {
  from { box-shadow: 0 0 20px rgba(255, 190, 11, 0.35), 0 0 50px rgba(255, 0, 110, 0.18); }
  to { box-shadow: 0 0 32px rgba(255, 190, 11, 0.55), 0 0 70px rgba(255, 0, 110, 0.32); }
}

.wheel-lights-mount {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.wheel-lights {
  position: absolute;
  inset: 0;
}

.wheel-light {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #FFD166;
  box-shadow: 0 0 8px #FFD166, 0 0 16px rgba(255, 190, 11, 0.55);
  transform: rotate(calc(360deg / var(--count) * var(--i))) translateY(calc(-1 * var(--wheel-radius) + 6px));
  animation: wheel-light-blink 1.1s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.06s);
}

.wheel-arena.is-spinning .wheel-light {
  animation-duration: 0.18s;
}

@keyframes wheel-light-blink {
  0%, 100% { opacity: 0.35; transform: rotate(calc(360deg / var(--count) * var(--i))) translateY(calc(-1 * var(--wheel-radius) + 6px)) scale(0.85); }
  50% { opacity: 1; transform: rotate(calc(360deg / var(--count) * var(--i))) translateY(calc(-1 * var(--wheel-radius) + 6px)) scale(1.12); }
}

.wheel-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 8;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.wheel-pointer-glow {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 11, 0.55), transparent 70%);
  filter: blur(4px);
  animation: wheel-pointer-glow 1.6s ease-in-out infinite;
}

.wheel-pointer-pin {
  position: relative;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 24px solid #FFD166;
  filter: drop-shadow(0 0 8px rgba(255, 190, 11, 0.75)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

.wheel-pointer-pin::after {
  content: "";
  position: absolute;
  top: -24px;
  left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFF7D6;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

@keyframes wheel-pointer-glow {
  0%, 100% { opacity: 0.65; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.08); }
}

.wheel-disc {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: rotate(0deg);
  will-change: transform;
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.48));
  pointer-events: none;
  transition: filter 420ms ease;
}

.wheel-disc.is-spinning {
  filter: drop-shadow(0 22px 52px rgba(255, 0, 110, 0.24)) drop-shadow(0 18px 44px rgba(0, 0, 0, 0.5));
}

.wheel-disc-mount,
.wheel-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wheel-label {
  font-family: var(--action-font);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke fill;
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 2px;
}

.wheel-label--jackpot {
  font-size: 8px;
  letter-spacing: 0.05em;
}

.wheel-label--big {
  font-size: 9px;
  letter-spacing: 0.03em;
}

.wheel-label--miss {
  font-size: 8.5px;
  letter-spacing: 0.08em;
  stroke: rgba(0, 0, 0, 0.5);
}

.wheel-label--free {
  font-size: 8.5px;
  letter-spacing: 0.06em;
  stroke: rgba(0, 0, 0, 0.45);
}

.wheel-slice-divider {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.4;
}

.wheel-slice-peg {
  fill: #FFF7D6;
  stroke: rgba(255, 190, 11, 0.65);
  stroke-width: 1;
  filter: drop-shadow(0 0 4px rgba(255, 190, 11, 0.55));
}

.wheel-outer-rim {
  filter: drop-shadow(0 0 8px rgba(255, 190, 11, 0.35));
}

.wheel-inner-rim {
  opacity: 0.85;
}

.wheel-hub {
  fill: url(#wheelHubGrad);
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(255, 190, 11, 0.35));
}

.wheel-spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 9;
  display: grid;
  place-items: center;
  width: 26%;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #FF006E 0%, #8338EC 100%);
  color: #FFF;
  font-family: var(--action-font);
  cursor: pointer;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.12),
    0 0 30px rgba(255, 0, 110, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  animation: wheel-spin-btn-pulse 2.2s ease-in-out infinite;
}

.wheel-spin-btn-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1px;
  justify-items: center;
  line-height: 1;
}

#wheelSpinBtnLabel {
  font-size: clamp(0.68rem, 2.6vw, 0.82rem);
  font-weight: 950;
  letter-spacing: 0.12em;
}

.wheel-spin-btn-cost {
  font-size: clamp(0.52rem, 2vw, 0.62rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.82);
}

.wheel-spin-btn.has-free-spin {
  background: linear-gradient(180deg, #00F5D4 0%, #118AB2 100%);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.14),
    0 0 34px rgba(0, 245, 212, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.45);
}

.wheel-spin-btn.has-free-spin .wheel-spin-btn-cost {
  color: #042822;
  font-weight: 950;
}

.wheel-spin-btn:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.18),
    0 0 42px rgba(255, 0, 110, 0.72),
    0 12px 28px rgba(0, 0, 0, 0.5);
}

.wheel-spin-btn:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.96);
}

.wheel-spin-btn:disabled {
  opacity: 0.72;
  cursor: wait;
  animation: none;
}

.wheel-spin-btn.is-blocked {
  opacity: 0.82;
  cursor: pointer;
  animation: none;
}

.wheel-spin-btn-glow {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 11, 0.35), transparent 68%);
  animation: wheel-spin-btn-glow 2.2s ease-in-out infinite;
  pointer-events: none;
}

.wheel-spin-btn-ring {
  position: absolute;
  inset: -8%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

@keyframes wheel-spin-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 0 30px rgba(255, 0, 110, 0.55), 0 8px 24px rgba(0, 0, 0, 0.45); }
  50% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 0 48px rgba(255, 190, 11, 0.45), 0 8px 24px rgba(0, 0, 0, 0.45); }
}

@keyframes wheel-spin-btn-glow {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

.wheel-footnote {
  margin: 0;
  text-align: center;
  color: rgba(238, 246, 255, 0.42);
  font-size: 0.68rem;
  font-weight: 700;
}

.wheel-win-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wheel-win-overlay[hidden] {
  display: none !important;
}

.wheel-win-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.wheel-win-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(2, 4, 12, 0.82);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: background 340ms ease;
}

.wheel-win-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  justify-items: center;
  width: min(100%, 340px);
  padding: 32px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 190, 11, 0.2), transparent 52%),
    linear-gradient(165deg, rgba(22, 16, 36, 0.98) 0%, rgba(8, 10, 20, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(131, 56, 236, 0.12);
  text-align: center;
  transform: scale(0.88) translateY(12px);
  opacity: 0;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 320ms ease,
    border-color 320ms ease,
    box-shadow 320ms ease;
}

.wheel-win-overlay.is-visible .wheel-win-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.wheel-win-card.is-jackpot {
  border-color: rgba(255, 190, 11, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 190, 11, 0.15) inset,
    0 28px 90px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(255, 190, 11, 0.22);
}

.wheel-win-card.is-win {
  border-color: rgba(255, 140, 200, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 140, 200, 0.1) inset,
    0 28px 90px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(255, 0, 110, 0.18);
}

.wheel-win-card.is-free {
  border-color: rgba(0, 245, 212, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 245, 212, 0.1) inset,
    0 28px 90px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(0, 245, 212, 0.14);
}

.wheel-win-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
}

.wheel-win-badge-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff006e, #8338ec, #ffd166, #06d6a0, #ff006e);
  animation: wheel-win-ring-spin 4s linear infinite;
  opacity: 0.85;
}

.wheel-win-badge-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(10, 12, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.35rem;
  line-height: 1;
}

@keyframes wheel-win-ring-spin {
  to { transform: rotate(360deg); }
}

.wheel-win-eyebrow {
  margin: 0;
  color: rgba(255, 190, 11, 0.78);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wheel-win-card h3 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: #fff;
}

.wheel-win-subtitle {
  margin: 0;
  max-width: 26ch;
  color: rgba(238, 246, 255, 0.58);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.wheel-win-subtitle:empty {
  display: none;
}

.wheel-win-amount {
  margin: 6px 0 4px;
  font-size: clamp(2.1rem, 11vw, 2.85rem);
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #ffd166 0%, #ff8fd1 48%, #a56eff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 190, 11, 0.28));
}

.wheel-win-amount.is-jackpot {
  animation: wheel-jackpot-shimmer 1.4s ease-in-out infinite alternate;
}

.wheel-win-amount.is-empty {
  font-size: 1.05rem;
  color: rgba(238, 246, 255, 0.55);
  background: none;
  filter: none;
}

.wheel-win-amount.is-free {
  font-size: 1.15rem;
  color: #7ff5e3;
  background: none;
  filter: drop-shadow(0 0 16px rgba(0, 245, 212, 0.25));
}

.wheel-win-dismiss {
  margin-top: 8px;
  min-width: 200px;
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff006e 0%, #8338ec 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(255, 0, 110, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.wheel-win-dismiss:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(255, 0, 110, 0.34);
}

.wheel-win-dismiss:active {
  transform: translateY(0);
}

@keyframes wheel-jackpot-shimmer {
  from { filter: drop-shadow(0 0 18px rgba(255, 190, 11, 0.35)); }
  to { filter: drop-shadow(0 0 32px rgba(255, 0, 110, 0.55)); }
}

.wheel-win-sparkle {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  pointer-events: none;
}

.wheel-win-sparkle--a {
  top: -20px;
  right: -10px;
  background: radial-gradient(circle, rgba(255, 190, 11, 0.35), transparent 70%);
}

.wheel-win-sparkle--b {
  bottom: -16px;
  left: -8px;
  background: radial-gradient(circle, rgba(255, 0, 110, 0.28), transparent 70%);
}

.wheel-confetti-mount {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.wheel-confetti {
  position: absolute;
  top: -8px;
  left: var(--x);
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  transform: rotate(var(--rot));
  animation: wheel-confetti-fall 1.8s ease-out forwards;
  animation-delay: var(--delay);
}

@keyframes wheel-confetti-fall {
  0% { opacity: 0; transform: translateY(0) rotate(var(--rot)); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translateY(320px) rotate(calc(var(--rot) + 540deg)); }
}

/* ── Aviator / Crash ── */
.aviator-screen {
  background:
    radial-gradient(circle at 80% -10%, rgba(255, 0, 110, 0.16), transparent 36%),
    radial-gradient(circle at 0% 110%, rgba(131, 56, 236, 0.18), transparent 42%),
    linear-gradient(180deg, #060814 0%, #0A0518 100%);
}

.aviator-shell {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 10px 14px 22px;
}

.aviator-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.88;
  max-height: min(78vw, 400px);
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0A0E1A;
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.55),
    0 16px 44px rgba(0, 0, 0, 0.5);
  transition: box-shadow 280ms ease, border-color 280ms ease;
}

.aviator-stage-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aviator-earnings {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--action-font, inherit);
  font-size: clamp(1.85rem, 9vw, 2.75rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: rgba(238, 246, 255, 0.28);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  transition: color 220ms ease, text-shadow 220ms ease, transform 220ms ease;
  pointer-events: none;
  user-select: none;
}

.aviator-earnings.is-active {
  color: #4ADE80;
  text-shadow:
    0 0 28px rgba(74, 222, 128, 0.5),
    0 2px 20px rgba(0, 0, 0, 0.4);
}

.aviator-earnings.is-active.is-zero {
  color: rgba(238, 246, 255, 0.55);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.aviator-earnings.is-win {
  color: #6FE9C9;
  transform: scale(1.03);
  text-shadow: 0 0 32px rgba(111, 233, 201, 0.55);
}

.aviator-earnings.is-loss {
  color: #FF6B6B;
  text-shadow:
    0 0 28px rgba(255, 107, 107, 0.55),
    0 2px 18px rgba(0, 0, 0, 0.45);
}

.aviator-flew-away {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--action-font, inherit);
  font-size: clamp(1.4rem, 7vw, 2rem);
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FF6B6B;
  text-shadow:
    0 0 40px rgba(255, 59, 87, 0.7),
    0 2px 24px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transition:
    opacity 280ms ease,
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.aviator-flew-away.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.aviator-play-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(6, 214, 160, 0.28);
  background: rgba(6, 10, 16, 0.72);
  color: #6FE9C9;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.aviator-win-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.aviator-win-overlay[hidden] {
  display: none !important;
}

.aviator-win-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.aviator-win-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(2, 4, 12, 0.72);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.aviator-win-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  justify-items: center;
  width: min(100%, 300px);
  padding: 28px 22px 22px;
  border: 1px solid rgba(251, 86, 7, 0.35);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% -10%, rgba(251, 86, 7, 0.22), transparent 52%),
    linear-gradient(165deg, rgba(22, 14, 28, 0.98), rgba(8, 8, 18, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(251, 86, 7, 0.15);
  text-align: center;
  transform: scale(0.9) translateY(10px);
  opacity: 0;
  transition:
    transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 300ms ease;
}

.aviator-win-overlay.is-visible .aviator-win-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.aviator-win-card.is-loss {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.aviator-win-eyebrow {
  margin: 0;
  color: rgba(255, 209, 102, 0.75);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.aviator-win-card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 950;
}

.aviator-win-amount {
  margin: 4px 0 0;
  font-size: clamp(2rem, 9vw, 2.6rem);
  font-weight: 950;
  line-height: 1;
  color: #FFD166;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(255, 209, 102, 0.35);
}

.aviator-win-card.is-loss .aviator-win-amount {
  color: rgba(238, 246, 255, 0.45);
  font-size: 1.4rem;
  text-shadow: none;
}

.aviator-win-subtitle {
  margin: 0;
  color: rgba(238, 246, 255, 0.55);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.45;
}

.aviator-win-dismiss {
  margin-top: 8px;
  min-height: 44px;
  width: 100%;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #FB5607, #E03E00);
  color: #FFF;
  font-family: var(--action-font);
  font-size: 0.86rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(251, 86, 7, 0.35);
}

.aviator-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(251, 86, 7, 0.2);
  background: rgba(251, 86, 7, 0.05);
}

.aviator-balance-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.aviator-balance-copy > span {
  color: rgba(238, 246, 255, 0.45);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aviator-balance-copy > strong {
  color: #FFD166;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.aviator-balance-withdraw {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(251, 86, 7, 0.28);
  border-radius: 10px;
  background: rgba(251, 86, 7, 0.1);
  color: #FFD166;
  font-family: var(--action-font);
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
}

.aviator-balance-withdraw:hover {
  border-color: rgba(255, 209, 102, 0.42);
  background: rgba(251, 86, 7, 0.16);
}

.aviator-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.aviator-head-titles {
  display: grid;
  gap: 2px;
}

.aviator-eyebrow {
  margin: 0;
  color: rgba(251, 86, 7, 0.9);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(251, 86, 7, 0.4);
}

.aviator-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #FFF, #FFD166 50%, #FB5607);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.withdraw-wallet-banner {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  margin-bottom: 4px;
  border-radius: 14px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.withdraw-wallet-banner-label {
  color: rgba(238, 246, 255, 0.5);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.withdraw-wallet-banner strong {
  font-size: clamp(1.2rem, 5vw, 1.45rem);
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.withdraw-wallet-banner--aviator {
  border-color: rgba(251, 86, 7, 0.28);
  background: rgba(251, 86, 7, 0.06);
}

.withdraw-wallet-banner--aviator strong {
  color: #FFD166;
}

.withdraw-wallet-banner--bonus {
  border-color: rgba(139, 124, 246, 0.28);
  background: rgba(139, 124, 246, 0.06);
}

.withdraw-wallet-banner--bonus strong {
  color: #E8E2FF;
}

.aviator-wallets {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 8px;
}

.aviator-wallet-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.aviator-wallet-card--game {
  border-color: rgba(251, 86, 7, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 209, 102, 0.12), transparent 48%),
    rgba(251, 86, 7, 0.06);
}

.aviator-wallet-card--bonus {
  align-content: start;
  border-color: rgba(139, 124, 246, 0.24);
  background: rgba(139, 124, 246, 0.06);
}

.aviator-wallet-copy {
  display: grid;
  gap: 2px;
}

.aviator-wallet-copy > span {
  color: rgba(238, 246, 255, 0.5);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aviator-wallet-copy > strong {
  font-size: clamp(1.1rem, 4.8vw, 1.35rem);
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.aviator-wallet-card--game .aviator-wallet-copy > strong {
  color: #FFD166;
}

.aviator-wallet-card--bonus .aviator-wallet-copy > strong {
  color: #E8E2FF;
}

.aviator-wallet-copy > small {
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.62rem;
  font-weight: 700;
}

.aviator-wallet-withdraw {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 12px;
  background: rgba(255, 209, 102, 0.1);
  color: #FFD166;
  font-family: var(--action-font);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.aviator-wallet-withdraw:hover {
  border-color: rgba(255, 209, 102, 0.42);
  background: rgba(255, 209, 102, 0.16);
}

.aviator-play-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(6, 214, 160, 0.28);
  background: rgba(6, 10, 16, 0.72);
  color: #6FE9C9;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.aviator-play-chip.is-used {
  border-color: rgba(139, 124, 246, 0.28);
  background: rgba(139, 124, 246, 0.1);
  color: #C8BFFF;
}

.aviator-play-chip.is-locked {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(238, 246, 255, 0.5);
}

.aviator-eligibility {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(251, 86, 7, 0.16);
  border-radius: 12px;
  background: rgba(251, 86, 7, 0.04);
}

.aviator-eligibility p {
  margin: 0;
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.45;
}

.aviator-eligibility-cta {
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(251, 86, 7, 0.35);
  border-radius: 12px;
  background: rgba(251, 86, 7, 0.12);
  color: #FFD9A0;
  font-family: var(--action-font, inherit);
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.aviator-stage.is-takeoff {
  border-color: rgba(255, 209, 102, 0.28);
  box-shadow:
    inset 0 0 50px rgba(0, 0, 0, 0.45),
    0 16px 44px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(255, 209, 102, 0.08);
}

.aviator-stage.is-flying {
  border-color: rgba(251, 86, 7, 0.45);
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(251, 86, 7, 0.22),
    0 18px 50px rgba(0, 0, 0, 0.5);
}

.aviator-stage.is-landing {
  border-color: rgba(6, 214, 160, 0.45);
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(6, 214, 160, 0.2),
    0 18px 50px rgba(0, 0, 0, 0.5);
}

.aviator-stage.is-departing {
  border-color: rgba(6, 214, 160, 0.38);
}

.aviator-stage.is-departing-win {
  border-color: rgba(6, 214, 160, 0.5);
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(6, 214, 160, 0.18),
    0 18px 50px rgba(0, 0, 0, 0.5);
}

.aviator-stage.is-crashed {
  border-color: rgba(255, 59, 87, 0.55);
  box-shadow:
    inset 0 0 70px rgba(80, 0, 20, 0.35),
    0 0 48px rgba(255, 59, 87, 0.28),
    0 18px 50px rgba(0, 0, 0, 0.5);
}

.aviator-stage.is-crashed .aviator-stage-vignette {
  background:
    linear-gradient(180deg, rgba(80, 0, 20, 0.25) 0%, transparent 30%, transparent 70%, rgba(2, 4, 10, 0.45) 100%),
    radial-gradient(circle at 50% 55%, transparent 55%, rgba(40, 0, 10, 0.4) 100%);
}

#aviatorCanvas {
  position: absolute;
  inset: 0;
  display: block;
}

.aviator-stage-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.35) 0%, transparent 22%, transparent 72%, rgba(2, 4, 10, 0.4) 100%),
    radial-gradient(circle at 50% 55%, transparent 62%, rgba(2, 4, 10, 0.35) 100%);
}

.aviator-action-btn {
  position: relative;
  display: grid;
  gap: 2px;
  place-items: center;
  width: 100%;
  min-height: 64px;
  padding: 10px;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  overflow: hidden;
  color: #FFF;
  background: linear-gradient(135deg, #FB5607, #FF006E);
  box-shadow: 0 0 30px rgba(251, 86, 7, 0.38), 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: transform 160ms ease, box-shadow 200ms ease, opacity 160ms ease;
}

.aviator-action-btn[data-mode="flying"] {
  background: linear-gradient(135deg, #118AB2, #8338EC);
  box-shadow: 0 0 34px rgba(131, 56, 236, 0.4), 0 10px 28px rgba(0, 0, 0, 0.4);
  animation: aviator-flight-pulse 1.2s ease-in-out infinite;
}

.aviator-action-btn[data-mode="locked"],
.aviator-action-btn[data-mode="used"] {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  color: rgba(238, 246, 255, 0.55);
}

.aviator-action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.aviator-action-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.aviator-action-btn:disabled {
  opacity: 0.72;
  cursor: default;
  animation: none;
}

.aviator-action-glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.18), transparent 40%);
  animation: wheel-promo-spin 6s linear infinite;
  pointer-events: none;
}

.aviator-action-main {
  position: relative;
  z-index: 1;
  font-family: var(--action-font, inherit);
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.aviator-action-sub {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0.92;
  font-variant-numeric: tabular-nums;
}

@keyframes aviator-flight-pulse {
  0%, 100% { box-shadow: 0 0 34px rgba(131, 56, 236, 0.4), 0 10px 28px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 0 48px rgba(126, 231, 255, 0.45), 0 10px 28px rgba(0, 0, 0, 0.4); }
}

.aviator-footnote {
  margin: 0;
  text-align: center;
  color: rgba(238, 246, 255, 0.34);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.45;
}

.managed-screen {
  background:
    radial-gradient(circle at 14% 0%, rgba(31, 184, 122, 0.1), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(201, 162, 39, 0.08), transparent 28%),
    linear-gradient(180deg, #070A10 0%, #05070C 100%);
}

.managed-panel {
  width: 100%;
}

.managed-idle-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 18px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.managed-idle-card strong {
  font-size: 1.02rem;
  font-weight: 950;
}

.managed-idle-card p {
  margin: 0;
  max-width: 28ch;
  color: rgba(238, 246, 255, 0.58);
  font-size: 0.82rem;
  line-height: 1.45;
}

.managed-highlights {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.managed-highlights li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.managed-highlights strong {
  font-size: 0.84rem;
  font-weight: 950;
}

.managed-highlights span {
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.managed-live-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(31, 184, 122, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 184, 122, 0.12), transparent 42%),
    rgba(31, 184, 122, 0.06);
}

.managed-live-value-row {
  display: grid;
  gap: 4px;
}

.managed-live-value-row > strong {
  color: #EEF6FF;
  font-size: clamp(1.56rem, 6vw, 1.92rem);
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.managed-live-value-row > small {
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 700;
}

.managed-live-stats {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(238, 246, 255, 0.08);
}

.managed-week-track {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.managed-payout-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(201, 162, 39, 0.12), transparent 48%),
    rgba(201, 162, 39, 0.06);
}

.managed-payout-card span {
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.managed-payout-card strong {
  color: var(--gold-soft);
  font-size: 1.24rem;
  font-weight: 950;
  line-height: 1;
}

.managed-payout-card small {
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 700;
}

.managed-active-note {
  margin: 0;
  color: rgba(238, 246, 255, 0.42);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.managed-payout-schedule {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.managed-payout-schedule-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.managed-payout-schedule-head .dash-section-label {
  margin: 0;
}

.managed-payout-rhythm {
  margin: 0;
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: right;
}

.managed-payout-lead {
  margin: 0;
  color: rgba(238, 246, 255, 0.56);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

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

.managed-payout-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.managed-payout-item .app-nav-copy strong {
  font-size: 0.86rem;
  font-weight: 950;
}

.managed-payout-item .app-nav-copy small {
  color: rgba(238, 246, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 700;
}

.managed-payout-week {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(238, 246, 255, 0.06);
  color: rgba(238, 246, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.managed-payout-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.managed-payout-meta strong {
  font-size: 0.84rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.managed-payout-meta small {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.82;
}

.managed-payout-item.is-paid {
  border-color: rgba(92, 224, 168, 0.16);
  background: rgba(31, 184, 122, 0.05);
}

.managed-payout-item.is-paid .managed-payout-week {
  background: rgba(31, 184, 122, 0.14);
  color: #5CE0A8;
}

.managed-payout-item.is-paid .managed-payout-meta strong,
.managed-payout-item.is-paid .managed-payout-meta small {
  color: #5CE0A8;
}

.managed-payout-item.is-next,
.managed-payout-item.is-next-needs-bank {
  border-color: rgba(201, 162, 39, 0.28);
  background:
    radial-gradient(circle at 0% 0%, rgba(201, 162, 39, 0.12), transparent 48%),
    rgba(201, 162, 39, 0.06);
}

.managed-payout-item.is-next .managed-payout-week,
.managed-payout-item.is-next-needs-bank .managed-payout-week {
  background: rgba(201, 162, 39, 0.16);
  color: var(--gold-soft);
}

.managed-payout-item.is-next-needs-bank {
  border-color: rgba(255, 176, 92, 0.32);
}

.managed-payout-item.is-next-needs-bank .managed-payout-meta small {
  color: #FFB05C;
}

.managed-banking-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.managed-banking-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(238, 246, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.managed-banking-cta .app-nav-copy strong {
  font-size: 0.88rem;
  font-weight: 950;
}

.managed-banking-cta .app-nav-copy small {
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 700;
}

.wizard-panel {
  gap: 0;
  width: min(100%, 480px);
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.wizard-header {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 162, 39, 0.1), transparent 40%),
    rgba(8, 11, 18, 0.98);
}

.wizard-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
}

.wizard-close svg {
  width: 16px;
  height: 16px;
}

.wizard-close path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.wizard-eyebrow {
  margin: 0;
  color: var(--gold-soft);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wizard-step-title {
  margin: 0;
  padding-right: 40px;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.15;
}

.wizard-progress {
  display: grid;
  gap: 6px;
}

.wizard-progress-track {
  overflow: hidden;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
}

.wizard-progress-track span {
  display: block;
  height: 100%;
  width: 16.66%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width 280ms ease;
}

.wizard-progress-label {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wizard-dots {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wizard-dots li {
  flex: 1;
  height: 3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  transition: background 220ms ease;
}

.wizard-dots li.is-current,
.wizard-dots li.is-done {
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

.wizard-body {
  padding: 20px 22px;
  min-height: 280px;
}

.wizard-step {
  display: grid;
  gap: 14px;
  animation: wizard-step-in 280ms ease;
}

@keyframes wizard-step-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.wizard-lead {
  margin: 0;
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}

.wizard-highlights {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wizard-highlights li {
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.wizard-highlights strong {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 950;
}

.wizard-highlights span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.wizard-callout {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: var(--radius);
  background: rgba(201, 162, 39, 0.06);
}

.wizard-callout-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(201, 162, 39, 0.14);
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 950;
}

.wizard-callout strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 950;
}

.wizard-callout p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
}

.wizard-review {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.wizard-review div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.wizard-review div:last-child {
  border-bottom: 0;
}

.wizard-review dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.wizard-review dd {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 950;
}

.wizard-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.4;
}

.wizard-footer {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--border);
  background: rgba(6, 9, 14, 0.98);
}

.wizard-footer .primary-app-button:only-child {
  grid-column: 1 / -1;
}

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

.managed-simple-step[hidden] {
  display: none !important;
}

.managed-simple-step {
  display: grid;
  gap: 18px;
}

.managed-confirm-summary {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 14px;
  background: rgba(201, 162, 39, 0.06);
}

.managed-confirm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(226, 236, 247, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
}

.managed-confirm-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.managed-confirm-row strong {
  color: #F8FBFF;
  font-size: 0.88rem;
  font-weight: 950;
  text-align: right;
}

.managed-confirm-row--highlight strong {
  color: #F0D98B;
  font-size: 1rem;
}

.managed-confirm-row--highlight span {
  color: rgba(240, 217, 139, 0.88);
}

.managed-simple-panel {
  position: relative;
  gap: 18px;
  width: min(100%, 392px);
  padding: 22px 20px 20px;
  border: 1px solid rgba(201, 162, 39, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 0%, rgba(232, 197, 71, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(12, 16, 24, 0.98), rgba(6, 9, 14, 0.98));
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.managed-simple-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.managed-simple-close svg {
  width: 16px;
  height: 16px;
}

.managed-simple-close path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.managed-simple-head {
  display: grid;
  gap: 8px;
  padding-right: 36px;
}

.managed-simple-eyebrow {
  margin: 0;
  color: rgba(201, 162, 39, 0.88);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.managed-simple-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.08);
  color: #f0d98b;
  font-size: 0.72rem;
  font-weight: 700;
}

.managed-simple-panel h2 {
  margin: 0;
  padding-right: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.managed-simple-lead {
  margin: 0;
  color: rgba(226, 236, 247, 0.78);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
}

.managed-screen-lead {
  margin: 8px 0 0;
  max-width: 34ch;
  color: rgba(226, 236, 247, 0.72);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
}

.managed-insufficient-panel {
  gap: 14px;
  width: min(100%, 360px);
  padding: 20px;
}

.managed-insufficient-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.managed-insufficient-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
}

.fraud-signup-panel {
  gap: 12px;
  width: min(100%, 380px);
  padding: 20px;
}

.fraud-signup-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.fraud-signup-actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.refer-funds-panel {
  gap: 12px;
  width: min(100%, 380px);
  padding: 20px;
}

.refer-funds-chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.14);
  color: #ffb4b4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.refer-funds-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.refer-funds-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 8px;
  margin-top: 4px;
}

.refer-funds-actions-full {
  grid-column: 1 / -1;
}

.managed-idle-copy {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.managed-summary-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.managed-summary-label {
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.managed-summary-amount {
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.managed-summary-next {
  color: var(--muted);
  font-size: 0.84rem;
}

.managed-session-count {
  color: rgba(238, 246, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
}

.managed-totals-card {
  margin-bottom: 4px;
}

.managed-add-session {
  width: 100%;
  margin: 4px 0 14px;
}

.managed-program-list {
  display: grid;
  gap: 14px;
}

.managed-program-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.managed-program-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.managed-program-card-title {
  display: grid;
  gap: 2px;
}

.managed-program-card-label {
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.managed-program-card-started {
  color: var(--muted);
  font-size: 0.76rem;
}

.managed-program-card-amount {
  font-size: 1.2rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.managed-program-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.managed-program-card-growth {
  color: #5CE0A8;
  font-size: 0.84rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.managed-program-card-week {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.managed-program-card-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(238, 246, 255, 0.08);
  overflow: hidden;
}

.managed-program-card-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(31, 184, 122, 0.65), rgba(92, 224, 168, 0.95));
  transition: width 0.35s ease;
}

.managed-program-card-next {
  margin: 0;
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.managed-program-card-payouts {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.managed-program-card-payouts .managed-payout-item {
  padding: 10px 12px;
}

.managed-payout-amount {
  font-size: 0.9rem;
  font-weight: 950;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}

.managed-payout-item.is-next .managed-payout-amount {
  color: var(--gold-soft);
}

.managed-payout-item.is-paid .managed-payout-amount {
  color: #5CE0A8;
}

.managed-simple-field {
  display: grid;
  gap: 8px;
}

.managed-simple-field > span {
  color: rgba(238, 246, 255, 0.48);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.managed-simple-input-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.managed-simple-input-wrap:focus-within {
  border-color: rgba(201, 162, 39, 0.42);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.managed-simple-currency {
  color: rgba(238, 246, 255, 0.55);
  font-family: var(--action-font);
  font-size: 1rem;
  font-weight: 800;
}

.managed-simple-input-wrap input {
  width: 100%;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f8fbff;
  font-family: var(--action-font);
  font-size: 1.35rem;
  font-weight: 800;
  outline: none;
}

.managed-simple-input-wrap input::placeholder {
  color: rgba(238, 246, 255, 0.22);
}

.managed-simple-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.managed-simple-available {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.managed-simple-available strong {
  color: var(--text);
}

.managed-simple-deposit {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(91, 159, 212, 0.28);
  border-radius: 999px;
  background: rgba(91, 159, 212, 0.1);
  color: #9fd0f5;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.managed-simple-deposit:hover {
  background: rgba(91, 159, 212, 0.16);
}

.managed-simple-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 122, 142, 0.08);
  border: 1px solid rgba(255, 122, 142, 0.18);
  color: #ffb8c4;
  font-size: 0.82rem;
  line-height: 1.45;
}

.managed-simple-hint.is-info {
  background: rgba(91, 159, 212, 0.08);
  border-color: rgba(91, 159, 212, 0.18);
  color: #9fd0f5;
}

.managed-simple-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  margin-top: 2px;
}

.loss-recovery-panel {
  gap: 16px;
  width: min(100%, 360px);
  padding: 20px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(10, 13, 20, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.loss-recovery-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.loss-recovery-loss {
  display: grid;
  gap: 4px;
  padding: 14px 0 4px;
  text-align: center;
}

.loss-recovery-loss span {
  color: rgba(238, 246, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loss-recovery-loss strong {
  color: #FF8EA0;
  font-size: 1.75rem;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.loss-recovery-lead {
  margin: 0;
  color: rgba(238, 246, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.loss-recovery-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .loss-recovery-actions {
    grid-template-columns: 1fr;
  }
}

.amount-picker {
  display: grid;
  gap: 14px;
}

.amount-picker-display {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 22px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0%, rgba(31, 184, 122, 0.1), transparent 50%),
    rgba(255, 255, 255, 0.02);
}

.amount-picker-display strong {
  color: var(--emerald-soft);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 950;
  line-height: 1;
}

.amount-picker-available {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.amount-picker-available em {
  color: var(--text-2);
  font-style: normal;
  font-weight: 900;
}

.amount-picker-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amount-picker-presets button {
  flex: 1 1 calc(33.33% - 8px);
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-family: var(--action-font);
  font-size: 0.72rem;
  font-weight: 900;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.amount-picker-presets button.is-active,
.amount-picker-presets button:hover {
  border-color: rgba(31, 184, 122, 0.32);
  background: rgba(31, 184, 122, 0.1);
  color: var(--emerald-soft);
}

.amount-picker-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.amount-picker-stepper button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--action-font);
  font-size: 0.78rem;
  font-weight: 950;
}

.amount-picker-stepper button:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.amount-drawer-panel {
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-lg) var(--radius-lg);
}

.amount-drawer-panel h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.amount-drawer-confirm {
  min-height: 52px;
  width: 100%;
}

.app-screen {
  background: #05070C;
  padding: 82px 14px 22px;
}

.screen-back,
.primary-app-button,
.secondary-app-button {
  border-radius: var(--radius);
}

.primary-app-button {
  background: linear-gradient(180deg, var(--emerald), #14885A);
  box-shadow: 0 10px 28px rgba(31, 184, 122, 0.22);
}

.top-managed-cta::before {
  background:
    conic-gradient(
      from 0deg,
      rgba(201, 162, 39, 0.04),
      rgba(201, 162, 39, 0.95),
      rgba(232, 197, 71, 0.88),
      rgba(201, 162, 39, 0.95),
      rgba(201, 162, 39, 0.04)
    );
}

.top-managed-cta::after {
  background:
    radial-gradient(circle at 18% 0%, rgba(201, 162, 39, 0.2), transparent 38%),
    rgba(8, 11, 18, 0.98);
}

@media (max-width: 860px) and (min-width: 721px) {
  .account-identity strong {
    font-size: 0.8rem;
  }
}

@media (max-width: 720px) {
  .topbar-balance strong {
    font-size: 0.82rem;
  }

  .account-identity strong {
    font-size: 0.86rem;
  }

  .app-nav-menu-panel {
    width: min(88vw, 320px);
  }

  .chart-pair-badge {
    top: calc(var(--topbar-occupy) + 4px);
    left: 8px;
    min-height: 26px;
    padding: 2px 7px 2px 3px;
    border-radius: var(--chrome-radius-mobile);
    gap: 3px;
  }

  .chart-pair-icon {
    width: 16px;
    height: 16px;
    border-radius: 5px;
  }

  .chart-pair-icon img,
  .chart-pair-icon svg {
    width: 11px;
    height: 11px;
  }

  .chart-pair-copy strong {
    font-size: 0.54rem;
  }

  .chart-pair-copy small {
    font-size: 0.42rem;
  }

  .chart-wheel-promo {
    --wheel-promo-size: 54px;
    left: max(6px, env(safe-area-inset-left));
    width: 82px;
    gap: 6px;
  }

  .chart-wheel-promo-copy {
    padding: 5px 6px 6px;
  }

  .chart-wheel-promo-copy strong {
    font-size: 0.56rem;
  }

  .chart-wheel-promo-copy small {
    font-size: 0.48rem;
  }

  .chart-wheel-promo-live {
    top: calc(50% - 46px);
    right: 0;
    font-size: 0.44rem;
  }

  .menu-button svg {
    width: 17px;
    height: 17px;
  }

  .live-pnl-readout {
    top: calc(var(--topbar-occupy) + 6px);
    right: 8px;
    min-height: 0;
  }

  .live-pnl-value {
    font-size: 0.92rem;
  }

  .trade-control-row {
    bottom: 78px;
    width: calc(100vw - 16px);
    grid-template-columns: 1fr;
    gap: 0;
  }

  .trade-amount-control {
    min-height: 42px;
    border-radius: 14px;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .amount-step {
    width: 34px;
    height: 32px;
    font-size: 0.95rem;
  }

  .amount-display {
    min-height: 36px;
    padding: 2px 8px;
  }

  .amount-display-label {
    font-size: 0.54rem;
  }

  .amount-display-value {
    font-size: 0.86rem;
  }

  .app-screen {
    padding: 68px 8px 12px;
  }

  .screen-head {
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    min-height: 42px;
  }

  .screen-head strong {
    font-size: 0.92rem;
  }

  .screen-back {
    min-height: 34px;
    border-radius: 16px;
    font-size: 0.7rem;
  }

  .account-hero,
  .pin-panel,
  .managed-commit-card {
    border-radius: 22px;
    padding: 16px;
  }

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

  .account-grid div {
    min-height: 68px;
    border-radius: 20px;
  }

  .dashboard-spotlight {
    grid-template-columns: 1fr;
    align-items: stretch;
    min-height: 184px;
    padding: 18px;
    border-radius: 24px;
  }

  .dash-nav-hub {
    gap: 8px;
  }

  .dash-nav-tile {
    min-height: 96px;
    padding: 14px;
  }

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

  .wizard-footer .secondary-app-button {
    order: 2;
  }

  .amount-picker-presets button {
    flex: 1 1 calc(50% - 8px);
  }

  .history-summary-row {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-card {
    padding: 18px;
    border-radius: 24px;
  }

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

  .hero-cta-primary {
    width: 100%;
    justify-content: center;
  }

  .dashboard-wallet-row,
  .path-cards,
  .managed-metrics {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }

  .managed-hero-button {
    width: 100%;
    justify-content: center;
    min-height: 50px;
    border-radius: 20px;
  }

  .dashboard-balance-panel,
  .metric-card {
    border-radius: 21px;
  }

  .dashboard-metrics {
    gap: 6px;
  }

  .metric-card {
    min-height: 78px;
    padding: 11px;
  }

  .pin-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .pin-grid input {
    height: 52px;
  }

  .edge-actions {
    inset: auto auto 0 50%;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    left: 50%;
    width: calc(100vw - 16px);
    height: 64px;
    padding: 0;
    gap: 0;
    border-radius: 22px;
    transform: translateX(-50%) translateY(-8px);
  }

  .edge-action::before,
  .edge-action::after {
    inset: 0;
    border-radius: 0;
  }

  .edge-action::after {
    inset: 18%;
  }

  .edge-action {
    grid-template-columns: auto auto;
    gap: 5px;
    border-radius: 0;
  }

  .edge-action strong {
    writing-mode: horizontal-tb;
    font-size: 0.9rem;
  }

  .edge-action small {
    display: none;
  }

  .trend-icon {
    width: 32px;
    height: 32px;
  }

  .position-close {
    right: auto;
    bottom: 82px;
  }

  .corner-brand {
    display: none;
  }
}

/* ── Login page (standalone, no nested card) ───────────────────── */
body.login-page::before {
  display: none;
}

.login-page {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
}

.login-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100dvh;
}

.login-hero {
  position: relative;
  min-height: 42vh;
  max-height: 46vh;
  overflow: hidden;
  background: #070b12;
}

.login-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.login-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.15) 0%, rgba(5, 7, 12, 0.55) 72%, var(--bg) 100%);
  pointer-events: none;
}

.login-hero-copy {
  position: absolute;
  left: max(20px, env(safe-area-inset-left));
  right: max(20px, env(safe-area-inset-right));
  bottom: 28px;
  z-index: 1;
}

.login-hero-brand {
  margin: 0;
  font-family: var(--action-font);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: #fff;
}

.login-hero-line {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: rgba(244, 246, 250, 0.72);
  letter-spacing: 0.02em;
}

.login-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding:
    8px
    max(22px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.login-head {
  margin-bottom: 22px;
}

.login-head h1 {
  margin: 0;
  font-family: var(--action-font);
  font-size: clamp(1.65rem, 4.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.login-head-sub {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-2);
}

.login-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 24px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  isolation: isolate;
}

.login-tabs::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: var(--radius-pill);
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.28);
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-tabs[data-active="signup"]::before {
  transform: translateX(100%);
}

.login-page .login-tabs .auth-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 11px 8px;
  margin: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: none;
  cursor: pointer;
  transition: color 0.22s ease;
}

.login-page .login-tabs .auth-tab:hover {
  color: var(--text);
}

.login-page .login-tabs .auth-tab.is-active {
  color: #0b1020;
  background: transparent;
  box-shadow: none;
}

.login-body {
  flex: 1;
  min-height: 0;
}

.login-page .auth-step-lead--compact {
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.login-page .login-form {
  gap: 14px;
}

.login-page .login-form label {
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.login-page .login-form input {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 16px;
}

.login-page .login-form input:focus {
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.login-page .login-submit {
  margin-top: 4px;
  min-height: 52px;
  border-radius: 14px;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-page .auth-error {
  border: 0;
  background: transparent;
  padding: 0;
  color: #ff8a8a;
  font-size: 0.82rem;
}

.login-foot {
  margin-top: 14px;
  text-align: center;
}

.login-legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.login-legal p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted);
}

.login-legal p + p {
  margin-top: 6px;
}

.login-legal a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-toast {
  z-index: 5000;
}

@media (min-width: 900px) {
  .login-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  }

  .login-hero {
    min-height: 100dvh;
    max-height: none;
  }

  .login-hero-image {
    object-position: center center;
  }

  .login-hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 7, 12, 0.2) 0%, rgba(5, 7, 12, 0.45) 55%, var(--bg) 100%);
  }

  .login-hero-copy {
    left: max(48px, env(safe-area-inset-left));
    right: auto;
    bottom: max(56px, env(safe-area-inset-bottom));
    max-width: 420px;
  }

  .login-panel {
    max-width: none;
    margin: 0;
    align-self: center;
    justify-self: center;
    width: min(100%, 440px);
    padding:
      48px
      max(40px, env(safe-area-inset-right))
      max(48px, env(safe-area-inset-bottom))
      max(32px, env(safe-area-inset-left));
  }
}

@media (max-width: 520px) {
  .login-hero {
    min-height: 38vh;
    max-height: 40vh;
  }

  .login-hero-copy {
    bottom: 20px;
  }

  .login-head {
    margin-bottom: 18px;
  }
}

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 7, 14, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}
.auth-modal-overlay[hidden] { display: none !important; }

.auth-modal {
  display: flex;
  flex-direction: column;
  width: min(640px, calc(100vw - 20px));
  max-height: min(92dvh, 820px);
  overflow: hidden;
  font-family: var(--font);
  background: linear-gradient(165deg, rgba(18, 23, 38, 0.99) 0%, rgba(10, 13, 22, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 22px 24px 20px;
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-modal-header {
  position: relative;
  flex-shrink: 0;
  text-align: left;
  margin-bottom: 16px;
  padding: 0 2px;
  background: none;
  border: 0;
  box-shadow: none;
}
.auth-modal-header::before {
  content: "";
  position: absolute;
  inset: -10px -14px -4px;
  background:
    radial-gradient(ellipse 90% 130% at 12% 0%, rgba(201, 162, 39, 0.14), transparent 58%),
    radial-gradient(ellipse 70% 110% at 88% 30%, rgba(91, 159, 212, 0.1), transparent 52%);
  pointer-events: none;
  z-index: 0;
}
.auth-modal-header > * {
  position: relative;
  z-index: 1;
}
.auth-modal-sub {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.auth-tabs {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.auth-tab {
  padding: 11px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-family: var(--action-font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.auth-tab.is-active {
  background: rgba(201, 162, 39, 0.14);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.28);
}

.auth-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.auth-panel[hidden],
.auth-step[hidden],
.auth-tabs[hidden] {
  display: none !important;
}

.auth-wizard-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.auth-wizard-step {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--action-font);
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.auth-wizard-step.is-active {
  color: #0b1020;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-color: transparent;
}
.auth-wizard-step.is-done {
  color: var(--emerald-soft);
  background: rgba(31, 184, 122, 0.12);
  border-color: rgba(31, 184, 122, 0.3);
}
.auth-wizard-line {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--border);
}

.auth-step-lead {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
.auth-step-lead--compact {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.auth-brand {
  font-family: var(--action-font);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.auth-form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(5, 7, 12, 0.75);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-form input::placeholder { color: var(--muted); }
.auth-form input:focus {
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}
.auth-form input.auth-otp-input {
  font-family: var(--price-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-align: center;
  padding: 14px 12px;
}
.auth-form .primary-app-button {
  margin-top: 2px;
  width: 100%;
  font-family: var(--action-font);
  font-size: 14px;
  letter-spacing: 0.04em;
  min-height: 48px;
}
.auth-error {
  color: #ff8a8a;
  font-size: 12px;
  margin: 0;
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.22);
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1.4;
}
.auth-error[hidden] { display: none !important; }
.auth-foot {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 0;
  line-height: 1.5;
}
.auth-foot-sep { margin: 0 6px; color: #4a5568; }
.auth-trust {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: left;
}
.auth-trust a {
  color: var(--gold-soft, #e8c547);
  text-decoration: underline;
}
.deposit-crypto-warning {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.08);
  color: var(--gold-soft, #e8c547);
  font-size: 12px;
  line-height: 1.5;
}
.auth-link {
  background: none;
  border: 0;
  color: var(--gold-soft);
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}
.auth-link:hover { color: var(--gold); }
#showForgotPassword {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
#showForgotPassword:hover {
  color: #fff;
  opacity: 0.85;
}

body.auth-modal-open .app-topbar,
body.auth-modal-open .chart-viewport,
body.auth-modal-open .app-screen {
  pointer-events: none;
  user-select: none;
}
body.auth-modal-open .auth-modal-overlay {
  pointer-events: auto;
}

@media (max-width: 520px) {
  .auth-modal-overlay {
    align-items: flex-end;
    padding: 0;
    background: rgba(4, 7, 14, 0.72);
  }
  .auth-modal {
    width: 100%;
    max-height: min(94dvh, 100%);
    border-radius: 22px 22px 0 0;
    padding: 18px 18px max(18px, env(safe-area-inset-bottom));
    border-bottom: 0;
  }
  .auth-modal-header { margin-bottom: 12px; padding: 0 2px; }
  .auth-brand { font-size: 16px; }
  .auth-modal-sub { font-size: 11px; }
  .auth-form { gap: 10px; }
  .auth-form input { padding: 11px 12px; font-size: 16px; }
  .auth-tabs { margin-bottom: 12px; }
  .auth-tab { font-size: 12px; padding: 10px 8px; }
}

/* legacy alias */
body.auth-locked { overflow: hidden; }

/* ── Wheel balance bar ─────────────────────────────────────────── */
.wheel-balance-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 14, 24, 0.82);
  border: 1px solid rgba(120, 140, 200, 0.22);
  color: #cdd6f2;
  font-size: 13px;
  flex-shrink: 0;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.wheel-balance-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(205, 214, 242, 0.72);
}

.wheel-balance-bar strong,
#wheelBalance {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease, transform 0.2s ease;
}

.wheel-balance-bar.is-deducting {
  border-color: rgba(255, 90, 90, 0.55);
  background: rgba(40, 10, 14, 0.88);
  box-shadow: 0 0 24px rgba(255, 60, 60, 0.18);
}

.wheel-balance-bar.is-deducting #wheelBalance {
  color: #ff6b6b;
  transform: scale(1.04);
}

.wheel-balance-delta {
  font-size: 0.82rem;
  font-weight: 900;
  color: #ff5a5a;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.wheel-balance-delta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* legacy alias */
.wheel-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px auto 0;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(10, 14, 24, 0.7);
  border: 1px solid rgba(120, 140, 200, 0.22);
  color: #cdd6f2;
  font-size: 13px;
}
.wheel-balance strong { color: #fff; font-size: 15px; }

/* ── Trade for me table ─────────────────────────────────────────── */
.tfm-table-wrap {
  margin: 18px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(120, 140, 200, 0.18);
  background: rgba(12, 17, 28, 0.7);
}
.tfm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tfm-table caption {
  text-align: left;
  padding: 14px 16px 4px;
  color: #aeb8d8;
  font-size: 13px;
}
.tfm-table th, .tfm-table td { padding: 12px 16px; text-align: right; }
.tfm-table th:first-child, .tfm-table td:first-child { text-align: left; }
.tfm-table thead th {
  color: #8b97b8;
  font-weight: 600;
  border-bottom: 1px solid rgba(120, 140, 200, 0.18);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.tfm-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.tfm-table tbody td { color: #e6ebfb; }
.tfm-table tbody td.tfm-gain { color: #4ae8bc; font-weight: 600; }
.tfm-dates {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.tfm-date-card {
  flex: 1;
  min-width: 130px;
  background: rgba(12, 17, 28, 0.7);
  border: 1px solid rgba(120, 140, 200, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
}
.tfm-date-card span { display: block; color: #8b97b8; font-size: 12px; }
.tfm-date-card strong { font-size: 16px; color: #fff; }

/* ── PWA install sheet ──────────────────────────────────────────── */
.pwa-sheet {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(3, 6, 14, 0);
  transition: background 0.25s ease;
  pointer-events: none;
}
.pwa-sheet.is-open {
  background: rgba(3, 6, 14, 0.55);
  backdrop-filter: blur(3px);
  pointer-events: auto;
}
.pwa-card {
  position: relative;
  width: min(440px, 100%);
  margin: 12px;
  padding: 20px 18px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #141a28, #0e131f);
  border: 1px solid rgba(238, 246, 255, 0.10);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(120%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  color: #eef6ff;
}
.pwa-sheet.is-open .pwa-card { transform: translateY(0); }

.pwa-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cdd7ee;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.pwa-x:hover { background: rgba(255, 255, 255, 0.12); }

.pwa-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.pwa-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.pwa-titles { display: flex; flex-direction: column; gap: 3px; }
.pwa-titles strong { font-size: 1.05rem; font-weight: 900; }
.pwa-titles span { font-size: 0.82rem; color: #93a0c0; }

.pwa-actions { display: flex; gap: 10px; }
.pwa-btn {
  flex: 1;
  padding: 13px 14px;
  border-radius: 14px;
  border: 0;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
}
.pwa-btn-primary {
  background: linear-gradient(135deg, #1fd17a, #14b8d6);
  color: #04181a;
}
.pwa-btn-primary:hover { filter: brightness(1.05); }
.pwa-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #cdd7ee;
  border: 1px solid rgba(238, 246, 255, 0.10);
}
.pwa-btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }

.pwa-steps {
  margin: 4px 0 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pwa-steps li { font-size: 0.9rem; color: #d6deef; line-height: 1.5; }
.pwa-steps strong { color: #fff; }
.pwa-steps svg {
  vertical-align: middle;
  margin: 0 2px;
  color: #1fd17a;
}

/* ════════════════════════════════════════════════════════════════
   CASINO REDESIGN — Phase 1: global shell, bottom nav, shared kit
   ════════════════════════════════════════════════════════════════ */

@keyframes auraPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}
@keyframes sheenSlide {
  0% { transform: translateX(-120%) skewX(-18deg); }
  60%, 100% { transform: translateX(240%) skewX(-18deg); }
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes risePop {
  0% { opacity: 0; transform: translateY(10px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ── Bottom nav — light, minimal dock ──────────────────────────── */
.app-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 37;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  padding: 2px 4px calc(2px + env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid rgba(238, 246, 255, 0.06);
  border-radius: 0;
  background: rgba(6, 9, 14, 0.94);
  box-shadow: none;
  backdrop-filter: blur(10px);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
}

.app-bottom-nav[hidden] { display: none; }

body.chart-only-app[data-view="chart"] .app-bottom-nav,
body.chart-only-app[data-view="wheel"] .app-bottom-nav,
body.chart-only-app[data-view="aviator"] .app-bottom-nav {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
body.auth-modal-open .app-bottom-nav,
body.nav-menu-open .app-bottom-nav { opacity: 0; pointer-events: none; }

.app-bottom-nav-item {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  min-height: 40px;
  padding: 3px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(238, 246, 255, 0.38);
  font-family: var(--action-font);
  transition: color 160ms ease;
}
.app-bottom-nav-item:active { opacity: 0.7; }

.app-bottom-nav-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.app-bottom-nav-ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-bottom-nav-label {
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.app-bottom-nav-item.is-active {
  color: var(--gold-soft);
  background: transparent;
  border: 0;
}
.app-bottom-nav-item.is-active .app-bottom-nav-ico {
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: none;
}
.app-bottom-nav-item.is-active::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-soft);
  transform: translateX(-50%);
}

/* keep app-screens clear of the spine */
body.chart-only-app[data-view]:not([data-view="chart"]):not([data-view="wheel"]):not([data-view="aviator"]) .app-screen {
  padding-bottom: var(--bottomnav-occupy);
}

/* The spine replaces the legacy back pill on browse screens, but immersive
   game screens (wheel/aviator) keep it as their exit affordance. */
.back-to-market-btn { display: none !important; }
body.chart-only-app[data-view="wheel"] .back-to-market-btn:not([hidden]),
body.chart-only-app[data-view="aviator"] .back-to-market-btn:not([hidden]) {
  display: inline-flex !important;
}

/* ── Section header (reusable) ─────────────────────────────────── */
.kit-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 2px -2px;
}
.kit-section-head .kit-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  color: #F8FBFF;
}
.kit-section-head .kit-section-title .kit-bar {
  width: 4px;
  height: 16px;
  border-radius: 3px;
  background: var(--gold-grad);
  box-shadow: 0 0 10px var(--gold-glow);
}
.kit-section-more {
  border: 0;
  background: none;
  color: var(--gold-soft);
  font-family: var(--action-font);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Live-win ticker (social proof) ────────────────────────────── */
.live-ticker {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(92, 224, 168, 0.16);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(31, 184, 122, 0.12), rgba(9, 13, 21, 0.9) 30%);
}
.live-ticker-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-size: 0.6rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald-soft);
}
.live-ticker-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-soft);
  box-shadow: 0 0 8px var(--emerald-soft);
  animation: livePulse 1.4s ease-in-out infinite;
}
.live-ticker-viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.live-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  will-change: transform;
  animation: tickerScroll 38s linear infinite;
}
.live-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(238, 246, 255, 0.82);
}
.live-ticker-item b { color: #fff; font-weight: 950; }
.live-ticker-item .lt-amount {
  color: var(--emerald-soft);
  font-weight: 950;
}
.live-ticker-item .lt-game {
  color: var(--gold-soft);
  font-weight: 900;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Promo carousel (self-referencing ads) ─────────────────────── */
.promo-carousel {
  position: relative;
  margin: 0 -2px;
}
.promo-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}
.promo-track::-webkit-scrollbar { display: none; }
.promo-card {
  position: relative;
  flex: 0 0 86%;
  scroll-snap-align: center;
  overflow: hidden;
  min-height: 132px;
  padding: 18px 20px;
  border: 1px solid rgba(238, 246, 255, 0.12);
  border-radius: 20px;
  background: var(--card-grad-raise);
  display: grid;
  align-content: center;
  gap: 8px;
  text-align: left;
  color: #F8FBFF;
}
.promo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 36%);
  pointer-events: none;
}
.promo-card-aura {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%;
  height: 180%;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.5;
  pointer-events: none;
}
.promo-card--bonus { border-color: rgba(92, 224, 168, 0.4); }
.promo-card--bonus .promo-card-aura { background: radial-gradient(circle, var(--emerald-glow), transparent 65%); }
.promo-card--managed { border-color: rgba(232, 197, 71, 0.42); }
.promo-card--managed .promo-card-aura { background: radial-gradient(circle, var(--gold-glow), transparent 65%); }
.promo-card--refer { border-color: rgba(139, 124, 246, 0.42); }
.promo-card--refer .promo-card-aura { background: radial-gradient(circle, var(--game-wheel-glow), transparent 65%); }
.promo-eyebrow {
  position: relative;
  z-index: 1;
  font-size: 0.6rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.promo-card--bonus .promo-eyebrow { color: var(--emerald-soft); }
.promo-card--refer .promo-eyebrow { color: var(--game-wheel-soft); }
.promo-title {
  position: relative;
  z-index: 1;
  font-size: 1.32rem;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.promo-sub {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 80%;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(238, 246, 255, 0.7);
}
.promo-cta {
  position: relative;
  z-index: 1;
  justify-self: start;
  margin-top: 4px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--gold-grad);
  color: #1a1206;
  font-family: var(--action-font);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.34);
}
.promo-card--bonus .promo-cta { background: var(--emerald-grad); color: #04211a; box-shadow: 0 8px 20px rgba(31, 184, 122, 0.34); }
.promo-card--refer .promo-cta { background: linear-gradient(135deg, var(--game-wheel-soft), var(--game-wheel)); color: #120a2e; }
.promo-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}
.promo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(238, 246, 255, 0.2);
  transition: width 200ms ease, background 200ms ease;
}
.promo-dot.is-active { width: 18px; border-radius: 3px; background: var(--gold-soft); }

/* ── Games section (lobby) ─────────────────────────────────────── */
.lobby-games-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 162, 39, 0.06), transparent 42%),
    linear-gradient(180deg, rgba(14, 19, 28, 0.72), rgba(8, 11, 16, 0.88));
}

.lobby-games-head {
  margin: 0;
}

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

.game-tile {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  color: #F8FBFF;
  font-family: var(--action-font);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  animation: risePop 420ms ease both;
}

.game-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(238, 246, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.game-tile:active {
  transform: scale(0.985);
}

.game-tile-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 16px 0 0 16px;
  background: rgba(238, 246, 255, 0.16);
  pointer-events: none;
}

.game-tile-row,
.game-tile-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.game-tile-hero {
  align-items: flex-start;
}

.game-tile-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.game-tile--featured {
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
  align-items: end;
  min-height: 132px;
  padding: 14px 14px 14px 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 92, 112, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.04);
}

.game-tile--featured .game-tile-hero {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.game-tile--featured .game-tile-copy {
  gap: 4px;
}

.game-tile--wide {
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
}

.game-tile:not(.game-tile--featured):not(.game-tile--wide) {
  grid-template-rows: 1fr auto;
  min-height: 118px;
  align-content: space-between;
}

.game-tile-art {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(238, 246, 255, 0.88);
}

.game-tile-art--lg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.game-tile-art svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.game-tile-art--lg svg {
  width: 30px;
  height: 30px;
}

.game-tile-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.game-tile-name {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.game-tile--featured .game-tile-name {
  font-size: 1.18rem;
}

.game-tile-sub {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(238, 246, 255, 0.58);
}

.game-tile-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(238, 246, 255, 0.82);
}

.game-tile-badge--live {
  color: var(--emerald-soft);
  border-color: rgba(92, 224, 168, 0.34);
  background: rgba(31, 184, 122, 0.1);
}

.game-tile-badge--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-soft);
  box-shadow: 0 0 7px var(--emerald-soft);
  animation: livePulse 1.4s ease-in-out infinite;
}

.game-tile-badge--hot {
  color: var(--game-aviator-soft);
  border-color: rgba(255, 138, 153, 0.34);
  background: rgba(255, 92, 112, 0.1);
}

.game-tile-go {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(238, 246, 255, 0.45);
}

.game-tile-go svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.game-tile-play {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #0a0d14;
  background: var(--gold-grad);
}

.game-tile--aviator .game-tile-accent { background: linear-gradient(180deg, var(--game-aviator-soft), var(--game-aviator)); }
.game-tile--aviator .game-tile-art { color: var(--game-aviator-soft); box-shadow: inset 0 0 14px var(--game-aviator-glow); border-color: rgba(255, 138, 153, 0.22); }
.game-tile--aviator .game-tile-play { background: linear-gradient(135deg, var(--game-aviator-soft), var(--game-aviator)); color: #2a0509; }

.game-tile--wheel .game-tile-accent { background: linear-gradient(180deg, var(--game-wheel-soft), var(--game-wheel)); }
.game-tile--wheel .game-tile-art { color: var(--game-wheel-soft); box-shadow: inset 0 0 14px var(--game-wheel-glow); border-color: rgba(180, 167, 255, 0.22); }

.game-tile--legends .game-tile-accent { background: linear-gradient(180deg, var(--game-legends-soft), var(--game-legends)); }
.game-tile--legends .game-tile-art { color: var(--game-legends-soft); box-shadow: inset 0 0 14px var(--game-legends-glow); border-color: rgba(247, 226, 155, 0.22); }

.game-tile--managed .game-tile-accent { background: linear-gradient(180deg, var(--game-managed-soft), var(--game-managed)); }
.game-tile--managed .game-tile-art { color: var(--game-managed-soft); box-shadow: inset 0 0 14px var(--game-managed-glow); border-color: rgba(92, 224, 168, 0.22); }

.game-tile--markets .game-tile-accent { background: linear-gradient(180deg, var(--game-markets-soft), var(--game-markets)); }
.game-tile--markets .game-tile-art { color: var(--game-markets-soft); box-shadow: inset 0 0 14px var(--game-markets-glow); border-color: rgba(92, 224, 168, 0.22); }
.game-tile--markets .game-tile-play { background: var(--emerald-grad); color: #04211a; }

/* ── Stat / jackpot counters ───────────────────────────────────── */
.lobby-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.lobby-stat {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 3px;
  padding: 12px 10px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 16px;
  background: var(--card-grad);
  text-align: center;
}
.lobby-stat strong {
  font-size: 1.06rem;
  font-weight: 950;
  color: var(--gold-soft);
  letter-spacing: -0.01em;
}
.lobby-stat span {
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(238, 246, 255, 0.5);
}

/* ── Lobby screen base ─────────────────────────────────────────── */
.lobby-screen { background: #06080d; }
.lobby-screen .screen-shell { gap: 16px; }

.lobby-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lobby-welcome-copy { display: grid; gap: 2px; min-width: 0; }
.lobby-welcome-eyebrow {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 246, 255, 0.5);
}
.lobby-welcome-name {
  font-size: 1.28rem;
  font-weight: 950;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lobby-welcome-name b { color: var(--gold-soft); }
.lobby-balance-chip {
  display: grid;
  justify-items: end;
  gap: 1px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid rgba(92, 224, 168, 0.28);
  border-radius: 16px;
  background: rgba(9, 13, 21, 0.8);
}
.lobby-balance-chip span {
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(238, 246, 255, 0.45);
}
.lobby-balance-chip strong { font-size: 1.04rem; font-weight: 950; color: var(--emerald-soft); }

/* responsive tweaks */
@media (max-width: 360px) {
  .promo-card { flex-basis: 90%; }
  .game-tile-name { font-size: 0.88rem; }
  .game-tile--featured .game-tile-name { font-size: 1.06rem; }
  .lobby-games-section { padding: 10px; }
  .app-bottom-nav-label { font-size: 0.5rem; }
}

/* ════════════════════════════════════════════════════════════════
   CASINO REDESIGN — Phase 3: unified game chrome
   ════════════════════════════════════════════════════════════════ */
.game-ribbon {
  position: fixed;
  top: calc(var(--topbar-occupy) + 6px);
  left: 50%;
  z-index: 22;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(420px, calc(100vw - 28px));
  padding: 8px 15px;
  border: 1px solid rgba(238, 246, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(8, 12, 19, 0.86), rgba(8, 12, 19, 0.7));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  pointer-events: none;
  animation: risePop 360ms ease both;
}
.game-ribbon-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--action-font);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  color: #F8FBFF;
}
.game-ribbon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: livePulse 1.4s ease-in-out infinite;
}
.game-ribbon-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--action-font);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(238, 246, 255, 0.62);
}
.game-ribbon-live b { color: var(--emerald-soft); font-weight: 950; }
.game-ribbon--wheel { border-color: rgba(139, 124, 246, 0.34); }
.game-ribbon--wheel .game-ribbon-name { color: var(--game-wheel-soft); }
.game-ribbon--aviator { border-color: rgba(255, 92, 112, 0.34); }
.game-ribbon--aviator .game-ribbon-name { color: var(--game-aviator-soft); }

/* Daily Legends — extra casino lift (additive on existing classes) */
.legends-reset-countdown {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px var(--gold-glow));
}
.legends-rank-row--top1 {
  box-shadow: 0 0 0 1px rgba(232, 197, 71, 0.4), 0 0 26px rgba(232, 197, 71, 0.18);
}
.legends-rank-row {
  animation: risePop 360ms ease both;
}

/* ════════════════════════════════════════════════════════════════
   CASINO REDESIGN — Phase 4: trust signals + cross-promo ads
   ════════════════════════════════════════════════════════════════ */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 2px 0;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(92, 224, 168, 0.24);
  border-radius: 999px;
  background: rgba(31, 184, 122, 0.07);
  color: rgba(238, 246, 255, 0.78);
  font-family: var(--action-font);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.trust-chip svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--emerald-soft);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Compact horizontal cross-promo ad */
.ad-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 16px;
  background: var(--card-grad);
  text-align: left;
  color: #F8FBFF;
  font-family: var(--action-font);
  animation: risePop 400ms ease both;
}
.ad-card-aura {
  position: absolute;
  inset: -60% -20% auto auto;
  width: 60%;
  height: 200%;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.4;
  pointer-events: none;
}
.ad-card-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ad-card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ad-card-copy { position: relative; z-index: 1; display: grid; gap: 1px; min-width: 0; }
.ad-card-eyebrow {
  font-size: 0.54rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 246, 255, 0.5);
}
.ad-card-title { font-size: 0.92rem; font-weight: 950; line-height: 1.1; }
.ad-card-cta {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1206;
  background: var(--gold-grad);
  white-space: nowrap;
}
.ad-card--aviator { border-color: rgba(255, 92, 112, 0.3); }
.ad-card--aviator .ad-card-aura { background: radial-gradient(circle, var(--game-aviator-glow), transparent 65%); }
.ad-card--aviator .ad-card-icon { color: var(--game-aviator-soft); }
.ad-card--aviator .ad-card-cta { background: linear-gradient(135deg, var(--game-aviator-soft), var(--game-aviator)); color: #2a0509; }
.ad-card--managed { border-color: rgba(232, 197, 71, 0.32); }
.ad-card--managed .ad-card-aura { background: radial-gradient(circle, var(--gold-glow), transparent 65%); }
.ad-card--managed .ad-card-icon { color: var(--gold-soft); }
.ad-card--games { border-color: rgba(139, 124, 246, 0.3); }
.ad-card--games .ad-card-aura { background: radial-gradient(circle, var(--game-wheel-glow), transparent 65%); }
.ad-card--games .ad-card-icon { color: var(--game-wheel-soft); }
.ad-card--games .ad-card-cta { background: linear-gradient(135deg, var(--game-wheel-soft), var(--game-wheel)); color: #100a2e; }
.ad-card--refer { border-color: rgba(92, 224, 168, 0.3); }
.ad-card--refer .ad-card-aura { background: radial-gradient(circle, var(--emerald-glow), transparent 65%); }
.ad-card--refer .ad-card-icon { color: var(--emerald-soft); }
.ad-card--refer .ad-card-cta { background: var(--emerald-grad); color: #04211a; }

/* ════════════════════════════════════════════════════════════════
   CASINO REDESIGN — Phase 5: login energy + trust
   ════════════════════════════════════════════════════════════════ */
.login-hero-brand {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px var(--gold-glow));
}
.login-hero-social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  padding: 5px 11px;
  border: 1px solid rgba(92, 224, 168, 0.3);
  border-radius: 999px;
  background: rgba(8, 13, 19, 0.6);
  font-family: var(--action-font);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(244, 246, 250, 0.85);
  backdrop-filter: blur(8px);
}
.login-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-soft);
  box-shadow: 0 0 8px var(--emerald-soft);
  animation: livePulse 1.4s ease-in-out infinite;
}
.login-bonus-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid rgba(232, 197, 71, 0.4);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 197, 71, 0.16), transparent 55%),
    var(--card-grad-raise);
}
.login-bonus-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  animation: sheenSlide 4.5s ease-in-out infinite;
  pointer-events: none;
}
.login-bonus-spark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gold-grad);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.34);
}
.login-bonus-spark::before {
  content: "★";
  color: #1a1206;
  font-size: 1.1rem;
  font-weight: 900;
}
.login-bonus-copy { display: grid; gap: 1px; }
.login-bonus-copy strong {
  font-family: var(--action-font);
  font-size: 0.94rem;
  font-weight: 950;
  color: var(--gold-soft);
}
.login-bonus-copy small {
  font-size: 0.74rem;
  color: rgba(244, 246, 250, 0.66);
}
.login-page .login-submit {
  box-shadow: 0 12px 28px rgba(201, 162, 39, 0.28);
}
.login-trust {
  justify-content: center;
  margin: 14px 0 8px;
}

/* ════════════════════════════════════════════════════════════════
   CASINO REDESIGN — Phase 6: polish pass (spacing, radii, nav, chat)
   ════════════════════════════════════════════════════════════════ */

/* Lobby rhythm */
.lobby-screen .screen-shell { gap: 14px; }
.lobby-shell { padding-bottom: 6px; }

.lobby-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}
.lobby-greeting { display: grid; gap: 3px; min-width: 0; }
.lobby-welcome-eyebrow {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(238, 246, 255, 0.45);
}
.lobby-welcome-name {
  font-size: 1.3rem;
  font-weight: 950;
  letter-spacing: -0.01em;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lobby-welcome-name b { color: var(--gold-soft); }

/* Wallet hero */
.lobby-wallet-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(92, 224, 168, 0.26);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(31, 184, 122, 0.16), transparent 58%),
    var(--card-grad-raise);
}
.lobby-wallet-info { display: grid; gap: 3px; min-width: 0; }
.lobby-wallet-label {
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 246, 255, 0.5);
}
.lobby-wallet-value {
  font-size: clamp(1.7rem, 8vw, 2.2rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--emerald-soft);
}
.lobby-wallet-actions { display: grid; gap: 8px; flex: 0 0 auto; }
.lobby-wallet-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 112px;
  padding: 9px 14px;
  border: 1px solid rgba(238, 246, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #F8FBFF;
  font-family: var(--action-font);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}
.lobby-wallet-act svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lobby-wallet-act:active { transform: scale(0.97); }
.lobby-wallet-act--primary {
  border-color: transparent;
  background: var(--gold-grad);
  color: #1a1206;
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.3);
}
.lobby-wallet-act--primary:hover { filter: brightness(1.05); }

/* Quick actions (Trade + Invite) */
.lobby-quick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lobby-quick {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 16px;
  background: var(--card-grad);
  text-align: left;
  color: #F8FBFF;
  font-family: var(--action-font);
  transition: transform 180ms ease, border-color 180ms ease;
}
.lobby-quick:active { transform: scale(0.98); }
.lobby-quick-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.lobby-quick-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lobby-quick-copy { display: grid; gap: 1px; min-width: 0; }
.lobby-quick-copy strong { font-size: 0.84rem; font-weight: 950; line-height: 1.1; }
.lobby-quick-copy small { font-size: 0.6rem; font-weight: 700; color: rgba(238, 246, 255, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lobby-quick--trade { border-color: rgba(92, 224, 168, 0.32); }
.lobby-quick--trade .lobby-quick-icon { color: var(--game-markets-soft); box-shadow: inset 0 0 14px var(--game-markets-glow); }
.lobby-quick--invite { border-color: rgba(139, 124, 246, 0.32); }
.lobby-quick--invite .lobby-quick-icon { color: var(--game-wheel-soft); box-shadow: inset 0 0 14px var(--game-wheel-glow); }

/* Game tiles — section rhythm */
.lobby-games-section { padding: 12px; gap: 10px; }
.lobby-games-grid { gap: 8px; }
.game-tile:not(.game-tile--featured):not(.game-tile--wide) { min-height: 112px; padding: 11px; }
.game-tile--featured { min-height: 124px; }

/* Stat row */
.lobby-stat-row { gap: 10px; }
.lobby-stat { border-radius: 16px; padding: 12px 8px; }

/* Section head — consistent rhythm */
.kit-section-head { margin: 4px 2px 0; }

/* ── Tidio "Chat with us" — lift above the bottom nav ───────────── */
body.tidio-chat-visible #tidio-chat {
  transform: translateY(calc(-1 * (var(--bottomnav-h) + env(safe-area-inset-bottom) + 14px))) !important;
  transition: transform 240ms ease;
}
/* On immersive game screens the spine is hidden, so don't lift as much */
body.chart-only-app[data-view="wheel"] #tidio-chat,
body.chart-only-app[data-view="aviator"] #tidio-chat {
  transform: translateY(0) !important;
}

@media (max-width: 360px) {
  .lobby-wallet-act { min-width: 98px; font-size: 0.66rem; }
  .lobby-quick-copy small { font-size: 0.56rem; }
}

/* ════════════════════════════════════════════════════════════════
   LOBBY — professional polish (restrained palette, unified surfaces)
   ════════════════════════════════════════════════════════════════ */

.lobby-screen {
  background: #06080d;
}

.lobby-screen .screen-shell {
  gap: 12px;
}

/* Greeting */
.lobby-screen .lobby-welcome-eyebrow {
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(238, 246, 255, 0.38);
}

.lobby-screen .lobby-welcome-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: rgba(238, 246, 255, 0.94);
}

.lobby-screen .lobby-welcome-name b {
  color: inherit;
  font-weight: 900;
}

/* Wallet */
.lobby-screen .lobby-wallet-card {
  padding: 14px 16px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.lobby-screen .lobby-wallet-label {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(238, 246, 255, 0.42);
}

.lobby-screen .lobby-wallet-value {
  font-size: clamp(1.5rem, 7vw, 1.85rem);
  font-weight: 900;
  color: var(--emerald-soft);
}

.lobby-screen .lobby-wallet-act {
  min-width: 100px;
  padding: 8px 12px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: none;
}

.lobby-screen .lobby-wallet-act--primary {
  border-color: transparent;
  background: var(--gold-grad);
  color: #1a1206;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.22);
}

.lobby-screen .lobby-wallet-act--primary:hover {
  filter: brightness(1.06);
  background: var(--gold-grad);
}

/* Quick actions — Trade stands out */
.lobby-screen .lobby-quick {
  padding: 12px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.lobby-screen .lobby-quick--invite {
  border-color: rgba(238, 246, 255, 0.08);
}

.lobby-screen .lobby-quick--trade {
  border-color: rgba(92, 224, 168, 0.32);
  background: linear-gradient(135deg, rgba(31, 184, 122, 0.16), rgba(8, 12, 18, 0.92));
  box-shadow: 0 4px 16px rgba(31, 184, 122, 0.12);
}

.lobby-screen .lobby-quick--trade .lobby-quick-icon {
  background: rgba(31, 184, 122, 0.16);
  color: var(--emerald-soft);
}

.lobby-screen .lobby-quick--trade .lobby-quick-copy strong {
  color: var(--emerald-soft);
}

.lobby-screen .lobby-quick--invite .lobby-quick-icon {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(238, 246, 255, 0.62);
  box-shadow: none;
}

.lobby-screen .lobby-quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.lobby-screen .lobby-quick-copy strong {
  font-size: 0.8rem;
  font-weight: 800;
}

.lobby-screen .lobby-quick-copy small {
  font-size: 0.58rem;
  color: rgba(238, 246, 255, 0.45);
}

/* Live ticker */
.lobby-screen .live-ticker {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(92, 224, 168, 0.18);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(31, 184, 122, 0.08), rgba(255, 255, 255, 0.02) 42%);
}

.lobby-screen .live-ticker-viewport {
  flex: 1 1 0;
  min-width: 0;
  min-height: 22px;
}

.lobby-screen .live-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  animation: tickerScroll 42s linear infinite;
}

.lobby-screen .live-ticker-tag {
  font-size: 0.54rem;
  font-weight: 800;
  color: var(--emerald-soft);
}

.lobby-screen .live-ticker-tag::before {
  width: 6px;
  height: 6px;
  background: var(--emerald-soft);
  box-shadow: 0 0 6px rgba(92, 224, 168, 0.45);
  animation: livePulse 1.6s ease-in-out infinite;
}

.lobby-screen .live-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(238, 246, 255, 0.78);
  white-space: nowrap;
}

.lobby-screen .live-ticker-item b {
  color: #fff;
  font-weight: 800;
}

.lobby-screen .live-ticker-item .lt-amount {
  color: var(--emerald-soft);
  font-weight: 900;
}

.lobby-screen .live-ticker-item .lt-game {
  color: rgba(232, 197, 71, 0.82);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Promo carousel */
.lobby-screen .promo-card {
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  gap: 6px;
}

.lobby-screen .promo-card::after,
.lobby-screen .promo-card-aura {
  display: none;
}

.lobby-screen .promo-card--bonus,
.lobby-screen .promo-card--managed,
.lobby-screen .promo-card--refer {
  border-color: rgba(238, 246, 255, 0.08);
}

.lobby-screen .promo-eyebrow {
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(238, 246, 255, 0.42);
}

.lobby-screen .promo-card--bonus .promo-eyebrow,
.lobby-screen .promo-card--refer .promo-eyebrow {
  color: rgba(238, 246, 255, 0.42);
}

.lobby-screen .promo-title {
  font-size: 1.08rem;
  font-weight: 900;
}

.lobby-screen .promo-sub {
  max-width: 92%;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(238, 246, 255, 0.52);
}

.lobby-screen .promo-cta {
  margin-top: 2px;
  padding: 7px 14px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 8px;
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-soft);
  font-size: 0.64rem;
  font-weight: 800;
  box-shadow: none;
}

.lobby-screen .promo-card--bonus .promo-cta,
.lobby-screen .promo-card--refer .promo-cta {
  border-color: rgba(201, 162, 39, 0.28);
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-soft);
  box-shadow: none;
}

.lobby-screen .promo-dot.is-active {
  background: rgba(238, 246, 255, 0.55);
}

/* Section headers */
.lobby-screen .kit-section-head .kit-section-title {
  font-size: 0.88rem;
  font-weight: 800;
}

.lobby-screen .kit-section-head .kit-section-title .kit-bar {
  width: 3px;
  height: 14px;
  box-shadow: none;
  background: rgba(201, 162, 39, 0.65);
}

.lobby-screen .kit-section-more {
  font-size: 0.64rem;
  font-weight: 800;
  color: rgba(238, 246, 255, 0.45);
}

/* Games section — clean unified tiles */
.lobby-screen .lobby-games-section {
  padding: 12px;
  gap: 10px;
  border: 1px solid rgba(238, 246, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
  box-shadow: none;
}

.lobby-screen .lobby-games-grid {
  gap: 8px;
}

.lobby-screen .game-tile {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  animation: none;
  box-shadow: none;
  min-height: 0;
}

.lobby-screen .game-tile:hover {
  transform: none;
  border-color: rgba(238, 246, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.lobby-screen .game-tile:active {
  transform: scale(0.99);
  background: rgba(255, 255, 255, 0.055);
}

.lobby-screen .game-tile-accent {
  display: none;
}

.lobby-screen .game-tile--featured {
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
  grid-template-rows: none;
  align-items: center;
  min-height: 0;
  padding: 13px 12px;
  border-color: rgba(238, 246, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.lobby-screen .game-tile-row {
  flex: 1;
  min-width: 0;
}

.lobby-screen .game-tile-meta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lobby-screen .game-tile:not(.game-tile--featured) {
  min-height: 72px;
  grid-template-rows: none;
}

.lobby-screen .game-tile-art {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(238, 246, 255, 0.07);
  color: rgba(238, 246, 255, 0.68);
  box-shadow: none;
}

.lobby-screen .game-tile--aviator .game-tile-art {
  color: rgba(255, 148, 158, 0.88);
}

.lobby-screen .game-tile--wheel .game-tile-art {
  color: rgba(196, 178, 255, 0.88);
}

.lobby-screen .game-tile--legends .game-tile-art {
  color: rgba(232, 197, 71, 0.88);
}

.lobby-screen .game-tile--managed .game-tile-art {
  color: rgba(92, 224, 168, 0.88);
}

.lobby-screen .game-tile--markets .game-tile-art {
  color: rgba(127, 196, 255, 0.88);
}

.lobby-screen .game-tile-name {
  font-size: 0.86rem;
  font-weight: 800;
}

.lobby-screen .game-tile--featured .game-tile-name {
  font-size: 0.9rem;
}

.lobby-screen .game-tile-sub {
  font-size: 0.64rem;
  font-weight: 600;
  color: rgba(238, 246, 255, 0.46);
}

.lobby-screen .game-tile-tag {
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lobby-screen .game-tile-tag--accent {
  color: rgba(255, 148, 158, 0.9);
  border-color: rgba(255, 148, 158, 0.22);
  background: rgba(255, 92, 112, 0.08);
}

.lobby-screen .game-tile-badge {
  padding: 3px 7px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.48rem;
  font-weight: 800;
}

.lobby-screen .game-tile-badge--live::before,
.lobby-screen .game-tile-badge--hot::before {
  display: none;
}

.lobby-screen .game-tile-badge--live,
.lobby-screen .game-tile-badge--hot {
  color: rgba(238, 246, 255, 0.52);
  border-color: rgba(238, 246, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.lobby-screen .game-tile-go {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(238, 246, 255, 0.38);
}

.lobby-screen .game-tile-play {
  display: none;
}

.lobby-screen .game-tile.is-active .game-tile-copy strong,
.lobby-screen .game-tile.is-active .game-tile-name {
  color: var(--gold-soft);
}

/* Stats — subtle color cues */
.lobby-screen .lobby-stat-row {
  gap: 8px;
}

.lobby-screen .lobby-stat {
  padding: 12px 8px;
  border: 1px solid rgba(238, 246, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.lobby-screen .lobby-stat:nth-child(1) {
  border-top: 2px solid rgba(91, 159, 212, 0.55);
}

.lobby-screen .lobby-stat:nth-child(2) {
  border-top: 2px solid rgba(92, 224, 168, 0.55);
}

.lobby-screen .lobby-stat:nth-child(3) {
  border-top: 2px solid rgba(232, 197, 71, 0.55);
}

.lobby-screen .lobby-stat strong {
  font-size: 0.94rem;
  font-weight: 900;
}

.lobby-screen .lobby-stat:nth-child(1) strong {
  color: #9fd4ff;
}

.lobby-screen .lobby-stat:nth-child(2) strong {
  color: var(--emerald-soft);
}

.lobby-screen .lobby-stat:nth-child(3) strong {
  color: var(--gold-soft);
}

.lobby-screen .lobby-stat span {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(238, 246, 255, 0.4);
}

.lobby-screen .dash-footnote {
  font-size: 0.62rem;
  color: rgba(238, 246, 255, 0.32);
}

/* ── Spin & Win — premium casino wheel ── */
.wheel-screen {
  background: #06070c;
}

.wheel-screen .wheel-bg {
  background: #06070c;
}

.wheel-screen .wheel-bg::before {
  background:
    radial-gradient(circle at 50% 46%, rgba(232, 197, 71, 0.1) 0%, rgba(201, 162, 39, 0.04) 34%, transparent 68%);
  opacity: 1;
}

.wheel-screen .wheel-bg::after {
  opacity: 0.1;
}

.wheel-bezel {
  position: absolute;
  inset: -2.5%;
  z-index: 4;
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 2px rgba(255, 241, 184, 0.18),
    inset 0 0 0 5px rgba(140, 111, 25, 0.55),
    inset 0 0 0 8px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(232, 197, 71, 0.22),
    0 10px 36px rgba(0, 0, 0, 0.58);
}

.wheel-arena {
  --wheel-size: min(72vmin, 304px);
}

.wheel-arena.is-spinning {
  transform: scale(1.008);
}

.wheel-light {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.55), 0 0 12px rgba(255, 255, 255, 0.2);
  transform: rotate(calc(360deg / var(--count) * var(--i))) translateY(calc(-1 * var(--wheel-radius) + 5px));
  animation: wheel-light-chase 1.4s ease-in-out infinite;
}

.wheel-light--gold {
  background: #e8c547;
  box-shadow: 0 0 8px rgba(232, 197, 71, 0.7), 0 0 14px rgba(201, 162, 39, 0.35);
}

.wheel-arena.is-spinning .wheel-light {
  animation-duration: 0.14s;
}

@keyframes wheel-light-chase {
  0%, 100% {
    opacity: 0.4;
    transform: rotate(calc(360deg / var(--count) * var(--i))) translateY(calc(-1 * var(--wheel-radius) + 5px)) scale(0.88);
  }
  50% {
    opacity: 1;
    transform: rotate(calc(360deg / var(--count) * var(--i))) translateY(calc(-1 * var(--wheel-radius) + 5px)) scale(1.08);
  }
}

.wheel-disc {
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.55));
}

.wheel-disc.is-spinning {
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 20px rgba(232, 197, 71, 0.1));
}

.wheel-slice-divider {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.2;
}

.wheel-rim-stud {
  fill: #f5e6a8;
  stroke: rgba(140, 111, 25, 0.55);
  stroke-width: 0.6;
}

.wheel-outer-rim {
  filter: drop-shadow(0 0 6px rgba(232, 197, 71, 0.28));
}

.wheel-label {
  font-size: 10.5px;
  stroke: rgba(0, 0, 0, 0.42);
  stroke-width: 1.8px;
}

.wheel-label--jackpot {
  font-size: 7px;
  letter-spacing: 0.06em;
}

.wheel-label--miss {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.wheel-pointer {
  top: -1px;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.55));
}

.wheel-pointer-pin {
  border-left-width: 11px;
  border-right-width: 11px;
  border-top-width: 22px;
  border-top-color: #e8c547;
  filter: drop-shadow(0 0 8px rgba(232, 197, 71, 0.55)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

.wheel-pointer-pin::after {
  top: -22px;
  left: -5px;
  width: 10px;
  height: 10px;
  background: #fff7d6;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.65);
}

.wheel-spin-btn {
  width: 28%;
  background: linear-gradient(180deg, #fff1b8 0%, #e8c547 38%, #c9a227 72%, #8c6f19 100%);
  color: #1a1408;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.38),
    inset 0 -3px 8px rgba(0, 0, 0, 0.28),
    0 0 0 3px rgba(0, 0, 0, 0.38),
    0 0 0 5px rgba(232, 197, 71, 0.42),
    0 8px 22px rgba(0, 0, 0, 0.52);
  animation: wheel-spin-btn-gold-pulse 2.6s ease-in-out infinite;
}

#wheelSpinBtnLabel {
  color: #1a1408;
  letter-spacing: 0.14em;
}

.wheel-spin-btn-cost {
  color: rgba(26, 20, 8, 0.68);
}

.wheel-spin-btn.has-free-spin {
  background: linear-gradient(180deg, #d4fff5 0%, #5ce0a8 42%, #1fb87a 100%);
  color: #042822;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 8px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(0, 0, 0, 0.32),
    0 0 0 5px rgba(92, 224, 168, 0.4),
    0 8px 22px rgba(0, 0, 0, 0.48);
}

.wheel-spin-btn.has-free-spin #wheelSpinBtnLabel {
  color: #042822;
}

.wheel-spin-btn.has-free-spin .wheel-spin-btn-cost {
  color: rgba(4, 40, 34, 0.72);
}

.wheel-spin-btn:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.42),
    inset 0 -3px 8px rgba(0, 0, 0, 0.28),
    0 0 0 3px rgba(0, 0, 0, 0.38),
    0 0 0 5px rgba(255, 241, 184, 0.55),
    0 0 28px rgba(232, 197, 71, 0.35),
    0 10px 26px rgba(0, 0, 0, 0.55);
}

@keyframes wheel-spin-btn-gold-pulse {
  0%, 100% {
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.38),
      inset 0 -3px 8px rgba(0, 0, 0, 0.28),
      0 0 0 3px rgba(0, 0, 0, 0.38),
      0 0 0 5px rgba(232, 197, 71, 0.42),
      0 8px 22px rgba(0, 0, 0, 0.52);
  }
  50% {
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.42),
      inset 0 -3px 8px rgba(0, 0, 0, 0.28),
      0 0 0 3px rgba(0, 0, 0, 0.38),
      0 0 0 5px rgba(255, 241, 184, 0.5),
      0 0 22px rgba(232, 197, 71, 0.28),
      0 8px 22px rgba(0, 0, 0, 0.52);
  }
}

.wheel-disclaimer {
  color: rgba(238, 246, 255, 0.42);
}

.wheel-disclaimer.is-charged {
  color: rgba(232, 197, 71, 0.78);
}

.wheel-win-card.is-jackpot {
  border-color: rgba(232, 197, 71, 0.45);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 40px rgba(232, 197, 71, 0.12);
}
