: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);
}

* {
  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);
}

.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(max(10px, env(safe-area-inset-top)) + 48px + 6px);
  left: max(12px, calc(50vw - min(380px, 50vw - 12px)));
  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-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;
}

.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: max(10px, env(safe-area-inset-top));
  left: 50%;
  z-index: 38;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 38px;
  align-items: center;
  gap: 6px;
  width: min(760px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  min-width: 0;
  min-height: 48px;
  padding: 5px 6px 5px 14px;
  border: 1px solid rgba(238, 246, 255, 0.12);
  border-radius: var(--chrome-radius);
  background:
    linear-gradient(120deg, rgba(201, 162, 39, 0.1) 0%, rgba(6, 9, 14, 0.94) 42%, rgba(91, 159, 212, 0.08) 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  color: #F8FBFF;
  font-family: var(--action-font);
  backdrop-filter: blur(14px);
  box-sizing: border-box;
  overflow: hidden;
  transform: translateX(-50%);
}

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

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

.topbar-balance strong {
  color: #9BFFBD;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.05;
  white-space: nowrap;
}

.live-pnl-readout {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: calc(max(12px, calc(50vw - min(380px, 50vw - 12px))) + 46px);
  z-index: 39;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 48px;
  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: grid;
  gap: 2px;
  min-width: 0;
}

.account-identity strong {
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity span {
  overflow: hidden;
  color: rgba(238, 246, 255, 0.5);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.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-shrink: 0;
  place-items: center;
  width: 38px;
  height: 38px;
  justify-self: end;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 162, 39, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.05);
  color: #F8FBFF;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.menu-button:hover {
  transform: translateY(-1px);
  border-color: rgba(238, 246, 255, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 162, 39, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.08);
}

.menu-button[aria-expanded="true"] {
  border-color: rgba(126, 231, 255, 0.28);
  background: rgba(91, 159, 212, 0.12);
  box-shadow: 0 0 0 1px rgba(126, 231, 255, 0.08) inset;
}

.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-y: auto;
  padding: 82px 12px 18px;
  background: #05070B;
  color: #F8FBFF;
}

.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 {
  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: center;
  min-height: 30px;
  border: 1px solid rgba(238, 246, 255, 0.1);
  border-radius: 14px;
  background: rgba(6, 9, 14, 0.88);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  color: rgba(238, 246, 255, 0.72);
  font-family: var(--action-font);
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease, border-color 180ms ease;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 0;
  padding: 2px;
  width: 100%;
}

.balance-control {
  display: none;
}

.amount-step,
.amount-display {
  position: relative;
  z-index: 1;
  height: 26px;
  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;
  width: 28px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
  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;
  place-items: center;
  min-width: 0;
  border-radius: 11px;
  background: transparent;
  color: #F8FBFF;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
  transition: background 160ms ease, color 160ms ease;
}

.amount-display:hover,
.amount-display:focus-visible {
  background: rgba(126, 231, 255, 0.08);
  color: #9BFFBD;
}

.trade-amount-control.is-locked {
  opacity: 0.72;
  border-color: rgba(255, 190, 120, 0.24);
}

.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);
}

.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;
  grid-template-columns: auto auto;
  border-left: 0;
}

.close-position-action .close-stroke {
  display: block;
}

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

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

@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(255, 187, 116, 0.32);
  grid-template-columns: 1fr;
  box-shadow: 0 -16px 44px rgba(230, 93, 69, 0.18), 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: grid;
}

.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 var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.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;
}

.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: var(--text);
  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-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}

.dash-balance-item {
  display: grid;
  gap: 5px;
  padding: 12px 10px;
  text-align: center;
}

.dash-balance-item:not(:last-child) {
  border-right: 1px solid var(--border);
}

.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;
}

.dash-live-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

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

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

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

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

.dash-live-strip.is-live {
  background: rgba(31, 184, 122, 0.04);
}

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

.dash-live-strip.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-live-strip.is-live .dash-live-growth-value {
  color: var(--emerald-soft);
}

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

.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-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,
.withdraw-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%);
}

.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);
  background: rgba(255, 255, 255, 0.05);
}

.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-card--card {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: linear-gradient(135deg, rgba(70, 122, 255, 0.16), rgba(255, 255, 255, 0.04));
  color: #EEF6FF;
}

.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 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 12px 14px;
  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-featured-action:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.dash-featured-action .app-nav-copy strong {
  font-size: 0.92rem;
}

.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-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: 82;
  display: grid;
  justify-items: end;
  padding: 10px;
  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;
  border: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 220ms ease;
}

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

.app-nav-menu-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(100%, 360px);
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: var(--app-surface-elevated);
  box-shadow: var(--shadow);
  transform: translateX(18px);
  opacity: 0;
  transition: transform 240ms ease, opacity 240ms ease;
}

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

.app-nav-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

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

.app-nav-menu-head h2 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.app-nav-menu-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
}

.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: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.app-nav-menu-user strong {
  font-size: 0.92rem;
  font-weight: 950;
}

.app-nav-menu-balance {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.app-nav-menu-balance strong {
  font-size: 1.34rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1;
}

.app-nav-menu-balance span {
  color: var(--text-2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-nav-menu-list {
  display: grid;
  gap: 6px;
}

.app-nav-menu .app-nav-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;
}

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

.app-nav-menu .app-nav-item:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.app-nav-menu .app-nav-item.is-active {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.app-nav-menu .app-nav-copy small {
  color: var(--text-2);
}

.app-nav-menu .app-nav-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  box-shadow: none;
}

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

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

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

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

.app-nav-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;
}

.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) {
  .app-nav-menu {
    padding: 0;
    justify-items: stretch;
  }

  .app-nav-menu-panel {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
  }

  .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-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%;
}

.withdraw-method-hint {
  color: rgba(7, 10, 16, 0.55);
  font-size: 0.68rem;
  font-weight: 700;
}

.deposit-method-card--crypto .withdraw-method-hint {
  color: rgba(238, 246, 255, 0.48);
}

.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-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-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: relative;
  overflow: hidden;
  background: #04050A;
}

.wheel-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.wheel-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: wheel-orb-float 10s ease-in-out infinite;
}

.wheel-bg-orb--a {
  top: -8%;
  left: -10%;
  width: 280px;
  height: 280px;
  background: rgba(255, 0, 110, 0.35);
}

.wheel-bg-orb--b {
  top: 18%;
  right: -16%;
  width: 320px;
  height: 320px;
  background: rgba(131, 56, 236, 0.32);
  animation-delay: -3s;
}

.wheel-bg-orb--c {
  bottom: -12%;
  left: 20%;
  width: 260px;
  height: 260px;
  background: rgba(255, 190, 11, 0.22);
  animation-delay: -6s;
}

.wheel-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 42%, black 18%, transparent 72%);
  opacity: 0.35;
}

@keyframes wheel-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -16px) scale(1.08); }
}

.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 {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 4px auto 0;
  transition: transform 320ms ease;
}

.wheel-arena.is-spinning {
  transform: scale(1.02);
}

.wheel-neon-frame {
  position: absolute;
  inset: 0;
  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;
  pointer-events: none;
}

.wheel-lights {
  position: absolute;
  inset: 0;
}

.wheel-light {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #FFD166;
  box-shadow: 0 0 10px #FFD166, 0 0 20px rgba(255, 190, 11, 0.6);
  transform: rotate(calc(360deg / var(--count) * var(--i))) translateY(calc(-1 * min(42vw, 168px)));
  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 * min(42vw, 168px))) scale(0.85); }
  50% { opacity: 1; transform: rotate(calc(360deg / var(--count) * var(--i))) translateY(calc(-1 * min(42vw, 168px))) scale(1.15); }
}

.wheel-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.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: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid #FFD166;
  filter: drop-shadow(0 0 10px rgba(255, 190, 11, 0.8)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.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: relative;
  z-index: 2;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: rotate(0deg);
  will-change: transform;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.wheel-disc.is-spinning {
  filter: drop-shadow(0 20px 48px rgba(255, 0, 110, 0.28)) drop-shadow(0 16px 40px rgba(0, 0, 0, 0.55));
}

.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: 9.5px;
  letter-spacing: 0.06em;
}

.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: 6;
  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-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: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.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, 10, 0.78);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.wheel-win-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  justify-items: center;
  width: min(100%, 320px);
  padding: 28px 22px 22px;
  border: 1px solid rgba(255, 190, 11, 0.35);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 190, 11, 0.22), transparent 48%),
    radial-gradient(circle at 100% 100%, rgba(255, 0, 110, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(18, 12, 28, 0.98), rgba(8, 10, 18, 0.98));
  box-shadow:
    0 0 60px rgba(255, 0, 110, 0.28),
    0 24px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
  transform: scale(0.92);
  transition: transform 320ms cubic-bezier(0.18, 0.85, 0.22, 1);
}

.wheel-win-overlay.is-visible .wheel-win-card {
  transform: scale(1);
}

.wheel-win-eyebrow {
  margin: 0;
  color: rgba(255, 190, 11, 0.82);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wheel-win-card h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 950;
}

.wheel-win-amount {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 10vw, 2.6rem);
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #FFD166, #FF8FD1, #3A86FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 190, 11, 0.35));
}

.wheel-win-amount.is-jackpot {
  animation: wheel-jackpot-shimmer 1.2s ease-in-out infinite alternate;
}

.wheel-win-amount.is-empty {
  font-size: 1.2rem;
  color: rgba(238, 246, 255, 0.58);
  background: none;
  filter: none;
}

.wheel-win-amount.is-free {
  font-size: 1.35rem;
  background: linear-gradient(135deg, #7FF5E3, #06D6A0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(0, 245, 212, 0.35));
}

@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-win-dismiss {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255, 190, 11, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 0, 110, 0.22), rgba(131, 56, 236, 0.22));
  color: #FFF;
  font-family: var(--action-font);
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(255, 0, 110, 0.22);
}

.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 {
  display: grid;
  gap: 14px;
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 14px 14px 26px;
}

.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 {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(6, 214, 160, 0.28);
  background: rgba(6, 214, 160, 0.1);
  color: #6FE9C9;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.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: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(251, 86, 7, 0.22);
  border-radius: 16px;
  background: rgba(251, 86, 7, 0.06);
}

.aviator-eligibility p {
  margin: 0;
  color: rgba(238, 246, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 700;
  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 {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: min(72vw, 380px);
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.5),
    0 18px 50px rgba(0, 0, 0, 0.5);
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

.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);
}

#aviatorCanvas {
  position: absolute;
  inset: 0;
  display: block;
}

.aviator-stage-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 12px 0;
  pointer-events: none;
}

.aviator-hud {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  width: min(100%, 280px);
  padding: 10px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(6, 214, 160, 0.22);
  background: linear-gradient(180deg, rgba(6, 20, 16, 0.82) 0%, rgba(4, 12, 10, 0.55) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  opacity: 0.92;
  transition: border-color 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
}

.aviator-stage.is-flying .aviator-hud {
  border-color: rgba(6, 214, 160, 0.45);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(6, 214, 160, 0.12);
  opacity: 1;
}

.aviator-stage.is-landing .aviator-hud,
.aviator-stage.is-departing .aviator-hud {
  border-color: rgba(6, 214, 160, 0.5);
}

.aviator-earnings {
  order: 2;
  font-family: var(--action-font, inherit);
  font-size: clamp(1.85rem, 9vw, 2.75rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: rgba(238, 246, 255, 0.35);
  text-shadow: none;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.aviator-earnings.is-active {
  color: #4ADE80;
  text-shadow:
    0 0 20px rgba(74, 222, 128, 0.45),
    0 0 40px rgba(6, 214, 160, 0.25);
}

.aviator-earnings.is-win {
  color: #6FE9C9;
  text-shadow: 0 0 22px rgba(111, 233, 201, 0.5);
}

.aviator-status {
  order: 1;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  color: rgba(238, 246, 255, 0.55);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.aviator-status.is-flying {
  color: #4ADE80;
}

.aviator-status.is-win {
  color: #6FE9C9;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.72rem;
  font-weight: 800;
}

.aviator-status.is-crash {
  color: #FF8A9B;
  background: rgba(255, 59, 87, 0.16);
}

.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.42);
  font-size: 0.68rem;
  font-weight: 700;
}

.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: auto 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;
}

.loss-recovery-panel {
  gap: 12px;
  width: min(100%, 392px);
  padding: 18px 18px 16px;
  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.12), transparent 46%),
    radial-gradient(circle at 100% 0%, rgba(255, 122, 142, 0.1), transparent 34%),
    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.06);
}

.loss-recovery-program-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: rgba(244, 246, 250, 0.68);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.loss-recovery-title {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.42rem);
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.loss-recovery-loss {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 122, 142, 0.2);
  border-radius: 14px;
  background: rgba(255, 122, 142, 0.07);
}

.loss-recovery-loss span {
  color: rgba(238, 246, 255, 0.56);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.loss-recovery-loss strong {
  color: #FF8EA0;
  font-size: clamp(1.32rem, 3.4vw, 1.72rem);
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1;
}

.loss-recovery-lead {
  margin: 0;
  color: rgba(238, 246, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.42;
}

.loss-recovery-offer {
  display: grid;
  gap: 2px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(92, 224, 168, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(43, 217, 138, 0.1), transparent 58%),
    rgba(255, 255, 255, 0.03);
  text-align: center;
}

.loss-recovery-offer-label {
  color: rgba(238, 246, 255, 0.52);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.loss-recovery-offer-rate {
  color: #6FE8AE;
  font-size: clamp(1.72rem, 4vw, 2.1rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.loss-recovery-offer-end {
  margin: 4px 0 0;
  color: rgba(238, 246, 255, 0.74);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}

.loss-recovery-offer-end strong {
  color: #EEF6FF;
  font-weight: 950;
}

.loss-recovery-note {
  margin: 0;
  color: rgba(238, 246, 255, 0.38);
  font-size: 0.68rem;
  line-height: 1.35;
  text-align: center;
}

.loss-recovery-actions {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 9px;
  margin-top: 2px;
}

.loss-recovery-actions .primary-app-button {
  border-color: rgba(201, 162, 39, 0.32);
  background:
    radial-gradient(circle at 0% 0%, rgba(232, 197, 71, 0.18), transparent 52%),
    linear-gradient(135deg, rgba(28, 24, 14, 0.98), rgba(12, 16, 24, 0.96));
}

@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) {
  .app-topbar {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    gap: 5px;
    padding: 5px 5px 5px 12px;
  }

  .top-managed-cta {
    max-width: 96px;
    padding: 0 8px;
    font-size: 0.58rem;
  }

  .account-identity strong {
    font-size: 0.8rem;
  }

  .account-identity span {
    font-size: 0.5rem;
  }
}

@media (max-width: 720px) {
  .app-topbar {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    grid-template-columns: minmax(0, 1fr) auto 34px;
    min-height: 46px;
    gap: 5px;
    padding: 5px 5px 5px 12px;
    border-radius: var(--chrome-radius-mobile);
  }

  .topbar-balance strong {
    font-size: 0.72rem;
  }

  .topbar-balance span {
    font-size: 0.46rem;
  }

  .account-identity strong {
    font-size: 0.8rem;
  }

  .account-identity span {
    font-size: 0.5rem;
  }

  .top-managed-cta {
    display: none;
  }

  .menu-button {
    width: 34px;
    height: 34px;
    border-radius: 13px;
  }

  .chart-pair-badge {
    top: calc(max(8px, env(safe-area-inset-top)) + 46px + 5px);
    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;
  }

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

  .live-pnl-readout {
    top: max(8px, env(safe-area-inset-top));
    right: calc(max(8px, calc(50vw - min(380px, 50vw - 8px))) + 42px);
    min-height: 46px;
  }

  .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: 28px;
    border-radius: 12px;
    grid-template-columns: 26px minmax(0, 1fr) 26px;
  }

  .amount-step,
  .amount-display {
    height: 24px;
  }

  .amount-step {
    width: 26px;
    font-size: 0.88rem;
  }

  .amount-display {
    font-size: 0.72rem;
  }

  .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;
  }
}

/* ── Auth modal (chart visible behind) ─────────────────────────── */
.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-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 pill ─────────────────────────────────────────── */
.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;
}
