/* AscendEx — refined premium dark theme */
:root[data-theme="ascendex"] {
  --navy: #18181f;
  --navy-mid: #22222c;
  --blue: #7c6df0;
  --blue-soft: #9d93f5;
  --blue-glow: rgba(124, 109, 240, 0.22);
  --green: #2dd4a8;
  --red: #f07070;
  --yellow: #e8b84a;
  --white: #fafafa;
  --bg: #09090f;
  --text: #ececf1;
  --muted: #8b8b98;
  --line: rgba(255, 255, 255, 0.07);
  --glass: rgba(20, 20, 28, 0.72);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
  --gradient-1: linear-gradient(135deg, #7c6df0 0%, #6355d8 100%);
  --gradient-2: linear-gradient(180deg, #09090f 0%, #0f0f16 50%, #09090f 100%);
  --ax-surface: rgba(18, 18, 26, 0.88);
  --ax-surface-2: rgba(24, 24, 34, 0.92);
  --ax-border: rgba(255, 255, 255, 0.08);
  --ax-accent-dim: rgba(124, 109, 240, 0.14);
}

:root[data-theme="ascendex"] body,
:root[data-theme="ascendex"] #app,
:root[data-theme="ascendex"] .splash {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--gradient-2) !important;
  color: var(--text);
}
:root[data-theme="ascendex"] .table-head,
:root[data-theme="ascendex"] .page-head,
:root[data-theme="ascendex"] .markets-card,
:root[data-theme="ascendex"] .field label,
:root[data-theme="ascendex"] .direction-choose-label,
:root[data-theme="ascendex"] .time-card .tc-duration {
  color: var(--text);
}
:root[data-theme="ascendex"] .markets-card,
:root[data-theme="ascendex"] .stat-box,
:root[data-theme="ascendex"] .input-line {
  background: var(--ax-surface) !important;
  border-color: var(--ax-border) !important;
}

:root[data-theme="ascendex"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(124, 109, 240, 0.16), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(45, 212, 168, 0.04), transparent 45%),
    radial-gradient(ellipse 45% 35% at 100% 40%, rgba(124, 109, 240, 0.08), transparent 50%);
}

:root[data-theme="ascendex"] #app { position: relative; z-index: 1; }

/* ── Splash & brand ── */
:root[data-theme="ascendex"] .splash { background: var(--gradient-2); }
:root[data-theme="ascendex"] .exmo-wordmark { display: none !important; }
:root[data-theme="ascendex"] .ascendex-wordmark {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
@keyframes axIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
:root[data-theme="ascendex"] .ascendex-icon {
  filter: drop-shadow(0 0 12px rgba(124, 109, 240, 0.35));
}
:root[data-theme="ascendex"] .ascendex-text { font-weight: 800; letter-spacing: -0.02em; }
:root[data-theme="ascendex"] .splash-size .ascendex-text { font-size: 2rem; }
:root[data-theme="ascendex"] .header-size .ascendex-text { font-size: 1.05rem; }
:root[data-theme="ascendex"] .ax-brand-a {
  background: linear-gradient(135deg, #d4cffc, #7c6df0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="ascendex"] .ax-brand-rest { color: #f4f4f5; }
:root[data-theme="ascendex"] .ax-brand-ex {
  background: linear-gradient(135deg, #b8aff8, #6d5dd8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="ascendex"] .splash-bar { background: rgba(255,255,255,0.06); height: 3px; }
:root[data-theme="ascendex"] .splash-bar-fill {
  background: linear-gradient(90deg, #6355d8, #7c6df0, #9d93f5);
  box-shadow: 0 0 10px rgba(124, 109, 240, 0.4);
}

/* ── Glass / surfaces ── */
:root[data-theme="ascendex"] .glass,
:root[data-theme="ascendex"] .glass-pill {
  background: var(--ax-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--ax-border);
  box-shadow: var(--shadow);
}

/* ── Topbar ── */
:root[data-theme="ascendex"] .topbar {
  background: rgba(9, 9, 15, 0.92);
  border-bottom: 1px solid var(--ax-border);
}
:root[data-theme="ascendex"] .brand-sub { color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 9px; }
:root[data-theme="ascendex"] .top-balance span { color: var(--muted); }
:root[data-theme="ascendex"] .top-balance strong { color: var(--text); }

/* ── Typography ── */
:root[data-theme="ascendex"] .page-head h1 { color: var(--text); font-weight: 700; }
:root[data-theme="ascendex"] .page-head p { color: var(--muted); }

/* ── Markets ── */
:root[data-theme="ascendex"] .table-head {
  background: rgba(24, 24, 34, 0.95) !important;
  border-bottom: 1px solid var(--ax-border) !important;
  color: #9b9ba8 !important;
}
:root[data-theme="ascendex"] .table-head span {
  color: #b8aff8 !important;
  font-weight: 600;
}
:root[data-theme="ascendex"] .m-pair {
  color: #f4f4f5 !important;
}
:root[data-theme="ascendex"] .m-pair small {
  color: #8b8b98 !important;
}
:root[data-theme="ascendex"] .m-price {
  color: #c4b5fd !important;
}
:root[data-theme="ascendex"] #app {
  padding-bottom: 0 !important;
  min-height: auto !important;
}

:root[data-theme="ascendex"] .market-row {
  background: var(--ax-surface) !important;
  border: 1px solid var(--ax-border);
  border-radius: 14px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
:root[data-theme="ascendex"] .market-row:hover {
  background: var(--ax-surface-2) !important;
}
:root[data-theme="ascendex"] .market-row:active {
  background: var(--ax-surface-2);
  border-color: rgba(124, 109, 240, 0.22);
}

/* ── Trade terminal ── */
:root[data-theme="ascendex"] .trade-screen {
  background: linear-gradient(180deg, #09090f 0%, #0c0c14 40%, #09090f 100%);
}
:root[data-theme="ascendex"] .trade-top {
  background: rgba(22, 22, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 8px 14px 0;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  padding: 14px 16px;
}
:root[data-theme="ascendex"] .pair-name { color: #f4f4f5 !important; font-weight: 800; }
:root[data-theme="ascendex"] .pair-price { color: #c4b5fd !important; font-weight: 700; }
:root[data-theme="ascendex"] .pair-change.up {
  color: #2dd4a8 !important;
  background: rgba(45, 212, 168, 0.12) !important;
}
:root[data-theme="ascendex"] .pair-change.down {
  color: #f07070 !important;
  background: rgba(240, 112, 112, 0.12) !important;
}
:root[data-theme="ascendex"] .topbar {
  background: rgba(9, 9, 15, 0.96);
}
:root[data-theme="ascendex"] .top-balance span { color: #9b9ba8 !important; }
:root[data-theme="ascendex"] .top-balance strong { color: #f4f4f5 !important; }
:root[data-theme="ascendex"] .glass-pill {
  background: rgba(24, 24, 34, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
:root[data-theme="ascendex"] .brand-sub { color: #8b8b98 !important; }
:root[data-theme="ascendex"] .icon-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ax-border);
  color: var(--text);
}
:root[data-theme="ascendex"] .icon-btn.accent {
  background: var(--ax-accent-dim);
  border-color: rgba(124, 109, 240, 0.25);
  color: var(--blue-soft);
}
:root[data-theme="ascendex"] .chart-wrap {
  background: rgba(14, 14, 20, 0.98);
  border: 1px solid rgba(124, 109, 240, 0.18);
  border-radius: 18px;
  margin: 10px 14px 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
:root[data-theme="ascendex"] .tv-chart-panel {
  border-bottom-color: rgba(255, 255, 255, 0.07);
  background: rgba(18, 18, 26, 0.92);
}
:root[data-theme="ascendex"] .tv-chart-ohlc {
  background: rgba(14, 14, 20, 0.85);
  border-color: rgba(124, 109, 240, 0.18);
}
:root[data-theme="ascendex"] .tv-chart-ohlc.idle .ohlc-label { color: #c4b5fd; }
:root[data-theme="ascendex"] .tv-chart-ohlc.idle .ohlc-hint { color: #8b8b98; }
:root[data-theme="ascendex"] .tv-chart-ohlc .ohlc-label { color: #9d93f5; }
:root[data-theme="ascendex"] .tv-chart-ohlc.up {
  background: rgba(45, 212, 168, 0.08) !important;
  border-color: rgba(45, 212, 168, 0.22) !important;
}
:root[data-theme="ascendex"] .tv-chart-ohlc.down {
  background: rgba(240, 112, 112, 0.07) !important;
  border-color: rgba(240, 112, 112, 0.2) !important;
}
:root[data-theme="ascendex"] .ohlc-cell b { color: #ececf1; }
:root[data-theme="ascendex"] .tv-chart-head b { color: #f4f4f5; }
:root[data-theme="ascendex"] .tv-chart-head span { color: #8b8b98; }
:root[data-theme="ascendex"] .tv-chart-canvas {
  min-height: 252px;
  max-height: 252px;
  height: 252px;
  flex: 0 0 252px;
  background: #0c0c12;
  overflow: hidden;
  touch-action: pan-x pinch-zoom;
}
:root[data-theme="ascendex"] .tv-chart-mount {
  touch-action: pan-x pinch-zoom;
}
:root[data-theme="ascendex"] .chart-wrap,
:root[data-theme="ascendex"] #price-chart,
:root[data-theme="ascendex"] .tv-chart-shell {
  height: 370px;
  max-height: 370px;
  overflow: hidden;
}
:root[data-theme="ascendex"] .tv-chart-shell::after {
  background: linear-gradient(90deg, rgba(124,109,240,.06), rgba(157,147,245,.12), rgba(124,109,240,.06));
}
:root[data-theme="ascendex"] .tv-price-badge.up {
  color: #2dd4a8;
  background: rgba(45, 212, 168, 0.1);
  border-color: rgba(45, 212, 168, 0.22);
}
:root[data-theme="ascendex"] .tv-price-badge.down {
  color: #f07070;
  background: rgba(240, 112, 112, 0.1);
  border-color: rgba(240, 112, 112, 0.22);
}
:root[data-theme="ascendex"] .tv-tooltip {
  background: rgba(18, 18, 26, 0.96);
  border: 1px solid rgba(124, 109, 240, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
:root[data-theme="ascendex"] .tv-tooltip span { color: #8b8b98; }

/* ── Step indicator ── */
:root[data-theme="ascendex"] .step-indicator {
  padding: 10px 14px;
  margin: 6px 14px;
  background: rgba(18, 18, 26, 0.55);
  border: 1px solid var(--ax-border);
  border-radius: 14px;
}
:root[data-theme="ascendex"] .step span {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--ax-border);
  color: var(--muted);
  font-weight: 700;
}
:root[data-theme="ascendex"] .step small { color: var(--muted); }
:root[data-theme="ascendex"] .step.active span {
  background: var(--gradient-1);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 109, 240, 0.3);
}
:root[data-theme="ascendex"] .step.active small { color: var(--blue-soft); }
:root[data-theme="ascendex"] .step.completed span {
  background: rgba(45, 212, 168, 0.15);
  border-color: rgba(45, 212, 168, 0.3);
  color: var(--green);
}
:root[data-theme="ascendex"] .step.completed small { color: var(--green); }
:root[data-theme="ascendex"] .step-line { background: rgba(255,255,255,0.08); }
:root[data-theme="ascendex"] .step-line.active { background: var(--green); }

/* ── Stats row (amount screen) ── */
:root[data-theme="ascendex"] .stats-row { padding: 0 14px 10px; gap: 8px; }
:root[data-theme="ascendex"] .stat-box {
  background: var(--ax-surface);
  border: 1px solid var(--ax-border);
  border-radius: 14px;
  padding: 12px 14px;
}
:root[data-theme="ascendex"] .stat-box small { color: var(--muted); }
:root[data-theme="ascendex"] .stat-box b { color: var(--text); font-size: 15px; }
:root[data-theme="ascendex"] .amount-field { padding: 0 14px 10px; }
:root[data-theme="ascendex"] .quick-amounts { padding: 8px 14px 4px; }
:root[data-theme="ascendex"] .direction-amount-summary {
  background: rgba(124, 109, 240, 0.08);
  border-color: rgba(124, 109, 240, 0.18);
}
:root[data-theme="ascendex"] .direction-amount-summary strong { color: #c4b5fd; }
:root[data-theme="ascendex"] .direction-choose-label { color: #ececf1; }
:root[data-theme="ascendex"] .direction-card {
  background: rgba(18, 18, 26, 0.88);
  border-color: var(--ax-border);
}
:root[data-theme="ascendex"] .dir-label { color: #f4f4f5; }
:root[data-theme="ascendex"] .dir-sublabel { color: #8b8b98; }

/* ── Amount input ── */
:root[data-theme="ascendex"] .field label { color: var(--muted); font-weight: 600; }
:root[data-theme="ascendex"] .input-line {
  background: rgba(18, 18, 26, 0.92) !important;
  border: 1px solid var(--ax-border) !important;
  border-radius: 14px;
  box-shadow: none !important;
}
:root[data-theme="ascendex"] .input-line:focus-within {
  border-color: rgba(124, 109, 240, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(124, 109, 240, 0.12) !important;
}
:root[data-theme="ascendex"] .amount-input-wrap input,
:root[data-theme="ascendex"] .input-line input {
  color: #f4f4f5 !important;
  background: transparent !important;
  font-size: 22px;
  font-weight: 700;
}
:root[data-theme="ascendex"] .amount-input-wrap input::placeholder { color: rgba(139,139,152,0.5); }
:root[data-theme="ascendex"] .amount-input-wrap span { color: var(--muted); }
:root[data-theme="ascendex"] .qa-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ax-border);
  color: var(--text);
  border-radius: 20px;
}
:root[data-theme="ascendex"] .qa-btn:hover,
:root[data-theme="ascendex"] .qa-btn.active {
  background: var(--ax-accent-dim);
  border-color: rgba(124, 109, 240, 0.35);
  color: var(--blue-soft);
  transform: none;
  box-shadow: none;
}

/* ── Direction screen ── */
:root[data-theme="ascendex"] .direction-amount-summary,
:root[data-theme="ascendex"] .time-summary {
  background: var(--ax-surface);
  border: 1px solid var(--ax-border);
  border-radius: 14px;
}
:root[data-theme="ascendex"] .direction-amount-summary span,
:root[data-theme="ascendex"] .ts-item span { color: var(--muted); }
:root[data-theme="ascendex"] .direction-amount-summary strong { color: var(--blue-soft); }
:root[data-theme="ascendex"] .direction-choose-label { color: var(--text); }
:root[data-theme="ascendex"] .direction-card {
  background: var(--ax-surface);
  border: 1px solid var(--ax-border);
  border-radius: 18px;
}
:root[data-theme="ascendex"] .dir-label { color: var(--text); }
:root[data-theme="ascendex"] .dir-sublabel { color: var(--muted); }
:root[data-theme="ascendex"] .up-card .dir-icon { background: rgba(45, 212, 168, 0.1); }
:root[data-theme="ascendex"] .down-card .dir-icon { background: rgba(240, 112, 112, 0.1); }
:root[data-theme="ascendex"] .equal-card .dir-icon { background: rgba(142, 164, 189, 0.12); }
:root[data-theme="ascendex"] .up-card.selected {
  border-color: rgba(45, 212, 168, 0.45);
  background: rgba(45, 212, 168, 0.06);
  box-shadow: 0 8px 28px rgba(45, 212, 168, 0.12);
}
:root[data-theme="ascendex"] .down-card.selected {
  border-color: rgba(240, 112, 112, 0.45);
  background: rgba(240, 112, 112, 0.06);
  box-shadow: 0 8px 28px rgba(240, 112, 112, 0.12);
}
:root[data-theme="ascendex"] .equal-card.selected {
  border-color: rgba(142, 164, 189, 0.5);
  background: rgba(142, 164, 189, 0.08);
  box-shadow: 0 8px 28px rgba(142, 164, 189, 0.12);
}
:root[data-theme="ascendex"] .fav-chip {
  background: rgba(18, 18, 26, 0.92);
  border-color: var(--ax-border);
  color: #f4f4f5;
}
:root[data-theme="ascendex"] .confirm-card {
  background: var(--ax-surface);
  border: 1px solid var(--ax-border);
}
:root[data-theme="ascendex"] .confirm-title,
:root[data-theme="ascendex"] .confirm-row b { color: #f4f4f5; }
:root[data-theme="ascendex"] .confirm-row { color: #8b8b98; }
:root[data-theme="ascendex"] .confirm-row.highlight b { color: #2dd4a8; }
:root[data-theme="ascendex"] .result-session { color: #8b8b98; }
:root[data-theme="ascendex"] .time-hint { color: #8b8b98; }
:root[data-theme="ascendex"] .live-price-block.up { color: #2dd4a8; }
:root[data-theme="ascendex"] .live-price-block.down { color: #f07070; }
:root[data-theme="ascendex"] .step-indicator .step small { font-size: 9px; }

/* ── Time screen ── */
:root[data-theme="ascendex"] .ts-item strong { color: var(--text); }
:root[data-theme="ascendex"] .ts-item strong.dir-up { color: var(--green); }
:root[data-theme="ascendex"] .ts-item strong.dir-down { color: var(--red); }
:root[data-theme="ascendex"] .ts-arrow { color: var(--muted); }
:root[data-theme="ascendex"] .time-card {
  background: var(--ax-surface);
  border: 1px solid var(--ax-border);
  border-radius: 16px;
}
:root[data-theme="ascendex"] .time-card .tc-duration { color: var(--text); }
:root[data-theme="ascendex"] .time-card .tc-mult {
  background: linear-gradient(135deg, var(--blue-soft), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
:root[data-theme="ascendex"] .time-card:hover,
:root[data-theme="ascendex"] .time-card.selected {
  border-color: rgba(124, 109, 240, 0.35);
  background: var(--ax-surface-2);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

/* ── Live / simulator ── */
:root[data-theme="ascendex"] .simulator-header {
  background: var(--ax-surface);
  border: 1px solid var(--ax-border);
  border-radius: 16px;
}
:root[data-theme="ascendex"] .sim-pair { color: var(--text); }
:root[data-theme="ascendex"] .timer-bg { stroke: rgba(255,255,255,0.08); }
:root[data-theme="ascendex"] .timer-progress { stroke: var(--blue); }
:root[data-theme="ascendex"] .timer-text { color: var(--blue-soft); }
:root[data-theme="ascendex"] .sim-timer small { color: var(--muted); }
:root[data-theme="ascendex"] .futures-simulator {
  background: linear-gradient(180deg, #0c1018 0%, #080c12 100%);
  border: 1px solid var(--ax-border);
  border-radius: 16px;
}
:root[data-theme="ascendex"] .futures-simulator::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 24px 24px;
}
:root[data-theme="ascendex"] .entry-marker {
  background: rgba(124, 109, 240, 0.12);
  border-color: rgba(124, 109, 240, 0.25);
  color: var(--blue-soft);
}
:root[data-theme="ascendex"] .entry-dot { background: var(--blue); }
:root[data-theme="ascendex"] .current-marker {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: var(--text);
}
:root[data-theme="ascendex"] .current-marker.up { border-color: rgba(45,212,168,0.35); background: rgba(45,212,168,0.08); }
:root[data-theme="ascendex"] .current-marker.down { border-color: rgba(240,112,112,0.35); background: rgba(240,112,112,0.08); }

/* ── Trade stats ── */
:root[data-theme="ascendex"] .trade-stats {
  background: var(--ax-surface);
  border: 1px solid var(--ax-border);
  border-radius: 14px;
}
:root[data-theme="ascendex"] .stat-row { border-bottom-color: rgba(255,255,255,0.05); }
:root[data-theme="ascendex"] .stat-label { color: var(--muted); }
:root[data-theme="ascendex"] .stat-value { color: var(--text); }
:root[data-theme="ascendex"] .stat-value.dir.up { color: var(--green); }
:root[data-theme="ascendex"] .stat-value.dir.down { color: var(--red); }
:root[data-theme="ascendex"] .pnl-row { background: rgba(255,255,255,0.03); }
:root[data-theme="ascendex"] .live-status { color: var(--muted); }

/* ── Result screen — branded exchange-style ── */
:root[data-theme="ascendex"] .result-container {
  background:
    radial-gradient(ellipse 90% 55% at 50% 20%, rgba(124, 109, 240, 0.1), transparent 60%),
    #09090f;
  min-height: 100vh;
  padding: 24px 16px;
}
:root[data-theme="ascendex"] .result-anim-bg.win {
  opacity: 1;
  background:
    radial-gradient(circle at 50% 35%, rgba(45, 212, 168, 0.14), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(124, 109, 240, 0.08), transparent 45%);
  animation: axBgPulse 4s ease-in-out infinite;
}
:root[data-theme="ascendex"] .result-anim-bg.lose {
  opacity: 1;
  background: radial-gradient(circle at 50% 35%, rgba(240, 112, 112, 0.12), transparent 55%);
}
@keyframes axBgPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
:root[data-theme="ascendex"] .result-card {
  position: relative;
  overflow: hidden;
  background: rgba(16, 16, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  border-radius: 28px;
  padding: 36px 24px 28px;
  max-width: 360px;
  animation: axCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
:root[data-theme="ascendex"] .result-card.win::before,
:root[data-theme="ascendex"] .result-card.win::after,
:root[data-theme="ascendex"] .result-card.lose::before,
:root[data-theme="ascendex"] .result-card.lose::after {
  display: none !important;
}
:root[data-theme="ascendex"] .result-card.win {
  border-color: rgba(45, 212, 168, 0.25);
  box-shadow: 0 24px 80px rgba(45, 212, 168, 0.08), 0 0 60px rgba(124, 109, 240, 0.12);
}
:root[data-theme="ascendex"] .result-card.lose {
  border-color: rgba(240, 112, 112, 0.22);
}
@keyframes axCardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

.ax-result-seal {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 40px;
  overflow: visible;
}
.ax-result-seal.ax-seal-animate .ax-seal-logo {
  animation: axLogoPop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ax-result-seal.ax-seal-animate .ax-seal-ring {
  animation: axRingSpin 3s linear infinite;
}
.ax-result-seal.win .ax-seal-glow {
  background: radial-gradient(circle, rgba(45, 212, 168, 0.35), rgba(124, 109, 240, 0.2), transparent 70%);
  animation: axGlowPulse 2s ease-in-out infinite;
}
.ax-result-seal.lose .ax-seal-glow {
  background: radial-gradient(circle, rgba(240, 112, 112, 0.25), transparent 70%);
}
.ax-result-seal.lose.ax-seal-animate {
  animation: axLossShake 0.5s ease 0.3s;
}
@keyframes axLossShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.ax-seal-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.75;
  pointer-events: none;
}
.ax-seal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(124, 109, 240, 0.6);
  border-right-color: rgba(124, 109, 240, 0.15);
}
.ax-seal-ring-2 {
  inset: 8px;
  border-top-color: rgba(157, 147, 245, 0.4);
  animation-direction: reverse;
  animation-duration: 4s;
}
.ax-result-seal.win .ax-seal-ring {
  border-top-color: rgba(45, 212, 168, 0.7);
  border-right-color: rgba(124, 109, 240, 0.3);
}
.ax-result-seal.lose .ax-seal-ring {
  border-top-color: rgba(240, 112, 112, 0.6);
  border-right-color: rgba(240, 112, 112, 0.15);
}
@keyframes axRingSpin {
  to { transform: rotate(360deg); }
}
@keyframes axGlowPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}
.ax-seal-logo {
  position: absolute;
  inset: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 16px rgba(124, 109, 240, 0.4));
}
.ax-seal-logo svg {
  width: 44px !important;
  height: 44px !important;
}
@keyframes axLogoPop {
  0% { opacity: 0; transform: scale(0.5) translateY(10px); }
  60% { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
.ax-result-seal.win .ax-logo-main { filter: drop-shadow(0 0 8px rgba(45, 212, 168, 0.4)); }
.ax-result-seal.lose .ax-logo-main { opacity: 0.75; filter: grayscale(0.3); }

.ax-seal-status {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 12, 18, 0.9);
  backdrop-filter: blur(12px);
  animation: axBadgeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}
.ax-seal-status.win {
  border-color: rgba(45, 212, 168, 0.35);
  color: #2dd4a8;
  box-shadow: 0 4px 20px rgba(45, 212, 168, 0.2);
}
.ax-seal-status.lose {
  border-color: rgba(240, 112, 112, 0.35);
  color: #f07070;
  box-shadow: 0 4px 20px rgba(240, 112, 112, 0.15);
}
.ax-status-icon { font-size: 10px; }
@keyframes axBadgeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

:root[data-theme="ascendex"] #result-title,
:root[data-theme="ascendex"] .result-title {
  display: none !important;
}
:root[data-theme="ascendex"] .result-card:not(.result-card-v3) .result-amount {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  animation: axAmountIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
:root[data-theme="ascendex"] .result-card.win:not(.result-card-v3) .result-amount {
  color: #2dd4a8;
  text-shadow: 0 0 30px rgba(45, 212, 168, 0.25);
}
:root[data-theme="ascendex"] .result-card.lose:not(.result-card-v3) .result-amount {
  color: #f07070;
}
@keyframes axAmountIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
:root[data-theme="ascendex"] .result-balance-line {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ax-border);
  color: var(--muted);
  border-radius: 14px;
}
:root[data-theme="ascendex"] .result-balance-line b { color: var(--text); }
:root[data-theme="ascendex"] .blockchain-grid { opacity: 0.15; }

/* ── Buttons ── */
:root[data-theme="ascendex"] .btn-main,
:root[data-theme="ascendex"] .btn-lg {
  background: var(--gradient-1);
  border: none;
  color: #fff;
  box-shadow: 0 6px 20px rgba(124, 109, 240, 0.28);
  border-radius: 14px;
}
:root[data-theme="ascendex"] .btn-main:active { transform: scale(0.98); }
:root[data-theme="ascendex"] .btn-ghost {
  background: transparent;
  border: 1px solid var(--ax-border);
  color: var(--muted);
}
:root[data-theme="ascendex"] .btn-ghost:active { background: rgba(255,255,255,0.04); color: var(--text); }
:root[data-theme="ascendex"] .wallet-action-btn,
:root[data-theme="ascendex"] .btn-support,
:root[data-theme="ascendex"] .btn-verify,
:root[data-theme="ascendex"] .method-btn {
  background: var(--ax-surface);
  border: 1px solid var(--ax-border);
  color: var(--text);
}
:root[data-theme="ascendex"] .method-btn.active {
  border-color: rgba(124, 109, 240, 0.4);
  background: var(--ax-accent-dim);
}

/* ── Inputs ── */
:root[data-theme="ascendex"] input,
:root[data-theme="ascendex"] select,
:root[data-theme="ascendex"] textarea {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--ax-border);
  color: var(--text);
}
:root[data-theme="ascendex"] input:focus {
  border-color: rgba(124, 109, 240, 0.4);
  box-shadow: 0 0 0 3px rgba(124, 109, 240, 0.12);
  outline: none;
}
:root[data-theme="ascendex"] input::placeholder { color: rgba(139,139,152,0.45); }

:root[data-theme="ascendex"] .markets-search-wrap input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
:root[data-theme="ascendex"] .markets-search-wrap input:focus {
  border: none !important;
  box-shadow: none !important;
}

/* ── Wallet / Account cabinet ── */
:root[data-theme="ascendex"] .wallet-panel,
:root[data-theme="ascendex"] .wallet-balance-card,
:root[data-theme="ascendex"] .wallet-stats-grid,
:root[data-theme="ascendex"] .wallet-hero,
:root[data-theme="ascendex"] .withdraw-card,
:root[data-theme="ascendex"] .deposit-card,
:root[data-theme="ascendex"] .positions-panel,
:root[data-theme="ascendex"] .wallet-settings-sheet {
  background: var(--ax-surface);
  border: 1px solid var(--ax-border);
}
:root[data-theme="ascendex"] .wallet-kicker {
  color: #9d93f5;
  font-size: 10px;
  letter-spacing: 0.08em;
}
:root[data-theme="ascendex"] .wallet-cabinet-user { color: #f4f4f5; }
:root[data-theme="ascendex"] .wallet-verif-pill.ok {
  color: #2dd4a8;
  border-color: rgba(45, 212, 168, 0.28);
  background: rgba(45, 212, 168, 0.1);
}
:root[data-theme="ascendex"] .wallet-verif-pill.no {
  color: #e8c86a;
  border-color: rgba(232, 184, 74, 0.28);
  background: rgba(232, 184, 74, 0.1);
}
:root[data-theme="ascendex"] .wallet-balance-label { color: #8b8b98; }
:root[data-theme="ascendex"] .wallet-balance-line {
  color: #f4f4f5;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
:root[data-theme="ascendex"] .wallet-pending-pill {
  background: rgba(255,255,255,0.04);
  border-color: var(--ax-border);
  color: #8b8b98;
}
:root[data-theme="ascendex"] .wallet-pending-pill strong { color: #c4b5fd; }
:root[data-theme="ascendex"] .wallet-stat-cell { background: rgba(18, 18, 26, 0.6); }
:root[data-theme="ascendex"] .wallet-stat-key { color: #8b8b98; }
:root[data-theme="ascendex"] .wallet-stat-val { color: #f0f0f5; }
:root[data-theme="ascendex"] .wallet-id-btn strong { color: #e4e4e7; }
:root[data-theme="ascendex"] .wallet-id-btn em {
  color: #b8aff8;
  background: rgba(124, 109, 240, 0.14);
}
:root[data-theme="ascendex"] .wallet-pref-chip {
  background: linear-gradient(145deg, rgba(124, 109, 240, 0.1), rgba(18, 18, 26, 0.95)) !important;
  border: 1px solid rgba(157, 147, 245, 0.22) !important;
}
:root[data-theme="ascendex"] .wallet-pref-text small { color: #8b8b98; }
:root[data-theme="ascendex"] .wallet-pref-text strong { color: #f4f4f5; }
:root[data-theme="ascendex"] .wallet-action-desc { color: #8b8b98; }
:root[data-theme="ascendex"] .wallet-action-arrow { color: #9d93f5; opacity: 1; }
:root[data-theme="ascendex"] .wallet-settings-overlay { background: rgba(9, 9, 15, 0.72); }
:root[data-theme="ascendex"] .wallet-settings-head h3 { color: #f4f4f5; }
:root[data-theme="ascendex"] .wallet-settings-close {
  background: rgba(124, 109, 240, 0.1);
  border-color: rgba(124, 109, 240, 0.22);
  color: #b8aff8;
}
:root[data-theme="ascendex"] .wallet-settings-opt {
  background: rgba(24, 24, 34, 0.85);
  border-color: var(--ax-border);
}
:root[data-theme="ascendex"] .wallet-settings-opt-label { color: #ececf1; }
:root[data-theme="ascendex"] .wallet-settings-opt.active {
  border-color: rgba(124, 109, 240, 0.45);
  background: rgba(124, 109, 240, 0.14);
  box-shadow: 0 4px 18px rgba(124, 109, 240, 0.18);
}
:root[data-theme="ascendex"] .wallet-settings-opt.active .wallet-settings-opt-check {
  border-color: #7c6df0;
  background: linear-gradient(135deg, #7c6df0, #6355d8);
}
:root[data-theme="ascendex"] .wallet-hero-glow {
  background: radial-gradient(circle, rgba(124, 109, 240, 0.15), transparent 70%);
}

/* ── Nav ── */
:root[data-theme="ascendex"] .navbar {
  background: rgba(9, 9, 15, 0.95);
  border-top: 1px solid var(--ax-border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
}
:root[data-theme="ascendex"] .nav {
  color: var(--muted);
  background: transparent;
  border: none;
}
:root[data-theme="ascendex"] .nav.active { color: var(--blue-soft); }

/* ── Misc ── */
:root[data-theme="ascendex"] .alert {
  background: var(--ax-accent-dim);
  border: 1px solid rgba(124, 109, 240, 0.2);
  color: var(--blue-soft);
}
:root[data-theme="ascendex"] .toast {
  background: var(--ax-surface-2);
  border: 1px solid var(--ax-border);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
:root[data-theme="ascendex"] .loader-ring {
  border-color: rgba(255,255,255,0.08);
  border-top-color: var(--blue);
}
:root[data-theme="ascendex"] .overlay { background: rgba(9, 9, 15, 0.8); }
:root[data-theme="ascendex"] .up, :root[data-theme="ascendex"] .dir-up { color: var(--green); }
:root[data-theme="ascendex"] .down, :root[data-theme="ascendex"] .dir-down { color: var(--red); }
:root[data-theme="ascendex"] .pos-head strong { color: var(--text); }
:root[data-theme="ascendex"] .pos-item,
:root[data-theme="ascendex"] .hist-row { border-color: var(--ax-border); }
:root[data-theme="ascendex"] .pos-item {
  background: rgba(18, 18, 26, 0.88) !important;
}
:root[data-theme="ascendex"] .pos-item .pos-pair { color: #f4f4f5 !important; }
:root[data-theme="ascendex"] .pos-row-details { color: #b8b8c8 !important; }
:root[data-theme="ascendex"] .pos-amount { color: #f0f0f5 !important; }
:root[data-theme="ascendex"] .pos-dir { color: #a1a1b5 !important; }
:root[data-theme="ascendex"] .pos-dur {
  background: rgba(124, 109, 240, 0.14) !important;
  color: #c4b5fd !important;
}
:root[data-theme="ascendex"] .pos-row-pnl.win { color: #2dd4a8 !important; }
:root[data-theme="ascendex"] .pos-row-pnl.lose { color: #f07070 !important; }
:root[data-theme="ascendex"] .pos-tab { color: #d4d4dc !important; background: rgba(18, 18, 26, 0.75) !important; }
:root[data-theme="ascendex"] .pos-empty { color: #a1a1b5 !important; }
:root[data-theme="ascendex"] .pos-item.pos-closed.win {
  background: rgba(45, 212, 168, 0.1) !important;
  border-color: rgba(45, 212, 168, 0.28) !important;
}
:root[data-theme="ascendex"] .pos-item.pos-closed.lose {
  background: rgba(240, 112, 112, 0.08) !important;
  border-color: rgba(240, 112, 112, 0.24) !important;
}
:root[data-theme="ascendex"] .pos-item .pos-status.win { color: #2dd4a8 !important; }
:root[data-theme="ascendex"] .pos-item .pos-status.lose { color: #f07070 !important; }
:root[data-theme="ascendex"] .pos-item .pos-status.run { color: #9d93f5 !important; }
:root[data-theme="ascendex"] .pos-item .pos-pnl.win { color: #2dd4a8 !important; }
:root[data-theme="ascendex"] .pos-item .pos-pnl.lose { color: #f07070 !important; }
:root[data-theme="ascendex"] .pos-tab.active {
  color: #c4b5fd !important;
  border-color: rgba(124, 109, 240, 0.35) !important;
  background: rgba(124, 109, 240, 0.12) !important;
}
:root[data-theme="ascendex"] .pos-head strong { color: #f4f4f5 !important; }

:root[data-theme="ascendex"] .pair-switcher-btn {
  background: rgba(18, 18, 26, 0.92) !important;
  border-color: var(--ax-border) !important;
}
:root[data-theme="ascendex"] .pair-switcher-btn strong { color: #f4f4f5; }
:root[data-theme="ascendex"] .pair-switcher-menu {
  background: rgba(14, 14, 20, 0.98) !important;
  border-color: rgba(124, 109, 240, 0.2) !important;
}
:root[data-theme="ascendex"] .pair-switcher-item.active,
:root[data-theme="ascendex"] .pair-switcher-item:hover {
  background: rgba(124, 109, 240, 0.14) !important;
}
:root[data-theme="ascendex"] .psi-pair { color: #f4f4f5; }
:root[data-theme="ascendex"] .psi-price { color: #c4b5fd; }

:root[data-theme="ascendex"] .candle-ohlc-bar.up {
  background: rgba(45, 212, 168, 0.08) !important;
  border-color: rgba(45, 212, 168, 0.22) !important;
}
:root[data-theme="ascendex"] .candle-ohlc-bar.down {
  background: rgba(240, 112, 112, 0.07) !important;
  border-color: rgba(240, 112, 112, 0.2) !important;
}
:root[data-theme="ascendex"] .ohlc-cell b { color: #ececf1; }

:root[data-theme="ascendex"] .wallet-action-trades {
  border-color: rgba(157, 147, 245, 0.32) !important;
}
:root[data-theme="ascendex"] .trade-row {
  background: rgba(18, 18, 26, 0.9) !important;
  border-color: var(--ax-border) !important;
}
:root[data-theme="ascendex"] .trade-row.win {
  background: rgba(45, 212, 168, 0.08) !important;
  border-color: rgba(45, 212, 168, 0.25) !important;
}
:root[data-theme="ascendex"] .trade-row.lose {
  background: rgba(240, 112, 112, 0.07) !important;
  border-color: rgba(240, 112, 112, 0.22) !important;
}
:root[data-theme="ascendex"] .trade-row-top strong { color: #f4f4f5; }
:root[data-theme="ascendex"] .trade-detail-card {
  background: var(--ax-surface) !important;
  position: relative;
  border: 1px solid rgba(124, 109, 240, 0.2);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45);
}
:root[data-theme="ascendex"] .td-brand-name { color: #f4f4f5 !important; }
:root[data-theme="ascendex"] .td-brand-sub { color: #8b8b98 !important; }
:root[data-theme="ascendex"] .td-hero {
  background: linear-gradient(180deg, rgba(124, 109, 240, 0.1), rgba(12, 12, 18, 0.4)) !important;
  border-color: rgba(124, 109, 240, 0.18) !important;
}
:root[data-theme="ascendex"] .trade-detail-head.win .td-hero {
  border-color: rgba(45, 212, 168, 0.22) !important;
  background: linear-gradient(180deg, rgba(45, 212, 168, 0.1), rgba(12, 12, 18, 0.35)) !important;
}
:root[data-theme="ascendex"] .trade-detail-head.lose .td-hero {
  border-color: rgba(240, 112, 112, 0.2) !important;
  background: linear-gradient(180deg, rgba(240, 112, 112, 0.08), rgba(12, 12, 18, 0.35)) !important;
}
:root[data-theme="ascendex"] .td-hero-meta { color: #b4b4c0 !important; }
:root[data-theme="ascendex"] .trade-detail-row b { color: #ececf1; }
:root[data-theme="ascendex"] .td-id {
  color: #c4b5fd !important;
  background: rgba(124, 109, 240, 0.14) !important;
}
:root[data-theme="ascendex"] .empty-msg,
:root[data-theme="ascendex"] .section-label { color: var(--muted); }

/* ── Animations ── */
:root[data-theme="ascendex"] .anim-in {
  animation: axUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes axUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
:root[data-theme="ascendex"] .screen.active {
  animation: axScreen 0.32s ease;
}
@keyframes axScreen {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: none; }
}

/* ── Global smoothness ── */
:root[data-theme="ascendex"] * {
  -webkit-tap-highlight-color: transparent;
}
:root[data-theme="ascendex"] button,
:root[data-theme="ascendex"] .nav,
:root[data-theme="ascendex"] .qa-btn,
:root[data-theme="ascendex"] .market-row,
:root[data-theme="ascendex"] .direction-card,
:root[data-theme="ascendex"] .time-card,
:root[data-theme="ascendex"] .method-btn,
:root[data-theme="ascendex"] .wallet-action-btn {
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
}

/* ── Chart toolbar (no black pills) ── */
:root[data-theme="ascendex"] .tv-toolbar {
  background: rgba(24, 24, 34, 0.95);
  border: 1px solid var(--ax-border);
  box-shadow: none;
}
:root[data-theme="ascendex"] .tv-toolbar button {
  color: #8b8b98;
  background: transparent;
}
:root[data-theme="ascendex"] .tv-toolbar button.active {
  color: #fff;
  background: var(--gradient-1);
  box-shadow: 0 2px 10px rgba(124, 109, 240, 0.28);
}

/* ── Visible buttons (not black) ── */
:root[data-theme="ascendex"] .btn-main,
:root[data-theme="ascendex"] .btn-lg,
:root[data-theme="ascendex"] .btn-support,
:root[data-theme="ascendex"] .btn-verify:not(:disabled) {
  background: var(--gradient-1) !important;
  color: #fff !important;
  border: 1px solid rgba(157, 147, 245, 0.35) !important;
  box-shadow: 0 8px 24px rgba(124, 109, 240, 0.32) !important;
}
:root[data-theme="ascendex"] .btn-main:hover,
:root[data-theme="ascendex"] .btn-lg:hover {
  box-shadow: 0 10px 28px rgba(124, 109, 240, 0.4) !important;
}
:root[data-theme="ascendex"] .btn-ghost {
  background: rgba(124, 109, 240, 0.08) !important;
  border: 1px solid rgba(124, 109, 240, 0.28) !important;
  color: var(--blue-soft) !important;
}
:root[data-theme="ascendex"] .btn-ghost:active {
  background: rgba(124, 109, 240, 0.16) !important;
  color: #fff !important;
}
:root[data-theme="ascendex"] .qa-btn {
  background: rgba(124, 109, 240, 0.1);
  border: 1px solid rgba(124, 109, 240, 0.22);
  color: var(--text);
}
:root[data-theme="ascendex"] .qa-btn.active {
  background: var(--gradient-1);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 109, 240, 0.3);
}
:root[data-theme="ascendex"] .wallet-action-btn {
  background: linear-gradient(145deg, rgba(124, 109, 240, 0.14), rgba(24, 24, 34, 0.95)) !important;
  border: 1px solid rgba(157, 147, 245, 0.28) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
:root[data-theme="ascendex"] .wallet-action-label {
  color: #f0f0f5 !important;
  font-weight: 700;
}
:root[data-theme="ascendex"] .wallet-action-icon {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
:root[data-theme="ascendex"] .wallet-action-dep {
  border-color: rgba(45, 212, 168, 0.35) !important;
  background: linear-gradient(145deg, rgba(45, 212, 168, 0.1), rgba(24, 24, 34, 0.95)) !important;
}
:root[data-theme="ascendex"] .wallet-action-wd {
  border-color: rgba(157, 147, 245, 0.35) !important;
}
:root[data-theme="ascendex"] .wallet-action-hist {
  border-color: rgba(124, 109, 240, 0.3) !important;
}
:root[data-theme="ascendex"] .wallet-action-btn:active {
  transform: scale(0.98);
  background: rgba(124, 109, 240, 0.22) !important;
}
:root[data-theme="ascendex"] .method-btn {
  background: rgba(124, 109, 240, 0.1);
  border: 1px solid rgba(124, 109, 240, 0.25);
  color: #ececf1 !important;
}
:root[data-theme="ascendex"] .method-btn:active {
  background: rgba(124, 109, 240, 0.2);
  border-color: rgba(124, 109, 240, 0.4);
}
:root[data-theme="ascendex"] .method-btn.active {
  background: rgba(124, 109, 240, 0.2);
  border-color: rgba(124, 109, 240, 0.45);
  color: #fff;
}
:root[data-theme="ascendex"] .icon-btn {
  background: rgba(124, 109, 240, 0.1);
  border-color: rgba(124, 109, 240, 0.2);
  color: var(--blue-soft);
}
:root[data-theme="ascendex"] .icon-btn:active {
  background: rgba(124, 109, 240, 0.2);
}

/* ── Bottom nav ── */
:root[data-theme="ascendex"] .nav {
  color: var(--muted);
  border-radius: 12px;
  padding: 6px 10px;
}
:root[data-theme="ascendex"] .nav.active {
  color: #fff;
  background: rgba(124, 109, 240, 0.18);
  box-shadow: inset 0 0 0 1px rgba(124, 109, 240, 0.25);
}
:root[data-theme="ascendex"] .nav i {
  filter: drop-shadow(0 0 6px rgba(124, 109, 240, 0.2));
}

/* ── Trade direction / time cards hover ── */
:root[data-theme="ascendex"] .direction-card:active,
:root[data-theme="ascendex"] .time-card:active {
  transform: scale(0.985);
}
:root[data-theme="ascendex"] .up-card:hover {
  border-color: rgba(45, 212, 168, 0.35);
}
:root[data-theme="ascendex"] .down-card:hover {
  border-color: rgba(240, 112, 112, 0.35);
}

/* ── Deposit / wallet flow — readable dark UI ── */
:root[data-theme="ascendex"] .method-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
:root[data-theme="ascendex"] .method-btn {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 12px 14px !important;
  font-size: 13px !important;
  line-height: 1.25;
  border-radius: 14px !important;
  color: #f0f0f5 !important;
  background: rgba(124, 109, 240, 0.1) !important;
  border: 1px solid rgba(157, 147, 245, 0.22) !important;
}
:root[data-theme="ascendex"] .p2p-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
:root[data-theme="ascendex"] .p2p-choice-btn {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0f0f5 !important;
  background: rgba(124, 109, 240, 0.1) !important;
  border: 1px solid rgba(157, 147, 245, 0.22) !important;
  border-radius: 14px !important;
  font-size: 13px !important;
}
:root[data-theme="ascendex"] .deposit-card,
:root[data-theme="ascendex"] .withdraw-card {
  background: rgba(18, 18, 28, 0.95) !important;
  border: 1px solid rgba(157, 147, 245, 0.2) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
:root[data-theme="ascendex"] .dep-head,
:root[data-theme="ascendex"] .wd-card-head {
  color: #f4f4f5 !important;
}
:root[data-theme="ascendex"] .dep-row span,
:root[data-theme="ascendex"] .wd-card-amount span {
  color: #9b9ba8 !important;
}
:root[data-theme="ascendex"] .dep-row b,
:root[data-theme="ascendex"] .wd-card-amount b {
  color: #f4f4f5 !important;
}
:root[data-theme="ascendex"] .dep-timer-wrap {
  background: rgba(124, 109, 240, 0.1) !important;
  border: 1px solid rgba(157, 147, 245, 0.2) !important;
  color: #d4cffc !important;
}
:root[data-theme="ascendex"] .dep-timer {
  color: #f4f4f5 !important;
}
:root[data-theme="ascendex"] .dep-warning {
  background: rgba(232, 184, 74, 0.1) !important;
  border-color: rgba(232, 184, 74, 0.25) !important;
  color: #e8c86a !important;
}
:root[data-theme="ascendex"] .copy-btn {
  background: rgba(124, 109, 240, 0.22) !important;
  color: #e9e4ff !important;
  border: 1px solid rgba(157, 147, 245, 0.35) !important;
  font-weight: 700;
  flex-shrink: 0;
}
:root[data-theme="ascendex"] .copy-btn:active {
  background: rgba(124, 109, 240, 0.38) !important;
  color: #fff !important;
}
:root[data-theme="ascendex"] .dep-info,
:root[data-theme="ascendex"] .dep-p2p {
  background: rgba(18, 18, 28, 0.92) !important;
  border: 1px solid rgba(157, 147, 245, 0.18) !important;
}
:root[data-theme="ascendex"] .dep-info-title,
:root[data-theme="ascendex"] .dep-info-body,
:root[data-theme="ascendex"] .dep-p2p-label {
  color: #f0f0f5 !important;
}
:root[data-theme="ascendex"] .dep-info-hint {
  color: #9b9ba8 !important;
}
:root[data-theme="ascendex"] .dep-link-btn {
  color: #d4cffc !important;
  background: rgba(124, 109, 240, 0.14) !important;
  border-color: rgba(157, 147, 245, 0.28) !important;
}
:root[data-theme="ascendex"] .receipt-label {
  background: rgba(124, 109, 240, 0.08) !important;
  border: 2px dashed rgba(157, 147, 245, 0.3) !important;
}
:root[data-theme="ascendex"] .receipt-text {
  color: #d4cffc !important;
}
:root[data-theme="ascendex"] .btn-verify {
  background: linear-gradient(135deg, #2dd4a8, #1fa87a) !important;
  color: #fff !important;
  border: none !important;
}
:root[data-theme="ascendex"] .btn-verify:disabled {
  background: rgba(139, 139, 152, 0.25) !important;
  color: #8b8b98 !important;
}
:root[data-theme="ascendex"] .deposit-card .btn-main,
:root[data-theme="ascendex"] .deposit-card .btn-ghost,
:root[data-theme="ascendex"] .deposit-card .btn-support,
:root[data-theme="ascendex"] .deposit-card .btn-verify,
:root[data-theme="ascendex"] .wallet-flow-panel .btn-main,
:root[data-theme="ascendex"] .dep-p2p-pay .btn-main {
  width: 100% !important;
  margin: 10px 0 0 !important;
  display: block !important;
  text-align: center;
  box-sizing: border-box;
}
:root[data-theme="ascendex"] .wallet-flow-back {
  width: calc(100% - 32px) !important;
  margin: 4px 16px 12px !important;
  text-align: center;
}
:root[data-theme="ascendex"] .dep-check-msg.warn {
  background: rgba(232, 184, 74, 0.12) !important;
  color: #e8c86a !important;
  border-color: rgba(232, 184, 74, 0.25) !important;
}
:root[data-theme="ascendex"] .dep-check-msg.ok {
  background: rgba(45, 212, 168, 0.12) !important;
  color: #2dd4a8 !important;
  border-color: rgba(45, 212, 168, 0.25) !important;
}
:root[data-theme="ascendex"] .dep-check-msg.err {
  background: rgba(240, 112, 112, 0.12) !important;
  color: #f07070 !important;
  border-color: rgba(240, 112, 112, 0.25) !important;
}
:root[data-theme="ascendex"] .result-card-v3 .result-amount {
  margin-top: 0;
}

/* ── Credit animation (deposit approved) ── */
:root[data-theme="ascendex"] .credit-animation {
  background: linear-gradient(180deg, rgba(18, 18, 26, 0.98), rgba(12, 12, 18, 0.98));
  border: 1px solid rgba(124, 109, 240, 0.22);
  border-radius: 20px;
  padding: 24px 16px;
  margin-top: 12px;
}
:root[data-theme="ascendex"] .credit-animation .ascendex-wordmark.credit-size {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: axCreditIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
:root[data-theme="ascendex"] .credit-animation .ascendex-text {
  font-size: 1.35rem;
  font-weight: 800;
}
:root[data-theme="ascendex"] .credit-animation .ascendex-icon {
  filter: drop-shadow(0 0 18px rgba(124, 109, 240, 0.45));
  animation: axCreditPulse 2s ease-in-out infinite;
}
:root[data-theme="ascendex"] .credit-glow {
  background: radial-gradient(circle, rgba(124, 109, 240, 0.35), transparent 70%);
}
:root[data-theme="ascendex"] .credit-ring {
  border-color: rgba(124, 109, 240, 0.35);
}
:root[data-theme="ascendex"] .credit-label {
  color: #9b9ba8;
}
:root[data-theme="ascendex"] .credit-balance {
  color: #2dd4a8 !important;
  font-weight: 800;
}
:root[data-theme="ascendex"] .credit-progress {
  background: rgba(255, 255, 255, 0.06);
}
:root[data-theme="ascendex"] .credit-progress-fill {
  background: linear-gradient(90deg, #6355d8, #7c6df0, #9d93f5) !important;
  box-shadow: 0 0 12px rgba(124, 109, 240, 0.4);
}
@keyframes axCreditIn {
  from { opacity: 0; transform: scale(0.88) translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes axCreditPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ── Live feed & news (AscendEx) ── */
:root[data-theme="ascendex"] .live-activity {
  background: rgba(18, 18, 26, 0.92) !important;
  border: 1px solid rgba(124, 109, 240, 0.18);
  backdrop-filter: blur(10px);
}
:root[data-theme="ascendex"] .live-activity-item {
  background: rgba(255, 255, 255, 0.04);
}
:root[data-theme="ascendex"] .live-dot {
  background: #2dd4a8;
  box-shadow: 0 0 8px rgba(45, 212, 168, 0.5);
}
:root[data-theme="ascendex"] .crypto-news-strip {
  background: rgba(18, 18, 26, 0.85) !important;
  border: 1px solid rgba(124, 109, 240, 0.15);
}
:root[data-theme="ascendex"] .news-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
:root[data-theme="ascendex"] .news-src {
  color: #9d93f5;
}

/* ── Staking (AscendEx) ── */
:root[data-theme="ascendex"] .staking-balance-card,
:root[data-theme="ascendex"] .staking-warning,
:root[data-theme="ascendex"] .staking-row,
:root[data-theme="ascendex"] .staking-coin-card,
:root[data-theme="ascendex"] .staking-flow-head,
:root[data-theme="ascendex"] .staking-time-btn {
  background: rgba(18, 18, 26, 0.9) !important;
  border-color: rgba(124, 109, 240, 0.18) !important;
}
:root[data-theme="ascendex"] .staking-coin-apy,
:root[data-theme="ascendex"] .staking-flow-head small {
  color: #2dd4a8 !important;
}
:root[data-theme="ascendex"] .staking-time-btn:active,
:root[data-theme="ascendex"] .staking-coin-card:active {
  border-color: rgba(124, 109, 240, 0.45) !important;
}
:root[data-theme="ascendex"] .nav.active {
  color: #9d93f5 !important;
}
:root[data-theme="ascendex"] .rating-tabs,
:root[data-theme="ascendex"] .rating-tab,
:root[data-theme="ascendex"] .rating-lb-row,
:root[data-theme="ascendex"] .rating-trade-row,
:root[data-theme="ascendex"] .history-summary {
  background: rgba(18, 18, 26, 0.9) !important;
  border-color: rgba(124, 109, 240, 0.18) !important;
}
:root[data-theme="ascendex"] .rating-tab.active {
  color: #9d93f5 !important;
  border-color: rgba(124, 109, 240, 0.45) !important;
}
:root[data-theme="ascendex"] .rating-lb-row.whale {
  border-color: rgba(157, 147, 245, 0.45) !important;
  box-shadow: 0 0 16px rgba(124, 109, 240, 0.12);
}
:root[data-theme="ascendex"] .trade-detail-overlay {
  z-index: 500 !important;
}
:root[data-theme="ascendex"] .wallet-balance-logo,
:root[data-theme="ascendex"] .tp-avatar,
:root[data-theme="ascendex"] .ft-avatar {
  background: rgba(124,109,240,.14) !important;
  border-color: rgba(157,147,245,.35) !important;
}
:root[data-theme="ascendex"] .ft-hero {
  background: linear-gradient(165deg, rgba(124,109,240,.18) 0%, rgba(18,18,26,.15) 100%) !important;
  border-bottom-color: rgba(157,147,245,.12) !important;
}
:root[data-theme="ascendex"] .ft-name { color: #f4f4f5 !important; }
:root[data-theme="ascendex"] .tp-hero {
  background: linear-gradient(165deg, rgba(124,109,240,.18) 0%, rgba(18,18,26,.2) 100%) !important;
  border-bottom-color: rgba(157,147,245,.14) !important;
}
:root[data-theme="ascendex"] .tp-name { color: #f4f4f5 !important; }
:root[data-theme="ascendex"] .trader-stat.highlight {
  background: rgba(124,109,240,.14) !important;
  border-color: rgba(157,147,245,.28) !important;
}
:root[data-theme="ascendex"] .trader-stat.highlight b { color: #c4b5fd !important; }
:root[data-theme="ascendex"] .wallet-status-chip {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.06);
}
:root[data-theme="ascendex"] .trader-profile-card,
:root[data-theme="ascendex"] .feed-trade-card {
  background: rgba(14, 14, 20, 0.98) !important;
}
:root[data-theme="ascendex"] .btn-main.staking-submit-btn,
:root[data-theme="ascendex"] .btn-main.staking-accept-btn,
:root[data-theme="ascendex"] .btn-primary {
  background: linear-gradient(135deg, #4c3d9e 0%, #6355d8 45%, #7c6df0 100%) !important;
  box-shadow: 0 8px 24px rgba(99, 85, 216, 0.35);
}
:root[data-theme="ascendex"] .wallet-chart-card,
:root[data-theme="ascendex"] .hub-quick-btn,
:root[data-theme="ascendex"] .lb-tab,
:root[data-theme="ascendex"] .leaderboard-row,
:root[data-theme="ascendex"] .trader-stat {
  background: rgba(18, 18, 26, 0.9) !important;
  border-color: rgba(124, 109, 240, 0.18) !important;
}
:root[data-theme="ascendex"] .lb-tab.active {
  color: #9d93f5 !important;
  border-color: rgba(124, 109, 240, 0.45) !important;
}
:root[data-theme="ascendex"] .wallet-vip-pill.vip-vip {
  color: #c4b5fd;
  background: rgba(124, 109, 240, 0.2);
}
