/* Bamboo Exchange — hub dashboard (Play + Trading) */

.easyfx-dashboard {
  --page-gutter: 18px;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #090b10 !important;
  color: #94a3b8;
}

.easyfx-dashboard .fx-main {
  padding-top: 72px;
}

.fx-impersonation-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  width: 100%;
  max-width: var(--app-width, 430px);
  min-height: 40px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff7ed;
  color: #9a3412;
  border-bottom: 1px solid rgba(154, 52, 18, 0.18);
  box-shadow: 0 10px 28px -22px rgba(154, 52, 18, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.fx-impersonation-bar span {
  min-width: 0;
}

.fx-impersonation-bar strong {
  color: #7c2d12;
}

.fx-impersonation-bar a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  background: #ea580c;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

html.fx-dark .fx-impersonation-bar {
  background: #451a03;
  color: #fed7aa;
  border-bottom-color: rgba(251, 146, 60, 0.28);
  box-shadow: 0 10px 28px -22px rgba(0, 0, 0, 0.95);
}

html.fx-dark .fx-impersonation-bar strong {
  color: #ffedd5;
}

html.fx-dark .fx-impersonation-bar a {
  background: #fb923c;
  color: #431407;
}

body:has(.fx-impersonation-bar) .fx-topbar.fixed-top,
body:has(.fx-impersonation-bar) .fx-subhead {
  top: 40px;
}

body:has(.fx-impersonation-bar) .easyfx-dashboard .fx-main,
body:has(.fx-impersonation-bar).easyfx-dashboard .fx-main {
  padding-top: 112px;
}

/* Padded page stacks must use flex, not grid — grid columns bleed into the right gutter. */
.easyfx-dashboard .tf-container.fx-tasks-page,
.easyfx-dashboard .tf-container.fx-invite-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.easyfx-dashboard .tf-container.fx-tasks-page > *,
.easyfx-dashboard .tf-container.fx-invite-page > * {
  min-width: 0;
  max-width: 100%;
}

.easyfx-dashboard .tf-container.fx-lb-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: var(--app-width, 430px);
  box-sizing: border-box;
  margin-top: 0;
  padding-top: 0;
}

.easyfx-dashboard .tf-container.fx-lb-page > * {
  min-width: 0;
  max-width: 100%;
}

/* ── Top bar ── */
.fx-topbar.fixed-top {
  left: 50%;
  right: auto;
  width: 100%;
  max-width: var(--app-width, 430px);
  height: 56px;
  padding: 0 20px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid #1a1f2a;
  border-radius: 0;
  background: rgba(9, 11, 16, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none;
  z-index: 1040;
}

.fx-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.easyfx-dashboard .fx-brand-logo {
  display: inline-flex;
  align-items: center;
  height: 32px;
  border-radius: 5px;
  line-height: 0;
}

.easyfx-dashboard .fx-brand-logo img {
  height: 32px;
  width: auto;
  max-width: none;
}

.easyfx-dashboard .fx-brand-logo img.fx-brand-logo-light,
.fx-preload-logo.fx-brand-logo-light {
  display: block;
}

.easyfx-dashboard .fx-brand-logo img.fx-brand-logo-dark,
.fx-preload-logo.fx-brand-logo-dark {
  display: none;
}

html.fx-dark .easyfx-dashboard .fx-brand-logo img.fx-brand-logo-light,
html.fx-dark .fx-preload-logo.fx-brand-logo-light {
  display: none;
}

html.fx-dark .easyfx-dashboard .fx-brand-logo img.fx-brand-logo-dark,
html.fx-dark .fx-preload-logo.fx-brand-logo-dark {
  display: block;
}

/* Dark (non-Aurora) pages: white chip keeps the dark wordmark readable */
.easyfx-dashboard:not(.fx-aurora) .fx-brand-logo {
  height: 40px;
  padding: 4px 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.easyfx-dashboard .fx-topbar-btn--noti {
  position: relative;
}

.easyfx-dashboard .fx-topbar-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f43f5e;
  border: 2px solid #090b10;
}

.fx-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.easyfx-dashboard .fx-topbar-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #94a3b8 !important;
  font-size: 20px;
  font-weight: 400 !important;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.easyfx-dashboard .fx-topbar-btn:hover,
.easyfx-dashboard .fx-topbar-btn:focus,
.easyfx-dashboard .fx-topbar-btn:active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #f1f5f9 !important;
  transform: none !important;
}

.fx-topbar-avatar {
  display: block;
  width: 36px;
  height: 36px;
  margin-left: 2px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #1e2533;
}

.fx-topbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Greeting ── */
.fx-greeting {
  margin: 8px 0 20px;
  font-size: 14px;
  color: #64748b;
}

.fx-greeting strong {
  color: #e2e8f0;
  font-weight: 600;
}

/* ── Portfolio card ── */
.fx-portfolio {
  padding: 24px 20px 20px;
  border: 1px solid #1a1f2a;
  border-radius: 16px;
  background: #11151c;
}

.fx-portfolio-label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.fx-portfolio-total {
  margin: 6px 0 0;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.fx-balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #1a1f2a;
}

.fx-balance-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 16px;
}

.fx-balance-cell + .fx-balance-cell {
  padding-right: 0;
  padding-left: 16px;
  border-left: 1px solid #1a1f2a;
}

.fx-balance-label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.fx-balance-amount {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
}

.fx-balance-hint {
  font-size: 11px;
  color: #475569;
}

.fx-portfolio-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #1a1f2a;
}

.fx-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #151a24;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.fx-meta-pill.fx-meta-up {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
}

.fx-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #475569;
}

.fx-live-dot.is-live {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

/* ── Action hub (icons + trade) ── */
.fx-action-hub {
  margin-top: 12px;
  border: 1px solid #1a1f2a;
  border-radius: 16px;
  background: #11151c;
  overflow: hidden;
}

.fx-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid #1a1f2a;
}

.fx-action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 76px;
  padding: 12px 6px;
  border: 1px solid #1e2533;
  border-radius: 10px;
  background: #090b10;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

button.fx-action-tile {
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.fx-action-tile i {
  font-size: 20px;
  line-height: 1;
}

.fx-action-tile span {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  text-align: center;
  line-height: 1.2;
}

.fx-action-tile:active {
  transform: scale(0.97);
}

.fx-action-tile--deposit {
  border-color: rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.06);
}

.fx-action-tile--deposit i {
  color: #34d399;
}

.fx-action-tile--withdraw {
  border-color: rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.06);
}

.fx-action-tile--withdraw i {
  color: #fbbf24;
}

.fx-action-tile--invite {
  border-color: rgba(96, 165, 250, 0.2);
  background: rgba(96, 165, 250, 0.06);
}

.fx-action-tile--invite i {
  color: #60a5fa;
}

.fx-action-tile--support {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.05);
}

.fx-action-tile--support i {
  color: #94a3b8;
}

/* Quick action icons — standalone row below hub tabs */
.fx-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

.fx-quick-actions .fx-action-tile {
  min-height: 76px;
  padding: 10px 4px 8px;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 10px);
}

.fx-quick-actions .fx-action-tile--deposit,
.fx-quick-actions .fx-action-tile--withdraw,
.fx-quick-actions .fx-action-tile--invite,
.fx-quick-actions .fx-action-tile--support {
  background: #fff;
}

.fx-quick-actions .fx-action-tile span {
  font-size: 11px;
  font-weight: 600;
  color: var(--fx-ink, #0f172a);
  text-align: center;
  line-height: 1.2;
}

.fx-quick-actions .fx-action-tile i,
.fx-quick-actions .fx-action-tile--deposit i,
.fx-quick-actions .fx-action-tile--withdraw i,
.fx-quick-actions .fx-action-tile--invite i,
.fx-quick-actions .fx-action-tile--support i {
  display: block;
  width: auto;
  height: auto;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0;
  color: #0f172a !important;
  font-size: 20px;
  line-height: 1;
}

/* Trade block */
.fx-trade-block {
  position: relative;
  padding: 16px;
}

.fx-trade-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: 56px;
  padding: 12px 20px;
  border: 0 !important;
  border-radius: 12px !important;
  background: #2563eb !important;
  box-shadow: none !important;
  text-decoration: none;
  transition: background 0.15s ease;
}

.fx-trade-primary:hover {
  background: #1d4ed8 !important;
  transform: none !important;
}

.fx-trade-primary.is-active {
  background: rgba(52, 211, 153, 0.14) !important;
  border: 1px solid rgba(52, 211, 153, 0.35) !important;
}

.fx-trade-primary.is-active:hover {
  background: rgba(52, 211, 153, 0.2) !important;
}

.fx-trade-primary-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.fx-trade-primary.is-active .fx-trade-primary-main {
  color: #34d399;
}

.fx-trade-primary-main i {
  font-size: 12px;
}

.fx-trade-primary-sub {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.fx-trade-primary.is-active .fx-trade-primary-sub {
  color: #64748b;
}

.fx-trade-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 11px;
  color: #475569;
  text-align: center;
}

.fx-trade-note i {
  font-size: 12px;
  color: #64748b;
}

/* Shared trade button (profit calc CTA) */
.fx-trade-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: 0 !important;
  border-radius: 12px !important;
  background: #2563eb !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: none !important;
  transition: background 0.15s ease;
}

.fx-trade-btn:hover {
  background: #1d4ed8 !important;
  color: #fff !important;
  transform: none !important;
}

/* ── Section blocks ── */
.fx-block {
  margin-top: 24px;
}

.fx-card {
  padding: 20px;
  border: 1px solid #1a1f2a;
  border-radius: 16px;
  background: #11151c;
}

.fx-card-flush {
  padding-bottom: 12px;
}

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

.fx-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

.fx-card-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
}

.fx-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  background: #151a24;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

.fx-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
}

/* ── Profit calculator ── */
.fx-calc-hero {
  margin-bottom: 18px;
  padding: 18px 16px;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.06) 0%, #090b10 60%);
  border: 1px solid #1a1f2a;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.fx-calc-hero.is-active {
  background: linear-gradient(165deg, rgba(52, 211, 153, 0.1) 0%, rgba(9, 11, 16, 0.85) 55%);
  border-color: rgba(52, 211, 153, 0.22);
  box-shadow: 0 12px 32px rgba(52, 211, 153, 0.06);
}

.fx-calc-hero-idle .fx-calc-intro {
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.fx-calc-hero-idle .fx-calc-intro p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
}

.fx-calc-hero-idle .fx-calc-intro strong {
  color: #e2e8f0;
  font-weight: 600;
}

.fx-calc-hero-idle .fx-calc-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-calc-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
}

.fx-calc-step-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  font-size: 11px;
  font-weight: 700;
}

.fx-calc-hero-results {
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.fx-calc-hero-results.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fx-calc-hero-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.fx-calc-hero-range {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.fx-calc-hero-amount {
  font-size: 24px;
  font-weight: 700;
  color: #34d399;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.fx-calc-hero-amount--max {
  font-size: 30px;
  color: #6ee7b7;
}

.fx-calc-hero-sep {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.fx-calc-hero-meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: #64748b;
}

.fx-calc-hero-meta strong {
  color: #94a3b8;
  font-weight: 600;
}

.fx-calc-hero-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(9, 11, 16, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.fx-calc-hero-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fx-calc-hero-stat-value {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Deposit input */
.fx-calc-deposit {
  margin-bottom: 14px;
}

.fx-calc-label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.fx-calc-input-field {
  display: flex;
  align-items: stretch;
  min-height: 64px;
  border: 1px solid #1e2533;
  border-radius: 14px;
  background: linear-gradient(180deg, #0d1018 0%, #090b10 100%);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fx-calc-input-field.is-focused {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.fx-calc-input-field.is-shake {
  animation: fx-calc-shake 0.4s ease;
}

@keyframes fx-calc-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.fx-calc-currency {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.1);
  border-right: 1px solid #1a1f2a;
}

.fx-calc-input-inner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  min-width: 0;
}

.fx-calc-prefix {
  font-size: 22px;
  font-weight: 600;
  color: #475569;
  line-height: 1;
}

.easyfx-dashboard .fx-calc-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 18px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  line-height: 1 !important;
  color: #f8fafc !important;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

.easyfx-dashboard .fx-calc-input:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.easyfx-dashboard .fx-calc-input::placeholder {
  color: #334155 !important;
  font-weight: 500 !important;
}

.easyfx-dashboard .fx-calc-input::-webkit-outer-spin-button,
.easyfx-dashboard .fx-calc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.fx-calc-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.fx-calc-preset {
  min-height: 36px;
  padding: 0 6px !important;
  border: 1px solid #1e2533 !important;
  border-radius: 8px !important;
  background: #090b10 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.fx-calc-preset:hover {
  border-color: #2563eb !important;
  color: #e2e8f0 !important;
  background: rgba(37, 99, 235, 0.08) !important;
  transform: none !important;
}

.fx-calc-preset.is-active {
  border-color: #2563eb !important;
  background: rgba(37, 99, 235, 0.15) !important;
  color: #60a5fa !important;
}

.fx-calc-earnings {
  margin-top: 14px;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  background: linear-gradient(165deg, rgba(52, 211, 153, 0.1) 0%, rgba(9, 11, 16, 0.85) 55%);
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.fx-calc-earnings.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Capital breakdown */
.fx-calc-formula {
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #090b10;
  border: 1px solid #1a1f2a;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fx-calc-formula.is-active {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.04);
}

.fx-calc-formula-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-calc-formula-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fx-calc-formula-line--add .fx-calc-formula-value {
  color: #60a5fa;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.fx-calc-formula.is-active .fx-calc-formula-line--add .fx-calc-formula-value {
  opacity: 1;
}

.fx-calc-formula-line--total .fx-calc-formula-value {
  font-size: 16px;
  color: #f1f5f9;
  transition: color 0.2s ease;
}

.fx-calc-formula.is-active .fx-calc-formula-line--total .fx-calc-formula-value {
  color: #60a5fa;
}

.fx-calc-formula-label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.fx-calc-formula-value {
  font-size: 14px;
  font-weight: 700;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.fx-calc-formula-value--add {
  color: #60a5fa;
}

.fx-calc-formula-divider {
  height: 1px;
  background: #1a1f2a;
}

.fx-calc-cta {
  margin-top: 14px;
}

.fx-calc-footnote {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
}

/* ── Markets watchlist ── */
.fx-markets {
  padding-bottom: 8px;
}

.fx-market-list {
  display: flex;
  flex-direction: column;
}

.fx-market-row {
  display: grid;
  grid-template-columns: 36px 1fr 72px auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #1a1f2a;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.fx-market-row:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.fx-market-row:active {
  opacity: 0.7;
}

.fx-market-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.fx-market-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fx-market-name {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-market-pair {
  font-size: 11px;
  color: #64748b;
}

.fx-market-spark {
  width: 72px;
  height: 32px;
  overflow: hidden;
}

.fx-market-spark .apexcharts-canvas,
.fx-market-spark svg {
  width: 72px !important;
}

.fx-market-quote {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

.fx-market-price {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fx-market-change {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fx-market-change.up {
  color: #34d399;
}

.fx-market-change.down {
  color: #f87171;
}

/* ── Page title (Earn, Tasks, etc.) ── */
.fx-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.fx-page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f1f5f9;
}

.fx-page-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
}

.fx-page-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.fx-page-link:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
}

.fx-page-link i {
  font-size: 10px;
}

/* ── Earn (shuffle) page ── */

.fx-earn-reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: fx-earn-reveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}

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

.fx-earn-hero {
  padding: 20px;
  background: linear-gradient(145deg, #12161f 0%, #0d1018 100%);
}

.fx-earn-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fx-earn-stat-value {
  display: block;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #60a5fa;
  font-variant-numeric: tabular-nums;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fx-earn-stat-value.is-bump {
  animation: fx-earn-bump 0.4s ease;
}

@keyframes fx-earn-bump {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.12); }
}

.fx-earn-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.fx-earn-desc {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
}

.fx-earn-desc strong {
  color: #e2e8f0;
  font-weight: 600;
}

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

.fx-earn-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px !important;
  border: 1px solid #1e2533 !important;
  border-radius: 12px !important;
  background: #090b10 !important;
  box-shadow: none !important;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fx-earn-copy:hover {
  border-color: #2563eb !important;
  background: rgba(37, 99, 235, 0.06) !important;
  transform: none !important;
}

.fx-earn-copy-text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-earn-copy-action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #60a5fa;
}

.fx-earn-game {
  padding: 24px 20px;
  border: 1px solid #1a1f2a;
  border-radius: 16px;
  background: #11151c;
  text-align: center;
}

.fx-earn-game-head {
  margin-bottom: 20px;
}

.fx-earn-game-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.fx-earn-game-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

.fx-earn-deck {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 200px;
  margin: 0 auto;
  perspective: 900px;
}

.fx-earn-deck.is-shuffling {
  animation: fx-earn-deck-pulse 0.6s ease;
}

@keyframes fx-earn-deck-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.fx-earn-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 128px;
  margin-left: -43px;
  margin-top: -64px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  user-select: none;
  backface-visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.34, 1.2, 0.64, 1),
              box-shadow 0.35s ease,
              filter 0.4s ease,
              opacity 0.4s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.fx-earn-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 45%);
  pointer-events: none;
}

.fx-earn-card--tier-1 {
  background: linear-gradient(145deg, #3d2020 0%, #1a1010 100%);
}

.fx-earn-card--tier-2 {
  background: linear-gradient(145deg, #1e3a5f 0%, #0f1729 100%);
}

.fx-earn-card--tier-3 {
  background: linear-gradient(145deg, #134e3a 0%, #0a1f18 100%);
}

.fx-earn-card--tier-4 {
  background: linear-gradient(145deg, #4a3d12 0%, #1f1a08 100%);
}

.fx-earn-card--tier-5 {
  background: linear-gradient(145deg, #3b2066 0%, #1a0d2e 100%);
  border-color: rgba(251, 191, 36, 0.25);
}

.fx-earn-card-prize {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.fx-earn-card--tier-5 .fx-earn-card-prize {
  font-size: 17px;
  color: #fde68a;
}

.fx-earn-card-corner {
  position: absolute;
  z-index: 1;
  font-size: 9px;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.75);
  letter-spacing: -0.02em;
}

.fx-earn-card-corner--tl {
  top: 8px;
  left: 8px;
}

.fx-earn-card-corner--br {
  bottom: 8px;
  right: 8px;
  transform: rotate(180deg);
}

.fx-earn-card.selected {
  border-color: rgba(52, 211, 153, 0.5);
  animation: fx-earn-win-glow 1.4s ease-in-out infinite;
}

@keyframes fx-earn-win-glow {
  0%, 100% {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(52, 211, 153, 0.25);
  }
  50% {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 36px rgba(52, 211, 153, 0.45);
  }
}

.fx-earn-hint {
  margin: 18px 0 0;
  font-size: 12px;
  color: #64748b;
  min-height: 18px;
  transition: color 0.25s ease;
}

.fx-earn-deck.is-shuffling + .fx-earn-hint {
  color: #60a5fa;
}

.fx-earn-shuffle-btn {
  margin-top: 16px;
  gap: 8px;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.fx-earn-shuffle-btn i {
  font-size: 18px;
}

.fx-earn-shuffle-btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.fx-earn-shuffle-btn.is-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: fx-earn-spin 0.7s linear infinite;
}

@keyframes fx-earn-spin {
  to { transform: rotate(360deg); }
}

.fx-earn-prizes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.fx-earn-prize-chip {
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid #1e2533;
  background: #11151c;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

.fx-earn-prize-chip--gold {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
}

/* ── Tasks page ── */
.fx-tasks-page > section + section,
.fx-tasks-page > .fx-block {
  margin-top: 0;
}

.fx-tasks-hero {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-color: rgba(245, 158, 11, 0.2);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(99, 102, 241, 0.08)),
    var(--fx-card, #fff);
}

.fx-tasks-hero-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fx-tasks-hero-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(251, 191, 36, 0.12));
  color: #d97706;
  font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.fx-tasks-hero-copy {
  flex: 1;
  min-width: 0;
}

.fx-tasks-hero-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fx-muted, #64748b);
}

.fx-tasks-hero-headline {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fx-ink-soft, #475569);
}

.fx-tasks-hero-headline strong {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fx-ink, #0f172a);
}

.fx-tasks-hero-ring {
  --pct: 0;
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--fx-card, #fff) 58%, transparent 59%),
    conic-gradient(#6366f1 calc(var(--pct) * 1%), rgba(99, 102, 241, 0.12) 0);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.12);
}

.fx-tasks-hero-ring span {
  font-size: 13px;
  font-weight: 800;
  color: #4f46e5;
  font-variant-numeric: tabular-nums;
}

.fx-tasks-hero-progress {
  margin-top: 14px;
}

.fx-tasks-hero-progress-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(99, 102, 241, 0.1);
  overflow: hidden;
}

.fx-tasks-hero-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fx-tasks-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.fx-tasks-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 99px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-tasks-hero-chip i {
  font-size: 13px;
  color: #4f46e5;
}

.fx-tasks-hero-chip--ready {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(254, 243, 199, 0.72);
  color: #92400e;
}

.fx-tasks-hero-chip--ready i {
  color: #d97706;
}

.fx-tasks-boost {
  padding: 16px;
}

.fx-tasks-boost-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.fx-tasks-boost-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--fx-indigo, #6366f1);
  font-size: 16px;
}

.fx-tasks-boost-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--fx-ink, #0f172a);
}

.fx-tasks-boost-sub {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fx-muted, #64748b);
}

.fx-tasks-section {
  padding: 16px 0 18px;
  overflow: hidden;
}

.fx-tasks-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px 12px;
}

.fx-tasks-section-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--fx-indigo, #6366f1);
  font-size: 18px;
}

.fx-tasks-section--referral .fx-tasks-section-icon {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.fx-tasks-section--trading .fx-tasks-section-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.fx-tasks-section--balance .fx-tasks-section-icon {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.fx-tasks-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fx-ink, #0f172a);
}

.fx-tasks-section-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--fx-muted, #64748b);
}

.fx-task-scroll-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 16px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fx-muted, #64748b);
}

.fx-task-scroll-hint i {
  font-size: 9px;
}

.fx-task-scroll {
  margin-right: calc(-1 * var(--page-gutter, 18px));
  padding: 0 var(--page-gutter, 18px) 4px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  scrollbar-width: none;
}

.fx-task-scroll::-webkit-scrollbar {
  display: none;
}

.fx-task-scroll-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding-right: 4px;
}

.fx-task-card {
  position: relative;
  padding: 18px 18px 16px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #fff);
  box-shadow: var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.18));
  overflow: hidden;
}

.fx-task-card--slide {
  flex: 0 0 min(78vw, 290px);
  scroll-snap-align: start;
  min-height: 252px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fx-task-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

.fx-task-card--bronze .fx-task-card-accent {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.fx-task-card--silver .fx-task-card-accent {
  background: linear-gradient(90deg, #64748b, #94a3b8);
}

.fx-task-card--gold .fx-task-card-accent {
  background: linear-gradient(90deg, #eab308, #facc15);
}

.fx-task-card--platinum .fx-task-card-accent {
  background: linear-gradient(90deg, #6366f1, #a855f7);
}

.fx-task-card.is-active {
  border-color: rgba(99, 102, 241, 0.18);
}

.fx-task-card.is-ready {
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow:
    0 12px 28px -16px rgba(245, 158, 11, 0.35),
    var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.18));
}

.fx-task-card.is-collected {
  border-color: rgba(16, 185, 129, 0.22);
  background:
    linear-gradient(180deg, rgba(16, 185, 129, 0.05), transparent 42%),
    var(--fx-card, #fff);
}

.fx-task-card--slide .fx-task-desc {
  flex: 1;
}

.fx-task-card--slide .fx-task-claim {
  margin-top: auto;
}

.fx-task-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fx-task-card-intro {
  min-width: 0;
}

.fx-task-tier {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.05);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fx-muted, #64748b);
}

.fx-task-card--bronze .fx-task-tier { color: #b45309; background: rgba(245, 158, 11, 0.12); }
.fx-task-card--silver .fx-task-tier { color: #475569; background: rgba(100, 116, 139, 0.12); }
.fx-task-card--gold .fx-task-tier { color: #a16207; background: rgba(234, 179, 8, 0.14); }
.fx-task-card--platinum .fx-task-tier { color: #6d28d9; background: rgba(139, 92, 246, 0.12); }

.fx-task-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--fx-ink, #0f172a);
  letter-spacing: -0.02em;
}

.fx-task-reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.12);
  font-size: 12px;
  font-weight: 800;
  color: #059669;
  font-variant-numeric: tabular-nums;
}

.fx-task-reward i {
  font-size: 12px;
}

.fx-task-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.fx-task-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fx-task-status.is-locked {
  color: #64748b;
  background: rgba(100, 116, 139, 0.12);
}

.fx-task-status.is-active {
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.1);
}

.fx-task-status.is-ready {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
}

.fx-task-status.is-collected {
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
}

.fx-task-progress-wrap {
  margin-top: 12px;
}

.fx-task-progress-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.fx-task-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fx-task-card.is-active .fx-task-progress-fill {
  background: linear-gradient(90deg, #6366f1 0%, #a855f7 100%);
}

.fx-task-progress-fill.is-complete {
  background: linear-gradient(90deg, #059669 0%, #34d399 100%);
}

.fx-task-progress-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--fx-ink-soft, #475569);
  font-variant-numeric: tabular-nums;
}

.fx-task-desc {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fx-muted, #64748b);
}

.fx-task-claim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 16px !important;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08)) !important;
  border-radius: var(--fx-radius, 5px) !important;
  background: #f1f5f9 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  cursor: default;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.fx-task-claim:disabled:not(.is-claimed) {
  opacity: 1;
}

.fx-task-claim.is-ready {
  border-color: transparent !important;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #fff !important;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(99, 102, 241, 0.55);
}

.fx-task-claim.is-ready:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 28px -12px rgba(99, 102, 241, 0.62);
}

.fx-task-claim.is-ready:active {
  transform: scale(0.98) !important;
}

.fx-task-claim.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.fx-task-claim.is-claimed {
  border-color: rgba(16, 185, 129, 0.24) !important;
  background: rgba(16, 185, 129, 0.1) !important;
  color: #059669 !important;
  cursor: default;
}

/* ── Invite page ── */
.fx-invite-page > section + section,
.fx-invite-page > .fx-invite-team {
  margin-top: 0;
}

.fx-invite-hero {
  position: relative;
  padding: 16px;
  border-color: rgba(99, 102, 241, 0.16);
  background: var(--fx-card, #fff);
}

.fx-invite-benefits {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fx-invite-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fx-ink-soft, #475569);
}

.fx-invite-benefits li i {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 15px;
  line-height: 1;
  color: #10b981;
}

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

.fx-invite-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 11px 8px;
  border-radius: var(--fx-radius, 5px);
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  background: var(--fx-bg, #f8fafc);
  text-align: center;
  min-width: 0;
}

.fx-invite-stat--active {
  border-color: rgba(16, 185, 129, 0.22);
  background: color-mix(in srgb, #10b981 6%, var(--fx-bg, #f8fafc));
}

.fx-invite-stat--today {
  border-color: rgba(99, 102, 241, 0.2);
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 6%, var(--fx-bg, #f8fafc));
}

.fx-invite-stat-value {
  display: block;
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

.fx-invite-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fx-muted, #64748b);
}

.fx-invite-rank-link {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  font-size: 13px;
  font-weight: 600;
  color: var(--fx-indigo, #6366f1);
  text-decoration: none;
  text-align: center;
}

.fx-invite-rank-link strong {
  font-weight: 800;
}

.fx-invite-link {
  padding: 16px;
}

.fx-invite-link-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--fx-ink, #0f172a);
}

.fx-invite-link .fx-earn-copy {
  width: 100%;
}

.fx-invite-share-btn {
  width: 100%;
  margin-top: 10px;
  min-height: 48px;
  gap: 8px;
  justify-content: center;
}

.fx-invite-empty {
  padding: 20px 8px 8px;
  text-align: center;
}

.fx-invite-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fx-muted, #64748b);
}

.fx-earn-copy.is-copied {
  border-color: rgba(16, 185, 129, 0.45) !important;
  background: rgba(16, 185, 129, 0.06) !important;
}

.fx-earn-copy.is-copied .fx-earn-copy-action {
  color: #059669 !important;
}

.fx-invite-team .fx-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 10px;
  row-gap: 2px;
  width: 100%;
  max-width: 100%;
}

.fx-invite-team .fx-card-head > div:first-child {
  grid-column: 1;
  grid-row: 1 / -1;
  min-width: 0;
}

.fx-invite-team .fx-card-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-invite-team .fx-card-sub {
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-invite-view-all {
  grid-column: 2;
  grid-row: 1;
  flex-shrink: 0;
  margin-top: 0;
  padding: 5px 8px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  max-width: 100%;
}

.fx-invite-empty.fx-dep-empty {
  margin-top: 4px;
  padding: 24px 12px 8px;
}

.fx-invite-scroll-hint {
  margin-top: 0;
}

.fx-invite-scroll {
  margin: 0 calc(-1 * var(--page-gutter, 18px));
  padding: 0 var(--page-gutter, 18px) 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.fx-invite-scroll--fit {
  margin: 0;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
}

.fx-invite-scroll--fit .fx-invite-scroll-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  width: 100%;
  gap: 10px;
}

.fx-invite-scroll--fit .fx-invite-person {
  flex: none;
  width: auto;
}

.fx-invite-scroll::-webkit-scrollbar {
  display: none;
}

.fx-invite-scroll-track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding-top: 8px;
}

.fx-invite-person {
  flex: 0 0 92px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 10px 10px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #fff);
  box-shadow: var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.26));
  text-align: center;
}

.fx-invite-avatar-wrap {
  position: relative;
}

.fx-invite-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.fx-invite-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fx-invite-avatar.is-active {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.fx-invite-avatar.is-pending {
  border-color: rgba(244, 63, 94, 0.35);
  opacity: 0.82;
}

.fx-invite-name {
  max-width: 80px;
  font-size: 11px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-invite-name.is-pending {
  color: #e11d48;
}

.fx-invite-joined {
  font-size: 10px;
  font-weight: 600;
  color: var(--fx-muted, #64748b);
  line-height: 1.2;
}

.fx-invite-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #e11d48;
  background: rgba(244, 63, 94, 0.1);
}

.fx-invite-status.is-active {
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
}

.fx-invite-steps-list {
  margin-top: 4px;
}

.fx-invite-step-num {
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 14%, transparent);
  color: var(--fx-indigo, #6366f1);
  border-radius: var(--fx-radius, 5px);
}

.fx-invite-modal .modal-dialog {
  max-width: var(--app-width, 430px);
  margin: 0 auto;
}

.fx-invite-modal-content {
  min-height: 100vh;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--fx-bg, #f8fafc) !important;
}

.fx-invite-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(12px);
}

.fx-invite-modal-head h3 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-invite-modal-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 12%, transparent);
  font-size: 12px;
  font-weight: 800;
  color: var(--fx-indigo, #6366f1);
}

.fx-invite-modal-back {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--fx-radius, 5px) !important;
  background: var(--fx-card, #fff) !important;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08)) !important;
  color: var(--fx-ink, #0f172a) !important;
  font-size: 20px;
  cursor: pointer;
}

.fx-invite-modal-spacer {
  width: 40px;
}

.fx-invite-modal-body {
  padding: 16px 20px 32px;
}

.fx-invite-modal-empty {
  margin: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--fx-muted, #64748b);
}

.fx-invite-modal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fx-invite-modal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #fff);
  box-shadow: var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.18));
}

.fx-invite-modal-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--fx-line, rgba(15, 23, 42, 0.08));
}

.fx-invite-modal-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.fx-invite-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.fx-invite-modal-joined {
  font-size: 11px;
  font-weight: 600;
  color: var(--fx-muted, #64748b);
}

.fx-invite-modal-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-invite-modal-status {
  font-size: 11px;
  font-weight: 600;
  color: #e11d48;
}

.fx-invite-modal-status.is-active {
  color: #059669;
}

/* ── Invite: Teams section ── */
.fx-invite-teams {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fx-invite-team-chat-link {
  white-space: nowrap;
}

.fx-invite-teams-notice {
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--fx-indigo, #6366f1) 14%, transparent);
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 5%, var(--fx-card, #fff));
}

.fx-invite-teams-notice p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--fx-muted, #64748b);
}

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

.fx-invite-teams-level-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #fff);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fx-invite-teams-level-tab.is-active {
  border-color: color-mix(in srgb, var(--fx-indigo, #6366f1) 45%, transparent);
  box-shadow: 0 10px 22px -16px rgba(99, 102, 241, 0.45);
}

.fx-invite-teams-level-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-invite-teams-level-rate {
  font-size: 11px;
  font-weight: 700;
  color: var(--fx-indigo, #6366f1);
}

.fx-invite-teams-level-count {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fx-ink, #0f172a);
}

.fx-invite-teams-panel {
  display: none;
}

.fx-invite-teams-panel.is-active {
  display: block;
}

.fx-invite-teams-panel-sub {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--fx-muted, #64748b);
}

.fx-invite-teams-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fx-invite-teams-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #fff);
}

.fx-invite-teams-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.fx-invite-teams-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.fx-invite-teams-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-invite-teams-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--fx-muted, #64748b);
}

.fx-invite-teams-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, #10b981 12%, transparent);
  color: #059669;
  font-size: 11px;
  font-weight: 700;
}

/* ── Team chat page ── */
.fx-team-chat-page .fx-team-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fx-team-chat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.fx-team-chat-tabs::-webkit-scrollbar {
  display: none;
}

.fx-team-chat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  background: var(--fx-card, #fff);
  font-size: 13px;
  font-weight: 700;
  color: var(--fx-muted, #64748b);
  white-space: nowrap;
}

.fx-team-chat-tab.is-active {
  border-color: color-mix(in srgb, var(--fx-indigo, #6366f1) 45%, transparent);
  color: var(--fx-indigo, #6366f1);
}

.fx-team-chat-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 10%, transparent);
  font-size: 11px;
}

.fx-team-chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.fx-team-chat-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
}

.fx-team-chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 16px 0;
}

.fx-team-chat-empty {
  margin: auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--fx-muted, #64748b);
}

.fx-team-chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.fx-team-chat-msg.is-mine {
  flex-direction: row-reverse;
}

.fx-team-chat-msg.is-mine .fx-team-chat-msg-body {
  align-items: flex-end;
}

.fx-team-chat-msg.is-mine .fx-team-chat-msg-meta {
  flex-direction: row-reverse;
}

.fx-team-chat-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.fx-team-chat-msg-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(78%, 420px);
}

.fx-team-chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--fx-muted, #64748b);
}

.fx-team-chat-msg-meta strong {
  font-size: 12px;
  color: var(--fx-ink, #0f172a);
}

.fx-team-chat-msg-body p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 8%, var(--fx-card, #fff));
  font-size: 14px;
  line-height: 1.45;
  color: var(--fx-ink, #0f172a);
  word-break: break-word;
}

.fx-team-chat-msg.is-mine .fx-team-chat-msg-body p {
  background: var(--fx-indigo, #6366f1);
  color: #fff;
}

.fx-team-chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding-top: 12px;
  border-top: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
}

.fx-team-chat-compose textarea {
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  padding: 11px 14px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.1));
  border-radius: 22px;
  resize: none;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  background: var(--fx-card, #fff);
  color: var(--fx-ink, #0f172a);
  transition: border-color 0.18s ease;
}

.fx-team-chat-compose textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--fx-indigo, #6366f1) 55%, transparent);
}

.fx-team-chat-send {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--fx-indigo, #6366f1);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.fx-team-chat-send:active {
  transform: scale(0.92);
}

.fx-team-chat-send:disabled {
  opacity: 0.55;
}

.fx-team-chat-send svg {
  margin-left: -2px;
}

.fx-team-whatsapp {
  margin: 12px 0 2px;
  border: 1px solid color-mix(in srgb, #25d366 24%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, #25d366 6%, var(--fx-card, #fff));
  overflow: hidden;
}

.fx-team-whatsapp-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.fx-team-whatsapp-bar--static {
  cursor: default;
}

.fx-team-whatsapp-bar-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.fx-team-whatsapp-bar-copy strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-team-whatsapp-bar-copy small {
  font-size: 11.5px;
  color: var(--fx-muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-team-whatsapp-state {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fx-ink-soft, #64748b) 14%, transparent);
  color: var(--fx-muted, #64748b);
  font-size: 11px;
  font-weight: 700;
}

.fx-team-whatsapp-state.is-on {
  background: color-mix(in srgb, #25d366 18%, transparent);
  color: #128c4b;
}

.fx-team-whatsapp-body {
  padding: 0 14px 14px;
}

.fx-team-whatsapp-join-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.fx-team-whatsapp-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.fx-team-whatsapp-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  flex-shrink: 0;
}

.fx-team-whatsapp-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-team-whatsapp-sub,
.fx-team-whatsapp-empty {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fx-muted, #64748b);
}

.fx-team-whatsapp-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-team-whatsapp-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 5px);
  font: inherit;
}

.fx-team-whatsapp-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fx-team-whatsapp-save,
.fx-team-whatsapp-join {
  background: #25d366 !important;
  border-color: #25d366 !important;
}

.fx-team-whatsapp-clear {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.fx-invite-teams-whatsapp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--fx-radius, 5px);
  border: 1px solid color-mix(in srgb, #25d366 22%, transparent);
  background: color-mix(in srgb, #25d366 6%, var(--fx-card, #fff));
  font-size: 13px;
  color: var(--fx-muted, #64748b);
}

.fx-invite-teams-whatsapp--setup a {
  font-weight: 700;
}

.fx-invite-teams-whatsapp-btn {
  min-width: 120px;
  background: #25d366 !important;
  border-color: #25d366 !important;
}

/* ── Invite page polish ── */
.fx-invite-perks {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px dashed var(--fx-line, rgba(15, 23, 42, 0.1));
}

.fx-invite-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fx-muted, #64748b);
}

.fx-invite-perks li i {
  flex: 0 0 auto;
  font-size: 14px;
  color: #10b981;
}

.fx-invite-badge-card .fx-invite-badge-pill {
  flex-shrink: 0;
}

.fx-invite-badge-card .fx-invite-badge-progress {
  margin-top: 2px;
}

.fx-invite-tiers-toggle {
  display: inline-flex;
  width: auto;
  margin-top: 10px;
  cursor: pointer;
}

.fx-invite-tiers-toggle i {
  font-size: 11px;
  transition: transform 0.18s ease;
}

.fx-invite-tiers-toggle.is-open i {
  transform: rotate(90deg);
}

.fx-invite-tiers {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--fx-line, rgba(15, 23, 42, 0.1));
}

/* ── Admin team chat monitor ── */
.fx-admin-team-back {
  display: inline-flex;
  margin-bottom: 12px;
}

.fx-admin-team-chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
  margin-top: 12px;
}

.fx-admin-team-chat-msg {
  padding: 12px 14px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 5px);
  background: rgba(248, 250, 252, 0.7);
}

.fx-admin-team-chat-msg-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--fx-muted, #64748b);
}

.fx-admin-team-chat-msg p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ── Daily recruiter leaderboard ── */
.fx-leaderboard-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(99, 102, 241, 0.16), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(16, 185, 129, 0.12), transparent 60%),
    var(--fx-card, #12161f);
}

.fx-leaderboard-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fx-muted, #94a3b8);
}

.fx-leaderboard-pool {
  margin: 0;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fx-ink, #f8fafc);
}

.fx-leaderboard-hero-copy {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fx-muted, #94a3b8);
}

.fx-leaderboard-hero-copy strong {
  color: var(--fx-ink, #e2e8f0);
}

.fx-leaderboard-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.fx-leaderboard-meta-item {
  padding: 12px 10px;
  border: 1px solid var(--fx-line, #1e2533);
  border-radius: var(--fx-radius, 5px);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.fx-leaderboard-meta-label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fx-muted, #64748b);
}

.fx-leaderboard-meta-value {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--fx-ink, #f8fafc);
  font-variant-numeric: tabular-nums;
}

.fx-leaderboard-winner {
  padding-top: 14px;
}

.fx-leaderboard-winner-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fx-leaderboard-winner-row,
.fx-leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fx-leaderboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.fx-leaderboard-winner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fx-leaderboard-winner-copy strong {
  font-size: 15px;
  color: var(--fx-ink, #f8fafc);
}

.fx-leaderboard-winner-copy span {
  font-size: 12px;
  color: var(--fx-muted, #94a3b8);
}

.fx-leaderboard-list-wrap {
  margin-top: 4px;
}

.fx-leaderboard-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.fx-leaderboard-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fx-leaderboard-item {
  padding: 14px;
  border: 1px solid var(--fx-line, #1e2533);
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #12161f);
}

.fx-leaderboard-item.is-leader {
  border-color: rgba(245, 158, 11, 0.35);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.04)),
    var(--fx-card, #12161f);
  box-shadow: 0 12px 28px -18px rgba(245, 158, 11, 0.45);
}

.fx-leaderboard-item.is-you {
  border-color: rgba(99, 102, 241, 0.35);
}

.fx-leaderboard-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.fx-leaderboard-rank.is-top-1 {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #111827;
}

.fx-leaderboard-rank.is-top-2 {
  background: rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
}

.fx-leaderboard-rank.is-top-3 {
  background: rgba(180, 83, 9, 0.22);
  color: #fdba74;
}

.fx-leaderboard-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fx-leaderboard-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-ink, #f8fafc);
}

.fx-leaderboard-name em {
  margin-left: 6px;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fx-indigo, #818cf8);
}

.fx-leaderboard-count {
  font-size: 12px;
  color: var(--fx-muted, #94a3b8);
}

.fx-leaderboard-prize {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.fx-leaderboard-empty {
  text-align: center;
  padding: 28px 18px;
}

.fx-leaderboard-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  font-size: 24px;
}

.fx-leaderboard-empty p {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--fx-ink, #f8fafc);
}

.fx-leaderboard-empty span {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--fx-muted, #94a3b8);
}

.fx-leaderboard-copy-btn {
  margin-top: 14px;
}

.fx-leaderboard-rules-list {
  margin-bottom: 0;
}

.fx-leaderboard-history-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-leaderboard-history-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--fx-line, #1e2533);
}

.fx-leaderboard-history-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fx-leaderboard-history-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--fx-muted, #94a3b8);
}

.fx-leaderboard-history-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fx-ink, #f8fafc);
}

.fx-leaderboard-history-prize {
  font-size: 14px;
  font-weight: 700;
  color: #34d399;
}

.fx-leaderboard-promo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--fx-radius, 5px);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(249, 115, 22, 0.06)),
    var(--fx-card, #fff);
  text-decoration: none;
  box-shadow: var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.26));
  transition: transform 0.12s ease, border-color 0.15s ease;
}

.fx-leaderboard-promo:active {
  transform: scale(0.99);
}

.fx-leaderboard-promo-fire {
  position: relative;
  flex-shrink: 0;
  align-self: flex-start;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--fx-radius, 5px);
  background: rgba(249, 115, 22, 0.12);
}

.fx-fire-icon {
  position: relative;
  width: 20px;
  height: 26px;
}

.fx-fire-flame {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: block;
  border-radius: 50% 50% 50% 50% / 60% 60% 38% 38%;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
}

.fx-fire-flame--outer {
  width: 20px;
  height: 24px;
  background: linear-gradient(180deg, #fde047 0%, #f97316 52%, #ea580c 100%);
  animation: fx-flame-outer 0.75s ease-in-out infinite alternate;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.45);
}

.fx-fire-flame--mid {
  width: 12px;
  height: 15px;
  bottom: 1px;
  background: linear-gradient(180deg, #fef9c3 0%, #fb923c 100%);
  animation: fx-flame-mid 0.55s ease-in-out infinite alternate-reverse;
}

.fx-fire-flame--core {
  width: 6px;
  height: 9px;
  bottom: 3px;
  background: #fffbeb;
  animation: fx-flame-core 0.4s ease-in-out infinite alternate;
  opacity: 0.9;
}

@keyframes fx-flame-outer {
  0% {
    transform: translateX(-50%) scale(1, 1) rotate(-4deg);
  }
  100% {
    transform: translateX(-50%) scale(1.08, 1.06) rotate(4deg);
  }
}

@keyframes fx-flame-mid {
  0% {
    transform: translateX(-50%) scale(0.92, 0.95);
    opacity: 0.85;
  }
  100% {
    transform: translateX(-50%) scale(1.05, 1.08);
    opacity: 1;
  }
}

@keyframes fx-flame-core {
  0% {
    transform: translateX(-50%) scale(0.9);
    opacity: 0.7;
  }
  100% {
    transform: translateX(-50%) scale(1.1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-fire-flame--outer,
  .fx-fire-flame--mid,
  .fx-fire-flame--core {
    animation: none;
  }
}

.fx-leaderboard-promo-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fx-leaderboard-promo-copy > strong {
  font-size: 14px;
  font-weight: 400;
  color: var(--fx-ink, #0f172a);
  line-height: 1.2;
}

.fx-leaderboard-promo-leader {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fx-muted, #64748b);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-leaderboard-promo-prize {
  font-size: 13px;
  line-height: 1.35;
  color: var(--fx-ink-soft, #475569);
}

.fx-leaderboard-promo-prize em {
  font-style: normal;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: -0.02em;
}

.fx-leaderboard-promo > .icon-select-right {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 12px;
  color: var(--fx-muted, #94a3b8);
  flex-shrink: 0;
}

.fx-home-lb-top3 {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.fx-home-lb-top3-row {
  display: grid;
  grid-template-columns: 20px 26px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: calc(var(--fx-radius, 5px) - 1px);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(245, 158, 11, 0.14);
}

.fx-home-lb-top3-row.is-you {
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.fx-home-lb-top3-rank {
  font-size: 11px;
  font-weight: 800;
  color: #b45309;
  text-align: center;
}

.fx-home-lb-top3-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.fx-home-lb-top3-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--fx-text, #0f172a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-home-lb-top3-count {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.fx-home-lb-top3-count::after {
  content: ' refs';
  font-weight: 600;
}

.fx-home-lb-top3-prize {
  font-size: 10px;
  font-weight: 800;
  color: #059669;
  white-space: nowrap;
}

html.fx-dark .fx-home-lb-top3-row {
  background: rgba(15, 23, 42, 0.42);
  border-color: rgba(245, 158, 11, 0.18);
}

html.fx-dark .fx-home-lb-top3-name {
  color: #e2e8f0;
}

.fx-guide-me-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 0;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #fff) !important;
  box-shadow: var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.26));
  color: inherit !important;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.easyfx-dashboard.fx-aurora .fx-guide-me-btn,
.easyfx-dashboard.fx-aurora .fx-guide-me-btn:hover,
.easyfx-dashboard.fx-aurora .fx-guide-me-btn:focus,
.easyfx-dashboard.fx-aurora .fx-guide-me-btn:active {
  background: var(--fx-card, #fff) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: inherit !important;
  box-shadow: var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.26)) !important;
}

.fx-zone-balance--shared:has(+ .fx-guide-me-btn) {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}

.fx-wallet-stack + .fx-guide-me-btn {
  position: relative;
  margin-top: 0;
  border-top: none !important;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-color: rgba(15, 23, 42, 0.1) !important;
  background: var(--fx-card, #fff) !important;
  box-shadow: var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.26));
}

.fx-wallet-stack + .fx-guide-me-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--fx-line, rgba(15, 23, 42, 0.08));
}

.fx-wallet-stack .fx-zone-balance--bonus {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}

.fx-zone-balance--bonus {
  border-color: color-mix(in srgb, var(--fx-indigo, #6366f1) 28%, transparent);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(99, 102, 241, 0.1), transparent 55%),
    var(--fx-card, #fff);
}

.fx-zone-balance--bonus .fx-zone-balance-badge {
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 14%, transparent);
  color: var(--fx-indigo, #6366f1);
}

.fx-withdraw-wallets-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

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

.fx-withdraw-wallet-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #fff);
  text-align: left;
  cursor: pointer;
}

.fx-withdraw-wallet-tab.is-active {
  border-color: color-mix(in srgb, var(--fx-indigo, #6366f1) 45%, transparent);
  box-shadow: 0 10px 22px -16px rgba(99, 102, 241, 0.45);
}

.fx-withdraw-wallet-tab-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fx-muted, #64748b);
}

.fx-withdraw-wallet-tab strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--fx-ink, #0f172a);
}

.fx-withdraw-wallet-tab small {
  font-size: 11px;
  line-height: 1.35;
  color: var(--fx-muted, #64748b);
}

.fx-withdraw-source-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--fx-muted, #64748b);
}

.fx-invite-badge-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.fx-invite-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fx-invite-badge-pill--starter { background: #e2e8f0; color: #475569; }
.fx-invite-badge-pill--recruiter { background: #dbeafe; color: #1d4ed8; }
.fx-invite-badge-pill--builder { background: #dcfce7; color: #15803d; }
.fx-invite-badge-pill--ambassador { background: #fef3c7; color: #b45309; }
.fx-invite-badge-pill--captain { background: #ede9fe; color: #6d28d9; }

.fx-invite-badge-title {
  margin: 10px 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.fx-invite-badge-sub,
.fx-invite-badge-progress-label {
  margin: 0;
  font-size: 13px;
  color: var(--fx-muted, #64748b);
}

.fx-invite-badge-progress {
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.fx-invite-badge-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.fx-invite-bonus-wallet {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: var(--fx-radius, 5px);
  border: 1px solid color-mix(in srgb, var(--fx-indigo, #6366f1) 22%, transparent);
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 6%, var(--fx-card, #fff));
}

.fx-invite-bonus-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--fx-muted, #64748b);
}

.fx-invite-bonus-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fx-invite-bonus-hint {
  font-size: 12px;
  color: var(--fx-muted, #64748b);
}

.fx-invite-badge-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fx-invite-badge-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 5px);
  opacity: 0.55;
}

.fx-invite-badge-item.is-unlocked {
  opacity: 1;
}

.fx-invite-badge-item.is-current {
  border-color: color-mix(in srgb, var(--fx-indigo, #6366f1) 35%, transparent);
  box-shadow: 0 10px 22px -16px rgba(99, 102, 241, 0.35);
}

.fx-invite-badge-item-desc {
  font-size: 12px;
  color: var(--fx-muted, #64748b);
}

.fx-invite-badge-item-you {
  font-size: 11px;
  font-weight: 700;
  color: var(--fx-indigo, #6366f1);
}

@media (max-width: 640px) {
  .fx-invite-badge-hero {
    grid-template-columns: 1fr;
  }

  .fx-withdraw-wallet-tabs {
    grid-template-columns: 1fr;
  }
}

.fx-wallet-stack .fx-zone-balance--starter {
  border-bottom-left-radius: var(--fx-radius, 5px);
  border-bottom-right-radius: var(--fx-radius, 5px);
  border-bottom: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
}

.fx-zone-balance--shared + .fx-guide-me-btn {
  position: relative;
  margin-top: 0;
  border-top: none !important;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-color: rgba(15, 23, 42, 0.1) !important;
  background: var(--fx-card, #fff) !important;
  box-shadow: var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.26));
}

.fx-zone-balance--shared + .fx-guide-me-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--fx-line, rgba(15, 23, 42, 0.1));
  pointer-events: none;
}

.fx-guide-me-btn:active {
  transform: scale(0.99);
}

.fx-guide-me-btn-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--fx-radius, 5px);
  background: rgba(99, 102, 241, 0.14);
  color: var(--fx-indigo, #6366f1);
  font-size: 20px;
  flex-shrink: 0;
}

.fx-guide-me-btn-icon i,
.fx-guide-me-btn-icon i:before {
  color: inherit !important;
}

.fx-guide-me-btn-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fx-guide-me-btn-copy strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-guide-me-btn-copy small {
  font-size: 12px;
  font-weight: 400;
  color: var(--fx-muted, #64748b);
}

.fx-guide-me-btn > .icon-arr-right {
  font-size: 12px;
  color: var(--fx-muted, #94a3b8);
  flex-shrink: 0;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-guide-me-btn,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-guide-me-btn:hover,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-guide-me-btn:focus,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-guide-me-btn:active {
  border-color: var(--fx-line, rgba(148, 163, 184, 0.18)) !important;
  background: var(--fx-card, #121820) !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-zone-balance--shared + .fx-guide-me-btn {
  border-color: var(--fx-line, rgba(148, 163, 184, 0.18)) !important;
  background: var(--fx-card, #121820) !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-zone-balance--shared + .fx-guide-me-btn::before {
  background: var(--fx-line, rgba(148, 163, 184, 0.18));
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-guide-me-btn-copy strong {
  color: var(--fx-ink, #f1f5f9);
}

/* ── Spin wheel page ── */
.fx-spin-hero {
  background: linear-gradient(145deg, #12161f 0%, #0d1018 100%);
}

.fx-spin-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fx-spin-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}

.fx-spin-status--ready {
  color: #34d399;
}

.fx-spin-status--locked {
  color: #fbbf24;
}

.fx-spin-desc {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
}

.fx-spin-desc strong {
  color: #e2e8f0;
  font-weight: 600;
}

.fx-spin-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #1a1f2a;
  font-size: 12px;
  color: #64748b;
}

.fx-spin-meta strong {
  color: #cbd5e1;
  font-weight: 600;
}

.fx-spin-game {
  padding: 28px 20px 24px;
  border: 1px solid #1a1f2a;
  border-radius: 16px;
  background: #11151c;
  text-align: center;
}

.fx-spin-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 4px;
}

.fx-spin-stage.is-spinning .fx-spin-wheel {
  animation: fx-spin-wheel-pulse 0.8s ease-in-out infinite;
}

@keyframes fx-spin-wheel-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 20px 50px rgba(0, 0, 0, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.22), 0 24px 56px rgba(0, 0, 0, 0.5); }
}

.fx-spin-pointer {
  width: 0;
  height: 0;
  margin-bottom: -6px;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 20px solid #60a5fa;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  z-index: 4;
  position: relative;
}

.fx-spin-wheel {
  position: relative;
  width: min(300px, 78vw);
  height: min(300px, 78vw);
  border-radius: 50%;
  border: 3px solid #1e2533;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1), 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  background: #090b10;
}

.fx-spin-wheel-inner {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
  transition: transform 4s cubic-bezier(0.15, 0.85, 0.25, 1);
  position: relative;
}

.fx-spin-segment {
  width: 50%;
  height: 50%;
  background: linear-gradient(135deg, var(--seg-a) 0%, var(--seg-b) 100%);
  position: absolute;
  top: 0;
  left: 50%;
  transform-origin: left bottom;
  transform: rotate(calc(var(--i) * 36deg)) skewY(-54deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.fx-spin-segment span {
  position: absolute;
  top: 58%;
  left: 22%;
  transform: translate(-50%, -50%) skewY(54deg) rotate(calc(var(--i) * -36deg));
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.fx-spin-segment.is-selected {
  filter: brightness(1.2);
  z-index: 1;
}

.fx-spin-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #11151c;
  border: 3px solid #2563eb;
  z-index: 5;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  overflow: hidden;
}

.fx-spin-hub-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.fx-spin-hint {
  margin: 20px 0 0;
  min-height: 18px;
  font-size: 12px;
  color: #64748b;
  transition: color 0.25s ease;
}

.fx-spin-stage.is-spinning + .fx-spin-hint {
  color: #60a5fa;
}

.fx-spin-btn {
  margin-top: 16px;
  gap: 8px;
  font-size: 15px !important;
}

.fx-spin-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  background: #334155 !important;
}

.fx-spin-btn.is-loading {
  opacity: 0.8;
  pointer-events: none;
}

.fx-spin-btn.is-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: fx-earn-spin 0.7s linear infinite;
}

.fx-spin-prizes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

/* Floating wheel button */
.easyfx-dashboard .floating-button {
  width: 56px !important;
  height: 56px !important;
  bottom: 96px !important;
  right: 16px !important;
  border: 1px solid rgba(96, 165, 250, 0.35) !important;
  background: linear-gradient(145deg, #1e3a8a 0%, #11151c 100%) !important;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.25) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.easyfx-dashboard .floating-button:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35) !important;
}

.easyfx-dashboard .wheel-icon {
  width: 52px !important;
  height: 52px !important;
}

/* Bottom nav */
.easyfx-dashboard .menubar-footer.footer-fixed {
  left: 50%;
  right: auto;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: calc(100% - 24px);
  max-width: calc(var(--app-width, 430px) - 24px);
  padding: 6px;
  transform: translateX(-50%);
  border: 1px solid #1e2533;
  border-radius: 18px;
  background: rgba(9, 11, 16, 0.88) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.easyfx-dashboard .menubar-footer .inner-bar {
  gap: 4px;
}

.easyfx-dashboard .menubar-footer .inner-bar li {
  flex: 1;
}

.easyfx-dashboard .menubar-footer .inner-bar li a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  padding: 6px 2px;
  border-radius: 14px;
  color: #64748b;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.easyfx-dashboard .menubar-footer .inner-bar li a .icon {
  font-size: 20px;
  line-height: 1;
  transition: color 0.2s ease, transform 0.15s ease;
}

.easyfx-dashboard .menubar-footer .inner-bar li a:active {
  transform: scale(0.96);
}

.easyfx-dashboard .menubar-footer .inner-bar li.active a {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0.06) 100%);
  color: #f1f5f9;
}

.easyfx-dashboard .menubar-footer .inner-bar li.active a::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: #60a5fa;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.45);
}

.easyfx-dashboard .menubar-footer .inner-bar li.active a .icon {
  color: #60a5fa;
  transform: translateY(1px);
}

/* Misc */
.easyfx-dashboard .heartbeat {
  animation: fx-pulse-btn 1.2s ease-in-out infinite;
}

@keyframes fx-pulse-btn {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@media (max-width: 380px) {
  .easyfx-dashboard {
    --page-gutter: 14px;
  }

  .fx-portfolio-total {
    font-size: 32px;
  }

  .fx-balance-amount {
    font-size: 16px;
  }

  .fx-action-tile {
    min-height: 68px;
    padding: 10px 4px;
    gap: 6px;
  }

  .fx-action-tile i {
    font-size: 18px;
  }

  .fx-action-tile span {
    font-size: 10px;
  }

  .fx-action-grid {
    gap: 6px;
    padding: 12px;
  }

  .fx-calc-presets {
    grid-template-columns: repeat(2, 1fr);
  }

  .easyfx-dashboard .fx-calc-input {
    font-size: 24px !important;
  }

  .fx-calc-hero-amount {
    font-size: 20px;
  }

  .fx-calc-hero-amount--max {
    font-size: 24px;
  }

  .fx-market-row {
    grid-template-columns: 32px 1fr 60px auto;
    gap: 10px;
  }

  .fx-market-spark {
    width: 60px;
  }

  .fx-earn-stat-value {
    font-size: 30px;
  }

  .fx-earn-deck {
    max-width: 280px;
    height: 180px;
  }

  .fx-earn-card {
    width: 76px;
    height: 114px;
    margin-left: -38px;
    margin-top: -57px;
  }

  .fx-earn-card-prize {
    font-size: 17px;
  }
}

/* ── 1Voucher deposit flow ── */
.pb-100 {
  padding-bottom: 100px;
}

.fx-voucher-hero {
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.1) 0%, #0b0e14 60%);
  border-color: rgba(37, 99, 235, 0.2);
}

.fx-voucher-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.16);
  color: #60a5fa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fx-voucher-hero-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
}

.fx-voucher-hero-text strong {
  color: #e2e8f0;
  font-weight: 600;
}

.fx-voucher-field-wrap {
  margin-top: 18px;
}

.fx-voucher-input-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  min-height: 58px;
  border: 1px solid #1e2533;
  border-radius: 14px;
  background: linear-gradient(180deg, #0d1018 0%, #090b10 100%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fx-voucher-input-field.is-focused {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.fx-voucher-input-field.is-complete {
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}

.fx-voucher-input-field.is-shake {
  animation: fx-calc-shake 0.4s ease;
}

.fx-voucher-input-icon {
  flex-shrink: 0;
  font-size: 16px;
  color: #475569;
}

.easyfx-dashboard .fx-voucher-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 16px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em;
  color: #f8fafc !important;
  font-variant-numeric: tabular-nums;
}

.easyfx-dashboard .fx-voucher-input:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.easyfx-dashboard .fx-voucher-input::placeholder {
  color: #334155 !important;
  letter-spacing: 0.1em;
  font-weight: 500 !important;
}

.fx-voucher-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.fx-voucher-hint {
  font-size: 11px;
  color: #64748b;
}

.fx-voucher-count {
  font-size: 11px;
  font-weight: 700;
  color: #60a5fa;
  font-variant-numeric: tabular-nums;
}

.fx-voucher-submit {
  margin-top: 20px;
}

.fx-voucher-submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.fx-voucher-steps-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Verification status */
.fx-voucher-status {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.08) 0%, #0b0e14 60%);
  border-color: rgba(37, 99, 235, 0.18);
}

.fx-voucher-status-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.14);
  color: #60a5fa;
  font-size: 28px;
}

.fx-voucher-status-icon i {
  animation: fx-voucher-spin 2.4s linear infinite;
}

@keyframes fx-voucher-spin {
  to { transform: rotate(360deg); }
}

.fx-voucher-status-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.4);
  animation: fx-voucher-pulse 1.8s ease-out infinite;
}

@keyframes fx-voucher-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.fx-voucher-status-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

.fx-voucher-status-sub {
  margin: 0 auto 16px;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
}

.fx-voucher-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
}

.fx-voucher-summary {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-voucher-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #161b24;
}

.fx-voucher-summary-row:last-child {
  border-bottom: 0;
}

.fx-voucher-summary-label {
  font-size: 13px;
  color: #64748b;
}

.fx-voucher-summary-value {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  text-align: right;
}

.fx-voucher-summary-value--amount {
  font-size: 17px;
  font-weight: 700;
  color: #f8fafc;
}

.fx-voucher-summary-value--free {
  color: #34d399;
}

.fx-voucher-summary-pin {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.fx-voucher-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-voucher-secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #1e2533;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.fx-voucher-secondary-btn:hover {
  border-color: #2563eb;
  color: #e2e8f0;
}

/* ── Withdraw flow ── */
.fx-withdraw-balance {
  text-align: center;
  padding: 24px 20px;
  background: linear-gradient(165deg, rgba(52, 211, 153, 0.08) 0%, #0b0e14 60%);
  border-color: rgba(52, 211, 153, 0.18);
}

.fx-withdraw-balance-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fx-withdraw-balance-value {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.fx-withdraw-balance-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.fx-withdraw-alert {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  background: linear-gradient(165deg, rgba(251, 191, 36, 0.08) 0%, #0b0e14 60%);
  border-color: rgba(251, 191, 36, 0.2);
}

.fx-withdraw-alert-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
  font-size: 22px;
}

.fx-withdraw-alert-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
}

.fx-withdraw-alert-text {
  margin: 4px 0 0;
  font-size: 13px;
  color: #94a3b8;
}

.fx-withdraw-alert-btn {
  margin-top: 4px;
}

.fx-withdraw-bank-details {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-withdraw-bank-details li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #161b24;
  font-size: 13px;
}

.fx-withdraw-bank-details li:last-child {
  border-bottom: 0;
}

.fx-withdraw-bank-details span {
  color: #64748b;
}

.fx-withdraw-bank-details strong {
  color: #e2e8f0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fx-withdraw-breakdown {
  margin-top: 16px;
}

.fx-withdraw-fee {
  color: #f87171 !important;
}

.fx-withdraw-submit {
  margin-top: 18px;
}

.fx-withdraw-submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.fx-withdraw-stats {
  display: flex;
  align-items: stretch;
  padding: 18px 12px;
}

.fx-withdraw-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.fx-withdraw-stat-divider {
  width: 1px;
  background: #1a1f2a;
  margin: 4px 0;
}

.fx-withdraw-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fx-withdraw-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}

.fx-withdraw-stat-value--fee {
  color: #f87171;
}

.fx-withdraw-stat-value--net {
  color: #34d399;
}

.fx-withdraw-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-withdraw-item {
  padding: 16px;
  border: 1px solid #1a1f2a;
  border-radius: 14px;
  background: #11151c;
}

.fx-withdraw-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fx-withdraw-item-date {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.fx-withdraw-item-status {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.fx-withdraw-item-status.is-pending {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.fx-withdraw-item-status.is-complete {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.fx-withdraw-item-net {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.fx-withdraw-item-net::before {
  content: 'R';
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-right: 1px;
}

.fx-withdraw-item-meta {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #161b24;
  font-size: 11px;
  color: #64748b;
}

.fx-withdraw-empty {
  text-align: center;
  padding: 32px 20px;
}

.fx-withdraw-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
  font-size: 24px;
}

.fx-withdraw-empty p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
}

.fx-withdraw-empty span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
}

.fx-withdraw-empty-btn {
  margin-top: 18px;
}

/* ── Profile / user info ── */
.fx-profile-hero {
  padding: 22px 20px 18px;
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.12) 0%, rgba(52, 211, 153, 0.04) 45%, #0b0e14 70%);
  border-color: rgba(37, 99, 235, 0.2);
}

.fx-profile-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.fx-profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.fx-profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(37, 99, 235, 0.4);
  background: #151a24;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.fx-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fx-profile-avatar-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #11151c;
  background: #64748b;
}

.fx-profile-avatar-dot.is-live {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}

.fx-profile-kicker {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.fx-profile-name {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
  line-height: 1.15;
}

.fx-profile-meta {
  margin: 4px 0 10px;
  font-size: 12px;
  color: #64748b;
}

.fx-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fx-profile-status,
.fx-profile-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.fx-profile-status.is-healthy {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.fx-profile-status.is-flagged {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

.fx-profile-tag {
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
}

.fx-profile-portfolio {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(9, 11, 16, 0.55);
  border: 1px solid #1a1f2a;
}

.fx-profile-portfolio-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fx-profile-portfolio-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.fx-profile-details {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.fx-profile-details li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.fx-profile-details span {
  color: #64748b;
}

.fx-profile-details strong {
  color: #cbd5e1;
  font-weight: 600;
}

.fx-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.fx-profile-stat {
  position: relative;
  padding: 14px 10px 12px;
  border: 1px solid #1a1f2a;
  border-radius: 14px;
  background: #11151c;
  text-align: center;
  overflow: hidden;
}

.fx-profile-stat::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  opacity: 0.85;
}

.fx-profile-stat--balance::before {
  background: linear-gradient(90deg, #34d399, transparent);
}

.fx-profile-stat--capital::before {
  background: linear-gradient(90deg, #60a5fa, transparent);
}

.fx-profile-stat--shuffles::before {
  background: linear-gradient(90deg, #a78bfa, transparent);
}

.fx-profile-stat-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  border-radius: 10px;
  font-size: 15px;
}

.fx-profile-stat--balance .fx-profile-stat-icon {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.fx-profile-stat--capital .fx-profile-stat-icon {
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
}

.fx-profile-stat--shuffles .fx-profile-stat-icon {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
}

.fx-profile-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fx-profile-stat-value {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.fx-profile-stat-hint {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: #475569;
}

.fx-profile-admin {
  background: linear-gradient(165deg, rgba(251, 191, 36, 0.06) 0%, #11151c 55%);
  border-color: rgba(251, 191, 36, 0.18);
}

.fx-profile-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.fx-profile-tile-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.fx-profile-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 84px;
  padding: 12px 8px;
  border: 1px solid #1a1f2a;
  border-radius: 12px;
  background: #090b10;
  color: #94a3b8;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.fx-profile-tile:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
  color: #e2e8f0;
  transform: translateY(-1px);
}

.fx-profile-tile-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: #60a5fa;
  font-size: 16px;
}

.fx-profile-tile-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.fx-profile-policy {
  padding: 18px 20px;
}

.fx-profile-policy .fx-card-title {
  margin-bottom: 14px;
}

.fx-profile-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.fx-profile-policy-item {
  padding: 12px 14px;
  border-radius: 10px;
  background: #090b10;
  border: 1px solid #161b24;
}

.fx-profile-policy-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fx-profile-policy-item strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
}

.fx-profile-logout {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 14px;
  background: rgba(248, 113, 113, 0.06);
  color: #f87171;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fx-profile-logout:hover {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.fx-profile-logout-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.12);
  font-size: 16px;
}

.fx-profile-logout-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fx-profile-logout-text strong {
  font-size: 15px;
  font-weight: 600;
  color: inherit;
}

.fx-profile-logout-text small {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* ── Guest dashboard auth gate ── */
.fx-guest-mode .fx-main,
.fx-guest-mode .fx-bottom-nav {
  filter: blur(2px);
  opacity: 0.92;
  pointer-events: none;
  user-select: none;
}

.fx-guest-mode .modal-backdrop {
  background: rgba(9, 11, 16, 0.35);
}

.fx-guest-mode .modal-backdrop.show {
  opacity: 1;
}

.easyfx-dashboard .fx-topbar-signin {
  width: auto !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(96, 165, 250, 0.45) !important;
  border-radius: 999px !important;
  background: rgba(37, 99, 235, 0.18) !important;
  color: #f8fafc !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.easyfx-dashboard .fx-topbar-signin:hover,
.easyfx-dashboard .fx-topbar-signin:focus {
  background: rgba(37, 99, 235, 0.28) !important;
  border-color: rgba(96, 165, 250, 0.65) !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Bottom auth sheet */
.fx-auth-modal.modal {
  --bs-modal-bg: transparent;
}

.fx-auth-modal.modal .modal-content.fx-auth-sheet {
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 5px !important;
  background: linear-gradient(165deg, #1a1040 0%, #141828 42%, #0f1524 100%) !important;
  box-shadow:
    0 -6px 28px rgba(0, 0, 0, 0.35),
    0 26px 60px -20px rgba(15, 23, 42, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.fx-auth-modal.modal .fx-auth-sheet-title {
  color: #ffffff !important;
}

.fx-auth-modal.modal .fx-auth-tab.is-active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px -8px rgba(99, 102, 241, 0.95) !important;
}

.fx-auth-modal.modal.show,
.fx-auth-modal.modal.showing {
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

.fx-auth-dialog {
  width: 100%;
  max-width: 420px;
  margin: 0;
}

body.fx-no-scroll {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden !important;
}

.fx-auth-sheet {
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 5px !important;
  background: linear-gradient(165deg, #1a1040 0%, #141828 42%, #0f1524 100%) !important;
  box-shadow:
    0 -6px 28px rgba(0, 0, 0, 0.35),
    0 26px 60px -20px rgba(15, 23, 42, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  overflow: hidden;
  color: #cbd5e1 !important;
}

.fx-auth-sheet.modal-content {
  color: #cbd5e1 !important;
  background: linear-gradient(165deg, #1a1040 0%, #141828 42%, #0f1524 100%) !important;
}

.fx-auth-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.fx-auth-sheet-head {
  margin-bottom: 18px;
  text-align: center;
}

.fx-auth-sheet-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  line-height: 1.25;
}

.fx-auth-sheet-sub {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72) !important;
}

.fx-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 18px;
  padding: 5px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fx-auth-modal .fx-auth-tab,
.easyfx-dashboard .fx-auth-tab {
  width: auto !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.fx-auth-modal .fx-auth-tab.is-active,
.easyfx-dashboard .fx-auth-tab.is-active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px -8px rgba(99, 102, 241, 0.95) !important;
}

.fx-auth-modal .fx-auth-tab:hover:not(.is-active),
.easyfx-dashboard .fx-auth-tab:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.fx-auth-sheet-body {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.fx-auth-panel {
  display: none;
}

.fx-auth-panel.is-active {
  display: block;
  animation: fx-auth-fade-in 0.2s ease;
}

@keyframes fx-auth-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.fx-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fx-auth-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55) !important;
}

.fx-auth-sheet label {
  margin: 0;
  color: rgba(255, 255, 255, 0.55) !important;
}

.fx-auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.fx-auth-input-wrap:focus-within {
  border-color: rgba(139, 92, 246, 0.75);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.fx-auth-input-icon {
  flex-shrink: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.42);
}

.fx-auth-input-wrap:focus-within .fx-auth-input-icon {
  color: #a5b4fc;
}

.easyfx-dashboard .fx-auth-input-wrap input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: auto;
  padding: 13px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.easyfx-dashboard .fx-auth-input-wrap input:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.easyfx-dashboard .fx-auth-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.38) !important;
}

.easyfx-dashboard .fx-auth-input-wrap input:-webkit-autofill,
.easyfx-dashboard .fx-auth-input-wrap input:-webkit-autofill:hover,
.easyfx-dashboard .fx-auth-input-wrap input:-webkit-autofill:focus,
.easyfx-dashboard .fx-auth-input-wrap input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px rgba(15, 20, 36, 0.95) inset !important;
  box-shadow: 0 0 0 1000px rgba(15, 20, 36, 0.95) inset !important;
  transition: background-color 9999s ease-out 0s;
}

/* Submit — matches the dashboard primary gradient CTA */
.easyfx-dashboard .fx-auth-submit {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  min-height: 50px !important;
  margin-top: 6px;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 26px -12px rgba(99, 102, 241, 0.9) !important;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.easyfx-dashboard .fx-auth-submit i {
  font-size: 15px;
}

.easyfx-dashboard .fx-auth-submit:hover {
  filter: brightness(1.06);
}

.easyfx-dashboard .fx-auth-submit:active {
  transform: scale(0.99);
}

.easyfx-dashboard .fx-auth-submit:disabled {
  opacity: 0.65;
  cursor: default;
}

.fx-auth-bonus-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
}

.fx-auth-bonus-pill i {
  color: #34d399;
  font-size: 14px;
}

.fx-auth-bonus-pill strong {
  color: #6ee7b7;
  font-weight: 800;
}

.fx-auth-switch {
  margin: 2px 0 0;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.fx-auth-modal .fx-auth-switch-btn,
.easyfx-dashboard .fx-auth-switch-btn {
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: #60a5fa !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fx-auth-modal .fx-auth-switch-btn:hover,
.easyfx-dashboard .fx-auth-switch-btn:hover {
  color: #93c5fd !important;
  background: none !important;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 380px) {
  .fx-auth-modal.modal.show,
  .fx-auth-modal.modal.showing {
    padding-left: 12px;
    padding-right: 12px;
  }

  .fx-auth-sheet {
    padding-left: 16px;
    padding-right: 16px;
  }

  .fx-profile-stat-value {
    font-size: 12px;
  }

  .fx-profile-tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Support drawer (full-screen — see support-ui.css) ── */
.fx-support-drawer .modal-dialog {
  top: 0;
  bottom: 0;
  height: 100%;
  max-height: 100dvh;
  margin: 0 auto !important;
  transform: none !important;
}

.fx-support-drawer.show .modal-dialog,
.fx-support-drawer.showing .modal-dialog {
  transform: none !important;
}

.fx-support-sheet {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100dvh;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--fx-bg, #f8fafc) !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

.fx-support-sheet-head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: max(16px, env(safe-area-inset-top)) 16px 14px;
  border-bottom: 1px solid var(--fx-line, rgba(15, 23, 42, 0.1));
  background:
    linear-gradient(180deg, color-mix(in srgb, #229ed9 6%, var(--fx-card, #fff)), var(--fx-card, #fff));
  text-align: left;
}

.fx-support-sheet-head-copy {
  min-width: 0;
}

.fx-support-sheet-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fx-ink, #0f172a);
  line-height: 1.25;
}

.fx-support-sheet-sub {
  margin: 0;
  font-size: 13px;
  color: var(--fx-muted, #64748b);
  line-height: 1.35;
}

.fx-support-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px));
}

.fx-support-options {
  display: grid;
  gap: 10px;
}

.fx-support-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.1));
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #fff);
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.15s ease;
}

.fx-support-option:active {
  transform: scale(0.99);
}

.fx-support-option-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--fx-radius, 5px);
  flex-shrink: 0;
}

.fx-support-option-icon svg {
  width: 22px;
  height: 22px;
}

.fx-support-option--whatsapp .fx-support-option-icon {
  background: rgba(37, 211, 102, 0.12);
  color: #128c7e;
}

.fx-support-option--telegram .fx-support-option-icon {
  background: rgba(42, 171, 238, 0.12);
  color: #229ed9;
}

.fx-support-option--email .fx-support-option-icon {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.fx-support-option--guide .fx-support-option-icon {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.fx-support-option-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fx-support-option-copy strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-support-option-copy small {
  font-size: 12px;
  color: var(--fx-muted, #64748b);
}

.fx-support-option > .icon-arr-right {
  font-size: 12px;
  color: var(--fx-muted, #94a3b8);
}

.fx-support-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.12));
  border-radius: 8px;
  background: var(--fx-bg, #f8fafc);
  color: var(--fx-ink-soft, #475569);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

/* =====================================================================
   AURORA DASHBOARD THEME  ·  app-wide (all pages with .fx-aurora)
   Bright, calm, vivid fintech look.
   ===================================================================== */
.easyfx-dashboard.fx-aurora {
  --fx-bg: #eef1fb;
  --fx-ink: #0f172a;
  --fx-ink-soft: #475569;
  --fx-muted: #6b7a90;
  --fx-line: rgba(15, 23, 42, 0.07);
  --fx-card: #ffffff;
  --fx-radius: 5px;
  --fx-shadow: 0 18px 38px -20px rgba(30, 41, 89, 0.28);
  --fx-shadow-sm: 0 10px 22px -14px rgba(30, 41, 89, 0.26);
  --fx-indigo: #6366f1;
  --fx-violet: #8b5cf6;
  --fx-blue: #3b82f6;
  --fx-sky: #0ea5e9;
  --fx-emerald: #10b981;
  --fx-amber: #f59e0b;
  --fx-rose: #f43f5e;
  color: var(--fx-ink-soft) !important;
}

body.easyfx-dashboard.fx-aurora {
  background: var(--fx-bg) !important;
}

body.easyfx-dashboard.fx-aurora::before {
  content: '';
  position: fixed;
  inset: -10% -10% -10% -10%;
  z-index: -2;
  background:
    radial-gradient(48% 42% at 12% -2%, rgba(99, 102, 241, 0.22), transparent 70%),
    radial-gradient(46% 40% at 96% 6%, rgba(45, 212, 191, 0.20), transparent 72%),
    radial-gradient(60% 50% at 50% 108%, rgba(139, 92, 246, 0.18), transparent 70%),
    linear-gradient(180deg, #f3f5ff 0%, #eef1fb 48%, #f6f3ff 100%);
}

.easyfx-dashboard.fx-aurora .preload-container {
  background: var(--fx-bg) !important;
}

/* ── Top bar ── */
.easyfx-dashboard.fx-aurora .fx-topbar.fixed-top {
  height: 60px;
  border-bottom: 1px solid var(--fx-line) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.easyfx-dashboard.fx-aurora .fx-topbar-dot {
  border-color: #fff;
}

.easyfx-dashboard.fx-aurora .fx-topbar-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--fx-radius) !important;
  background: rgba(15, 23, 42, 0.06) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0b1220 !important;
  font-size: 19px;
}

.easyfx-dashboard.fx-aurora .fx-topbar-btn i {
  color: #0b1220 !important;
}

.easyfx-dashboard.fx-aurora .fx-topbar-btn:hover,
.easyfx-dashboard.fx-aurora .fx-topbar-btn:focus,
.easyfx-dashboard.fx-aurora .fx-topbar-btn:active {
  background: rgba(99, 102, 241, 0.1) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
  color: var(--fx-indigo) !important;
}

.easyfx-dashboard.fx-aurora .fx-topbar-avatar {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 6px 16px -8px rgba(99, 102, 241, 0.7);
}

.easyfx-dashboard.fx-aurora .fx-topbar-signin {
  border: 0 !important;
  border-radius: var(--fx-radius) !important;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.8) !important;
}

.easyfx-dashboard.fx-aurora .fx-topbar-signin:hover,
.easyfx-dashboard.fx-aurora .fx-topbar-signin:focus {
  background: linear-gradient(135deg, #5457ee, #7c4ff3) !important;
  color: #fff !important;
}

/* ── Greeting / hello ── */
.easyfx-dashboard.fx-aurora .fx-hello {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
}

.easyfx-dashboard.fx-aurora .fx-hello-main {
  min-width: 0;
}

.easyfx-dashboard.fx-aurora .fx-greeting {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-hello-name {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fx-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.easyfx-dashboard.fx-aurora .fx-hello-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: var(--fx-radius);
  background: var(--fx-card);
  border: 1px solid var(--fx-line);
  box-shadow: var(--fx-shadow-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--fx-ink-soft);
  white-space: nowrap;
}

.easyfx-dashboard.fx-aurora .fx-hello-date i {
  font-size: 13px;
  color: var(--fx-indigo);
}

/* ── Portfolio hero (the focal gradient card) ── */
.easyfx-dashboard.fx-aurora .fx-portfolio {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 18px;
  border: 0 !important;
  border-radius: 26px;
  background: linear-gradient(135deg, #6366f1 0%, #7668f3 36%, #8b5cf6 66%, #5b8cf9 100%) !important;
  box-shadow:
    0 26px 50px -22px rgba(99, 102, 241, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #fff;
}

.easyfx-dashboard.fx-aurora .fx-portfolio-glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 140%;
  pointer-events: none;
  background:
    radial-gradient(38% 60% at 82% 0%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(42% 55% at 4% 100%, rgba(45, 212, 191, 0.45), transparent 62%);
  mix-blend-mode: screen;
  opacity: 0.85;
  animation: fx-aurora-float 13s ease-in-out infinite alternate;
}

@keyframes fx-aurora-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -10px, 0) scale(1.06); }
}

.easyfx-dashboard.fx-aurora .fx-portfolio-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.easyfx-dashboard.fx-aurora .fx-portfolio-label {
  color: rgba(255, 255, 255, 0.82);
}

.easyfx-dashboard.fx-aurora .fx-portfolio-total {
  color: #fff;
  font-size: 38px;
  text-shadow: 0 2px 14px rgba(30, 27, 75, 0.28);
}

.easyfx-dashboard.fx-aurora .fx-hero-trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #eafff5;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px);
}

.easyfx-dashboard.fx-aurora .fx-hero-trend i {
  font-size: 10px;
}

.easyfx-dashboard.fx-aurora .fx-balance-grid {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.easyfx-dashboard.fx-aurora .fx-balance-cell + .fx-balance-cell {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.easyfx-dashboard.fx-aurora .fx-balance-label {
  color: rgba(255, 255, 255, 0.8);
}

.easyfx-dashboard.fx-aurora .fx-balance-amount {
  color: #fff;
}

.easyfx-dashboard.fx-aurora .fx-balance-hint {
  color: rgba(255, 255, 255, 0.62);
}

.easyfx-dashboard.fx-aurora .fx-portfolio-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.easyfx-dashboard.fx-aurora .fx-meta-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(6px);
}

.easyfx-dashboard.fx-aurora .fx-meta-pill.fx-meta-up {
  background: rgba(16, 185, 129, 0.3);
  color: #d1fae5;
}

.easyfx-dashboard.fx-aurora .fx-live-dot {
  background: rgba(255, 255, 255, 0.55);
}

.easyfx-dashboard.fx-aurora .fx-live-dot.is-live {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.4);
  animation: fx-pulse-dot 1.6s ease-in-out infinite;
}

@keyframes fx-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.12); }
}

/* ── Live ticker ── */
.easyfx-dashboard.fx-aurora .fx-ticker {
  margin-top: 12px;
  padding: 9px 0;
  border: 1px solid var(--fx-line);
  border-radius: 14px;
  background: var(--fx-card);
  box-shadow: var(--fx-shadow-sm);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.easyfx-dashboard.fx-aurora .fx-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  padding-left: 26px;
  animation: fx-ticker-scroll 22s linear infinite;
}

.easyfx-dashboard.fx-aurora .fx-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fx-ink);
  letter-spacing: 0.01em;
}

.easyfx-dashboard.fx-aurora .fx-ticker-item em {
  font-style: normal;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.easyfx-dashboard.fx-aurora .fx-ticker-item em.up { color: var(--fx-emerald); }
.easyfx-dashboard.fx-aurora .fx-ticker-item em.down { color: var(--fx-rose); }

@keyframes fx-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Action hub ── */
.easyfx-dashboard.fx-aurora .fx-action-hub {
  margin-top: 16px;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  background: var(--fx-card);
  box-shadow: var(--fx-shadow);
  overflow: hidden;
}

.easyfx-dashboard.fx-aurora .fx-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px 0;
}

.easyfx-dashboard.fx-aurora .fx-hub-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-hub-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fx-emerald);
}

.easyfx-dashboard.fx-aurora .fx-action-grid {
  padding: 13px 12px;
  gap: 10px;
  border-bottom: 1px solid var(--fx-line);
}

.easyfx-dashboard.fx-aurora .fx-action-tile {
  gap: 10px;
  min-height: 86px;
  padding: 14px 6px;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  background: #fff;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.easyfx-dashboard.fx-aurora .fx-action-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 14px 26px -16px rgba(30, 41, 89, 0.42);
}

.easyfx-dashboard.fx-aurora .fx-action-tile i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--fx-radius);
  color: #fff !important;
  font-size: 19px;
}

.easyfx-dashboard.fx-aurora .fx-action-tile span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-action-tile--deposit i {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 9px 18px -8px rgba(16, 185, 129, 0.75);
}
.easyfx-dashboard.fx-aurora .fx-action-tile--withdraw i {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 9px 18px -8px rgba(245, 158, 11, 0.75);
}
.easyfx-dashboard.fx-aurora .fx-action-tile--invite i {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 9px 18px -8px rgba(99, 102, 241, 0.75);
}
.easyfx-dashboard.fx-aurora .fx-action-tile--support i {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  box-shadow: 0 9px 18px -8px rgba(14, 165, 233, 0.75);
}

.easyfx-dashboard.fx-aurora .fx-quick-actions {
  gap: 8px;
  margin: 10px 0 14px;
}

.easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile {
  min-height: 82px;
  padding: 10px 4px 8px;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-shadow-sm, 0 8px 18px -14px rgba(30, 41, 89, 0.28));
}

.easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile--deposit,
.easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile--withdraw,
.easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile--invite,
.easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile--support {
  background: #fff;
}

.easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile i,
.easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile--deposit i,
.easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile--withdraw i,
.easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile--invite i,
.easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile--support i {
  display: block;
  width: auto;
  height: auto;
  min-height: 0;
  place-items: unset;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  color: #0f172a !important;
  font-size: 20px;
  line-height: 1;
}

.easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile:hover {
  transform: translateY(-2px);
}

/* ── Trade CTA (premium horizontal bar) ── */
.easyfx-dashboard.fx-aurora .fx-trade-block {
  padding: 16px;
}

.easyfx-dashboard.fx-aurora .fx-trade-primary {
  position: relative;
  overflow: hidden;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 68px;
  padding: 12px 14px;
  border-radius: var(--fx-radius) !important;
  background: linear-gradient(120deg, #6366f1 0%, #8b5cf6 55%, #3b82f6 100%) !important;
  box-shadow: 0 18px 32px -14px rgba(99, 102, 241, 0.7) !important;
}

.easyfx-dashboard.fx-aurora .fx-trade-ico {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--fx-radius);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 19px;
}

.easyfx-dashboard.fx-aurora .fx-trade-ico svg {
  width: 23px;
  height: 23px;
}

/* Compact secondary trade button inside the hero card */
.easyfx-dashboard.fx-aurora .fx-hero-trade {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 18px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--fx-radius);
  background: #ffffff;
  color: var(--fx-indigo);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 16px 30px -16px rgba(15, 23, 42, 0.55);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.easyfx-dashboard.fx-aurora .fx-hero-trade:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px -16px rgba(15, 23, 42, 0.6);
}

.easyfx-dashboard.fx-aurora .fx-hero-trade:active {
  transform: scale(0.99);
}

.easyfx-dashboard.fx-aurora .fx-hero-trade-ico {
  display: grid;
  place-items: center;
}

.easyfx-dashboard.fx-aurora .fx-hero-trade-ico svg {
  width: 18px;
  height: 18px;
}

.easyfx-dashboard.fx-aurora .fx-hero-trade i {
  font-size: 11px;
  opacity: 0.85;
}

.easyfx-dashboard.fx-aurora .fx-trade-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.easyfx-dashboard.fx-aurora .fx-trade-primary-main {
  justify-content: flex-start;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.easyfx-dashboard.fx-aurora .fx-trade-primary-sub {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.easyfx-dashboard.fx-aurora .fx-trade-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: #fff;
  font-size: 12px;
  opacity: 0.92;
  transition: transform 0.2s ease;
}

.easyfx-dashboard.fx-aurora .fx-trade-primary:hover {
  background: linear-gradient(120deg, #5457ee, #7c4ff3 55%, #2f74ec) !important;
}

.easyfx-dashboard.fx-aurora .fx-trade-primary:hover .fx-trade-arrow {
  transform: translateX(3px);
}

.easyfx-dashboard.fx-aurora .fx-trade-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: fx-shimmer 3.4s ease-in-out infinite;
}

@keyframes fx-shimmer {
  0% { left: -60%; }
  55% { left: 130%; }
  100% { left: 130%; }
}

.easyfx-dashboard.fx-aurora .fx-trade-primary.is-active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0.05)) !important;
  border: 1px solid rgba(16, 185, 129, 0.42) !important;
  box-shadow: none !important;
}

.easyfx-dashboard.fx-aurora .fx-trade-primary.is-active::after {
  display: none;
}

.easyfx-dashboard.fx-aurora .fx-trade-primary.is-active .fx-trade-ico {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.35);
  color: #0f9d6e;
}

.easyfx-dashboard.fx-aurora .fx-trade-primary.is-active .fx-trade-primary-main {
  color: #0f9d6e;
}

.easyfx-dashboard.fx-aurora .fx-trade-primary.is-active .fx-trade-primary-sub {
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-trade-primary.is-active .fx-trade-arrow {
  color: #0f9d6e;
}

.easyfx-dashboard.fx-aurora .fx-trade-note {
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-trade-note i {
  color: var(--fx-indigo);
}

/* ── Cards ── */
.easyfx-dashboard.fx-aurora .fx-card {
  border: 1px solid var(--fx-line);
  border-radius: 22px;
  background: var(--fx-card);
  box-shadow: var(--fx-shadow);
}

.easyfx-dashboard.fx-aurora .fx-card-title {
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-card-sub {
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-badge {
  background: #eef2ff;
  color: var(--fx-indigo);
}

.easyfx-dashboard.fx-aurora .fx-badge-live {
  background: rgba(16, 185, 129, 0.12);
  color: #0f9d6e;
}

/* ── Profit calculator (light) ── */
.easyfx-dashboard.fx-aurora .fx-calc-hero {
  border: 1px solid var(--fx-line);
  background: linear-gradient(165deg, #f3f1ff 0%, #eef2ff 60%);
}

.easyfx-dashboard.fx-aurora .fx-calc-hero.is-active {
  border-color: rgba(16, 185, 129, 0.28);
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.12) 0%, #eefcf6 60%);
  box-shadow: 0 14px 30px -18px rgba(16, 185, 129, 0.4);
}

.easyfx-dashboard.fx-aurora .fx-calc-hero-idle .fx-calc-intro p { color: var(--fx-ink-soft); }
.easyfx-dashboard.fx-aurora .fx-calc-hero-idle .fx-calc-intro strong { color: var(--fx-ink); }
.easyfx-dashboard.fx-aurora .fx-calc-step { color: var(--fx-ink-soft); }
.easyfx-dashboard.fx-aurora .fx-calc-step-num {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}
.easyfx-dashboard.fx-aurora .fx-calc-hero-kicker { color: var(--fx-muted); }
.easyfx-dashboard.fx-aurora .fx-calc-hero-amount { color: #0f9d6e; }
.easyfx-dashboard.fx-aurora .fx-calc-hero-amount--max { color: #059669; }
.easyfx-dashboard.fx-aurora .fx-calc-hero-sep { color: var(--fx-muted); }
.easyfx-dashboard.fx-aurora .fx-calc-hero-meta { color: var(--fx-muted); }
.easyfx-dashboard.fx-aurora .fx-calc-hero-meta strong { color: var(--fx-ink-soft); }

.easyfx-dashboard.fx-aurora .fx-calc-earnings {
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.12) 0%, #eefcf6 60%);
  box-shadow: 0 10px 24px -16px rgba(16, 185, 129, 0.35);
}

.easyfx-dashboard.fx-aurora .fx-calc-hero-stat {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid var(--fx-line);
}
.easyfx-dashboard.fx-aurora .fx-calc-hero-stat-label { color: var(--fx-muted); }
.easyfx-dashboard.fx-aurora .fx-calc-hero-stat-value { color: var(--fx-ink); }

.easyfx-dashboard.fx-aurora .fx-calc-label { color: var(--fx-ink); }

.easyfx-dashboard.fx-aurora .fx-calc-input-field {
  border: 1px solid var(--fx-line);
  background: #fbfcff;
}
.easyfx-dashboard.fx-aurora .fx-calc-input-field.is-focused {
  border-color: var(--fx-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}
.easyfx-dashboard.fx-aurora .fx-calc-currency {
  color: var(--fx-indigo);
  background: rgba(99, 102, 241, 0.1);
  border-right: 1px solid var(--fx-line);
}
.easyfx-dashboard.fx-aurora .fx-calc-prefix { color: var(--fx-muted); }
.easyfx-dashboard.fx-aurora .fx-calc-input { color: var(--fx-ink) !important; }
.easyfx-dashboard.fx-aurora .fx-calc-input::placeholder { color: #aab4c6 !important; }

.easyfx-dashboard.fx-aurora .fx-calc-preset {
  border: 1px solid var(--fx-line) !important;
  background: #fbfcff !important;
  color: var(--fx-ink-soft) !important;
}
.easyfx-dashboard.fx-aurora .fx-calc-preset:hover {
  border-color: var(--fx-indigo) !important;
  color: var(--fx-indigo) !important;
  background: rgba(99, 102, 241, 0.08) !important;
}
.easyfx-dashboard.fx-aurora .fx-calc-preset.is-active {
  border-color: var(--fx-indigo) !important;
  background: rgba(99, 102, 241, 0.14) !important;
  color: var(--fx-indigo) !important;
}

.easyfx-dashboard.fx-aurora .fx-calc-formula {
  background: #f7f8ff;
  border: 1px solid var(--fx-line);
}
.easyfx-dashboard.fx-aurora .fx-calc-formula.is-active {
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.05);
}
.easyfx-dashboard.fx-aurora .fx-calc-formula-label { color: var(--fx-muted); }
.easyfx-dashboard.fx-aurora .fx-calc-formula-value { color: var(--fx-ink); }
.easyfx-dashboard.fx-aurora .fx-calc-formula-line--add .fx-calc-formula-value { color: var(--fx-indigo); }
.easyfx-dashboard.fx-aurora .fx-calc-formula.is-active .fx-calc-formula-line--total .fx-calc-formula-value { color: var(--fx-indigo); }
.easyfx-dashboard.fx-aurora .fx-calc-footnote { color: var(--fx-muted); }

/* Calc CTA + shared trade button */
.easyfx-dashboard.fx-aurora .fx-trade-btn:not(.fx-play-cta-secondary):not(.fx-play-cta-disabled):not(.fx-owned-board-switch) {
  background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #3b82f6) !important;
  box-shadow: 0 16px 30px -16px rgba(99, 102, 241, 0.7) !important;
}
.easyfx-dashboard.fx-aurora .fx-trade-btn:not(.fx-play-cta-secondary):not(.fx-play-cta-disabled):not(.fx-owned-board-switch):hover {
  background: linear-gradient(135deg, #5457ee, #7c4ff3 55%, #2f74ec) !important;
}

.easyfx-dashboard.fx-aurora .fx-play-cta-secondary {
  background: #fff !important;
  box-shadow: 0 6px 14px -10px rgba(15, 23, 42, 0.18) !important;
}

.easyfx-dashboard.fx-aurora .fx-play-cta-secondary:hover {
  background: #ecfdf5 !important;
  box-shadow: 0 6px 14px -10px rgba(15, 23, 42, 0.22) !important;
}

.easyfx-dashboard.fx-aurora .fx-play-cta-disabled,
.easyfx-dashboard.fx-aurora .fx-play-cta-disabled:hover {
  background: rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
  border: 1.5px solid rgba(15, 23, 42, 0.14) !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
}

.easyfx-dashboard.fx-aurora .fx-hub-panel--trade .fx-play-cta-secondary {
  color: #4338ca !important;
  background: #fff !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
}

.easyfx-dashboard.fx-aurora .fx-hub-panel--trade .fx-play-cta-secondary:hover {
  background: #eef2ff !important;
  color: #3730a3 !important;
}

/* ── Subpage headers (deposit, withdraw, history, banking) ── */
.easyfx-dashboard.fx-aurora .header.fixed-top.bg-surface {
  left: 50%;
  right: auto;
  width: 100%;
  max-width: var(--app-width, 430px);
  height: 56px;
  transform: translateX(-50%);
  border: 0 !important;
  border-bottom: 1px solid var(--fx-line) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: none !important;
}

.easyfx-dashboard.fx-aurora .header.fixed-top.bg-surface h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fx-ink) !important;
}

.easyfx-dashboard.fx-aurora .header.fixed-top .left,
.easyfx-dashboard.fx-aurora .header.fixed-top .back-btn {
  color: #0b1220 !important;
}

.easyfx-dashboard.fx-aurora .header.fixed-top .left i,
.easyfx-dashboard.fx-aurora .header.fixed-top .back-btn i {
  color: #0b1220 !important;
  -webkit-text-fill-color: #0b1220 !important;
  border-color: var(--fx-line) !important;
  background: rgba(15, 23, 42, 0.05) !important;
}

.easyfx-dashboard.fx-aurora .header.fixed-top .icon-left-btn,
.easyfx-dashboard.fx-aurora .header.fixed-top .icon-left-btn:before,
.easyfx-dashboard.fx-aurora .fx-invite-modal-back .icon-left-btn,
.easyfx-dashboard.fx-aurora .fx-invite-modal-back .icon-left-btn:before {
  color: #0b1220 !important;
  -webkit-text-fill-color: #0b1220 !important;
}

/* ── Page titles (Earn, Tasks, Deposit, etc.) ── */
.easyfx-dashboard.fx-aurora .fx-page-title {
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-page-sub {
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-page-link {
  color: var(--fx-ink);
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid var(--fx-line);
}

.easyfx-dashboard.fx-aurora .fx-page-link i {
  color: var(--fx-ink) !important;
}

.easyfx-dashboard.fx-aurora .fx-page-link:hover {
  color: var(--fx-indigo);
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.easyfx-dashboard.fx-aurora .fx-page-link:hover i {
  color: var(--fx-indigo) !important;
}

.easyfx-dashboard.fx-aurora button.fx-page-link {
  min-height: 0;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius, 8px);
  background: rgba(15, 23, 42, 0.05);
  color: var(--fx-ink) !important;
  font-weight: 600;
  box-shadow: none;
  transform: none;
}

.easyfx-dashboard.fx-aurora button.fx-page-link:hover {
  color: var(--fx-indigo) !important;
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  transform: none;
  box-shadow: none;
}

.easyfx-dashboard.fx-aurora button.fx-page-link i {
  color: currentColor !important;
  -webkit-text-fill-color: currentColor !important;
}

/* ── Earn / shuffle ── */
.easyfx-dashboard.fx-aurora .fx-earn-stat-value,
.easyfx-dashboard.fx-aurora .fx-earn-game-title,
.easyfx-dashboard.fx-aurora .fx-tasks-section-title {
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-earn-stat-label,
.easyfx-dashboard.fx-aurora .fx-earn-desc,
.easyfx-dashboard.fx-aurora .fx-earn-game-sub,
.easyfx-dashboard.fx-aurora .fx-tasks-section-sub,
.easyfx-dashboard.fx-aurora .fx-earn-hint {
  color: var(--fx-ink-soft);
}

.easyfx-dashboard.fx-aurora .fx-earn-desc strong {
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-earn-copy {
  gap: 10px;
  min-height: 50px;
  padding: 0 14px !important;
  border: 1px solid var(--fx-line) !important;
  border-radius: var(--fx-radius) !important;
  background: #f6f7fc !important;
  box-shadow: none !important;
  text-align: left;
}

.easyfx-dashboard.fx-aurora .fx-earn-copy:hover {
  border-color: var(--fx-indigo) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14) !important;
}

.easyfx-dashboard.fx-aurora .fx-earn-copy-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-field-input-icon {
  flex-shrink: 0;
  font-size: 15px;
  color: #94a3b8;
}

.easyfx-dashboard.fx-aurora .fx-field-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  background: #f6f7fc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.easyfx-dashboard.fx-aurora .fx-field-input-wrap.is-focused,
.easyfx-dashboard.fx-aurora .fx-field-input-wrap:focus-within {
  border-color: var(--fx-indigo);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

.easyfx-dashboard.fx-aurora .fx-field-input-wrap.is-complete {
  border-color: rgba(16, 185, 129, 0.45);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.easyfx-dashboard.fx-aurora .fx-field-input-wrap.is-shake {
  animation: fx-calc-shake 0.4s ease;
}

.easyfx-dashboard.fx-aurora .fx-field-input-wrap.is-focused .fx-field-input-icon,
.easyfx-dashboard.fx-aurora .fx-field-input-wrap:focus-within .fx-field-input-icon {
  color: var(--fx-indigo);
}

.easyfx-dashboard.fx-aurora .fx-field-input-wrap input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 13px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  color: var(--fx-ink) !important;
  font-variant-numeric: tabular-nums;
}

.easyfx-dashboard.fx-aurora .fx-field-input-wrap input:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.easyfx-dashboard.fx-aurora .fx-field-input-wrap input::placeholder {
  color: #9aa6b8 !important;
  letter-spacing: 0.06em;
  font-weight: 500 !important;
}

.easyfx-dashboard.fx-aurora .fx-earn-copy:hover .fx-field-input-icon {
  color: var(--fx-indigo);
}

.easyfx-dashboard.fx-aurora .fx-earn-copy-action {
  padding: 6px 10px;
  border-radius: var(--fx-radius);
  background: rgba(99, 102, 241, 0.1);
  font-size: 12px;
  font-weight: 700;
  color: var(--fx-indigo);
}

.easyfx-dashboard.fx-aurora .fx-earn-game {
  padding: 22px 18px 20px;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  background: var(--fx-card);
  box-shadow: var(--fx-shadow-sm);
}

.easyfx-dashboard.fx-aurora .fx-earn-card {
  border-radius: var(--fx-radius);
}

.easyfx-dashboard.fx-aurora .fx-tasks-section-icon {
  background: rgba(99, 102, 241, 0.1);
  color: var(--fx-indigo);
  border-radius: 12px;
}

/* ── Trade drawer chart cleanup ── */
.easyfx-dashboard.fx-aurora .fx-trade-drawer .forex-chart-stage {
  min-height: 280px;
  padding: 0;
  background: #0d1117 !important;
}

.easyfx-dashboard.fx-aurora .fx-trade-drawer .forex-chart-grid {
  display: none !important;
}

.easyfx-dashboard.fx-aurora .fx-trade-drawer .forex-terminal-header--compact {
  padding: 10px 12px;
  gap: 10px;
}

.easyfx-dashboard.fx-aurora .fx-trade-drawer .forex-mid-price {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #e6edf3;
  letter-spacing: 0.01em;
}

.easyfx-dashboard.fx-aurora .fx-trade-drawer .forex-terminal-header--compact .forex-pair-block {
  gap: 6px;
}

/* ── Unified light inputs (calc, banking, legacy) ── */
.easyfx-dashboard.fx-aurora .box-auth-pass {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--fx-line) !important;
  border-radius: var(--fx-radius) !important;
  background: #f6f7fc !important;
}

.easyfx-dashboard.fx-aurora .box-auth-pass:focus-within {
  border-color: var(--fx-indigo) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

.easyfx-dashboard.fx-aurora fieldset label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fx-muted) !important;
}

/* ── Withdraw / voucher ── */
/* ── Invite page (Aurora) ── */
.easyfx-dashboard.fx-aurora .fx-invite-stat-value {
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-invite-stat-label,
.easyfx-dashboard.fx-aurora .fx-invite-benefits li {
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-invite-person {
  border-color: var(--fx-line);
  background: var(--fx-card);
}

.easyfx-dashboard.fx-aurora .fx-invite-name {
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-invite-modal-content {
  background: var(--fx-bg) !important;
}

.easyfx-dashboard.fx-aurora .fx-invite-modal-head {
  background: color-mix(in srgb, var(--fx-bg) 92%, transparent);
  border-color: var(--fx-line);
}

.easyfx-dashboard.fx-aurora .fx-invite-modal-head h3 {
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-invite-modal-item {
  border-color: var(--fx-line);
  background: var(--fx-card);
}

.easyfx-dashboard.fx-aurora .fx-invite-modal-name {
  color: var(--fx-ink);
}

/* ── Withdraw / voucher ── */
.easyfx-dashboard.fx-aurora .fx-voucher-hero-text {
  color: var(--fx-ink-soft);
}

.easyfx-dashboard.fx-aurora .fx-voucher-hero-text strong {
  color: #0b1220 !important;
  font-weight: 700;
}

.easyfx-dashboard.fx-aurora .fx-voucher-input-field {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--fx-line) !important;
  border-radius: var(--fx-radius) !important;
  background: #f6f7fc !important;
  box-shadow: none !important;
}

.easyfx-dashboard.fx-aurora .fx-voucher-input-field.is-focused {
  border-color: var(--fx-indigo) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14) !important;
}

.easyfx-dashboard.fx-aurora .fx-voucher-input-field.is-complete {
  border-color: rgba(16, 185, 129, 0.45) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
}

.easyfx-dashboard.fx-aurora .fx-voucher-input-icon {
  color: #94a3b8;
}

.easyfx-dashboard.fx-aurora .fx-voucher-input-field.is-focused .fx-voucher-input-icon {
  color: var(--fx-indigo);
}

.easyfx-dashboard.fx-aurora .fx-voucher-input {
  padding: 13px 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  color: var(--fx-ink) !important;
}

.easyfx-dashboard.fx-aurora .fx-voucher-input::placeholder {
  color: #9aa6b8 !important;
}

.easyfx-dashboard.fx-aurora .fx-voucher-hint,
.easyfx-dashboard.fx-aurora .fx-voucher-count {
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-withdraw-balance-label {
  color: var(--fx-ink-soft);
}

.easyfx-dashboard.fx-aurora .fx-withdraw-balance-value {
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-withdraw-balance-hint,
.easyfx-dashboard.fx-aurora .fx-withdraw-alert-text,
.easyfx-dashboard.fx-aurora .fx-withdraw-bank-details span {
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-withdraw-bank-details strong,
.easyfx-dashboard.fx-aurora .fx-withdraw-alert-title {
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-withdraw-alert {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.08);
}

/* ── Spin ── */
.easyfx-dashboard.fx-aurora .fx-spin-desc,
.easyfx-dashboard.fx-aurora .fx-spin-meta {
  color: var(--fx-ink-soft);
}

.easyfx-dashboard.fx-aurora .fx-spin-desc strong {
  color: var(--fx-ink);
}

/* ── Tasks ── */
.easyfx-dashboard.fx-aurora .fx-tasks-hero {
  border-color: rgba(245, 158, 11, 0.18);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(99, 102, 241, 0.06)),
    var(--fx-card);
}

.easyfx-dashboard.fx-aurora .fx-tasks-hero-headline strong {
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-tasks-boost-title,
.easyfx-dashboard.fx-aurora .fx-tasks-section-title,
.easyfx-dashboard.fx-aurora .fx-task-card-title {
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-tasks-hero-kicker,
.easyfx-dashboard.fx-aurora .fx-tasks-boost-sub,
.easyfx-dashboard.fx-aurora .fx-tasks-section-sub,
.easyfx-dashboard.fx-aurora .fx-task-desc,
.easyfx-dashboard.fx-aurora .fx-task-progress-text,
.easyfx-dashboard.fx-aurora .fx-task-scroll-hint {
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-tasks-hero-headline {
  color: var(--fx-ink-soft);
}

.easyfx-dashboard.fx-aurora .fx-tasks-hero-chip {
  background: color-mix(in srgb, var(--fx-card) 90%, #fff);
  color: var(--fx-ink);
  border-color: var(--fx-line);
}

.easyfx-dashboard.fx-aurora .fx-task-card {
  border: 1px solid var(--fx-line);
  background: var(--fx-card);
  box-shadow: var(--fx-shadow-sm);
}

.easyfx-dashboard.fx-aurora .fx-task-progress-track,
.easyfx-dashboard.fx-aurora .fx-tasks-hero-progress-track {
  background: rgba(15, 23, 42, 0.08);
}

.easyfx-dashboard.fx-aurora .fx-task-claim {
  border: 1px solid var(--fx-line) !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
}

.easyfx-dashboard.fx-aurora .fx-task-claim.is-ready {
  border-color: transparent !important;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #fff !important;
}

.easyfx-dashboard.fx-aurora .fx-tasks-section-icon {
  border-radius: 12px;
}

/* ── Profile ── */
.easyfx-dashboard.fx-aurora .fx-profile-hero {
  border: 1px solid var(--fx-line);
  background: linear-gradient(165deg, #eef2ff 0%, #f5f3ff 55%, #ffffff 100%);
}

.easyfx-dashboard.fx-aurora .fx-profile-name {
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-profile-kicker,
.easyfx-dashboard.fx-aurora .fx-profile-meta,
.easyfx-dashboard.fx-aurora .fx-profile-stat-label,
.easyfx-dashboard.fx-aurora .fx-profile-stat-hint,
.easyfx-dashboard.fx-aurora .fx-profile-details span {
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-profile-details strong,
.easyfx-dashboard.fx-aurora .fx-profile-stat-value,
.easyfx-dashboard.fx-aurora .fx-profile-portfolio-value {
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-profile-portfolio {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.16);
}

.easyfx-dashboard.fx-aurora .fx-profile-stat {
  padding: 16px 10px 14px;
  border: 1px solid var(--fx-line);
  background: var(--fx-card);
  box-shadow: var(--fx-shadow-sm);
}

.easyfx-dashboard.fx-aurora .fx-profile-stat-value {
  margin-top: 6px;
  font-size: 17px;
}

.easyfx-dashboard.fx-aurora .fx-profile-stat-icon {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.easyfx-dashboard.fx-aurora .fx-profile-tile {
  border: 1px solid var(--fx-line);
  background: var(--fx-card);
  box-shadow: var(--fx-shadow-sm);
}

.easyfx-dashboard.fx-aurora .fx-profile-tile:hover {
  border-color: rgba(99, 102, 241, 0.32);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -16px rgba(30, 41, 89, 0.42);
}

.easyfx-dashboard.fx-aurora .fx-profile-tile-icon {
  background: rgba(99, 102, 241, 0.1);
  color: var(--fx-indigo);
}

.easyfx-dashboard.fx-aurora .fx-profile-tile-label {
  color: var(--fx-ink-soft);
}

/* Platform info tiles — light theme */
.easyfx-dashboard.fx-aurora .fx-profile-policy-item {
  background: #f6f7fc;
  border: 1px solid var(--fx-line);
}

.easyfx-dashboard.fx-aurora .fx-profile-policy-label {
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-profile-policy-item strong {
  color: var(--fx-ink);
}

/* Admin tools card */
.easyfx-dashboard.fx-aurora .fx-profile-admin {
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: linear-gradient(165deg, rgba(245, 158, 11, 0.08) 0%, #fff 60%);
}

/* Log out */
.easyfx-dashboard.fx-aurora .fx-profile-logout {
  border: 1px solid rgba(244, 63, 94, 0.28);
  background: #fff5f6;
  color: var(--fx-rose);
}

.easyfx-dashboard.fx-aurora .fx-profile-logout:hover {
  border-color: rgba(244, 63, 94, 0.45);
  background: #ffedef;
}

.easyfx-dashboard.fx-aurora .fx-profile-logout-icon {
  background: rgba(244, 63, 94, 0.12);
  color: var(--fx-rose);
}

.easyfx-dashboard.fx-aurora .fx-profile-logout-icon i {
  color: var(--fx-rose) !important;
  -webkit-text-fill-color: var(--fx-rose) !important;
}

.easyfx-dashboard.fx-aurora .fx-profile-logout-text strong {
  color: var(--fx-rose);
}

.easyfx-dashboard.fx-aurora .fx-profile-logout-text small {
  color: var(--fx-muted);
}

/* ── Simplified profile page ── */
.fx-profile-summary {
  padding: 18px 16px;
}

.fx-profile-summary-head {
  margin-bottom: 14px;
}

.fx-profile-username {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  line-height: 1.2;
}

.fx-profile-summary-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

.fx-profile-balances {
  margin: 0;
  padding: 0;
  border-top: 1px solid #1a1f2a;
}

.fx-profile-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #1a1f2a;
}

.fx-profile-balance-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fx-profile-balance-row dt {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.fx-profile-balance-row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}

.fx-profile-menu {
  padding: 0;
  overflow: hidden;
}

.fx-profile-menu-title {
  margin: 0;
  padding: 14px 16px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.fx-profile-links {
  display: flex;
  flex-direction: column;
}

.fx-profile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-top: 1px solid #1a1f2a;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.fx-profile-link span {
  min-width: 0;
}

.fx-profile-link i {
  flex-shrink: 0;
  font-size: 11px;
  color: #475569;
}

.fx-profile-link:hover {
  background: rgba(37, 99, 235, 0.06);
  color: #f1f5f9;
}

.fx-profile-link:hover i {
  color: #60a5fa;
}

.fx-profile-menu--admin .fx-profile-menu-title {
  color: #fbbf24;
}

.fx-profile-logout-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: var(--fx-radius, 5px);
  background: rgba(248, 113, 113, 0.08);
  color: #f87171;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fx-profile-logout-btn:hover {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

.easyfx-dashboard.fx-aurora .fx-profile-summary {
  border: 1px solid var(--fx-line);
  background: var(--fx-card);
  box-shadow: var(--fx-shadow-sm);
}

.easyfx-dashboard.fx-aurora .fx-profile-username {
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-profile-summary-meta {
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-profile-balances {
  border-top-color: var(--fx-line);
}

.easyfx-dashboard.fx-aurora .fx-profile-balance-row {
  border-bottom-color: var(--fx-line);
}

.easyfx-dashboard.fx-aurora .fx-profile-balance-row dt {
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-profile-balance-row dd {
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-profile-menu {
  border: 1px solid var(--fx-line);
  background: var(--fx-card);
  box-shadow: var(--fx-shadow-sm);
}

.easyfx-dashboard.fx-aurora .fx-profile-menu-title {
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-profile-link {
  border-top-color: var(--fx-line);
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-profile-link i {
  color: #94a3b8 !important;
}

.easyfx-dashboard.fx-aurora .fx-profile-link:hover {
  background: rgba(99, 102, 241, 0.06);
  color: var(--fx-indigo);
}

.easyfx-dashboard.fx-aurora .fx-profile-link:hover i {
  color: var(--fx-indigo) !important;
}

.easyfx-dashboard.fx-aurora .fx-profile-menu--admin {
  border-color: rgba(245, 158, 11, 0.25);
}

.easyfx-dashboard.fx-aurora .fx-profile-menu--admin .fx-profile-menu-title {
  color: #b45309;
}

.easyfx-dashboard.fx-aurora .fx-profile-logout-btn {
  border-color: rgba(244, 63, 94, 0.28);
  background: #fff5f6;
  color: var(--fx-rose);
}

.easyfx-dashboard.fx-aurora .fx-profile-logout-btn:hover {
  background: #ffedef;
  border-color: rgba(244, 63, 94, 0.45);
  color: #e11d48;
}

.easyfx-dashboard.fx-aurora .fx-card.fx-profile-menu + .fx-card.fx-profile-menu {
  margin-top: 12px;
}

.easyfx-dashboard.fx-aurora .fx-card.fx-profile-summary + .fx-card.fx-profile-menu {
  margin-top: 12px;
}

/* ── Polished history list (deposits, trades, spins, shuffles, referrals, tasks) ── */
.easyfx-dashboard.fx-aurora .fx-history-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px;
  text-align: center;
}

.easyfx-dashboard.fx-aurora .fx-history-summary-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-history-summary-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fx-indigo);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.easyfx-dashboard.fx-aurora .fx-history-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.easyfx-dashboard.fx-aurora .fx-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  background: var(--fx-card);
  box-shadow: var(--fx-shadow-sm);
}

.easyfx-dashboard.fx-aurora .fx-history-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--fx-radius);
  background: rgba(99, 102, 241, 0.1);
  color: var(--fx-indigo);
  font-size: 18px;
}

.easyfx-dashboard.fx-aurora .fx-history-icon--deposit { background: rgba(16, 185, 129, 0.12); color: #059669; }
.easyfx-dashboard.fx-aurora .fx-history-icon--trade { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.easyfx-dashboard.fx-aurora .fx-history-icon--spin { background: rgba(168, 85, 247, 0.12); color: #9333ea; }
.easyfx-dashboard.fx-aurora .fx-history-icon--shuffle { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.easyfx-dashboard.fx-aurora .fx-history-icon--referral { background: rgba(99, 102, 241, 0.12); color: var(--fx-indigo); }
.easyfx-dashboard.fx-aurora .fx-history-icon--tasks { background: rgba(14, 165, 233, 0.12); color: #0284c7; }

.easyfx-dashboard.fx-aurora .fx-history-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.easyfx-dashboard.fx-aurora .fx-history-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.easyfx-dashboard.fx-aurora .fx-history-date {
  font-size: 12px;
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-history-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.easyfx-dashboard.fx-aurora .fx-history-amount {
  font-size: 15px;
  font-weight: 800;
  color: var(--fx-ink);
  font-variant-numeric: tabular-nums;
}

.easyfx-dashboard.fx-aurora .fx-history-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.easyfx-dashboard.fx-aurora .fx-history-status.is-complete { background: rgba(16, 185, 129, 0.14); color: #059669; }
.easyfx-dashboard.fx-aurora .fx-history-status.is-pending { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.easyfx-dashboard.fx-aurora .fx-history-status.is-expired { background: rgba(244, 63, 94, 0.14); color: #e11d48; }
.easyfx-dashboard.fx-aurora .fx-history-status.is-neutral { background: rgba(99, 102, 241, 0.12); color: var(--fx-indigo); }

.easyfx-dashboard.fx-aurora .fx-history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 38px 22px;
}

.easyfx-dashboard.fx-aurora .fx-history-empty-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  color: var(--fx-indigo);
  font-size: 26px;
}

.easyfx-dashboard.fx-aurora .fx-history-empty p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-history-empty span {
  font-size: 13px;
  color: var(--fx-muted);
}

/* Status pills on remaining legacy badge markup (fallback) */
.easyfx-dashboard.fx-aurora .badge-warning.text-success {
  background: rgba(16, 185, 129, 0.14) !important;
  color: #059669 !important;
}

.easyfx-dashboard.fx-aurora .badge-warning.text-warning {
  background: rgba(245, 158, 11, 0.16) !important;
  color: #b45309 !important;
}

.easyfx-dashboard.fx-aurora .badge-warning.text-danger {
  background: rgba(244, 63, 94, 0.14) !important;
  color: #e11d48 !important;
}

/* ── Info note (banking, etc.) ── */
.easyfx-dashboard.fx-aurora .fx-info-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--fx-radius);
  background: rgba(99, 102, 241, 0.07);
}

.easyfx-dashboard.fx-aurora .fx-info-note-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--fx-radius);
  background: rgba(99, 102, 241, 0.14);
  color: var(--fx-indigo);
  font-size: 16px;
}

.easyfx-dashboard.fx-aurora .fx-info-note p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fx-ink-soft);
}

/* ── Banking form ── */
.easyfx-dashboard.fx-aurora .fx-banking-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.easyfx-dashboard.fx-aurora .fx-banking-form .fx-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.easyfx-dashboard.fx-aurora .fx-field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fx-ink-soft);
}

.easyfx-dashboard.fx-aurora .fx-banking-form .box-auth-pass {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 14px !important;
  border: 1px solid var(--fx-line) !important;
  border-radius: var(--fx-radius) !important;
  background: #f6f7fc !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.easyfx-dashboard.fx-aurora .fx-banking-form .box-auth-pass:focus-within {
  border-color: var(--fx-indigo) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

.easyfx-dashboard.fx-aurora .fx-banking-form .password-field {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--fx-ink) !important;
}

.easyfx-dashboard.fx-aurora .fx-banking-submit {
  margin-top: 6px;
}

/* ── Legacy history / banking lists on light theme ── */
.easyfx-dashboard.fx-aurora .accent-box,
.easyfx-dashboard.fx-aurora .bg-menuDark {
  border: 1px solid var(--fx-line) !important;
  background: var(--fx-card) !important;
  box-shadow: var(--fx-shadow-sm) !important;
  color: var(--fx-ink-soft) !important;
}

.easyfx-dashboard.fx-aurora .accent-box h4,
.easyfx-dashboard.fx-aurora .accent-box h5,
.easyfx-dashboard.fx-aurora .item-check-style3 h4 {
  color: var(--fx-ink) !important;
}

.easyfx-dashboard.fx-aurora .text-small {
  color: var(--fx-muted) !important;
}

.easyfx-dashboard.fx-aurora .text-primary {
  color: var(--fx-indigo) !important;
}

.easyfx-dashboard.fx-aurora fieldset label,
.easyfx-dashboard.fx-aurora .box-auth-pass {
  color: var(--fx-ink-soft);
}

.easyfx-dashboard.fx-aurora .box-auth-pass {
  border: 1px solid var(--fx-line) !important;
  background: #fbfcff !important;
}

.easyfx-dashboard.fx-aurora .password-field,
.easyfx-dashboard.fx-aurora .box-auth-pass input {
  color: var(--fx-ink) !important;
  background: transparent !important;
}

.easyfx-dashboard.fx-aurora .tf-btn.lg:not(.primary) {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #fff !important;
  border: 0 !important;
}

/* ── Trade drawer (full-screen sheet + dark terminal) ── */
.easyfx-dashboard.fx-aurora .fx-trade-drawer .modal-dialog {
  top: 0;
  bottom: 0;
  height: 100%;
  max-height: 100dvh;
}

.easyfx-dashboard.fx-aurora .fx-trade-drawer .modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100dvh;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--fx-bg) !important;
  box-shadow: none !important;
  overflow: hidden;
}

.easyfx-dashboard.fx-aurora .fx-trade-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 12px;
  border-bottom: 1px solid var(--fx-line);
  background: rgba(255, 255, 255, 0.92);
}

.easyfx-dashboard.fx-aurora .fx-trade-drawer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-trade-drawer-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fx-ink);
}

.easyfx-dashboard.fx-aurora .fx-trade-drawer-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  background: #fff;
  color: var(--fx-ink);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.easyfx-dashboard.fx-aurora .fx-trade-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px));
}

.easyfx-dashboard.fx-aurora .fx-trade-drawer .coin-chart {
  margin: 0;
}

.easyfx-dashboard.fx-aurora .fx-trade-drawer .forex-trade-terminal {
  border-radius: var(--fx-radius);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: var(--fx-shadow-sm);
}

.easyfx-dashboard.fx-aurora .fx-trade-pl-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  background: var(--fx-card);
  box-shadow: var(--fx-shadow-sm);
}

.easyfx-dashboard.fx-aurora .fx-trade-pl-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.easyfx-dashboard.fx-aurora .fx-trade-pl-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fx-muted);
}

.easyfx-dashboard.fx-aurora .fx-trade-pl-value {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fx-emerald);
  font-variant-numeric: tabular-nums;
}

.easyfx-dashboard.fx-aurora .fx-trade-pl-value.text-danger {
  color: var(--fx-rose) !important;
}

.easyfx-dashboard.fx-aurora .fx-trade-pl-balance {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fx-ink);
  font-variant-numeric: tabular-nums;
}

.easyfx-dashboard.fx-aurora .fx-trade-pl-hint {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fx-muted);
}

/* Trade session close celebration */
.fx-trade-confetti-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1065;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.fx-trade-confetti-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.fx-trade-result-modal .modal-dialog {
  max-width: 380px;
}

.fx-trade-result-modal .modal-content {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.fx-trade-result-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.1));
  border-radius: 22px;
  background: var(--fx-card, #fff);
  box-shadow: 0 32px 70px -28px rgba(15, 23, 42, 0.5);
}

.fx-trade-result-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(circle at 50% 30%, rgba(52, 211, 153, 0.22), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.fx-trade-result-shell.is-loss .fx-trade-result-glow {
  background: radial-gradient(circle at 50% 30%, rgba(148, 163, 184, 0.18), transparent 68%);
}

.fx-trade-result-card {
  position: relative;
  z-index: 1;
  padding: 30px 24px 22px;
  text-align: center;
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  transition: transform 420ms cubic-bezier(.2, .9, .2, 1), opacity 280ms ease;
}

.fx-trade-result-modal.show .fx-trade-result-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.fx-trade-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.18), rgba(52, 211, 153, 0.06));
  color: #059669;
  box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.08);
}

.fx-trade-result-badge svg {
  width: 28px;
  height: 28px;
}

.fx-trade-result-badge.is-loss {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0.05));
  color: #64748b;
  box-shadow: 0 0 0 8px rgba(148, 163, 184, 0.08);
}

.fx-trade-result-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fx-muted, #64748b);
}

.fx-trade-result-label {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-trade-result-amount {
  margin: 0 0 8px;
  font-size: clamp(38px, 10vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.fx-trade-result-amount.is-loss {
  color: #94a3b8 !important;
}

.fx-trade-result-meta {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fx-muted, #64748b);
}

.fx-trade-result-stats {
  margin-bottom: 18px;
}

.fx-trade-result-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  background: var(--fx-bg, #f8fafc);
}

.fx-trade-result-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fx-muted, #64748b);
}

.fx-trade-result-stat-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

.fx-trade-result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-trade-result-primary {
  min-height: 48px !important;
  border-radius: 12px !important;
  text-decoration: none;
}

.fx-trade-result-dismiss {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--fx-muted, #64748b) !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.fx-trade-result-dismiss:hover {
  color: var(--fx-ink, #0f172a) !important;
}

.fx-trade-drawer-close-btn.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

html.fx-dark .fx-trade-result-shell {
  background: var(--fx-card, #121820);
  border-color: var(--fx-line);
}

html.fx-dark .fx-trade-result-stat {
  background: #0f141c;
}

.fx-zone-balance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fx-zone-balance-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.24);
  background: rgba(99, 102, 241, 0.1);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4338ca;
  white-space: nowrap;
}

.fx-trade-capital-expiry {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fx-trade-capital-expiry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.fx-trade-capital-expiry-item.is-soon {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(255, 251, 235, 0.9);
}

.fx-trade-capital-expiry-amount {
  font-size: 13px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

.fx-trade-capital-expiry-when {
  font-size: 11px;
  font-weight: 600;
  color: var(--fx-muted, #64748b);
  text-align: right;
}

.fx-trade-capital-expiry-item.is-soon .fx-trade-capital-expiry-when {
  color: #b45309;
}

html.fx-dark .fx-zone-balance-badge {
  border-color: rgba(129, 140, 248, 0.28);
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
}

html.fx-dark .fx-trade-capital-expiry-item {
  border-color: rgba(129, 140, 248, 0.16);
  background: rgba(15, 20, 28, 0.72);
}

html.fx-dark .fx-trade-capital-expiry-item.is-soon {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(69, 46, 10, 0.35);
}

html.fx-dark .fx-trade-capital-expiry-item.is-soon .fx-trade-capital-expiry-when {
  color: #fbbf24;
}

body.fx-trade-result-open .modal-backdrop.show {
  backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.58);
}

.easyfx-dashboard.fx-aurora .fx-trade-drawer-close-btn {
  display: flex !important;
  width: 100%;
  margin-top: 16px;
  min-height: 50px !important;
}

.easyfx-dashboard.fx-aurora .fx-trade-autoclose-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.08);
  color: #1e3a8a;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.easyfx-dashboard.fx-aurora .fx-trade-autoclose-note i {
  margin-top: 2px;
  color: #2563eb;
}

.easyfx-dashboard.fx-aurora .fx-trade-drawer-close-btn--locked {
  gap: 8px;
  cursor: default;
  pointer-events: none;
  border-color: rgba(59, 130, 246, 0.2) !important;
  background: rgba(59, 130, 246, 0.12) !important;
  color: #1d4ed8 !important;
  box-shadow: none !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-trade-autoclose-note {
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-trade-autoclose-note i,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-trade-drawer-close-btn--locked {
  color: #93c5fd !important;
}

/* ── Markets ── */
.easyfx-dashboard.fx-aurora .fx-market-row {
  border-bottom: 1px solid var(--fx-line);
}
.easyfx-dashboard.fx-aurora .fx-market-icon {
  box-shadow: 0 4px 12px -6px rgba(2, 6, 23, 0.4);
}
.easyfx-dashboard.fx-aurora .fx-market-name { color: var(--fx-ink); }
.easyfx-dashboard.fx-aurora .fx-market-pair { color: var(--fx-muted); }
.easyfx-dashboard.fx-aurora .fx-market-price { color: var(--fx-ink); }
.easyfx-dashboard.fx-aurora .fx-market-change.up { color: var(--fx-emerald); }
.easyfx-dashboard.fx-aurora .fx-market-change.down { color: var(--fx-rose); }

/* ── Bottom nav (light glass) ── */
.easyfx-dashboard.fx-aurora .menubar-footer.footer-fixed {
  border: 1px solid var(--fx-line);
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 16px 40px -14px rgba(30, 41, 89, 0.3);
}
.easyfx-dashboard.fx-aurora .menubar-footer .inner-bar li a {
  color: var(--fx-muted);
}
.easyfx-dashboard.fx-aurora .menubar-footer .inner-bar li.active a {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.16) 0%, rgba(139, 92, 246, 0.06) 100%);
  color: var(--fx-indigo);
}
.easyfx-dashboard.fx-aurora .menubar-footer .inner-bar li.active a::before {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}
.easyfx-dashboard.fx-aurora .menubar-footer .inner-bar li.active a .icon {
  color: var(--fx-indigo);
}

/* ── Entrance animations ── */
@keyframes fx-reveal-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.easyfx-dashboard.fx-aurora .fx-reveal {
  opacity: 0;
  animation: fx-reveal-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: var(--fx-delay, 0s);
}

.easyfx-dashboard.fx-aurora .fx-earn-reveal {
  opacity: 0;
  animation: fx-reveal-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .easyfx-dashboard.fx-aurora .fx-reveal,
  .easyfx-dashboard.fx-aurora .fx-earn-reveal {
    opacity: 1;
    animation: none;
  }
  .easyfx-dashboard.fx-aurora .fx-portfolio-glow,
  .easyfx-dashboard.fx-aurora .fx-trade-primary::after,
  .easyfx-dashboard.fx-aurora .fx-ticker-track,
  .easyfx-dashboard.fx-aurora .fx-live-dot.is-live {
    animation: none;
  }
}

/* =====================================================================
   STANDARD RADIUS  ·  5px across the app (round elements excluded)
   ===================================================================== */
.easyfx-dashboard .fx-card,
.easyfx-dashboard .fx-portfolio,
.easyfx-dashboard .fx-action-hub,
.easyfx-dashboard .fx-action-tile,
.easyfx-dashboard .fx-action-tile i,
.easyfx-dashboard .fx-trade-primary,
.easyfx-dashboard .fx-trade-btn,
.easyfx-dashboard .fx-trade-ico,
.easyfx-dashboard .fx-badge,
.easyfx-dashboard .fx-badge-live,
.easyfx-dashboard .fx-meta-pill,
.easyfx-dashboard .fx-hero-trend,
.easyfx-dashboard .fx-hello-date,
.easyfx-dashboard .fx-ticker,
.easyfx-dashboard .fx-calc-hero,
.easyfx-dashboard .fx-calc-hero-stat,
.easyfx-dashboard .fx-calc-input-field,
.easyfx-dashboard .fx-trading-calc-input,
.easyfx-dashboard .fx-calc-currency,
.easyfx-dashboard .fx-calc-preset,
.easyfx-dashboard .fx-calc-formula,
.easyfx-dashboard .fx-calc-step-num,
.easyfx-dashboard .fx-page-head,
.easyfx-dashboard .fx-dep-seg-btn,
.easyfx-dashboard .fx-dep-seg-icon,
.easyfx-dashboard .fx-brand-mark,
.easyfx-dashboard .tf-btn,
.easyfx-dashboard .accent-box,
.easyfx-dashboard .item-check,
.easyfx-dashboard .menubar-footer.footer-fixed,
.easyfx-dashboard .menubar-footer .inner-bar li a,
.easyfx-dashboard input:not([type=checkbox]):not([type=radio]):not([type=range]),
.easyfx-dashboard textarea,
.easyfx-dashboard select {
  border-radius: 5px !important;
}

.easyfx-dashboard .action-sheet .modal-content {
  border-radius: 5px 5px 0 0 !important;
}

/* =====================================================================
   FOREX CANDLE LOADER  ·  lightweight candlestick preload animation
   ===================================================================== */
.fx-candle-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
}

.fx-candle {
  position: relative;
  width: 9px;
  height: 18px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.16);
  animation: fx-candle-pulse 1.05s ease-in-out infinite;
}

/* wick */
.fx-candle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  bottom: -7px;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: currentColor;
  opacity: 0.85;
}

.fx-candle--up { color: #16c784; }
.fx-candle--down { color: #ea3943; }

.fx-candle:nth-child(1) { animation-delay: 0s; }
.fx-candle:nth-child(2) { animation-delay: 0.12s; }
.fx-candle:nth-child(3) { animation-delay: 0.24s; }
.fx-candle:nth-child(4) { animation-delay: 0.36s; }
.fx-candle:nth-child(5) { animation-delay: 0.48s; }

.fx-preload-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fx-muted, #64748b);
  margin: 0;
}

@keyframes fx-candle-pulse {
  0%, 100% { height: 16px; opacity: 0.72; }
  50% { height: 40px; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-candle { animation: none; }
  .fx-candle:nth-child(1) { height: 22px; }
  .fx-candle:nth-child(2) { height: 34px; }
  .fx-candle:nth-child(3) { height: 18px; }
  .fx-candle:nth-child(4) { height: 30px; }
  .fx-candle:nth-child(5) { height: 24px; }
}

/* Branded preload (logo + candles) */
.easyfx-dashboard .fx-preload-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.easyfx-dashboard .fx-preload-logo {
  height: 38px;
  width: auto;
  max-width: 72vw;
}

.fx-preload-brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

/* ── Theme toggle (top bar) ── */
.fx-topbar-btn--theme {
  padding: 0 !important;
}

.fx-topbar-btn--theme .fx-theme-icon {
  width: 18px;
  height: 18px;
}

.fx-topbar-btn--theme .fx-theme-icon--sun {
  display: none;
}

html.fx-dark .fx-topbar-btn--theme .fx-theme-icon--moon {
  display: none;
}

html.fx-dark .fx-topbar-btn--theme .fx-theme-icon--sun {
  display: block;
}

.fx-profile-link--btn {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.easyfx-dashboard.fx-aurora button.fx-profile-link.fx-profile-link--btn,
.easyfx-dashboard.fx-aurora button.fx-profile-link.fx-profile-link--btn:focus {
  min-height: 0;
  border: 0 !important;
  border-top: 1px solid var(--fx-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--fx-ink) !important;
  box-shadow: none !important;
  transform: none !important;
  font-weight: 600;
}

.easyfx-dashboard.fx-aurora button.fx-profile-link.fx-profile-link--btn:hover {
  background: rgba(99, 102, 241, 0.06) !important;
  color: var(--fx-indigo) !important;
  border-color: var(--fx-line) !important;
}

.easyfx-dashboard.fx-aurora button.fx-profile-link.fx-profile-link--btn i {
  color: #94a3b8 !important;
}

.easyfx-dashboard.fx-aurora button.fx-profile-link.fx-profile-link--btn:hover i {
  color: var(--fx-indigo) !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora button.fx-profile-link.fx-profile-link--btn,
html.fx-dark .easyfx-dashboard.fx-aurora button.fx-profile-link.fx-profile-link--btn:hover,
html.fx-dark .easyfx-dashboard.fx-aurora button.fx-profile-link.fx-profile-link--btn:focus {
  color: var(--fx-ink) !important;
  border-top-color: var(--fx-line) !important;
}

/* =====================================================================
   DARK MODE  ·  html.fx-dark + Aurora
   ===================================================================== */
html.fx-dark .easyfx-dashboard.fx-aurora {
  --fx-bg: #090c12;
  --fx-ink: #f1f5f9;
  --fx-ink-soft: #cbd5e1;
  --fx-muted: #94a3b8;
  --fx-line: rgba(255, 255, 255, 0.08);
  --fx-card: #121820;
  --fx-shadow: 0 18px 38px -20px rgba(0, 0, 0, 0.65);
  --fx-shadow-sm: 0 10px 22px -14px rgba(0, 0, 0, 0.55);
}

html.fx-dark body.easyfx-dashboard.fx-aurora::before {
  background:
    radial-gradient(48% 42% at 12% -2%, rgba(99, 102, 241, 0.14), transparent 70%),
    radial-gradient(46% 40% at 96% 6%, rgba(45, 212, 191, 0.1), transparent 72%),
    radial-gradient(60% 50% at 50% 108%, rgba(139, 92, 246, 0.12), transparent 70%),
    linear-gradient(180deg, #0c1018 0%, #090c12 48%, #0a0e16 100%);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-topbar.fixed-top {
  background: rgba(9, 12, 18, 0.88) !important;
  border-bottom-color: var(--fx-line) !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-brand-logo {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

html.fx-dark .easyfx-dashboard:not(.fx-aurora) .fx-brand-logo {
  height: 32px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-topbar-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f1f5f9 !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-topbar-btn i {
  color: #f1f5f9 !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .header.fixed-top.bg-surface {
  background: rgba(9, 12, 18, 0.88) !important;
  border-bottom-color: var(--fx-line) !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .header.fixed-top .left i,
html.fx-dark .easyfx-dashboard.fx-aurora .header.fixed-top .back-btn i,
html.fx-dark .easyfx-dashboard.fx-aurora .header.fixed-top .icon-left-btn,
html.fx-dark .easyfx-dashboard.fx-aurora .header.fixed-top .icon-left-btn:before {
  color: #f1f5f9 !important;
  -webkit-text-fill-color: #f1f5f9 !important;
  border-color: var(--fx-line) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-action-tile {
  background: var(--fx-card) !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile--deposit,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile--withdraw,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile--invite,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile--support {
  background: #fff !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile span {
  color: #0f172a;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile i,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile--deposit i,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile--withdraw i,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile--invite i,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-quick-actions .fx-action-tile--support i {
  color: #0f172a !important;
  background: none !important;
  box-shadow: none !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-calc-hero {
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.12) 0%, #121820 60%);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-calc-input-field {
  background: #0d1118 !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-calc-currency {
  background: rgba(99, 102, 241, 0.14);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-calc-preset {
  background: #0d1118 !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-calc-earnings {
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.14) 0%, #0f1612 60%);
  border-color: rgba(16, 185, 129, 0.28);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-calc-formula {
  background: rgba(99, 102, 241, 0.08);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-field-input-wrap,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-earn-copy,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-voucher-input-field,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-banking-form .box-auth-pass {
  background: #0d1118 !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-field-input-wrap.is-focused,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-field-input-wrap:focus-within,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-earn-copy:hover,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-banking-form .box-auth-pass:focus-within {
  background: #141a24 !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-profile-summary {
  background: var(--fx-card);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-profile-username {
  color: var(--fx-ink);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-profile-policy-item,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-info-note {
  background: rgba(99, 102, 241, 0.1);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-profile-logout-btn {
  background: rgba(244, 63, 94, 0.1);
}

html.fx-dark .easyfx-dashboard.fx-aurora .menubar-footer.footer-fixed {
  background: rgba(9, 12, 18, 0.92) !important;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.55);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-trade-drawer-head {
  background: rgba(18, 24, 32, 0.95);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-trade-drawer .modal-content {
  background: var(--fx-bg) !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-spin-game,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-earn-game {
  background: var(--fx-card);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-support-sheet {
  background: var(--fx-bg) !important;
  box-shadow: none !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-support-sheet-head {
  background: var(--fx-card);
  border-bottom-color: var(--fx-line);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-support-option {
  background: var(--fx-card);
  border-color: var(--fx-line);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-leaderboard-promo {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.06)),
    var(--fx-card);
  border-color: rgba(245, 158, 11, 0.18);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-leaderboard-promo-copy > strong {
  color: var(--fx-ink);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-leaderboard-promo-prize em {
  color: #fb923c;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-support-close {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--fx-line);
  color: #cbd5e1;
}

/* =====================================================================
   HOME HUB  ·  Play vs Trading zones
   ===================================================================== */
.fx-play-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--fx-radius, 5px);
  padding: 20px 18px 18px;
  background:
    linear-gradient(145deg, rgba(99, 102, 241, 0.14), rgba(34, 197, 94, 0.1)),
    var(--fx-card, #fff);
  border: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12);
}

.fx-play-hero-glow {
  position: absolute;
  top: -40px;
  right: -20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
  pointer-events: none;
}

.fx-play-hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--fx-ink, #0f172a);
  line-height: 1.2;
  margin-bottom: 6px;
}

.fx-play-hero-sub {
  font-size: 13px;
  color: var(--fx-muted, #64748b);
  margin-bottom: 14px;
  line-height: 1.45;
}

.fx-play-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fx-play-hero-actions .fx-trade-btn {
  min-height: 48px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  justify-content: center;
}

.fx-play-hero-actions .fx-play-cta-secondary {
  background: #fff !important;
  color: #065f46 !important;
  border: 1.5px solid rgba(5, 150, 105, 0.42) !important;
  box-shadow: 0 6px 14px -10px rgba(15, 23, 42, 0.2) !important;
  font-weight: 700;
}

.fx-play-hero-actions .fx-play-cta-secondary:hover {
  background: #ecfdf5 !important;
  color: #064e3b !important;
  border-color: rgba(5, 150, 105, 0.55) !important;
}

.fx-wallet-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.fx-wallet-pill {
  padding: 12px 14px;
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #fff);
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
}

.fx-wallet-pill span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fx-muted, #64748b);
}

.fx-wallet-pill strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fx-ink, #0f172a);
}

.fx-trading-compact {
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #fff);
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
}

.fx-trading-compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.fx-trading-compact-head h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-trading-compact .fx-trade-primary {
  margin: 0;
  padding: 12px 14px;
}

.fx-trading-compact .fx-trade-note {
  margin-top: 8px;
  font-size: 11px;
}

html.fx-dark .fx-play-hero,
html.fx-dark .fx-wallet-pill,
html.fx-dark .fx-trading-compact {
  background: var(--fx-card);
  border-color: var(--fx-line);
}

html.fx-dark .fx-play-hero-title,
html.fx-dark .fx-wallet-pill strong,
html.fx-dark .fx-trading-compact-head h2,
html.fx-dark .fx-trading-compact-head h3 {
  color: var(--fx-ink);
}

/* ── Hub · single card, browser tabs ── */
.fx-hub-stack {
  --fx-topbar-height: 56px;
  margin-top: 14px;
}

.fx-hub-stack.fx-reveal {
  animation: none;
  opacity: 1;
  transform: none;
}

.fx-hub-earn {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 13px 18px;
  border-bottom: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  background: var(--fx-hub-surface);
}

.fx-hub-earn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #10b981;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.fx-hub-earn--trade::before {
  background: #6366f1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.45);
}

.fx-hub-earn--play::before {
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.fx-hub-earn-copy {
  flex: 1;
  min-width: 0;
}

.fx-hub-earn-kicker {
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fx-muted, #64748b);
}

.fx-hub-earn-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--fx-muted, #64748b);
}

.fx-hub-earn-bit {
  display: block;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.fx-hub-earn-bit[hidden] {
  display: none !important;
}

.fx-hub-earn-bit strong {
  font-weight: 800;
  color: var(--fx-ink, #0f172a);
}

.fx-hub-earn--play .fx-hub-earn-bit.is-current strong {
  color: #047857;
}

.fx-hub-earn--trade .fx-hub-earn-bit.is-current strong {
  color: #4338ca;
}

.fx-hub-earn-track {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 6px;
}

.fx-hub-earn-track-item {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.14);
  transition: width 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.fx-hub-earn-track-item.is-active {
  width: 22px;
}

.fx-hub-earn--play .fx-hub-earn-track-item.is-active {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.45);
}

.fx-hub-earn--trade .fx-hub-earn-track-item.is-active {
  background: #6366f1;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.45);
}

.fx-hub {
  --fx-hub-surface: var(--fx-card, #fff);
  --fx-hub-track: rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: 5px;
  background: var(--fx-hub-surface);
  box-shadow: none;
  overflow: hidden;
}

.fx-hub-switch-sentinel {
  display: block;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.fx-hub-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: #1a2332;
  box-shadow: none;
  transition: grid-template-columns 0.28s ease;
}

.fx-hub-switch:has(.fx-hub-switch-btn--play.is-active) {
  grid-template-columns: 1.14fr 0.86fr;
}

.fx-hub-switch:has(.fx-hub-switch-btn--trade.is-active) {
  grid-template-columns: 0.86fr 1.14fr;
}

/* Pinned duplicate that lives below the header and reveals on scroll */
.fx-hub-switch--pinned {
  --fx-hub-surface: var(--fx-card, #fff);
  position: fixed;
  top: 56px;
  left: 50%;
  z-index: 1039;
  width: 100%;
  max-width: var(--app-width, 430px);
  border-radius: 0;
  border-bottom: 1px solid #1a1f2a;
  background: #1a2332;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%) translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0s linear 0.22s;
}

.fx-hub-switch--pinned.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0s;
}

.easyfx-dashboard .fx-hub-switch-btn,
.fx-hub-switch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: auto;
  min-height: 68px !important;
  margin: 0;
  padding: 10px 12px 11px;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: inherit;
  font-weight: 700 !important;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transform: none !important;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    min-height 0.28s ease,
    padding 0.28s ease,
    gap 0.28s ease,
    opacity 0.15s ease;
}

.easyfx-dashboard .fx-hub-switch-btn:hover,
.easyfx-dashboard .fx-hub-switch-btn:focus,
.easyfx-dashboard .fx-hub-switch-btn:active,
.fx-hub-switch-btn:hover,
.fx-hub-switch-btn:focus,
.fx-hub-switch-btn:active {
  outline: none;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.fx-hub-switch-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: -2px;
}

.fx-hub-switch-btn:not(.is-active),
.fx-hub-switch-btn:not(.is-active):hover,
.fx-hub-switch-btn:not(.is-active):focus,
.fx-hub-switch-btn:not(.is-active):active,
.easyfx-dashboard .fx-hub-switch-btn:not(.is-active),
.easyfx-dashboard .fx-hub-switch-btn:not(.is-active):hover,
.easyfx-dashboard .fx-hub-switch-btn:not(.is-active):focus,
.easyfx-dashboard .fx-hub-switch-btn:not(.is-active):active {
  color: #fff !important;
}

.fx-hub-switch-btn:not(.is-active) {
  min-height: 0 !important;
  height: 100%;
  padding: 6px 8px 8px;
  gap: 4px;
  opacity: 0.82;
  background: #1a2332 !important;
}

.fx-hub-switch-btn:not(.is-active):hover {
  opacity: 0.92;
  background: #212d40 !important;
}

.easyfx-dashboard .fx-hub-switch-btn.is-active,
.fx-hub-switch-btn.is-active {
  position: relative;
  min-height: 82px !important;
  padding: 14px 12px 12px;
  gap: 7px;
  opacity: 1;
  background: var(--fx-hub-surface) !important;
  color: var(--fx-ink, #0f172a) !important;
  border-radius: 0 !important;
  overflow: visible;
}

.fx-hub-switch-btn.is-active::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0;
  pointer-events: none;
  z-index: 1;
  background-size: 220% 100%;
  animation: fx-hub-tab-border-slide 2.1s linear infinite;
}

.fx-hub-switch-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36%;
  height: 3px;
  border-radius: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.95;
  filter: blur(0.4px);
  animation: fx-hub-tab-border-shimmer 2.1s linear infinite;
}

.fx-hub-switch-btn--play.is-active::before {
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(16, 185, 129, 0.2) 18%,
    #10b981 38%,
    #6ee7b7 50%,
    #10b981 62%,
    rgba(16, 185, 129, 0.2) 82%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.55), 0 -1px 8px rgba(110, 231, 183, 0.35);
}

.fx-hub-switch-btn--play.is-active::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
}

.fx-hub-switch-btn--trade.is-active::before {
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.2) 18%,
    #6366f1 38%,
    #c7d2fe 50%,
    #6366f1 62%,
    rgba(99, 102, 241, 0.2) 82%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6), 0 -1px 8px rgba(165, 180, 252, 0.4);
}

.fx-hub-switch-btn--trade.is-active::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
}

@keyframes fx-hub-tab-border-slide {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@keyframes fx-hub-tab-border-shimmer {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  88% {
    opacity: 0.95;
  }
  100% {
    transform: translateX(320%);
    opacity: 0;
  }
}

.easyfx-dashboard .fx-hub-switch-btn.is-active:hover,
.easyfx-dashboard .fx-hub-switch-btn.is-active:focus,
.easyfx-dashboard .fx-hub-switch-btn.is-active:active,
.fx-hub-switch-btn.is-active:hover,
.fx-hub-switch-btn.is-active:focus,
.fx-hub-switch-btn.is-active:active {
  background: var(--fx-hub-surface) !important;
  color: var(--fx-ink, #0f172a) !important;
}

.fx-hub-switch-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 0;
  font-size: 24px;
  line-height: 1;
  background: transparent !important;
  box-shadow: none !important;
  transition: width 0.28s ease, height 0.28s ease, font-size 0.28s ease, opacity 0.15s ease, color 0.15s ease;
}

.fx-hub-switch-btn:not(.is-active) .fx-hub-switch-icon,
.fx-hub-switch-btn:not(.is-active) .fx-hub-switch-icon i,
.fx-hub-switch-btn:not(.is-active) .fx-hub-switch-icon i:before {
  color: #fff !important;
}

.fx-hub-switch-btn:not(.is-active) .fx-hub-switch-icon {
  width: 28px;
  height: 28px;
  font-size: 18px;
  opacity: 0.82;
}

.fx-hub-switch-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  transition: font-size 0.28s ease, font-weight 0.28s ease, opacity 0.15s ease, color 0.15s ease;
}

.fx-hub-switch-btn:not(.is-active) .fx-hub-switch-label {
  color: #fff !important;
  font-size: 10px;
  font-weight: 600;
}

.fx-hub-switch-btn.is-active .fx-hub-switch-icon {
  width: 42px;
  height: 42px;
  font-size: 32px;
  opacity: 1;
  background: transparent !important;
  color: var(--fx-ink, #0f172a) !important;
}

.fx-hub-switch-btn.is-active .fx-hub-switch-icon i,
.fx-hub-switch-btn.is-active .fx-hub-switch-icon i:before {
  color: var(--fx-ink, #0f172a) !important;
}

.fx-hub-switch-btn.is-active .fx-hub-switch-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--fx-ink, #0f172a) !important;
}

.fx-hub-switch-btn.is-active:focus-visible {
  outline: 2px solid rgba(15, 23, 42, 0.35);
  outline-offset: -2px;
}

.fx-hub-switch-desc {
  display: none;
}

.fx-hub-body {
  flex: 1;
  margin: 0;
  padding: 12px 14px 14px;
  border: none;
  border-radius: 0 0 5px 5px;
  background: var(--fx-hub-surface);
}

.fx-zone-intro {
  margin: 0 0 20px;
}

.fx-hub-panels {
  min-height: 0;
}

.fx-hub-panel {
  display: none;
  margin: 0;
}

.fx-hub-panel.is-active {
  display: block;
}

.easyfx-dashboard.fx-aurora .fx-hub-panel {
  opacity: 1;
  transform: none;
  animation: none;
}

.easyfx-dashboard.fx-aurora .fx-hub-panel.is-active,
.easyfx-dashboard.fx-aurora .fx-hub-panel.is-active .fx-reveal,
.easyfx-dashboard.fx-aurora .fx-hub-panel.is-active .fx-earn-reveal {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.fx-zone-head {
  margin-bottom: 10px;
}

.fx-play-hero-actions .fx-play-cta-disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.1) !important;
  color: #334155 !important;
  border: 1.5px solid rgba(15, 23, 42, 0.14) !important;
  box-shadow: none !important;
  opacity: 1;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-play-cta-disabled,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-play-cta-disabled:hover,
html.fx-dark .fx-play-hero-actions .fx-play-cta-disabled {
  background: rgba(148, 163, 184, 0.14) !important;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

.fx-zone-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--fx-ink, #0f172a);
  line-height: 1.2;
  margin-bottom: 4px;
}

.fx-zone-desc {
  font-size: 12px;
  color: var(--fx-muted, #64748b);
  line-height: 1.45;
  /* margin: 0; */
}

.fx-zone-desc strong {
  color: var(--fx-ink, #0f172a);
  font-weight: 700;
}

.fx-zone-head--play .fx-zone-title {
  color: #047857;
}

.fx-zone-head--trade .fx-zone-title {
  color: #4338ca;
}

.fx-zone-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 13px;
  margin-bottom: 12px;
  border-radius: var(--fx-radius, 5px);
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  background: var(--fx-card, #fff);
}

.fx-zone-balance--shared {
  position: relative;
  overflow: hidden;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 0;
  border-color: rgba(15, 23, 42, 0.1);
  background: var(--fx-card, #fff);
}

.fx-wallet-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 0;
}

.fx-wallet-stack .fx-zone-balance--shared {
  margin-top: 0;
}

.fx-wallet-stack--compact {
  margin-top: 0;
  margin-bottom: 12px;
}

.fx-zone-balance--main {
  border-color: rgba(15, 23, 42, 0.1);
}

.fx-zone-balance--starter {
  border-color: color-mix(in srgb, #f59e0b 28%, transparent);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(245, 158, 11, 0.08), transparent 55%),
    var(--fx-card, #fff);
}

/* Consolidated balance card (starter-wallet look) */
.fx-zone-balance--total {
  border-color: color-mix(in srgb, #f59e0b 28%, transparent);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(245, 158, 11, 0.08), transparent 55%),
    var(--fx-card, #fff);
}

.fx-zone-balance--total .fx-zone-balance-badge {
  background: color-mix(in srgb, #f59e0b 14%, transparent);
  color: #b45309;
}

.fx-zone-balance--total .fx-zone-balance-bg-icon,
.fx-zone-balance--total .fx-zone-balance-bg-icon i,
.fx-zone-balance--total .fx-zone-balance-bg-icon i:before {
  color: rgba(245, 158, 11, 0.1) !important;
}

.fx-wallet-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 0;
  padding: 10px 0 0;
  list-style: none;
  border-top: 1px dashed var(--fx-line, rgba(15, 23, 42, 0.1));
}

.fx-wallet-breakdown:not(:has(.fx-wallet-breakdown-row:not([hidden]))) {
  display: none;
}

.fx-wallet-breakdown-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fx-wallet-breakdown-row[hidden] {
  display: none;
}

.fx-wallet-breakdown-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fx-ink-soft, #64748b);
}

.fx-wallet-breakdown-row[data-wallet="starter"] .fx-wallet-breakdown-dot {
  background: #f59e0b;
}

.fx-wallet-breakdown-row[data-wallet="bonus"] .fx-wallet-breakdown-dot {
  background: var(--fx-indigo, #6366f1);
}

.fx-wallet-breakdown-label {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fx-ink, #0f172a);
}

.fx-wallet-breakdown-label small {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--fx-ink-soft, #64748b);
  white-space: nowrap;
}

.fx-wallet-breakdown-amount {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--fx-ink, #0f172a);
}

html.fx-dark .fx-wallet-breakdown {
  border-top-color: var(--fx-line, rgba(148, 163, 184, 0.18));
}

html.fx-dark .fx-wallet-breakdown-label,
html.fx-dark .fx-wallet-breakdown-amount {
  color: var(--fx-ink, #f1f5f9);
}

html.fx-dark .fx-wallet-breakdown-label small {
  color: var(--fx-ink-soft, #94a3b8);
}

.fx-zone-balance--starter .fx-zone-balance-badge {
  background: color-mix(in srgb, #f59e0b 14%, transparent);
  color: #b45309;
}

.fx-zone-balance--starter .fx-zone-balance-bg-icon {
  color: rgba(245, 158, 11, 0.1) !important;
}

.fx-zone-balance--starter .fx-zone-balance-bg-icon i,
.fx-zone-balance--starter .fx-zone-balance-bg-icon i:before {
  color: rgba(245, 158, 11, 0.1) !important;
}

.fx-zone-balance-bg-icon {
  position: absolute;
  top: 50%;
  right: -32px;
  z-index: 0;
  display: block;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-52%);
  font-size: 7rem;
  color: rgba(100, 116, 139, 0.08) !important;
}

.fx-zone-balance-bg-icon i,
.fx-zone-balance-bg-icon i:before {
  display: block;
  line-height: 1;
  color: rgba(100, 116, 139, 0.08) !important;
}

.fx-zone-balance--shared .fx-zone-balance-copy,
.fx-zone-balance--shared .fx-zone-balance-actions {
  position: relative;
  z-index: 1;
}

.fx-zone-balance--shared .fx-zone-balance-actions {
  flex-direction: row;
  width: 100%;
  gap: 8px;
  isolation: isolate;
}

.fx-zone-balance--shared .fx-zone-balance-btn {
  flex: 1;
  padding: 10px 12px;
}

.fx-zone-balance--play {
  border-color: rgba(16, 185, 129, 0.22);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(52, 211, 153, 0.04)), var(--fx-card, #fff);
}

.fx-zone-balance--trade {
  border-color: rgba(99, 102, 241, 0.22);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.04)), var(--fx-card, #fff);
}

.fx-zone-balance-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fx-muted, #64748b);
}

.fx-zone-balance-value {
  display: block;
  margin-top: 4px;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--fx-ink, #0f172a);
  line-height: 1.1;
}

.fx-zone-balance-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--fx-muted, #64748b);
  line-height: 1.35;
}

.fx-zone-balance-copy {
  flex: 1;
  min-width: 0;
}

.fx-zone-balance-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.easyfx-dashboard .fx-zone-balance-btn,
.fx-zone-balance-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0 !important;
  padding: 8px 14px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.12)) !important;
  border-radius: var(--fx-radius, 5px) !important;
  background: #fff !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  color: var(--fx-ink, #0f172a) !important;
  text-decoration: none;
  cursor: pointer;
  transform: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.easyfx-dashboard .fx-zone-balance-btn:hover,
.easyfx-dashboard .fx-zone-balance-btn:focus,
.easyfx-dashboard .fx-zone-balance-btn:active,
.fx-zone-balance-btn:hover,
.fx-zone-balance-btn:focus,
.fx-zone-balance-btn:active {
  background: rgba(15, 23, 42, 0.05) !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  color: var(--fx-ink, #0f172a) !important;
  box-shadow: none !important;
  transform: none !important;
}

.fx-zone-balance-btn--trade {
  border-color: rgba(99, 102, 241, 0.32) !important;
  background: #eef2ff !important;
  color: #4338ca !important;
}

.easyfx-dashboard .fx-zone-balance-btn--trade:hover,
.easyfx-dashboard .fx-zone-balance-btn--trade:focus,
.easyfx-dashboard .fx-zone-balance-btn--trade:active {
  background: #e0e7ff !important;
  border-color: rgba(99, 102, 241, 0.42) !important;
  color: #3730a3 !important;
}

html.fx-dark .fx-zone-balance-btn {
  background: var(--fx-card) !important;
  border-color: var(--fx-line) !important;
  color: var(--fx-ink) !important;
}

html.fx-dark .fx-zone-balance-btn--trade {
  background: #1c2138 !important;
  border-color: rgba(99, 102, 241, 0.38) !important;
  color: #a5b4fc !important;
}

html.fx-dark .easyfx-dashboard .fx-zone-balance-btn--trade:hover,
html.fx-dark .easyfx-dashboard .fx-zone-balance-btn--trade:focus,
html.fx-dark .easyfx-dashboard .fx-zone-balance-btn--trade:active,
html.fx-dark .fx-zone-balance-btn--trade:hover,
html.fx-dark .fx-zone-balance-btn--trade:focus,
html.fx-dark .fx-zone-balance-btn--trade:active {
  background: #242a46 !important;
  border-color: rgba(99, 102, 241, 0.48) !important;
  color: #c7d2fe !important;
}

html.fx-dark .fx-zone-balance--shared {
  background: var(--fx-card);
}

html.fx-dark .fx-zone-balance-bg-icon,
html.fx-dark .fx-zone-balance-bg-icon i,
html.fx-dark .fx-zone-balance-bg-icon i:before {
  color: rgba(148, 163, 184, 0.07) !important;
}

.fx-owned-boards-head {
  margin-bottom: 0;
}

.fx-hub-panel--play .fx-owned-board-list {
  margin: 12px 0;
}

.fx-owned-board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.fx-owned-board-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 12px;
  border-radius: var(--fx-radius, 10px);
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  background: #fff;
  box-shadow: var(--fx-shadow-sm, 0 8px 18px -14px rgba(30, 41, 89, 0.22));
}

.fx-owned-board-item.is-active {
  border-color: color-mix(in srgb, var(--board-accent, #10b981) 42%, rgba(15, 23, 42, 0.08));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--board-accent, #10b981) 10%, transparent), transparent),
    #fff;
}

.fx-owned-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.fx-owned-board-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
  line-height: 1.2;
  min-width: 0;
}

.fx-owned-board-plays {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--fx-muted, #64748b);
  background: rgba(15, 23, 42, 0.06);
}

.fx-owned-board-plays.is-ready {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.fx-owned-board-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--fx-muted, #64748b);
  line-height: 1.35;
}

.fx-owned-board-progress {
  display: block;
  margin-top: 2px;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.fx-owned-board-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--board-accent, #10b981), color-mix(in srgb, var(--board-accent, #10b981) 65%, #fff));
}

.fx-owned-board-switch.fx-trade-btn {
  margin-top: 4px;
  min-height: 44px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: var(--fx-radius, 5px) !important;
  background: #fff !important;
  color: #4338ca !important;
  border: 1.5px solid rgba(79, 70, 229, 0.35) !important;
  box-shadow: none !important;
}

.fx-owned-board-switch.fx-trade-btn:hover,
.fx-owned-board-switch.fx-trade-btn:focus-visible {
  background: rgba(99, 102, 241, 0.08) !important;
  color: #3730a3 !important;
  border-color: rgba(79, 70, 229, 0.5) !important;
  transform: none !important;
}

.easyfx-dashboard.fx-aurora .fx-owned-board-switch.fx-trade-btn {
  background: #fff !important;
  color: #4338ca !important;
  border: 1.5px solid rgba(79, 70, 229, 0.32) !important;
  box-shadow: none !important;
}

.easyfx-dashboard.fx-aurora .fx-owned-board-switch.fx-trade-btn:hover,
.easyfx-dashboard.fx-aurora .fx-owned-board-switch.fx-trade-btn:focus-visible {
  background: rgba(99, 102, 241, 0.1) !important;
  color: #3730a3 !important;
  border-color: rgba(79, 70, 229, 0.48) !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-owned-board-switch.fx-trade-btn {
  background: rgba(99, 102, 241, 0.12) !important;
  color: #a5b4fc !important;
  border-color: rgba(129, 140, 248, 0.32) !important;
  box-shadow: none !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-owned-board-switch.fx-trade-btn:hover,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-owned-board-switch.fx-trade-btn:focus-visible {
  background: rgba(99, 102, 241, 0.18) !important;
  color: #c7d2fe !important;
  border-color: rgba(129, 140, 248, 0.45) !important;
}

html.fx-dark .fx-owned-board-item {
  background: var(--fx-card);
}

html.fx-dark .fx-owned-board-item.is-active {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--board-accent, #10b981) 14%, transparent), transparent),
    var(--fx-card);
}

html.fx-dark .fx-owned-board-plays {
  color: var(--fx-muted);
  background: rgba(255, 255, 255, 0.06);
}

html.fx-dark .fx-owned-board-plays.is-ready {
  color: #34d399;
  background: rgba(52, 211, 153, 0.14);
}

.fx-hub-panel .fx-play-hero {
  margin-top: 0;
  background:
    linear-gradient(145deg, rgba(16, 185, 129, 0.14), rgba(52, 211, 153, 0.1)),
    var(--fx-card, #fff);
  border-color: rgba(16, 185, 129, 0.22);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.12);
}

.fx-hub-panel .fx-play-hero-glow {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28), transparent 70%);
}

.fx-hub-panel .fx-play-cta-secondary {
  color: #065f46 !important;
  background: #fff !important;
  border-color: rgba(5, 150, 105, 0.42) !important;
}

.fx-hub-panel .fx-trading-compact {
  margin-top: 0;
}

.fx-trading-compact-head h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-trading-guest {
  padding: 16px;
  border-radius: var(--fx-radius, 5px);
  border: 1px dashed rgba(99, 102, 241, 0.28);
  background: rgba(99, 102, 241, 0.06);
}

.fx-trading-guest-copy {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--fx-muted, #64748b);
  line-height: 1.45;
}

.fx-trading-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 16px 14px 14px;
  border-radius: var(--fx-radius, 5px);
  border: 1px solid rgba(99, 102, 241, 0.22);
  background:
    linear-gradient(145deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.1)),
    var(--fx-card, #fff);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12);
}

.fx-trading-hero-glow {
  position: absolute;
  top: -30px;
  right: -20px;
  width: 140px;
  height: 140px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 70%);
}

.fx-trading-hero-pair {
  display: block;
  position: relative;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #4338ca;
}

.easyfx-dashboard .fx-trading-hero-cta,
.fx-trading-hero-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px !important;
  margin: 0 0 12px;
  padding: 14px 16px !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: calc(var(--fx-radius, 5px) + 2px) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%),
    linear-gradient(145deg, #0f5c52 0%, #0b4a42 48%, #083832 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 28px -14px rgba(6, 78, 59, 0.55) !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #d1fae5 !important;
  text-decoration: none;
  cursor: pointer;
  transform: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.fx-trading-hero-cta::before {
  content: '';
  position: absolute;
  top: -55%;
  right: -8%;
  width: 52%;
  height: 160%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.16), transparent 68%);
  pointer-events: none;
}

.fx-trading-hero-cta-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fx-trading-hero-cta--live .fx-trading-hero-cta-icon::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  border: 2px solid #0f302b;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45);
  animation: fx-trading-live-pulse 2.2s ease-in-out infinite;
}

.fx-trading-hero-cta-icon i {
  font-size: 15px;
  line-height: 1;
  color: #a7f3d0;
}

.fx-trading-hero-cta-label {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.fx-trading-hero-cta-arrow {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  font-size: 12px;
  opacity: 0.55;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.easyfx-dashboard .fx-trading-hero-cta:hover,
.easyfx-dashboard .fx-trading-hero-cta:focus,
.fx-trading-hero-cta:hover,
.fx-trading-hero-cta:focus {
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 34px -14px rgba(6, 78, 59, 0.62) !important;
  color: #ecfdf5 !important;
  transform: translateY(-1px) !important;
}

.fx-trading-start-wrap {
  scroll-margin-top: calc(var(--fx-topbar-h, 56px) + 20px);
  overflow: visible;
}

#trade_balance_section {
  scroll-margin-top: calc(var(--fx-topbar-h, 56px) + 72px);
}

/* 3D page-turn stage: spine = left hinge (rotateY), sheet = lift/curl (rotateX). */
.fx-trading-hero-cta-stage {
  position: relative;
  z-index: 1;
  overflow: visible;
  perspective: 820px;
  perspective-origin: 8% 62%;
  transform-style: preserve-3d;
}

.fx-trading-hero-cta-floor {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -10px;
  height: 18px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(6, 78, 59, 0.42), transparent 72%);
  filter: blur(6px);
  transform: translateZ(-40px);
}

.fx-trading-hero-cta-spine {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transform-origin: left center;
  will-change: transform;
}

.fx-trading-hero-cta-sheet {
  position: relative;
  transform-style: preserve-3d;
  transform-origin: left bottom;
  will-change: transform;
}

.fx-trading-hero-cta-sheet::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: calc(var(--fx-radius, 5px) + 2px);
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(118deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.12) 28%, transparent 58%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, transparent 36%);
  transform: translateZ(2px);
}

.fx-trading-hero-cta-aura {
  position: absolute;
  inset: -14px -12px;
  border-radius: calc(var(--fx-radius, 5px) + 10px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(ellipse at 18% 58%, rgba(52, 211, 153, 0.55), transparent 72%);
  filter: blur(14px);
  transform: translateZ(-24px);
}

.fx-trading-hero-cta-stage .fx-trading-hero-cta {
  position: relative;
  z-index: 1;
  backface-visibility: hidden;
  transform: translateZ(1px);
}

.fx-trading-hero-cta-stage--spotlight .fx-trading-hero-cta-spine {
  animation: fx-trading-cta-page-spine 1.85s cubic-bezier(0.38, 0.04, 0.22, 1) 1;
}

.fx-trading-hero-cta-stage--spotlight .fx-trading-hero-cta-sheet {
  animation: fx-trading-cta-page-sheet 1.85s cubic-bezier(0.38, 0.04, 0.22, 1) 1;
}

.fx-trading-hero-cta-stage--spotlight .fx-trading-hero-cta-sheet::after {
  animation: fx-trading-cta-page-shade 1.85s ease-in-out 1;
}

.fx-trading-hero-cta-stage--spotlight .fx-trading-hero-cta-floor {
  animation: fx-trading-cta-page-floor 1.85s ease-in-out 1;
}

.fx-trading-hero-cta-stage--spotlight .fx-trading-hero-cta {
  border-color: rgba(52, 211, 153, 0.68) !important;
  animation: fx-trading-cta-card-glow 1.85s ease-in-out 1;
}

.fx-trading-hero-cta-stage--spotlight .fx-trading-hero-cta-aura {
  animation: fx-trading-cta-aura-flip 1.85s ease-in-out 1;
}

/* Left spine: right edge sweeps toward you (page turning left). */
@keyframes fx-trading-cta-page-spine {
  0%, 100% {
    transform: rotateY(0deg);
  }
  12% {
    transform: rotateY(-10deg);
  }
  34% {
    transform: rotateY(-48deg);
  }
  50% {
    transform: rotateY(-86deg);
  }
  58% {
    transform: rotateY(-96deg);
  }
  76% {
    transform: rotateY(-32deg);
  }
  90% {
    transform: rotateY(-8deg);
  }
}

/* Sheet lift: top edge rises toward reader — this is what makes it feel like a book page. */
@keyframes fx-trading-cta-page-sheet {
  0%, 100% {
    transform: rotateX(0deg) translateZ(0);
  }
  12% {
    transform: rotateX(-14deg) translateZ(10px);
  }
  34% {
    transform: rotateX(-32deg) translateZ(28px);
  }
  50% {
    transform: rotateX(-38deg) translateZ(34px);
  }
  58% {
    transform: rotateX(-36deg) translateZ(32px);
  }
  76% {
    transform: rotateX(-14deg) translateZ(10px);
  }
  90% {
    transform: rotateX(-4deg) translateZ(2px);
  }
}

@keyframes fx-trading-cta-page-shade {
  0%, 100% {
    opacity: 0;
  }
  28%, 72% {
    opacity: 0.62;
  }
  54% {
    opacity: 0.88;
  }
}

@keyframes fx-trading-cta-page-floor {
  0%, 100% {
    opacity: 0;
    transform: translateZ(-40px) scale(0.92);
  }
  34%, 66% {
    opacity: 0.72;
    transform: translateZ(-40px) scale(1.08);
  }
  54% {
    opacity: 0.85;
    transform: translateZ(-40px) scale(1.14);
  }
}

@keyframes fx-trading-cta-card-glow {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 14px 28px -14px rgba(6, 78, 59, 0.55) !important;
  }
  46%, 54% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      0 0 36px rgba(52, 211, 153, 0.42),
      0 24px 48px -14px rgba(6, 78, 59, 0.82) !important;
  }
}

@keyframes fx-trading-cta-aura-flip {
  0%, 100% {
    opacity: 0;
    transform: translateZ(-20px) scale(0.96);
  }
  40%, 60% {
    opacity: 1;
    transform: translateZ(4px) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-trading-hero-cta-stage--spotlight .fx-trading-hero-cta-spine,
  .fx-trading-hero-cta-stage--spotlight .fx-trading-hero-cta-sheet,
  .fx-trading-hero-cta-stage--spotlight .fx-trading-hero-cta-sheet::after,
  .fx-trading-hero-cta-stage--spotlight .fx-trading-hero-cta-floor,
  .fx-trading-hero-cta-stage--spotlight .fx-trading-hero-cta,
  .fx-trading-hero-cta-stage--spotlight .fx-trading-hero-cta-aura {
    animation: none;
  }

  .fx-trading-hero-cta-stage--spotlight .fx-trading-hero-cta {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 0 0 4px rgba(52, 211, 153, 0.24),
      0 18px 34px -14px rgba(6, 78, 59, 0.62) !important;
  }
}

.fx-trading-hero-cta:hover .fx-trading-hero-cta-arrow,
.fx-trading-hero-cta:focus .fx-trading-hero-cta-arrow {
  opacity: 0.85;
  transform: translateX(2px);
}

.easyfx-dashboard .fx-trading-hero-cta:active,
.fx-trading-hero-cta:active {
  transform: translateY(0) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px -12px rgba(6, 78, 59, 0.5) !important;
}

html.fx-dark .fx-trading-hero-cta {
  border-color: rgba(52, 211, 153, 0.14) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%),
    linear-gradient(145deg, #0c3f39 0%, #082f2b 52%, #061f1c 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 32px -16px rgba(0, 0, 0, 0.55) !important;
  color: #a7f3d0 !important;
}

html.fx-dark .fx-trading-hero-cta::before {
  background: radial-gradient(circle, rgba(45, 212, 191, 0.12), transparent 68%);
}

html.fx-dark .fx-trading-hero-cta-icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(52, 211, 153, 0.16);
}

html.fx-dark .easyfx-dashboard .fx-trading-hero-cta:hover,
html.fx-dark .easyfx-dashboard .fx-trading-hero-cta:focus,
html.fx-dark .fx-trading-hero-cta:hover,
html.fx-dark .fx-trading-hero-cta:focus {
  border-color: rgba(52, 211, 153, 0.22) !important;
  color: #d1fae5 !important;
}

.fx-trading-hero-cta--live {
  border-color: rgba(52, 211, 153, 0.22) !important;
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.12) 0%, transparent 50%),
    linear-gradient(145deg, #123c35 0%, #0f302b 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(52, 211, 153, 0.08),
    0 12px 24px -14px rgba(6, 78, 59, 0.45) !important;
  color: #6ee7b7 !important;
}

.fx-trading-hero-cta--live .fx-trading-hero-cta-icon {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.22);
}

.fx-trading-hero-cta--live .fx-trading-hero-cta-icon i {
  color: #6ee7b7;
}

@keyframes fx-trading-live-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.35);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
    opacity: 0.75;
  }
}

.easyfx-dashboard .fx-trading-hero-cta--live:hover,
.easyfx-dashboard .fx-trading-hero-cta--live:focus,
.fx-trading-hero-cta--live:hover,
.fx-trading-hero-cta--live:focus {
  border-color: rgba(52, 211, 153, 0.3) !important;
  color: #a7f3d0 !important;
}

html.fx-dark .fx-trading-hero-cta--live {
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.1) 0%, transparent 50%),
    linear-gradient(145deg, #0f2f2a 0%, #0a221f 100%) !important;
  color: #6ee7b7 !important;
}

.fx-trading-guest-actions {
  margin: 0 0 10px;
}

.fx-trading-calc {
  padding: 14px;
}

.fx-trading-calc .fx-card-head {
  margin-bottom: 14px;
}

.fx-trading-calc-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fx-muted, #64748b);
}

.fx-trading-calc-input {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.12));
  border-radius: 10px;
  background: var(--fx-bg, #f8fafc);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.fx-trading-calc-input.is-focused {
  border-color: var(--fx-indigo, #6366f1);
  background: var(--fx-card, #fff);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.fx-trading-calc-prefix {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--fx-muted, #64748b);
  line-height: 1;
  user-select: none;
}

.fx-trading-calc-input .fx-trading-calc-field,
.fx-trading-calc-input input.fx-trading-calc-field {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: auto;
  margin: 0 !important;
  padding: 12px 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  line-height: 1.2 !important;
  color: var(--fx-ink, #0f172a) !important;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

.fx-trading-calc-input .fx-trading-calc-field:focus,
.fx-trading-calc-input input.fx-trading-calc-field:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}

.fx-trading-calc-input .fx-trading-calc-field::placeholder {
  color: var(--fx-muted, #94a3b8) !important;
  font-weight: 500 !important;
  font-size: 16px !important;
}

.fx-trading-calc-input .fx-trading-calc-field::-webkit-outer-spin-button,
.fx-trading-calc-input .fx-trading-calc-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.fx-trading-calc-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.fx-trading-calc-preset {
  min-height: 34px;
  padding: 0 4px !important;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.1)) !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--fx-muted, #64748b) !important;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.fx-trading-calc-preset:hover {
  border-color: rgba(99, 102, 241, 0.3) !important;
  color: var(--fx-indigo, #6366f1) !important;
  transform: none !important;
}

.fx-trading-calc-preset.is-active {
  border-color: var(--fx-indigo, #6366f1) !important;
  color: var(--fx-indigo, #6366f1) !important;
  background: rgba(99, 102, 241, 0.08) !important;
}

.fx-trading-calc-input--pin {
  gap: 10px;
  padding-right: 12px;
}

.fx-trading-calc-pin-icon {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
  color: var(--fx-muted, #64748b);
  user-select: none;
}

.fx-trading-calc-input--pin .fx-trading-calc-field--pin {
  letter-spacing: 0.12em;
  font-size: 17px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
}

.fx-trading-calc-input--pin .fx-trading-calc-field--pin::placeholder {
  letter-spacing: 0.1em;
  font-size: 15px !important;
  font-weight: 500 !important;
}

.fx-trading-calc-input--pin.is-complete {
  border-color: color-mix(in srgb, var(--fx-emerald, #10b981) 55%, transparent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.fx-trading-calc-input--pin.is-complete .fx-trading-calc-pin-icon {
  color: var(--fx-emerald, #10b981);
}

.fx-trading-calc-deposit {
  display: none;
  margin-top: 12px;
  min-height: 48px !important;
  border-radius: 10px !important;
}

.fx-trading-calc-deposit.is-visible {
  display: flex;
}

.fx-trading-calc-outcome {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  text-align: center;
}

.fx-trading-calc-outcome-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--fx-muted, #64748b);
}

.fx-trading-calc-outcome-value {
  margin: 4px 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.fx-trading-calc-outcome-value #daily-earning {
  color: #059669;
}

.fx-trading-calc-outcome-sep {
  margin: 0 2px;
  font-weight: 600;
  color: var(--fx-muted, #64748b);
}

.fx-trading-calc-outcome-note {
  display: block;
  font-size: 11px;
  color: var(--fx-muted, #64748b);
}

.fx-trading-calc-outcome-note strong {
  font-weight: 600;
  color: var(--fx-ink-soft, #475569);
}

.easyfx-dashboard.fx-aurora .fx-trading-calc-input .fx-trading-calc-field,
.easyfx-dashboard.fx-aurora .fx-trading-calc-input input.fx-trading-calc-field {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--fx-ink) !important;
}

.easyfx-dashboard.fx-aurora .fx-trading-calc-input .fx-trading-calc-field::placeholder {
  color: var(--fx-muted) !important;
}

html.fx-dark .fx-trading-calc-input {
  background: #0f141c;
  border-color: var(--fx-line) !important;
}

html.fx-dark .fx-trading-calc-input.is-focused {
  background: #121820;
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.16);
}

html.fx-dark .fx-trading-calc-prefix {
  color: #94a3b8;
}

html.fx-dark .fx-trading-calc-preset {
  border-color: var(--fx-line) !important;
  color: #94a3b8 !important;
}

html.fx-dark .fx-trading-calc-preset.is-active {
  border-color: #818cf8 !important;
  color: #c7d2fe !important;
  background: rgba(99, 102, 241, 0.14) !important;
}

html.fx-dark .fx-trading-calc-outcome-value #daily-earning {
  color: #34d399;
}

.fx-hub-panel--trade .fx-play-cta-secondary {
  color: #4338ca !important;
  background: #fff !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
}

.fx-hub-panel--trade .fx-play-cta-secondary:hover {
  background: #eef2ff !important;
  color: #3730a3 !important;
}

html.fx-dark .fx-play-hero-actions .fx-play-cta-secondary {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #065f46 !important;
}

html.fx-dark .fx-hub-panel--trade .fx-play-cta-secondary {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #4338ca !important;
}

html.fx-dark .fx-trading-hero {
  background: var(--fx-card);
  border-color: var(--fx-line);
}

html.fx-dark .fx-trading-hero-pair {
  color: var(--fx-ink);
}

.fx-market-row--static {
  cursor: default;
  text-decoration: none;
  color: inherit;
}

.fx-market-row--static:active {
  transform: none;
}

.easyfx-dashboard.fx-aurora .fx-action-hub .fx-action-grid {
  border-bottom: 0;
}

html.fx-dark .fx-hub {
  --fx-hub-surface: var(--fx-card);
  --fx-hub-track: rgba(255, 255, 255, 0.05);
  border-color: var(--fx-line);
  box-shadow: none;
}

html.fx-dark .fx-hub-earn {
  border-bottom-color: var(--fx-line);
}

html.fx-dark .fx-hub-earn-kicker {
  color: var(--fx-muted);
}

html.fx-dark .fx-hub-earn-title {
  color: var(--fx-muted);
}

html.fx-dark .fx-hub-earn-bit strong {
  color: var(--fx-ink);
}

html.fx-dark .fx-hub-earn-bit.is-current strong {
  color: #6ee7b7;
}

html.fx-dark .fx-hub-earn--trade .fx-hub-earn-bit.is-current strong {
  color: #c7d2fe;
}

html.fx-dark .fx-hub-earn-track-item {
  background: rgba(148, 163, 184, 0.28);
}

html.fx-dark .fx-hub-switch {
  background: #1a2332;
}

html.fx-dark .fx-hub-switch--pinned {
  background: #1a2332;
  border-bottom-color: var(--fx-line);
}

html.fx-dark .fx-hub,
html.fx-dark .fx-hub-body,
html.fx-dark .fx-zone-balance {
  background: var(--fx-card);
}

html.fx-dark .fx-hub-switch-btn:not(.is-active),
html.fx-dark .fx-hub-switch-btn:not(.is-active):hover,
html.fx-dark .fx-hub-switch-btn:not(.is-active):focus,
html.fx-dark .fx-hub-switch-btn:not(.is-active):active {
  background: #1a2332 !important;
}

html.fx-dark .fx-hub-switch-btn:not(.is-active):hover {
  background: #212d40 !important;
}

html.fx-dark .fx-hub-switch-btn.is-active,
html.fx-dark .fx-hub-switch-btn.is-active:hover,
html.fx-dark .fx-hub-switch-btn.is-active:focus,
html.fx-dark .fx-hub-switch-btn.is-active:active {
  background: var(--fx-hub-surface) !important;
  color: var(--fx-ink) !important;
}

html.fx-dark .fx-hub-switch-btn:not(.is-active) .fx-hub-switch-icon,
html.fx-dark .fx-hub-switch-btn:not(.is-active) .fx-hub-switch-icon i,
html.fx-dark .fx-hub-switch-btn:not(.is-active) .fx-hub-switch-icon i:before,
html.fx-dark .fx-hub-switch-btn:not(.is-active) .fx-hub-switch-label {
  color: #fff !important;
  background: transparent !important;
}

html.fx-dark .fx-hub-switch-btn.is-active .fx-hub-switch-icon,
html.fx-dark .fx-hub-switch-btn.is-active .fx-hub-switch-icon i,
html.fx-dark .fx-hub-switch-btn.is-active .fx-hub-switch-icon i:before,
html.fx-dark .fx-hub-switch-btn.is-active .fx-hub-switch-label {
  color: var(--fx-ink) !important;
  background: transparent !important;
}

html.fx-dark .fx-hub-switch-btn.is-active:focus-visible {
  outline-color: rgba(255, 255, 255, 0.35);
}

html.fx-dark .fx-zone-head--play .fx-zone-title {
  color: #34d399;
}

html.fx-dark .fx-zone-head--trade .fx-zone-title {
  color: #a5b4fc;
}

html.fx-dark .fx-zone-title,
html.fx-dark .fx-zone-balance-value,
html.fx-dark .fx-zone-desc strong {
  color: var(--fx-ink);
}

/* Deposit method tabs */
.fx-deposit-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.fx-deposit-tab {
  padding: 12px 14px;
  border-radius: var(--fx-radius, 5px);
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.1));
  background: var(--fx-card, #fff);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--fx-muted, #64748b);
  cursor: pointer;
  text-align: left;
}

.fx-deposit-tab small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
  opacity: 0.85;
}

.fx-deposit-tab.is-active {
  border-color: var(--fx-indigo, #6366f1);
  background: rgba(99, 102, 241, 0.08);
  color: var(--fx-indigo, #6366f1);
}

.fx-deposit-panel {
  display: none;
}

.fx-deposit-panel.is-active {
  display: block;
}

.fx-balance-available {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: var(--fx-radius, 5px);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.fx-balance-available span {
  font-size: 12px;
  color: var(--fx-muted, #64748b);
}

.fx-balance-available strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--fx-indigo, #6366f1);
}

html.fx-dark .fx-deposit-tab {
  background: var(--fx-card);
  border-color: var(--fx-line);
}

/* =====================================================================
   DEPOSIT FLOW v2  ·  themed entirely via aurora variables (light + dark)
   Reusable sub-page header + deposit / voucher / history components.
   Matches the upgrade modal + drawer design language. No hardcoded
   theme colors, so light/dark is automatic.
   ===================================================================== */

/* ── Reusable sub-page header ── */
.fx-subhead {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--app-width, 430px);
  height: 58px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--fx-bg, #eef1fb) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--fx-line, rgba(15, 23, 42, 0.07));
}

.fx-subhead-back {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.1));
  background: var(--fx-card, #fff);
  color: var(--fx-ink, #0f172a);
  box-shadow: var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.26));
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}

.fx-subhead-back:hover {
  background: color-mix(in srgb, var(--fx-ink, #0f172a) 5%, var(--fx-card, #fff));
}

.fx-subhead-back:active {
  transform: scale(0.94);
}

.fx-subhead-back svg {
  width: 19px;
  height: 19px;
}

.fx-subhead-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fx-ink, #0f172a);
}

.fx-subhead-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-shrink: 0;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fx-muted, #64748b);
  text-decoration: none;
  white-space: nowrap;
}

.fx-subhead-action i {
  font-size: 11px;
}

.fx-subhead-spacer {
  width: 38px;
  flex-shrink: 0;
}

/* ── Method selector (segmented tiles) ── */
.fx-dep-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}

.easyfx-dashboard .fx-dep-seg-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 0;
  width: 100%;
  padding: 12px 8px;
  border-radius: var(--fx-radius, 5px) !important;
  border: 1.5px solid var(--fx-line, rgba(15, 23, 42, 0.1)) !important;
  background: var(--fx-card, #fff) !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a) !important;
  text-align: center;
  cursor: pointer;
  box-shadow: none !important;
  transform: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.easyfx-dashboard .fx-dep-seg-btn:hover {
  color: var(--fx-ink, #0f172a) !important;
  background: var(--fx-card, #fff) !important;
  transform: none;
  box-shadow: none !important;
}

.fx-dep-seg-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--fx-radius, 5px);
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

.fx-dep-seg-icon i,
.fx-dep-seg-icon i:before {
  color: #fff !important;
}

.fx-dep-seg-btn--balance .fx-dep-seg-icon {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 8px 16px -8px rgba(99, 102, 241, 0.75);
}

.fx-dep-seg-btn--voucher .fx-dep-seg-icon {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 8px 16px -8px rgba(16, 185, 129, 0.75);
}

.fx-dep-seg-label {
  display: block;
  line-height: 1.2;
}

.easyfx-dashboard .fx-dep-seg-btn small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--fx-muted, #64748b) !important;
}

.easyfx-dashboard .fx-dep-seg-btn.is-active {
  border-color: var(--fx-indigo, #6366f1) !important;
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 9%, var(--fx-card, #fff)) !important;
  box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--fx-indigo, #6366f1) 70%, transparent) !important;
  color: var(--fx-ink, #0f172a) !important;
}

.easyfx-dashboard .fx-dep-seg-btn.is-active:hover {
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 9%, var(--fx-card, #fff)) !important;
  color: var(--fx-ink, #0f172a) !important;
}

.easyfx-dashboard .fx-dep-seg-btn.is-active small {
  color: var(--fx-muted, #64748b) !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-dep-seg-btn,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-dep-seg-btn:hover,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-dep-seg-btn.is-active,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-dep-seg-btn.is-active:hover {
  color: var(--fx-ink) !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-dep-seg-btn small,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-dep-seg-btn.is-active small {
  color: var(--fx-muted) !important;
}

/* ── Panels ── */
.fx-dep-panel {
  display: none;
}

.fx-dep-panel.is-active {
  display: block;
}

.fx-dep-panel.fx-trading-calc {
  padding: 14px;
}

.fx-dep-panel.fx-trading-calc .fx-zone-balance {
  margin-bottom: 16px;
}

.fx-dep-panel.fx-trading-calc .fx-zone-balance-value {
  font-size: 1.75rem;
}

.fx-dep-panel.fx-trading-calc .fx-dep-submit {
  margin-top: 16px;
}

.fx-trading-calc-input.is-shake {
  animation: fx-dep-shake 0.4s ease;
}

.easyfx-dashboard .fx-dep-panel.fx-trading-calc .fx-dep-submit.fx-trade-btn,
.easyfx-dashboard .fx-dep-panel.fx-trading-calc .fx-dep-submit.fx-trade-btn:hover,
.easyfx-dashboard .fx-dep-panel.fx-trading-calc .fx-dep-submit.fx-trade-btn:focus,
.easyfx-dashboard .fx-dep-panel.fx-trading-calc .fx-dep-submit.fx-trade-btn:active {
  margin-top: 16px !important;
  min-height: 48px !important;
  border: none !important;
  border-radius: 10px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  box-shadow: none !important;
  transform: none !important;
  text-shadow: none !important;
}

.easyfx-dashboard .fx-dep-panel.fx-trading-calc .fx-dep-submit.fx-trade-btn:hover {
  background: #1d4ed8 !important;
}

html.fx-dark .easyfx-dashboard .fx-dep-panel.fx-trading-calc .fx-dep-submit.fx-trade-btn,
html.fx-dark .easyfx-dashboard .fx-dep-panel.fx-trading-calc .fx-dep-submit.fx-trade-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* ── Provider badge ── */
.fx-dep-provider {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--fx-indigo, #6366f1) 22%, transparent);
  font-size: 12px;
  font-weight: 700;
  color: var(--fx-indigo, #6366f1);
}

.fx-dep-provider i {
  font-size: 13px;
}

/* ── Available balance pill ── */
.fx-dep-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 8%, var(--fx-card, #fff));
  border: 1px solid color-mix(in srgb, var(--fx-indigo, #6366f1) 18%, transparent);
}

.fx-dep-balance-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fx-muted, #64748b);
}

.fx-dep-balance-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

/* ── Amount field ── */
.fx-dep-field {
  margin-bottom: 4px;
}

.fx-dep-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fx-muted, #64748b);
}

.fx-dep-amount {
  display: flex;
  align-items: stretch;
  min-height: 62px;
  border: 1.5px solid var(--fx-line, rgba(15, 23, 42, 0.12));
  border-radius: 16px;
  background: var(--fx-bg, #f1f5f9);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.fx-dep-amount.is-focused {
  border-color: var(--fx-indigo, #6366f1);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fx-indigo, #6366f1) 14%, transparent);
}

.fx-dep-amount.is-shake,
.fx-dep-pin.is-shake {
  animation: fx-dep-shake 0.4s ease;
}

@keyframes fx-dep-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.fx-dep-amount-cur {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--fx-indigo, #6366f1);
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 10%, transparent);
  border-right: 1px solid var(--fx-line, rgba(15, 23, 42, 0.1));
}

.fx-dep-amount-inner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0 16px;
}

.fx-dep-amount-prefix {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--fx-muted, #94a3b8);
}

.easyfx-dashboard .fx-dep-amount-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 16px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: inherit;
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1 !important;
  color: var(--fx-ink, #0f172a) !important;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

.easyfx-dashboard .fx-dep-amount-input:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.easyfx-dashboard .fx-dep-amount-input::placeholder {
  color: var(--fx-muted, #94a3b8) !important;
  opacity: 0.6;
  font-weight: 600 !important;
}

.easyfx-dashboard .fx-dep-amount-input::-webkit-outer-spin-button,
.easyfx-dashboard .fx-dep-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ── Amount preset chips ── */
.fx-dep-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.fx-dep-chip {
  min-height: 38px;
  padding: 0 6px !important;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.12)) !important;
  border-radius: 11px !important;
  background: var(--fx-card, #fff) !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: var(--fx-ink-soft, #475569) !important;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.fx-dep-chip:hover {
  border-color: var(--fx-indigo, #6366f1) !important;
  color: var(--fx-indigo, #6366f1) !important;
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 7%, var(--fx-card, #fff)) !important;
  transform: none !important;
}

.fx-dep-chip.is-active {
  border-color: var(--fx-indigo, #6366f1) !important;
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 14%, transparent) !important;
  color: var(--fx-indigo, #6366f1) !important;
}

/* ── Voucher PIN field ── */
.fx-dep-pin-wrap {
  margin-top: 18px;
}

.fx-dep-pin {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
  border: 1.5px solid var(--fx-line, rgba(15, 23, 42, 0.12));
  border-radius: 16px;
  background: var(--fx-bg, #f1f5f9);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.fx-dep-pin.is-focused {
  border-color: var(--fx-indigo, #6366f1);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fx-indigo, #6366f1) 14%, transparent);
}

.fx-dep-pin.is-complete {
  border-color: color-mix(in srgb, var(--fx-emerald, #10b981) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fx-emerald, #10b981) 14%, transparent);
}

.fx-dep-pin-icon {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--fx-muted, #94a3b8);
}

.easyfx-dashboard .fx-dep-pin-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 16px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: inherit;
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  color: var(--fx-ink, #0f172a) !important;
  font-variant-numeric: tabular-nums;
}

.easyfx-dashboard .fx-dep-pin-input:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.easyfx-dashboard .fx-dep-pin-input::placeholder {
  color: var(--fx-muted, #94a3b8) !important;
  opacity: 0.5;
  letter-spacing: 0.1em;
  font-weight: 500 !important;
}

.fx-dep-pin-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.fx-dep-pin-hint {
  font-size: 11px;
  color: var(--fx-muted, #64748b);
}

.fx-dep-pin-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--fx-indigo, #6366f1);
  font-variant-numeric: tabular-nums;
}

/* ── Footnote + submit ── */
.fx-dep-foot {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--fx-muted, #64748b);
}

.fx-dep-submit {
  margin-top: 18px;
}

.fx-dep-submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ── Verification status (recharge-confirm) ── */
.fx-dep-status {
  text-align: center;
  padding: 30px 22px;
}

.fx-dep-status-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 14%, transparent);
  color: var(--fx-indigo, #6366f1);
  font-size: 30px;
}

.fx-dep-status-icon i {
  animation: fx-dep-spin 2.4s linear infinite;
}

@keyframes fx-dep-spin {
  to { transform: rotate(360deg); }
}

.fx-dep-status-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--fx-indigo, #6366f1) 40%, transparent);
  animation: fx-dep-pulse 1.8s ease-out infinite;
}

@keyframes fx-dep-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.fx-dep-status-title {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fx-ink, #0f172a);
}

.fx-dep-status-sub {
  margin: 0 auto 16px;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fx-muted, #64748b);
}

.fx-dep-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fx-amber, #f59e0b) 15%, transparent);
  color: var(--fx-amber, #f59e0b);
  font-size: 12px;
  font-weight: 700;
}

.fx-dep-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: fx-dep-blink 1.6s ease-in-out infinite;
}

@keyframes fx-dep-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ── Deposit submitted: success hero + status steps ── */
.fx-dep-status-icon--ok {
  background: color-mix(in srgb, #10b981 14%, transparent);
  color: #10b981;
}

.fx-dep-status-icon--ok svg {
  animation: fx-dep-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes fx-dep-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.fx-dep-status-pill.is-approved {
  background: color-mix(in srgb, #10b981 15%, transparent);
  color: #059669;
}

.fx-dep-status-pill.is-approved .fx-dep-dot,
.fx-dep-status-pill.is-rejected .fx-dep-dot {
  animation: none;
}

.fx-dep-status-pill.is-rejected {
  background: color-mix(in srgb, #ef4444 14%, transparent);
  color: #dc2626;
}

.fx-dep-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 320px;
  margin: 18px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.fx-dep-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 22px;
}

.fx-dep-step:last-child {
  padding-bottom: 0;
}

.fx-dep-step::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 2px;
  left: 10px;
  width: 2px;
  background: var(--fx-line, rgba(15, 23, 42, 0.1));
}

.fx-dep-step:last-child::before {
  display: none;
}

.fx-dep-step.is-done::before {
  background: #10b981;
}

.fx-dep-step-dot {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--fx-card, #fff);
  border: 2px solid var(--fx-line, rgba(15, 23, 42, 0.14));
  color: #fff;
}

.fx-dep-step.is-done .fx-dep-step-dot {
  background: #10b981;
  border-color: #10b981;
}

.fx-dep-step.is-current .fx-dep-step-dot {
  border-color: var(--fx-amber, #f59e0b);
}

.fx-dep-step.is-rejected .fx-dep-step-dot {
  border-color: #ef4444;
}

.fx-dep-step-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fx-amber, #f59e0b);
  animation: fx-dep-blink 1.4s ease-in-out infinite;
}

.fx-dep-step-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 1px;
}

.fx-dep-step-copy strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-dep-step-copy small {
  font-size: 11.5px;
  color: var(--fx-muted, #64748b);
}

.fx-dep-step.is-current .fx-dep-step-copy strong {
  color: var(--fx-amber-deep, #b45309);
}

.fx-dep-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--fx-indigo, #6366f1) 18%, transparent);
}

.fx-dep-note i {
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 15px;
  color: var(--fx-indigo, #6366f1);
}

.fx-dep-note p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--fx-ink, #0f172a);
}

/* ── Pending deposit banner on the deposit form ── */
.fx-dep-pending-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--fx-amber, #f59e0b) 32%, transparent);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(245, 158, 11, 0.1), transparent 60%),
    var(--fx-card, #fff);
  text-decoration: none;
}

.fx-dep-pending-banner-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fx-amber, #f59e0b) 16%, transparent);
}

.fx-dep-pending-banner-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fx-dep-pending-banner-copy strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-dep-pending-banner-copy small {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--fx-muted, #64748b);
}

.fx-dep-pending-banner-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fx-amber-deep, #b45309);
  white-space: nowrap;
}

html.fx-dark .fx-dep-pending-banner {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(245, 158, 11, 0.12), transparent 60%),
    var(--fx-card, #121820);
}

html.fx-dark .fx-dep-note p {
  color: var(--fx-ink, #f1f5f9);
}

html.fx-dark .fx-dep-step-dot {
  background: var(--fx-card, #121820);
}

/* ── Summary list ── */
.fx-dep-summary {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-dep-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
}

.fx-dep-summary-row:last-child {
  border-bottom: 0;
}

.fx-dep-summary-label {
  font-size: 13px;
  color: var(--fx-muted, #64748b);
}

.fx-dep-summary-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--fx-ink, #0f172a);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fx-dep-summary-value--amount {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fx-dep-summary-value--free {
  color: var(--fx-emerald, #10b981);
}

.fx-dep-summary-pin {
  letter-spacing: 0.08em;
}

/* ── Actions ── */
.fx-dep-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-dep-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1.5px solid var(--fx-line, rgba(15, 23, 42, 0.12));
  background: var(--fx-card, #fff);
  color: var(--fx-ink-soft, #475569);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.fx-dep-secondary:hover {
  border-color: var(--fx-indigo, #6366f1);
  color: var(--fx-indigo, #6366f1);
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 6%, var(--fx-card, #fff));
}

/* ── Deposit / trade history ── */
.easyfx-dashboard.fx-aurora .fx-card.fx-dep-total,
.easyfx-dashboard.fx-aurora .fx-card.fx-dep-empty {
  border-radius: var(--fx-radius, 5px) !important;
}

.fx-dep-total {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  padding: 18px 16px;
  margin-bottom: 0;
}

.fx-dep-total + .fx-dep-list,
.fx-dep-total + .fx-dep-empty {
  margin-top: 14px;
}

.fx-dep-total-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fx-muted, #64748b);
}

.fx-dep-total-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

.fx-dep-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fx-dep-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--fx-radius, 5px);
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.07));
  background: var(--fx-card, #fff);
  box-shadow: var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.26));
}

.fx-dep-item-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--fx-radius, 5px);
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 11%, transparent);
  color: var(--fx-indigo, #6366f1);
  font-size: 18px;
}

.fx-dep-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fx-dep-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-dep-item-date {
  font-size: 12px;
  color: var(--fx-muted, #64748b);
}

.fx-dep-item-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fx-indigo, #6366f1);
  line-height: 1.35;
}

html.fx-dark .fx-dep-item-note {
  color: #a5b4fc;
}

.fx-dep-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.fx-dep-item-amount {
  font-size: 15px;
  font-weight: 800;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

.fx-dep-item-status {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.fx-dep-item-status.is-complete {
  background: color-mix(in srgb, var(--fx-emerald, #10b981) 15%, transparent);
  color: var(--fx-emerald, #10b981);
}

.fx-dep-item-status.is-pending {
  background: color-mix(in srgb, var(--fx-amber, #f59e0b) 16%, transparent);
  color: var(--fx-amber, #f59e0b);
}

.fx-dep-item-status.is-expired {
  background: color-mix(in srgb, var(--fx-rose, #f43f5e) 14%, transparent);
  color: var(--fx-rose, #f43f5e);
}

/* ── Empty state ── */
.fx-dep-empty {
  text-align: center;
  padding: 28px 18px;
}

.fx-dep-empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: var(--fx-radius, 5px);
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 11%, transparent);
  color: var(--fx-indigo, #6366f1);
  font-size: 24px;
}

.fx-dep-empty-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-dep-empty-sub {
  font-size: 13px;
  color: var(--fx-muted, #64748b);
}

/* ── Page head eyebrow + tighter type ── */
.fx-dep-pagehead {
  margin-bottom: 16px;
}

.fx-dep-eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fx-indigo, #6366f1);
}

.fx-dep-pagehead .fx-page-title {
  font-size: 25px;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.fx-dep-pagehead .fx-page-sub {
  margin-top: 6px;
  line-height: 1.5;
}

/* ── Order summary (board unlock) ── */
.fx-dep-order {
  padding: 18px;
  overflow: hidden;
}

.fx-dep-order-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.fx-dep-order-emblem {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--fx-indigo, #6366f1), color-mix(in srgb, var(--fx-indigo, #6366f1) 52%, #22d3ee));
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--fx-indigo, #6366f1) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.fx-dep-order-emblem svg {
  width: 23px;
  height: 23px;
}

.fx-dep-order-id {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fx-dep-order-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fx-muted, #64748b);
}

.fx-dep-order-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fx-ink, #0f172a);
}

.fx-dep-order-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.fx-dep-order-price-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fx-muted, #94a3b8);
}

.fx-dep-order-price-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fx-indigo, #6366f1);
  font-variant-numeric: tabular-nums;
}

.fx-dep-order-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 1px;
  margin-top: 16px;
  border-radius: 13px;
  overflow: hidden;
  background: var(--fx-line, rgba(15, 23, 42, 0.07));
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.07));
}

.fx-dep-order-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px;
  background: var(--fx-card, #fff);
}

.fx-dep-order-stat span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fx-muted, #94a3b8);
}

.fx-dep-order-stat strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

/* ── Amount due row (fixed-price flows) ── */
.fx-dep-due {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 4px;
  border-radius: 16px;
  border: 1px dashed color-mix(in srgb, var(--fx-indigo, #6366f1) 35%, transparent);
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 6%, var(--fx-card, #fff));
}

.fx-dep-due-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fx-muted, #64748b);
}

.fx-dep-due-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

/* ── PIN completion check ── */
.fx-dep-pin-check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--fx-emerald, #10b981);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

.fx-dep-pin-check svg {
  width: 14px;
  height: 14px;
}

.fx-dep-pin.is-complete .fx-dep-pin-check,
.fx-trading-calc-input--pin.is-complete .fx-dep-pin-check {
  opacity: 1;
  transform: scale(1);
}

.fx-dep-pin.is-complete .fx-dep-pin-icon {
  color: var(--fx-emerald, #10b981);
}

/* spacing polish */
.fx-dep-pagehead + .fx-dep-seg {
  margin-top: 0;
}

/* ── Trade history (matches deposit history pattern) ── */
.fx-history-stack .fx-dep-pagehead {
  margin-bottom: 14px;
}

.fx-dep-eyebrow--trade {
  color: #2563eb;
}

.fx-dep-total--trade {
  border-color: rgba(99, 102, 241, 0.22);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.04)), var(--fx-card, #fff);
}

.fx-dep-item--trade {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fx-dep-item-icon--trade {
  background: color-mix(in srgb, #2563eb 12%, transparent);
  color: #2563eb;
}

.fx-dep-item-amount--gain {
  color: #059669;
}

.fx-dep-empty-icon--trade {
  background: color-mix(in srgb, #2563eb 12%, transparent);
  color: #2563eb;
}

.fx-dep-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 168px;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 22px;
  text-decoration: none;
}

html.fx-dark .fx-dep-total--trade {
  border-color: rgba(129, 140, 248, 0.28);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.06)), var(--fx-card, #121820);
}

html.fx-dark .fx-dep-eyebrow--trade {
  color: #60a5fa;
}

html.fx-dark .fx-dep-item-icon--trade,
html.fx-dark .fx-dep-empty-icon--trade {
  background: rgba(37, 99, 235, 0.16);
  color: #60a5fa;
}

html.fx-dark .fx-dep-item-amount--gain {
  color: #34d399;
}

/* ── Flow / history page shells (sub-pages aligned with deposit) ── */
.fx-flow-stack .fx-card,
.fx-history-stack .fx-card {
  border-radius: var(--fx-radius, 5px) !important;
}

.fx-flow-stack .fx-dep-pagehead,
.fx-history-stack .fx-dep-pagehead {
  margin-bottom: 14px;
}

.fx-flow-stack > section + section,
.fx-flow-stack > .fx-card + .fx-card,
.fx-flow-stack .fx-dep-total + .fx-card,
.fx-flow-stack .fx-dep-total + section,
.fx-flow-stack .fx-info-note + .fx-card,
.fx-history-stack .fx-dep-total + .fx-dep-list,
.fx-history-stack .fx-dep-total + .fx-dep-empty,
.fx-history-stack .fx-dep-stats + .fx-dep-list,
.fx-history-stack .fx-dep-stats + .fx-dep-empty {
  margin-top: 14px;
}

.fx-dep-total-hint {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fx-muted, #64748b);
}

.fx-dep-item-status.is-neutral {
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 12%, transparent);
  color: var(--fx-indigo, #6366f1);
}

/* Withdraw stats row */
.fx-dep-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  padding: 16px 12px;
  margin-bottom: 0;
}

.fx-dep-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  min-width: 0;
  padding: 0 4px;
}

.fx-dep-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fx-muted, #64748b);
}

.fx-dep-stat-value {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

.fx-dep-stat-value--fee {
  color: #e11d48;
}

.fx-dep-stat-value--net {
  color: #059669;
}

.fx-dep-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--fx-line, rgba(15, 23, 42, 0.1));
}

.easyfx-dashboard.fx-aurora .fx-card.fx-dep-stats {
  border-radius: var(--fx-radius, 5px) !important;
}

/* Accent variants */
.fx-dep-total--play,
.fx-dep-total--withdraw {
  border-color: rgba(16, 185, 129, 0.22);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(52, 211, 153, 0.04)), var(--fx-card, #fff);
}

.fx-dep-total--referral {
  border-color: rgba(99, 102, 241, 0.22);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.04)), var(--fx-card, #fff);
}

.fx-dep-total--tasks {
  border-color: rgba(14, 165, 233, 0.22);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(56, 189, 248, 0.04)), var(--fx-card, #fff);
}

.fx-dep-stats--withdraw {
  border-color: rgba(16, 185, 129, 0.2);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(52, 211, 153, 0.03)), var(--fx-card, #fff);
}

.fx-dep-eyebrow--play { color: #10b981; }
.fx-dep-eyebrow--referral { color: var(--fx-indigo, #6366f1); }
.fx-dep-eyebrow--tasks { color: #0284c7; }
.fx-dep-eyebrow--withdraw { color: #059669; }

.fx-dep-item-icon--play,
.fx-dep-empty-icon--play {
  background: color-mix(in srgb, #10b981 12%, transparent);
  color: #10b981;
}

.fx-dep-item-icon--referral,
.fx-dep-empty-icon--referral {
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 12%, transparent);
  color: var(--fx-indigo, #6366f1);
}

.fx-dep-item-icon--tasks,
.fx-dep-empty-icon--tasks {
  background: color-mix(in srgb, #0284c7 12%, transparent);
  color: #0284c7;
}

.fx-dep-item-icon--withdraw,
.fx-dep-empty-icon--withdraw {
  background: color-mix(in srgb, #059669 12%, transparent);
  color: #059669;
}

/* Withdraw / banking flow blocks */
.fx-flow-alert {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px;
}

.fx-flow-alert-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--fx-radius, 5px);
  background: color-mix(in srgb, #f59e0b 14%, transparent);
  color: #d97706;
  font-size: 20px;
}

.fx-flow-alert-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-flow-alert-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fx-muted, #64748b);
}

.fx-flow-alert-btn {
  text-decoration: none;
  min-height: 48px !important;
  border-radius: var(--fx-radius, 5px) !important;
}

.fx-flow-bank {
  padding: 16px;
}

.fx-flow-bank-details {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-flow-bank-details li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--fx-radius, 5px);
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  background: var(--fx-bg, #f8fafc);
}

.fx-flow-bank-details span {
  font-size: 12px;
  color: var(--fx-muted, #64748b);
}

.fx-flow-bank-details strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
  text-align: right;
}

.fx-flow-stack .fx-trading-calc {
  padding: 16px;
}

.fx-flow-breakdown {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--fx-radius, 5px);
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  background: var(--fx-bg, #f8fafc);
}

.fx-flow-breakdown-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--fx-muted, #64748b);
}

.fx-flow-breakdown-line strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

.fx-flow-breakdown-line--fee strong {
  color: #e11d48;
}

.fx-flow-breakdown-line--total strong {
  color: #059669;
  font-size: 16px;
}

.fx-flow-breakdown-divider {
  height: 1px;
  margin: 6px 0;
  background: var(--fx-line, rgba(15, 23, 42, 0.08));
}

.fx-flow-stack .fx-dep-submit {
  margin-top: 16px;
}

.fx-flow-form {
  padding: 16px;
}

.fx-flow-form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fx-flow-field {
  margin: 0;
}

.fx-trading-calc-input.is-shake {
  animation: fx-dep-shake 0.4s ease;
}

/* Tasks hub cards — match aurora card shell */
.easyfx-dashboard.fx-aurora .fx-task-card {
  border-radius: var(--fx-radius, 5px);
  border-color: var(--fx-line);
  background: var(--fx-card);
  box-shadow: var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.26));
}

html.fx-dark .fx-tasks-hero {
  border-color: rgba(245, 158, 11, 0.22);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(99, 102, 241, 0.08)),
    var(--fx-card, #121820);
}

html.fx-dark .fx-tasks-hero-kicker {
  color: var(--fx-ink-soft, #cbd5e1);
}

html.fx-dark .fx-tasks-hero-headline {
  color: var(--fx-ink-soft, #cbd5e1);
}

html.fx-dark .fx-tasks-hero-headline strong {
  color: var(--fx-ink, #f1f5f9);
}

html.fx-dark .fx-tasks-hero-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(251, 191, 36, 0.08));
  color: #fbbf24;
}

html.fx-dark .fx-tasks-hero-ring {
  background:
    radial-gradient(circle at center, var(--fx-card, #121820) 58%, transparent 59%),
    conic-gradient(#818cf8 calc(var(--pct) * 1%), rgba(129, 140, 248, 0.22) 0);
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.24);
}

html.fx-dark .fx-tasks-hero-ring span {
  color: #c7d2fe;
}

html.fx-dark .fx-tasks-hero-progress-track {
  background: rgba(129, 140, 248, 0.22);
}

html.fx-dark .fx-tasks-hero-chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--fx-ink, #f1f5f9);
}

html.fx-dark .fx-tasks-hero-chip i {
  color: #a5b4fc;
}

html.fx-dark .fx-tasks-hero-chip--ready {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fcd34d;
}

html.fx-dark .fx-tasks-hero-chip--ready i {
  color: #fbbf24;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-tasks-hero-chip {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fx-ink);
  border-color: rgba(255, 255, 255, 0.12);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-tasks-hero-progress-track {
  background: rgba(129, 140, 248, 0.22);
}

html.fx-dark .fx-task-card.is-collected {
  background:
    linear-gradient(180deg, rgba(16, 185, 129, 0.08), transparent 42%),
    var(--fx-card, #121820);
}

html.fx-dark .fx-task-card-title {
  color: var(--fx-ink, #f1f5f9);
}

html.fx-dark .fx-task-desc {
  color: var(--fx-ink-soft, #cbd5e1);
}

html.fx-dark .fx-task-progress-text {
  color: var(--fx-ink-soft, #cbd5e1);
}

html.fx-dark .fx-task-progress-track {
  background: rgba(129, 140, 248, 0.18);
}

html.fx-dark .fx-task-status.is-locked {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.07);
}

html.fx-dark .fx-task-status.is-active {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.16);
}

html.fx-dark .fx-task-card--bronze .fx-task-tier {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.16);
}

html.fx-dark .fx-task-card--silver .fx-task-tier {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.14);
}

html.fx-dark .fx-task-reward {
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
}

html.fx-dark .fx-task-claim {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--fx-ink-soft, #cbd5e1) !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-task-card-title {
  color: var(--fx-ink);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-task-desc,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-task-progress-text {
  color: var(--fx-ink-soft);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-task-progress-track {
  background: rgba(129, 140, 248, 0.18);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-task-claim {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--fx-ink-soft) !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-task-claim.is-claimed {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(52, 211, 153, 0.24) !important;
  color: #34d399 !important;
}

html.fx-dark .fx-dep-total--play,
html.fx-dark .fx-dep-total--withdraw,
html.fx-dark .fx-dep-stats--withdraw {
  border-color: rgba(52, 211, 153, 0.24);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(52, 211, 153, 0.05)), var(--fx-card, #121820);
}

html.fx-dark .fx-flow-bank-details li,
html.fx-dark .fx-flow-breakdown {
  background: #0f141c;
  border-color: var(--fx-line);
}

/* =====================================================================
   LEADERBOARD PAGE (v2 — matches deposit / history flow)
   ===================================================================== */
.fx-dep-eyebrow--lb {
  color: #f59e0b;
}

.fx-dep-empty-icon--lb {
  background: color-mix(in srgb, #f59e0b 14%, transparent);
  color: #f59e0b;
}

.fx-lb-page .fx-card {
  width: 100%;
  box-sizing: border-box;
  border-radius: var(--fx-radius, 5px) !important;
}

.fx-lb-page > section + section,
.fx-lb-page > .fx-lb-standings {
  margin-top: 10px;
}


.fx-lb-hero {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border-color: rgba(15, 23, 42, 0.1);
  background: var(--fx-card, #fff);
}

.fx-lb-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #f59e0b, #10b981);
}

.fx-lb-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.fx-lb-hero-prize {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.fx-lb-hero-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fx-ink-soft, #475569);
}

.fx-lb-pool {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

.fx-lb-hero-rule {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fx-muted, #64748b);
}

.fx-lb-hero-rule strong {
  font-weight: 800;
  color: var(--fx-ink, #0f172a);
}

.fx-lb-hero-total {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fx-ink-soft, #475569);
}

.fx-lb-hero-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.fx-lb-hero-split-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: var(--fx-radius, 5px);
  background: #fffbf5;
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.fx-lb-hero-split-item--deposit {
  background: #f3fbf8;
  border-color: rgba(16, 185, 129, 0.24);
}

.fx-lb-hero-split-amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--fx-ink, #0f172a);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.fx-lb-hero-split-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--fx-ink, #0f172a);
}

.fx-lb-hero-split-desc {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--fx-muted, #64748b);
}

.fx-lb-hero-split-plus {
  align-self: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--fx-muted, #64748b);
}

.fx-lb-champ-pod {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  overflow: visible;
}

.fx-lb-champ-pod--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fx-lb-champ-pod-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 12px 8px 10px;
  border-radius: var(--fx-radius, 5px);
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  background: var(--fx-card, #fff);
  overflow: visible;
}

.fx-lb-champ-pod-slot--1 {
  order: 2;
  z-index: 2;
  padding: 16px 10px 14px;
  border-color: rgba(16, 185, 129, 0.42);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.05)), var(--fx-card, #fff);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.16);
  transform-origin: center bottom;
  animation: fx-lb-pod-float 4.2s ease-in-out infinite;
}

.fx-lb-champ-pod-slot--2 {
  order: 1;
  border-color: rgba(20, 184, 166, 0.28);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.1), transparent), var(--fx-card, #fff);
}

.fx-lb-champ-pod-slot--3 {
  order: 3;
  border-color: rgba(99, 102, 241, 0.24);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), transparent), var(--fx-card, #fff);
}

.fx-lb-champ-pod-slot.is-you {
  outline: 2px solid rgba(99, 102, 241, 0.35);
  outline-offset: 1px;
}

.fx-lb-champ-pod-rank {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.fx-lb-champ-pod-slot--1 .fx-lb-champ-pod-rank {
  background: linear-gradient(135deg, #34d399, #059669);
  color: #fff;
}

.fx-lb-champ-pod-slot--2 .fx-lb-champ-pod-rank {
  background: rgba(20, 184, 166, 0.2);
  color: #0f766e;
}

.fx-lb-champ-pod-slot--3 .fx-lb-champ-pod-rank {
  background: rgba(99, 102, 241, 0.16);
  color: #4338ca;
}

.fx-lb-champ-pod-avatar {
  border-radius: 999px;
  object-fit: cover;
}

.fx-lb-champ-pod-slot--1 .fx-lb-champ-pod-avatar {
  width: 52px;
  height: 52px;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
}

.fx-lb-champ-pod-name {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--fx-ink, #0f172a);
  word-break: break-word;
}

.fx-lb-champ-pod-name em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #6366f1;
}

.fx-lb-champ-pod-points {
  font-size: 13px;
  font-weight: 800;
  color: #059669;
  font-variant-numeric: tabular-nums;
}

.fx-lb-champ-pod-prize {
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.fx-lb-champ-list {
  margin-top: 0;
}

/* Invite podium — compact layout matching deposit champions pod */
.fx-lb-invite-pod {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  margin-bottom: 10px;
  overflow: visible;
}

.fx-lb-invite-pod--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fx-lb-invite-pod-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: end;
  text-align: center;
  gap: 4px;
  padding: 12px 8px 10px;
  border-radius: var(--fx-radius, 5px);
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  background: var(--fx-card, #fff);
  overflow: visible;
}

.fx-lb-invite-pod-slot--1 {
  order: 2;
  z-index: 3;
  gap: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.fx-lb-invite-showcase {
  --fx-lb-showcase-dur: 12s;
  position: relative;
  width: 100%;
  perspective: 760px;
  perspective-origin: 50% 50%;
}

.fx-lb-invite-showcase-floor {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -4px;
  height: 16px;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.55), transparent 72%);
  filter: blur(7px);
  opacity: 0;
  transform: scale(0.82);
  animation: fx-lb-invite-showcase-floor var(--fx-lb-showcase-dur) ease-in-out infinite;
}

/* Transform-only pivot — no paint styles here */
.fx-lb-invite-flipper {
  position: relative;
  z-index: 1;
  width: 100%;
  transform-style: preserve-3d;
  transform: translate3d(0, -6px, 0) rotateY(0deg) rotateX(0deg) scale(1);
  transform-origin: center center;
  animation: fx-lb-invite-leader-flip var(--fx-lb-showcase-dur) cubic-bezier(0.45, 0.03, 0.25, 1) infinite;
  will-change: transform;
}

/* Card volume — faces + edge spin together inside flipper */
.fx-lb-invite-card {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
}

.fx-lb-invite-card-face {
  border-radius: var(--fx-radius, 5px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.fx-lb-invite-card-face--front {
  position: relative;
  width: 100%;
  border: 1px solid rgba(245, 158, 11, 0.42);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.42) 0%, transparent 38%),
    linear-gradient(180deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.05)),
    var(--fx-card, #fff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  overflow: hidden;
  transform: rotateY(0deg) translateZ(3px);
  animation: fx-lb-invite-card-glow var(--fx-lb-showcase-dur) ease-in-out infinite;
}

.fx-lb-invite-card-face--back {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(217, 119, 6, 0.55);
  background:
    linear-gradient(145deg, rgba(251, 191, 36, 0.95) 0%, rgba(245, 158, 11, 0.88) 42%, rgba(180, 83, 9, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: rotateY(180deg) translateZ(3px);
}

.fx-lb-invite-card-edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-style: preserve-3d;
}

.fx-lb-invite-card-edge::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #fde68a 0%, #d97706 48%, #92400e 100%);
  transform: rotateY(90deg);
  transform-origin: center center;
}

.fx-lb-invite-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 16px 10px 14px;
}

.fx-lb-invite-card-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(251, 191, 36, 0.72);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform: scale(0.96);
  animation: fx-lb-invite-card-ring var(--fx-lb-showcase-dur) ease-out infinite;
}

.fx-lb-invite-card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background: linear-gradient(
    112deg,
    transparent 36%,
    rgba(255, 255, 255, 0.08) 44%,
    rgba(255, 255, 255, 0.72) 50%,
    rgba(255, 255, 255, 0.08) 56%,
    transparent 64%
  );
  background-size: 220% 100%;
  background-position: -120% 0;
  animation: fx-lb-invite-card-shine var(--fx-lb-showcase-dur) ease-in-out infinite;
}

.fx-lb-invite-showcase > .fx-lb-beast-bubble--invite {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  z-index: 3;
  margin: 0 auto 6px;
  transform: translateX(0) rotate(-3deg);
  animation: fx-lb-invite-bubble-showcase var(--fx-lb-showcase-dur) cubic-bezier(0.34, 1.25, 0.64, 1) infinite;
}

.fx-lb-invite-pod-slot--2 {
  order: 1;
  border-color: rgba(20, 184, 166, 0.32);
  background:
    linear-gradient(var(--fx-card, #fff), var(--fx-card, #fff)) padding-box,
    linear-gradient(135deg, rgba(20, 184, 166, 0.58), rgba(14, 165, 233, 0.24), rgba(20, 184, 166, 0.58)) border-box;
  animation: fx-lb-invite-runner-border 5.8s ease-in-out infinite;
}

.fx-lb-invite-pod-slot--3 {
  order: 3;
  border-color: rgba(20, 184, 166, 0.32);
  background:
    linear-gradient(var(--fx-card, #fff), var(--fx-card, #fff)) padding-box,
    linear-gradient(135deg, rgba(20, 184, 166, 0.58), rgba(14, 165, 233, 0.24), rgba(20, 184, 166, 0.58)) border-box;
  animation: fx-lb-invite-runner-border 5.8s ease-in-out 0.7s infinite;
}

.fx-lb-invite-pod-slot.is-you {
  outline: 2px solid rgba(99, 102, 241, 0.35);
  outline-offset: 1px;
}

.fx-lb-invite-pod-rank {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.fx-lb-invite-pod-slot--1 .fx-lb-invite-pod-rank {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1c1917;
}

.fx-lb-invite-pod-slot--2 .fx-lb-invite-pod-rank {
  background: rgba(20, 184, 166, 0.16);
  color: #0f766e;
}

.fx-lb-invite-pod-slot--3 .fx-lb-invite-pod-rank {
  background: rgba(20, 184, 166, 0.16);
  color: #0f766e;
}

.fx-lb-invite-pod-avatar {
  border-radius: 999px;
  object-fit: cover;
}

.fx-lb-invite-pod-slot--1 .fx-lb-invite-pod-avatar {
  width: 52px;
  height: 52px;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
}

.fx-lb-invite-pod-name {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--fx-ink, #0f172a);
  word-break: break-word;
}

.fx-lb-invite-pod-name em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #6366f1;
}

.fx-lb-invite-pod-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

.fx-lb-invite-pod-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fx-muted, #64748b);
}

.fx-lb-invite-pod-prize {
  margin-top: 2px;
  padding: 5px 9px;
  border-radius: var(--fx-radius, 5px);
  border: 1px solid rgba(245, 158, 11, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.16)),
    rgba(245, 158, 11, 0.14);
  color: #b45309;
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.1);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.fx-lb-beast-bubble--invite {
  display: grid;
  place-items: center;
  min-width: 82px;
  min-height: 24px;
}

.fx-lb-beast-bubble--invite span {
  grid-area: 1 / 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fx-lb-beast-bubble--invite span:first-child {
  animation: fx-lb-invite-bubble-primary var(--fx-lb-showcase-dur, 12s) ease-in-out infinite;
}

.fx-lb-beast-bubble--invite span:last-child {
  opacity: 0;
  transform: translateY(2px) scale(0.94);
  animation: fx-lb-invite-bubble-alt var(--fx-lb-showcase-dur, 12s) ease-in-out infinite;
}

@keyframes fx-lb-invite-runner-border {
  0%, 100% {
    box-shadow: 0 0 0 rgba(20, 184, 166, 0);
    border-color: rgba(20, 184, 166, 0.28);
  }
  42% {
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.05), 0 8px 18px rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.58);
  }
}

@keyframes fx-lb-invite-leader-flip {
  /* Idle float */
  0%, 35% {
    transform: translate3d(0, -6px, 0) rotateY(0deg) rotateX(0deg) scale(1);
  }
  /* Anticipation — wind-up */
  36% {
    transform: translate3d(0, 3px, 0) rotateY(0deg) rotateX(4deg) scale(0.96);
  }
  /* Launch — dramatic rise */
  38% {
    transform: translate3d(0, -40px, 52px) rotateY(0deg) rotateX(-8deg) scale(1.12);
  }
  /* Relax at height */
  40% {
    transform: translate3d(0, -30px, 38px) rotateY(0deg) rotateX(0deg) scale(1.05);
  }
  /* Spin 1 */
  41% {
    transform: translate3d(0, -30px, 38px) rotateY(0deg) rotateX(0deg) scale(1.05);
  }
  42.25% {
    transform: translate3d(0, -30px, 38px) rotateY(180deg) rotateX(10deg) scale(1.07);
  }
  43.5% {
    transform: translate3d(0, -30px, 38px) rotateY(360deg) rotateX(0deg) scale(1.05);
  }
  /* Spin 2 */
  44% {
    transform: translate3d(0, -30px, 38px) rotateY(360deg) rotateX(0deg) scale(1.05);
  }
  45.25% {
    transform: translate3d(0, -30px, 38px) rotateY(540deg) rotateX(10deg) scale(1.07);
  }
  46.5% {
    transform: translate3d(0, -30px, 38px) rotateY(720deg) rotateX(0deg) scale(1.05);
  }
  /* Spin 3 */
  47% {
    transform: translate3d(0, -30px, 38px) rotateY(720deg) rotateX(0deg) scale(1.05);
  }
  48.25% {
    transform: translate3d(0, -30px, 38px) rotateY(900deg) rotateX(10deg) scale(1.07);
  }
  49.5% {
    transform: translate3d(0, -30px, 38px) rotateY(1080deg) rotateX(0deg) scale(1.05);
  }
  /* Spin 4 */
  50% {
    transform: translate3d(0, -30px, 38px) rotateY(1080deg) rotateX(0deg) scale(1.05);
  }
  51.25% {
    transform: translate3d(0, -30px, 38px) rotateY(1260deg) rotateX(10deg) scale(1.07);
  }
  52.5% {
    transform: translate3d(0, -30px, 38px) rotateY(1440deg) rotateX(0deg) scale(1.05);
  }
  /* Spin 5 */
  53% {
    transform: translate3d(0, -30px, 38px) rotateY(1440deg) rotateX(0deg) scale(1.05);
  }
  54.25% {
    transform: translate3d(0, -30px, 38px) rotateY(1620deg) rotateX(10deg) scale(1.07);
  }
  55.5% {
    transform: translate3d(0, -30px, 38px) rotateY(1800deg) rotateX(0deg) scale(1.05);
  }
  /* Spin 6 */
  56% {
    transform: translate3d(0, -30px, 38px) rotateY(1800deg) rotateX(0deg) scale(1.05);
  }
  57.25% {
    transform: translate3d(0, -30px, 38px) rotateY(1980deg) rotateX(10deg) scale(1.07);
  }
  58.5% {
    transform: translate3d(0, -30px, 38px) rotateY(2160deg) rotateX(0deg) scale(1.05);
  }
  /* Relax after spins */
  59% {
    transform: translate3d(0, -31px, 40px) rotateY(2160deg) rotateX(-1deg) scale(1.06);
  }
  /* Hero hold — Top spot! reveal */
  60%, 63% {
    transform: translate3d(0, -32px, 42px) rotateY(2160deg) rotateX(-2deg) scale(1.1);
  }
  /* Still raised — I'm winning! returns, no spin */
  64%, 67% {
    transform: translate3d(0, -32px, 42px) rotateY(2160deg) rotateX(-2deg) scale(1.08);
  }
  /* Soft landing — rotation locked */
  72% {
    transform: translate3d(0, -18px, 18px) rotateY(2160deg) rotateX(0deg) scale(1.03);
  }
  78% {
    transform: translate3d(0, -10px, 6px) rotateY(2160deg) rotateX(0deg) scale(1.01);
  }
  84%, 100% {
    transform: translate3d(0, -6px, 0) rotateY(2160deg) rotateX(0deg) scale(1);
  }
}

@keyframes fx-lb-invite-card-glow {
  0%, 35%, 100% {
    border-color: rgba(245, 158, 11, 0.42);
  }
  38%, 67% {
    border-color: rgba(251, 191, 36, 0.92);
  }
  60%, 63% {
    border-color: rgba(255, 255, 255, 0.62);
  }
  84% {
    border-color: rgba(245, 158, 11, 0.5);
  }
}

@keyframes fx-lb-invite-showcase-floor {
  0%, 35%, 100% {
    opacity: 0;
    transform: scale(0.82);
  }
  38%, 67% {
    opacity: 0.85;
    transform: scale(1.12);
  }
  60%, 63% {
    opacity: 1;
    transform: scale(1.22);
  }
  78% {
    opacity: 0;
    transform: scale(0.95);
  }
}

@keyframes fx-lb-invite-card-ring {
  0%, 35%, 100% {
    opacity: 0;
    transform: scale(0.96);
  }
  41%, 56% {
    opacity: 0.45;
    transform: scale(1);
  }
  58.5% {
    opacity: 0.85;
    transform: scale(1.06);
  }
  60% {
    opacity: 0.55;
    transform: scale(1);
  }
  63% {
    opacity: 0;
    transform: scale(1.14);
  }
}

@keyframes fx-lb-invite-card-shine {
  0%, 35%, 100% {
    opacity: 0;
    background-position: -120% 0;
  }
  43.5% {
    opacity: 0.7;
    background-position: 120% 0;
  }
  46.5% {
    opacity: 0;
    background-position: 180% 0;
  }
  49.5% {
    opacity: 0.65;
    background-position: 120% 0;
  }
  52.5% {
    opacity: 0;
    background-position: 180% 0;
  }
  55.5% {
    opacity: 0.65;
    background-position: 120% 0;
  }
  58.5% {
    opacity: 0.75;
    background-position: 140% 0;
  }
  63% {
    opacity: 0;
    background-position: 180% 0;
  }
}

@keyframes fx-lb-invite-bubble-showcase {
  0%, 35% {
    transform: translateX(0) rotate(-3deg) translateY(0) scale(1);
  }
  36% {
    transform: translateX(0) rotate(2deg) translateY(2px) scale(0.94);
  }
  38%, 67% {
    transform: translateX(0) rotate(-2deg) translateY(-8px) scale(1.06);
  }
  60%, 63% {
    transform: translateX(0) rotate(-4deg) translateY(-10px) scale(1.16);
  }
  78%, 100% {
    transform: translateX(0) rotate(-3deg) translateY(0) scale(1);
  }
}

@keyframes fx-lb-invite-bubble-primary {
  0%, 59%, 65%, 100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  61%, 63% {
    opacity: 0;
    transform: translateY(-3px) scale(0.88);
  }
}

@keyframes fx-lb-invite-bubble-alt {
  0%, 60%, 64%, 100% {
    opacity: 0;
    transform: translateY(3px) scale(0.88);
  }
  61%, 63% {
    opacity: 1;
    transform: translateY(0) scale(1.08);
  }
}

.fx-lb-deposit-note {
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 5px);
  background: #fff;
}

.fx-lb-deposit-note-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fx-ink-soft, #475569);
}

.fx-lb-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
}

.fx-lb-hero-meta span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #fff);
  line-height: 1.2;
}

.fx-lb-hero-meta em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fx-muted, #64748b);
}

.fx-lb-hero-meta strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fx-lb-hero-you {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fx-ink-soft, #475569);
}

.fx-lb-hero-you strong {
  font-weight: 800;
  color: var(--fx-ink, #0f172a);
}

.fx-lb-hero-tagline {
  display: block;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fx-ink-soft, #475569);
}

.fx-lb-reward-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px 10px;
  border-color: color-mix(in srgb, #10b981 22%, transparent);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.09), rgba(99, 102, 241, 0.05)),
    var(--fx-card, #fff);
}

.fx-lb-reward-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 8px;
  border-radius: var(--fx-radius, 5px);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid color-mix(in srgb, var(--fx-ink, #0f172a) 6%, transparent);
  text-align: center;
}

.fx-lb-reward-stat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fx-muted, #64748b);
}

.fx-lb-reward-stat-value {
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

.fx-lb-reward-stat-value--prize {
  color: #059669;
}

.fx-lb-reward-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.fx-lb-stat-value {
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 800;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.fx-lb-stat-value.is-urgent {
  color: #f59e0b;
}

.fx-lb-yesterday {
  padding: 12px 14px;
  border-color: var(--fx-line, rgba(15, 23, 42, 0.08));
  background: var(--fx-card, #fff);
}

.fx-lb-yesterday-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fx-lb-yesterday-copy {
  flex: 1;
  min-width: 0;
}

.fx-lb-yesterday-label {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fx-muted, #64748b);
  line-height: 1.2;
}

.fx-lb-yesterday-main {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--fx-ink-soft, #475569);
}

.fx-lb-yesterday-main strong {
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-lb-yesterday-main span {
  color: var(--fx-muted, #64748b);
}

.fx-lb-yesterday-main strong + span::before {
  content: " · ";
}

.fx-lb-yesterday .fx-lb-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.easyfx-dashboard.fx-aurora main.fx-main.fx-lb-main {
  padding-top: calc(60px + 4px) !important;
}

body:has(.fx-impersonation-bar) .easyfx-dashboard.fx-aurora main.fx-main.fx-lb-main {
  padding-top: calc(34px + 60px + 4px) !important;
}

.easyfx-dashboard main.fx-main.fx-lb-main {
  padding-top: calc(56px + 4px) !important;
}

.fx-lb-pagehead {
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
}

.fx-lb-pagehead-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.fx-lb-pagehead .fx-page-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.fx-lb-pagehead-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fx-muted, #64748b);
}

.fx-lb-pagehead-meta > span:first-child {
  color: var(--fx-muted, #64748b);
}

.fx-lb-pagehead .fx-lb-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin: 0;
}

.fx-lb-pagehead .fx-lb-countdown-time {
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0;
  line-height: inherit;
  color: var(--fx-ink-soft, #475569);
  font-variant-numeric: tabular-nums;
}

.fx-lb-pagehead .fx-lb-countdown-time.is-urgent {
  color: #d97706;
}

.fx-lb-pagehead .fx-lb-countdown-label {
  font-size: inherit;
  font-weight: 500;
  color: var(--fx-muted, #64748b);
}

.fx-lb-page .fx-page-head {
  margin-bottom: 0;
}

.fx-lb-countdown {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
}

.fx-lb-countdown-time {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

.fx-lb-countdown-time.is-urgent {
  color: #d97706;
}

.fx-lb-countdown-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--fx-muted, #64748b);
}

.fx-lb-standings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.fx-lb-standings-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.fx-lb-prize-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 12px;
  border-radius: var(--fx-radius, 5px);
  border: 2px solid;
  text-align: center;
  line-height: 1.1;
}

.fx-lb-prize-badge span {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.fx-lb-prize-badge em {
  margin-top: 2px;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.fx-lb-prize-badge--refs {
  border-color: rgba(245, 158, 11, 0.42);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.05));
  color: #b45309;
}

.fx-lb-prize-badge--deposit {
  border-color: rgba(16, 185, 129, 0.42);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0.05));
  color: #047857;
}

.fx-lb-pod-avatar-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: visible;
}

@keyframes fx-lb-pod-float {
  0%, 100% { transform: translateY(-6px); }
  50% { transform: translateY(-13px); }
}

.fx-lb-standings-head .fx-card-title {
  margin: 0;
}

.fx-lb-standings-head .fx-card-sub {
  margin: 4px 0 0;
}

.fx-lb-empty {
  margin-top: 0;
}

.fx-lb-empty > .fx-dep-empty-sub:not(.fx-lb-empty-prizes) {
  display: none;
}

.fx-lb-podium {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  align-items: end;
  gap: 8px;
  margin-bottom: 14px;
  overflow: visible;
  perspective: 920px;
}

.fx-lb-podium--duo {
  grid-template-columns: 1fr 1fr;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.fx-lb-podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 8px 12px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #fff);
  box-shadow: var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.22));
  text-align: center;
  min-width: 0;
}

.fx-lb-podium-slot--1 {
  position: relative;
  z-index: 1;
  overflow: visible;
  gap: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transform-style: preserve-3d;
}

.fx-lb-winner-stage {
  position: relative;
  width: 100%;
  perspective: 900px;
  perspective-origin: 50% 46%;
  transform-style: preserve-3d;
}

.fx-lb-winner-stage::before,
.fx-lb-winner-stage::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: var(--fx-radius, 5px);
  z-index: 0;
}

.fx-lb-winner-stage::before {
  inset: -3px;
  background: radial-gradient(ellipse at 50% 100%, rgba(251, 191, 36, 0.22), transparent 74%);
  filter: blur(6px);
  opacity: 0.38;
  animation: fx-lb-podium-aura-pulse 5.6s ease-in-out infinite;
}

.fx-lb-winner-stage::after {
  content: none;
}

.fx-lb-winner-flipper {
  position: relative;
  z-index: 1;
  width: 100%;
  transform-style: preserve-3d;
  transform: translateY(-6px) rotateY(0deg);
  transform-origin: center center;
}

.fx-lb-podium-slot--1:not(.is-winner-spin) .fx-lb-winner-flipper {
  animation: fx-lb-winner-float 6.5s ease-in-out infinite;
}

.fx-lb-podium-slot--1:not(.is-winner-spin) .fx-lb-winner-face--front {
  animation: fx-lb-podium-aura 5.8s ease-in-out infinite;
}

.fx-lb-winner-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 14px 8px 12px;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: var(--fx-radius, 5px);
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.03)),
    var(--fx-card, #fff);
  box-shadow:
    0 0 12px rgba(245, 158, 11, 0.22),
    0 0 24px rgba(251, 191, 36, 0.12),
    0 16px 32px -18px rgba(245, 158, 11, 0.35);
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.fx-lb-winner-face--front {
  position: relative;
  transform: rotateY(0deg) translateZ(3px);
}

.fx-lb-winner-face--back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg) translateZ(3px);
}

.fx-lb-winner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.fx-lb-winner-fx {
  position: absolute;
  inset: -20px -12px -8px;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}

.fx-lb-sparkle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(4px * var(--ss, 1));
  height: calc(4px * var(--ss, 1));
  margin: calc(-2px * var(--ss, 1)) 0 0 calc(-2px * var(--ss, 1));
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.75);
  animation: fx-lb-sparkle-burst var(--sd, 0.8s) ease-out forwards;
}

@keyframes fx-lb-sparkle-burst {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.2);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--sx, 0), var(--sy, 0)) scale(0.05);
  }
}

.fx-lb-podium-slot--1.is-winner-spin .fx-lb-winner-flipper {
  animation: fx-lb-winner-3d-spin 2.4s cubic-bezier(0.22, 0.85, 0.28, 1) forwards;
}

.fx-lb-podium-slot--1.is-winner-spin .fx-lb-winner-face--front,
.fx-lb-podium-slot--1.is-winner-spin .fx-lb-winner-face--back {
  animation: fx-lb-winner-face-glow 2.4s ease-in-out forwards;
}

.fx-lb-podium-slot--1.is-winner-spin .fx-lb-beast-bubble {
  animation: none;
}

.fx-lb-podium-slot--1.is-winner-spin .fx-lb-beast-bubble--taunt {
  animation: fx-lb-bubble-taunt 0.42s ease-in-out 0.45s 2;
}

@keyframes fx-lb-winner-3d-spin {
  0% {
    transform: translateY(-6px) rotateY(0deg) rotateX(0deg) scale(1);
  }
  12% {
    transform: translateY(-16px) rotateY(-10deg) rotateX(4deg) scale(1.02);
  }
  28% {
    transform: translateY(-24px) rotateY(180deg) rotateX(6deg) scale(1.04);
  }
  45%, 58% {
    transform: translateY(-24px) rotateY(180deg) rotateX(3deg) scale(1.03);
  }
  72% {
    transform: translateY(-20px) rotateY(360deg) rotateX(5deg) scale(1.02);
  }
  86% {
    transform: translateY(-12px) rotateY(360deg) rotateX(2deg) scale(1.01);
  }
  100% {
    transform: translateY(-6px) rotateY(360deg) rotateX(0deg) scale(1);
  }
}

@keyframes fx-lb-winner-face-glow {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(245, 158, 11, 0.22),
      0 0 24px rgba(251, 191, 36, 0.12),
      0 16px 32px -18px rgba(245, 158, 11, 0.35);
  }
  9%, 72% {
    box-shadow:
      0 0 36px rgba(251, 191, 36, 0.58),
      0 0 64px rgba(245, 158, 11, 0.38),
      0 40px 72px -10px rgba(245, 158, 11, 0.48);
  }
  16%, 64% {
    box-shadow:
      0 0 44px rgba(251, 191, 36, 0.72),
      0 0 80px rgba(245, 158, 11, 0.45),
      0 44px 80px -8px rgba(245, 158, 11, 0.55);
  }
}

@keyframes fx-lb-winner-float {
  0%, 100% {
    transform: translateY(-6px) rotateY(0deg);
  }
  50% {
    transform: translateY(-12px) rotateY(0deg);
  }
}

@keyframes fx-lb-bubble-taunt {
  0%, 100% {
    transform: rotate(7deg) scale(1);
  }
  50% {
    transform: rotate(-5deg) scale(1.08);
  }
}

.fx-lb-podium-slot--1::before,
.fx-lb-podium-slot--1::after {
  content: none;
}

@keyframes fx-lb-podium-float {
  0%, 100% { transform: translateY(-6px); }
  50% { transform: translateY(-12px); }
}

@keyframes fx-lb-podium-aura {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(245, 158, 11, 0.22),
      0 0 24px rgba(251, 191, 36, 0.12),
      0 16px 32px -18px rgba(245, 158, 11, 0.35);
  }
  50% {
    box-shadow:
      0 0 18px rgba(251, 191, 36, 0.3),
      0 0 32px rgba(245, 158, 11, 0.18),
      0 18px 36px -16px rgba(245, 158, 11, 0.42);
  }
}

@keyframes fx-lb-podium-aura-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.99); }
  50% { opacity: 0.62; transform: scale(1.02); }
}

.fx-lb-podium-avatar-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.fx-lb-beast-bubble--pod {
  top: -12px;
  right: auto;
  left: 50%;
  z-index: 3;
  font-size: 13px;
  transform: translateX(-50%) rotate(-3deg);
  animation: fx-lb-bubble-float-pod 3.4s ease-in-out infinite;
}

@keyframes fx-lb-bubble-float-pod {
  0%, 100% { transform: translateX(-50%) rotate(-3deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(-1deg) translateY(-4px); }
}

.fx-lb-beast-bubble {
  position: absolute;
  top: -10px;
  right: -34px;
  z-index: 2;
  padding: 4px 8px 5px;
  background: #fffef5;
  border: 2px solid #1c1917;
  border-radius: 12px 12px 12px 3px;
  font-family: "Bangers", "Comic Sans MS", "Chalkboard SE", cursive;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #1c1917;
  white-space: nowrap;
  transform: rotate(7deg);
  box-shadow: 2px 3px 0 rgba(28, 25, 23, 0.18);
  animation: fx-lb-bubble-float 3.4s ease-in-out infinite;
}

.fx-lb-beast-bubble::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 10px;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top-color: #fffef5;
  border-left-color: #fffef5;
  z-index: 1;
}

.fx-lb-beast-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 7px;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-top-color: #1c1917;
  border-left-color: #1c1917;
}

@keyframes fx-lb-bubble-float {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-3px); }
}

.fx-lb-podium-slot--2 {
  padding-bottom: 10px;
}

.fx-lb-podium-slot--3 {
  padding-bottom: 8px;
}

.fx-lb-podium-slot.is-you {
  outline: 2px solid color-mix(in srgb, var(--fx-indigo, #6366f1) 35%, transparent);
  outline-offset: 1px;
}

.fx-lb-podium-rank {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--fx-radius, 5px);
  font-size: 12px;
  font-weight: 800;
  background: rgba(148, 163, 184, 0.14);
  color: var(--fx-muted, #64748b);
}

.fx-lb-podium-slot--1 .fx-lb-podium-rank {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1c1917;
}

.fx-lb-podium-slot--2 .fx-lb-podium-rank {
  background: rgba(148, 163, 184, 0.22);
  color: var(--fx-ink, #0f172a);
}

.fx-lb-podium-slot--3 .fx-lb-podium-rank {
  background: rgba(180, 83, 9, 0.18);
  color: #c2410c;
}

.fx-lb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--fx-line, rgba(15, 23, 42, 0.08));
}

.fx-lb-avatar--podium {
  width: 48px;
  height: 48px;
}

.fx-lb-podium-slot--1 .fx-lb-avatar--podium {
  width: 54px;
  height: 54px;
  border-color: rgba(245, 158, 11, 0.35);
}

.fx-lb-podium-name {
  max-width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-lb-podium-count {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

.fx-lb-podium-label {
  margin-top: -2px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fx-muted, #64748b);
}

.fx-lb-badge-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.fx-dep-item-title .fx-lb-badge-pill {
  margin-left: 6px;
  vertical-align: 1px;
}

.fx-lb-podium-points,
.fx-lb-points-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fx-lb-podium-points {
  padding: 3px 7px;
  font-size: 9px;
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.fx-lb-points-chip {
  flex-shrink: 0;
  padding: 6px 9px;
  font-size: 11px;
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.fx-lb-deposit-champions {
  margin-top: 10px;
}

.fx-lb-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.fx-lb-status-chip--deposited {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.fx-lb-status-chip--none {
  background: rgba(148, 163, 184, 0.14);
  color: var(--fx-muted, #64748b);
}

.fx-lb-row-prize--deposit {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.fx-lb-deposit-yesterday {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: var(--fx-radius, 5px);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.16);
  font-size: 12px;
  color: var(--fx-muted, #64748b);
}

.fx-lb-deposit-yesterday strong {
  color: var(--fx-ink, #0f172a);
}

.fx-lb-reward-rank {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
}

.fx-lb-podium-slot .fx-lb-status-chip {
  margin-top: 2px;
}

.fx-lb-deposit-row {
  border-color: color-mix(in srgb, #10b981 12%, var(--fx-line, rgba(15, 23, 42, 0.08)));
}

.fx-lb-podium-prize {
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.fx-lb-list-more {
  margin-top: 8px;
}

.fx-lb-show-more {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px 14px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.1));
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #fff);
  color: var(--fx-ink-soft, #475569);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.fx-lb-show-more:hover,
.fx-lb-show-more:focus {
  border-color: rgba(99, 102, 241, 0.28);
  color: var(--fx-ink, #0f172a);
  background: rgba(99, 102, 241, 0.04);
}

.fx-lb-show-more[hidden] {
  display: none;
}

.fx-lb-list {
  margin-top: 0;
}

.fx-lb-row {
  gap: 10px;
  padding: 12px 14px;
}

.fx-lb-row .fx-dep-item-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
}

.fx-lb-row--leader {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), transparent), var(--fx-card, #fff);
}

.fx-lb-row.is-you {
  border-color: rgba(99, 102, 241, 0.28);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.07), transparent), var(--fx-card, #fff);
}

.fx-lb-rank {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--fx-radius, 5px);
  font-size: 12px;
  font-weight: 800;
  background: rgba(148, 163, 184, 0.12);
  color: var(--fx-muted, #64748b);
}

.fx-lb-rank--top-1 {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1c1917;
}

.fx-lb-rank--top-2 {
  background: rgba(148, 163, 184, 0.2);
  color: var(--fx-ink, #0f172a);
}

.fx-lb-rank--top-3 {
  background: rgba(180, 83, 9, 0.16);
  color: #c2410c;
}

.fx-lb-row-prize {
  flex-shrink: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.fx-dep-item-title em {
  margin-left: 6px;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fx-indigo, #6366f1);
}

.fx-lb-you {
  padding: 14px 16px 16px;
}

.fx-lb-you-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fx-muted, #64748b);
}

.fx-lb-you .fx-lb-row {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.fx-lb-rules {
  padding: 16px;
}

.fx-lb-steps {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-lb-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fx-muted, #64748b);
}

.fx-lb-steps li strong {
  color: var(--fx-ink, #0f172a);
}

.fx-lb-step-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--fx-radius, 5px);
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 12%, transparent);
  color: var(--fx-indigo, #6366f1);
  font-size: 11px;
  font-weight: 800;
}

.fx-lb-recent {
  padding: 16px;
}

.fx-lb-recent-list {
  margin-top: 12px;
}

.fx-lb-recent-item {
  padding: 12px 14px;
}

.fx-lb-cta {
  margin-top: 14px;
  padding-bottom: 20px;
}

.fx-lb-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px !important;
  border-radius: var(--fx-radius, 5px) !important;
}

/* ── Leaderboard promo modal (matches WhatsApp modal polish) ── */
.fx-lb-promo-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
}

.fx-lb-promo-modal[hidden] {
  display: none !important;
}

.fx-lb-promo-modal.is-open {
  display: grid !important;
  pointer-events: auto;
}

.fx-lb-promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.fx-lb-promo-modal.is-open .fx-lb-promo-backdrop {
  opacity: 1;
}

.fx-lb-promo-dialog {
  position: relative;
  width: min(100%, 380px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 28px 22px 20px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 20px;
  background:
    radial-gradient(circle at 15% 0%, rgba(251, 191, 36, 0.22), transparent 42%),
    radial-gradient(circle at 90% 100%, rgba(16, 185, 129, 0.24), transparent 42%),
    linear-gradient(165deg, #1a1208 0%, #0f1f18 42%, #0f172a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 32px 64px -24px rgba(0, 0, 0, 0.7),
    0 0 48px rgba(16, 185, 129, 0.14);
  color: #f8fafc;
  text-align: center;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.fx-lb-promo-modal.is-open .fx-lb-promo-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

body.fx-lb-promo-open {
  overflow: hidden;
}

.fx-lb-promo-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.28) 0%, rgba(16, 185, 129, 0.12) 45%, transparent 70%);
  pointer-events: none;
  animation: fx-lb-promo-glow-pulse 3s ease-in-out infinite;
}

@keyframes fx-lb-promo-glow-pulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.fx-lb-promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  min-height: 0;
  border: 0 !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  color: #e2e8f0 !important;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.fx-lb-promo-close:hover,
.fx-lb-promo-close:focus {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #f8fafc !important;
  transform: none;
}

.fx-lb-promo-icon-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
}

.fx-lb-promo-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(251, 191, 36, 0.45);
  animation: fx-lb-promo-ring-pulse 2.4s ease-out infinite;
}

@keyframes fx-lb-promo-ring-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

.fx-lb-promo-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fbbf24, #f59e0b 45%, #059669);
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(251, 191, 36, 0.55);
}

.fx-lb-promo-icon svg {
  width: 34px;
  height: 34px;
}

.fx-lb-promo-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fcd34d;
}

.fx-lb-promo-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: #fff;
}

.fx-lb-promo-sub {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
}

.fx-lb-promo-pools {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 16px;
}

.fx-lb-promo-pool {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.22);
}

.fx-lb-promo-pool--accent {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(16, 185, 129, 0.1);
}

.fx-lb-promo-pool strong {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.fx-lb-promo-pool span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.fx-lb-promo-pool-plus {
  align-self: center;
  font-size: 16px;
  font-weight: 800;
  color: #64748b;
}

.fx-lb-promo-perks {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(52, 211, 153, 0.2);
  text-align: left;
}

.fx-lb-promo-perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.4;
}

.fx-lb-promo-perks li + li {
  margin-top: 10px;
}

.fx-lb-promo-perks li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 11px;
  font-weight: 800;
}

.fx-lb-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 38%, #059669 100%) !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 18px 36px -14px rgba(245, 158, 11, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fx-lb-promo-cta svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.fx-lb-promo-cta:hover,
.fx-lb-promo-cta:focus {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -12px rgba(245, 158, 11, 0.65);
}

.fx-lb-promo-dismiss {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 8px;
  min-height: 0;
  border: 0 !important;
  border-radius: 8px;
  background: none !important;
  box-shadow: none !important;
  color: rgba(226, 232, 240, 0.9) !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.fx-lb-promo-dismiss:hover,
.fx-lb-promo-dismiss:focus {
  color: #f8fafc !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none;
}

@media (max-width: 360px) {
  .fx-lb-hero {
    padding: 11px 12px;
  }

  .fx-lb-hero-main {
    gap: 8px;
  }

  .fx-lb-pool {
    font-size: 30px;
  }

  .fx-lb-hero-meta span {
    padding: 5px 7px;
  }

  .fx-lb-podium {
    gap: 6px;
  }

  .fx-lb-podium-name {
    font-size: 12px;
  }

  .fx-lb-podium-count {
    font-size: 18px;
  }

  .fx-lb-row-prize,
  .fx-lb-podium-prize,
  .fx-lb-points-chip {
    font-size: 9px;
    padding: 4px 6px;
  }

  .fx-lb-reward-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fx-lb-promo-pools {
    flex-direction: column;
  }

  .fx-lb-promo-pool-plus {
    display: none;
  }

  .fx-dep-item-title .fx-lb-badge-pill {
    margin-left: 0;
    margin-top: 4px;
  }

  .fx-lb-hero-split {
    flex-direction: column;
  }

  .fx-lb-hero-split-plus {
    display: none;
  }

  .fx-lb-champ-pod {
    grid-template-columns: 1fr;
  }

  .fx-lb-champ-pod-slot--1,
  .fx-lb-champ-pod-slot--2,
  .fx-lb-champ-pod-slot--3 {
    order: unset;
    transform: none;
  }

  .fx-lb-invite-pod {
    grid-template-columns: 1fr;
  }

  .fx-lb-invite-pod-slot--1,
  .fx-lb-invite-pod-slot--2,
  .fx-lb-invite-pod-slot--3 {
    order: unset;
  }

  .fx-lb-invite-flipper {
    transform: none;
    animation: none;
  }
}

@media (min-width: 400px) {
  .fx-lb-podium-slot--1:not(.is-winner-spin) .fx-lb-winner-flipper {
    animation:
      fx-lb-winner-float-wide 6.5s ease-in-out infinite;
  }
}

@keyframes fx-lb-winner-float-wide {
  0%, 100% {
    transform: translateY(-8px) rotateY(0deg);
  }
  50% {
    transform: translateY(-11px) rotateY(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-lb-podium-slot--1,
  .fx-lb-beast-bubble,
  .fx-lb-invite-pod-slot--1,
  .fx-lb-invite-pod-slot--2,
  .fx-lb-invite-pod-slot--3,
  .fx-lb-invite-flipper,
  .fx-lb-invite-card,
  .fx-lb-invite-card-face--front,
  .fx-lb-invite-card-ring,
  .fx-lb-invite-card-shine,
  .fx-lb-invite-showcase-floor,
  .fx-lb-invite-showcase > .fx-lb-beast-bubble--invite,
  .fx-lb-champ-pod-slot--1,
  .fx-lb-beast-bubble--invite span,
  .fx-lb-beast-bubble--pod,
  .fx-lb-podium-slot--1:not(.is-winner-spin) .fx-lb-winner-flipper,
  .fx-lb-podium-slot--1:not(.is-winner-spin) .fx-lb-winner-face--front {
    animation: none;
  }

  .fx-lb-beast-bubble--invite span:first-child {
    opacity: 1;
    transform: none;
  }

  .fx-lb-beast-bubble--invite span:last-child {
    opacity: 0;
  }

  .fx-lb-invite-flipper {
    transform: translate3d(0, -6px, 0);
  }

  .fx-lb-invite-showcase > .fx-lb-beast-bubble--invite {
    transform: translateX(0) rotate(-3deg);
  }

  .fx-lb-champ-pod-slot--1 {
    transform: translateY(-6px);
  }

  .fx-lb-winner-stage::before,
  .fx-lb-winner-stage::after,
  .fx-lb-podium-slot--1.is-winner-spin .fx-lb-winner-flipper,
  .fx-lb-podium-slot--1.is-winner-spin .fx-lb-winner-face--front,
  .fx-lb-podium-slot--1.is-winner-spin .fx-lb-winner-face--back,
  .fx-lb-sparkle {
    animation: none;
  }
}

html.fx-dark .fx-lb-show-more {
  border-color: var(--fx-line);
  background: var(--fx-card, #121820);
  color: var(--fx-muted, #94a3b8);
}

html.fx-dark .fx-lb-show-more:hover,
html.fx-dark .fx-lb-show-more:focus {
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--fx-ink, #f1f5f9);
  background: rgba(99, 102, 241, 0.1);
}

html.fx-dark .fx-lb-deposit-note {
  background: var(--fx-card, #121820);
  border-color: var(--fx-line);
}

html.fx-dark .fx-lb-countdown-time {
  color: var(--fx-ink, #f1f5f9);
}

html.fx-dark .fx-lb-countdown-label {
  color: var(--fx-muted, #94a3b8);
}

html.fx-dark .fx-lb-prize-badge--refs {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.04));
  color: #fbbf24;
}

html.fx-dark .fx-lb-prize-badge--deposit {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.04));
  color: #34d399;
}

html.fx-dark .fx-lb-hero {
  border-color: var(--fx-line);
  background: var(--fx-card, #121820);
}

html.fx-dark .fx-lb-hero-total {
  color: var(--fx-muted, #94a3b8);
}

html.fx-dark .fx-lb-hero-meta span {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(15, 20, 28, 0.72);
}

html.fx-dark .fx-lb-hero-meta strong {
  color: var(--fx-ink, #f1f5f9);
}

html.fx-dark .fx-lb-hero-split-item {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.24);
}

html.fx-dark .fx-lb-hero-split-item--deposit {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.24);
}

html.fx-dark .fx-lb-hero-split-amount,
html.fx-dark .fx-lb-hero-split-title {
  color: var(--fx-ink, #f1f5f9);
}

html.fx-dark .fx-lb-hero-split-desc {
  color: var(--fx-muted, #94a3b8);
}

html.fx-dark .fx-lb-hero-meta {
  border-top-color: var(--fx-line);
}

html.fx-dark .fx-lb-hero-meta strong.is-urgent {
  color: #fbbf24;
}

html.fx-dark .fx-lb-reward-panel {
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(99, 102, 241, 0.09)),
    var(--fx-card, #121820);
}

html.fx-dark .fx-lb-reward-stat {
  background: rgba(15, 20, 28, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
}

html.fx-dark .fx-lb-yesterday {
  border-color: var(--fx-line);
  background: var(--fx-card, #121820);
}

html.fx-dark .fx-lb-yesterday-main strong {
  color: var(--fx-ink, #f1f5f9);
}

html.fx-dark .fx-lb-podium-slot {
  background: var(--fx-card, #121820);
}

html.fx-dark .fx-lb-winner-face {
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.06)),
    var(--fx-card, #121820);
  border-color: rgba(251, 191, 36, 0.5);
}

html.fx-dark .fx-lb-podium-slot--1 {
  background: transparent;
  border: none;
}

html.fx-dark .fx-lb-invite-pod-slot {
  background: var(--fx-card, #121820);
}

html.fx-dark .fx-lb-invite-pod-slot--1 {
  background: transparent;
  border: none;
}

html.fx-dark .fx-lb-invite-card-face--front {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, transparent 38%),
    linear-gradient(180deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.06)),
    var(--fx-card, #121820);
  border-color: rgba(251, 191, 36, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.fx-dark .fx-lb-invite-card-face--back {
  background:
    linear-gradient(145deg, rgba(251, 191, 36, 0.72) 0%, rgba(217, 119, 6, 0.82) 48%, rgba(146, 64, 14, 0.92) 100%);
  border-color: rgba(251, 191, 36, 0.38);
}

html.fx-dark .fx-lb-invite-pod-slot--2,
html.fx-dark .fx-lb-invite-pod-slot--3 {
  background:
    linear-gradient(var(--fx-card, #121820), var(--fx-card, #121820)) padding-box,
    linear-gradient(135deg, rgba(45, 212, 191, 0.62), rgba(56, 189, 248, 0.28), rgba(45, 212, 191, 0.62)) border-box;
}

html.fx-dark .fx-lb-invite-pod-slot--2 .fx-lb-invite-pod-rank,
html.fx-dark .fx-lb-invite-pod-slot--3 .fx-lb-invite-pod-rank {
  background: rgba(45, 212, 191, 0.16);
  color: #5eead4;
}

html.fx-dark .fx-lb-invite-pod-prize {
  border-color: rgba(251, 191, 36, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}

html.fx-dark .fx-lb-beast-bubble {
  background: #fffef5;
  color: #1c1917;
}

html.fx-dark .fx-lb-points-chip {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
}

html.fx-dark .fx-dep-eyebrow--lb {
  color: #fbbf24;
}

html.fx-dark .fx-dep-empty-icon--lb {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}

html.fx-dark .fx-invite-hero {
  border-color: var(--fx-line);
  background: var(--fx-card, #121820);
}

html.fx-dark .fx-invite-stat {
  background: #0f141c;
  border-color: var(--fx-line);
}

html.fx-dark .fx-invite-stat--active {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(52, 211, 153, 0.22);
}

html.fx-dark .fx-invite-stat--today {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(129, 140, 248, 0.22);
}

html.fx-dark .fx-invite-rank-link {
  border-color: var(--fx-line);
  color: #a5b4fc;
}

html.fx-dark .fx-invite-person {
  background: var(--fx-card, #121820);
}

html.fx-dark .easyfx-dashboard.fx-aurora button.fx-page-link,
html.fx-dark .fx-invite-view-all {
  color: var(--fx-ink, #f1f5f9) !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--fx-line);
  box-shadow: none;
}

html.fx-dark .easyfx-dashboard.fx-aurora button.fx-page-link i,
html.fx-dark .fx-invite-view-all i {
  color: currentColor !important;
  -webkit-text-fill-color: currentColor !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora button.fx-page-link:hover,
html.fx-dark .fx-invite-view-all:hover {
  color: #c7d2fe !important;
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.32);
  transform: none;
  box-shadow: none;
}

html.fx-dark .fx-invite-joined,
html.fx-dark .fx-invite-modal-joined {
  color: var(--fx-muted, #94a3b8);
}

/* ── WhatsApp group modal (home) ── */
.fx-wa-modal {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
}

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

.fx-wa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 20, 12, 0.78);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.fx-wa-modal.is-open .fx-wa-modal-backdrop {
  opacity: 1;
}

.fx-wa-modal-dialog {
  position: relative;
  width: min(100%, 380px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 28px 22px 20px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: 20px;
  background:
    radial-gradient(circle at 15% 0%, rgba(37, 211, 102, 0.28), transparent 45%),
    radial-gradient(circle at 90% 100%, rgba(18, 140, 126, 0.22), transparent 42%),
    linear-gradient(165deg, #052e16 0%, #0a1f14 40%, #0f172a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 32px 64px -24px rgba(0, 0, 0, 0.7),
    0 0 48px rgba(37, 211, 102, 0.15);
  color: #f8fafc;
  text-align: center;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.fx-wa-modal.is-open .fx-wa-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

body.fx-wa-modal-open {
  overflow: hidden;
}

.fx-wa-modal-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.35) 0%, transparent 70%);
  pointer-events: none;
  animation: fx-wa-glow-pulse 3s ease-in-out infinite;
}

@keyframes fx-wa-glow-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.fx-wa-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  min-height: 0;
  border: 0 !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  color: #e2e8f0 !important;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.fx-wa-modal-close:hover,
.fx-wa-modal-close:focus {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #f8fafc !important;
  transform: none;
}

.fx-wa-modal-icon-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
}

.fx-wa-modal-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: fx-wa-ring-pulse 2.4s ease-out infinite;
}

@keyframes fx-wa-ring-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

.fx-wa-modal-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.65);
}

.fx-wa-modal-icon svg {
  width: 34px;
  height: 34px;
}

.fx-wa-modal-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6ee7b7;
}

.fx-wa-modal-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: #fff;
}

.fx-wa-modal-sub {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
}

.fx-wa-modal-perks {
  list-style: none;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(37, 211, 102, 0.2);
  text-align: left;
}

.fx-wa-modal-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.4;
}

.fx-wa-modal-perks li + li {
  margin-top: 10px;
}

.fx-wa-modal-perks li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.2);
  color: #34d399;
  font-size: 11px;
  font-weight: 800;
}

.fx-wa-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #25d366 0%, #20ba5a 45%, #128c7e 100%) !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 18px 36px -14px rgba(37, 211, 102, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fx-wa-modal-cta svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.fx-wa-modal-cta:hover,
.fx-wa-modal-cta:focus {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -12px rgba(37, 211, 102, 0.8);
}

.fx-wa-modal-dismiss {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 8px;
  min-height: 0;
  border: 0 !important;
  border-radius: 8px;
  background: none !important;
  box-shadow: none !important;
  color: rgba(226, 232, 240, 0.9) !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.fx-wa-modal-dismiss:hover,
.fx-wa-modal-dismiss:focus {
  color: #f8fafc !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none;
}
