/* EasyFX Dashboard — fintech / trading app UI */

.easyfx-dashboard {
  --page-gutter: 18px;
  font-family: '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;
}

/* ── 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 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f1f5f9;
  text-decoration: none;
}

.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;
}

.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;
}

/* 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;
}

/* 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-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.fx-tasks-section-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
  font-size: 18px;
}

.fx-tasks-section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

.fx-tasks-section-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
}

.fx-task-scroll-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
}

.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 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  scrollbar-width: none;
}

.fx-task-scroll::-webkit-scrollbar {
  display: none;
}

.fx-task-scroll-track {
  display: flex;
  gap: 12px;
  width: max-content;
}

.fx-task-card {
  padding: 16px;
  border: 1px solid #1a1f2a;
  border-radius: 14px;
  background: #11151c;
}

.fx-task-card--slide {
  flex: 0 0 min(78vw, 280px);
  scroll-snap-align: start;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.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-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}

.fx-task-reward {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.12);
  font-size: 12px;
  font-weight: 700;
  color: #34d399;
  font-variant-numeric: tabular-nums;
}

.fx-task-progress-wrap {
  margin-top: 14px;
}

.fx-task-progress-track {
  height: 6px;
  border-radius: 99px;
  background: #1a1f2a;
  overflow: hidden;
}

.fx-task-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fx-task-progress-fill.is-complete {
  background: linear-gradient(90deg, #059669 0%, #34d399 100%);
}

.fx-task-progress-text {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.fx-task-desc {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

.fx-task-claim {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 16px !important;
  border: 1px solid #1e2533 !important;
  border-radius: 10px !important;
  background: #090b10 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  cursor: not-allowed;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.fx-task-claim.is-ready {
  border-color: #2563eb !important;
  background: #2563eb !important;
  color: #fff !important;
  cursor: pointer;
}

.fx-task-claim.is-ready:hover {
  background: #1d4ed8 !important;
  transform: none !important;
}

.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(52, 211, 153, 0.3) !important;
  background: rgba(52, 211, 153, 0.1) !important;
  color: #34d399 !important;
  cursor: default;
}

/* ── Invite page ── */
.fx-invite-hero {
  background: linear-gradient(145deg, #12161f 0%, #0d1018 100%);
}

.fx-invite-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fx-invite-stat {
  flex: 1;
  text-align: center;
}

.fx-invite-stat-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #60a5fa;
  font-variant-numeric: tabular-nums;
}

.fx-invite-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

.fx-invite-stat-divider {
  width: 1px;
  height: 40px;
  background: #1a1f2a;
}

.fx-invite-desc {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
}

.fx-invite-desc strong {
  color: #34d399;
  font-weight: 600;
}

.fx-invite-share-btn {
  margin-top: 12px;
  gap: 8px;
  font-size: 14px !important;
}

.fx-invite-referrals-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.fx-invite-view-all {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.fx-invite-empty {
  margin-top: 12px;
  padding: 32px 20px;
  border: 1px dashed #1e2533;
  border-radius: 14px;
  text-align: center;
}

.fx-invite-empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: #60a5fa;
  font-size: 22px;
}

.fx-invite-empty p {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

.fx-invite-empty span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}

.fx-invite-scroll {
  margin: 0 -20px;
  padding: 0 20px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.fx-invite-scroll::-webkit-scrollbar {
  display: none;
}

.fx-invite-scroll-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding-top: 8px;
}

.fx-invite-person {
  flex: 0 0 88px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.fx-invite-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #1e2533;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.fx-invite-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fx-invite-avatar.is-pending {
  border-color: rgba(248, 113, 113, 0.4);
  opacity: 0.75;
}

.fx-invite-name {
  max-width: 88px;
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-invite-name.is-pending {
  color: #f87171;
}

.fx-invite-status {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.fx-invite-status.is-active {
  color: #34d399;
}

.fx-invite-steps-list {
  margin-top: 14px;
}

.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: #090b10 !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 #1a1f2a;
  background: rgba(9, 11, 16, 0.95);
  backdrop-filter: blur(12px);
}

.fx-invite-modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
}

.fx-invite-modal-back {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #94a3b8 !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: #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 #1a1f2a;
  border-radius: 12px;
  background: #11151c;
}

.fx-invite-modal-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #1e2533;
}

.fx-invite-modal-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fx-invite-modal-name {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

.fx-invite-modal-status {
  font-size: 11px;
  color: #f87171;
}

.fx-invite-modal-status.is-active {
  color: #34d399;
}

/* ── 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 4px;
  border-radius: 14px;
  color: #64748b;
  font-size: 10px;
  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.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;
}

.fx-auth-sheet {
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, #141a26 0%, #0d1018 100%);
  box-shadow:
    0 -8px 40px rgba(0, 0, 0, 0.35),
    0 24px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  color: #cbd5e1;
}

.fx-auth-sheet.modal-content {
  color: #cbd5e1;
}

.fx-auth-handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #334155;
}

.fx-auth-sheet-head {
  margin-bottom: 18px;
  text-align: center;
}

.fx-auth-sheet-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc !important;
  line-height: 1.25;
}

.fx-auth-sheet-sub {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #94a3b8;
}

.fx-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(9, 11, 16, 0.8);
  border: 1px solid #1a1f2a;
}

.fx-auth-modal .fx-auth-tab,
.easyfx-dashboard .fx-auth-tab {
  width: auto !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #f8fafc !important;
  font-size: 13px !important;
  font-weight: 600 !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: #2563eb !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !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.06) !important;
  color: #fff !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: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.fx-auth-sheet label {
  margin: 0;
  color: #94a3b8;
}

.fx-auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #1e2533;
  border-radius: 12px;
  background: rgba(9, 11, 16, 0.9);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fx-auth-input-wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.fx-auth-input-icon {
  flex-shrink: 0;
  font-size: 15px;
  color: #475569;
}

.fx-auth-input-wrap:focus-within .fx-auth-input-icon {
  color: #60a5fa;
}

.easyfx-dashboard .fx-auth-input-wrap input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: auto;
  padding: 12px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f8fafc !important;
  font-size: 14px !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: #64748b !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: #f8fafc !important;
  caret-color: #f8fafc;
  -webkit-box-shadow: 0 0 0 1000px rgba(9, 11, 16, 0.95) inset !important;
  box-shadow: 0 0 0 1000px rgba(9, 11, 16, 0.95) inset !important;
  transition: background-color 9999s ease-out 0s;
}

.fx-auth-submit {
  margin-top: 4px;
  gap: 8px;
}

.fx-auth-bonus-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.18);
  font-size: 12px;
  color: #94a3b8;
}

.fx-auth-bonus-pill i {
  color: #34d399;
  font-size: 14px;
}

.fx-auth-bonus-pill strong {
  color: #34d399;
  font-weight: 700;
}

.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);
  }
}
