/* ─────────────────────────────────────────────────────────────
   revamp.css — exchange-grade component library
   Loaded AFTER refine.css. Provides new component classes
   (.dx-*, .acct-*, .mx-*) used by the redesigned
   indexmain.php (hero), index.php (dashboard) and profile.php.
   Uses tokens already defined in refine.css.
   ───────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════
   COMMON
   ═══════════════════════════════════════════════════════════ */

.dx-page,
.acct-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0 24px;
}

/* Generic section card (shared by dashboard and profile) */
.dx-section,
.acct-section {
  background: var(--rx-surface-1);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.dx-section__head,
.acct-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rx-border);
}
.dx-section__title,
.acct-section__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--rx-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rx-text);
}
.dx-section__title::before,
.acct-section__title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 12px;
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2));
  border-radius: 2px;
}
.dx-section__sub,
.acct-section__sub {
  font-size: 10.5px;
  color: var(--rx-muted);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  margin-left: 6px;
}
.dx-section__action,
.acct-section__action {
  font-size: 11px;
  font-weight: 600;
  color: var(--rx-text-2);
  padding: 4px 10px;
  border-radius: var(--rx-r-xs);
  background: var(--rx-surface-3);
  border: 1px solid var(--rx-border);
  cursor: pointer;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dx-section__action:hover,
.acct-section__action:hover {
  color: var(--rx-accent);
  border-color: var(--rx-accent);
  background: var(--rx-accent-soft);
}

/* Empty / placeholder */
.dx-empty,
.acct-empty {
  text-align: center;
  padding: 28px 12px;
  color: var(--rx-muted);
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD HERO  (lives in indexmain.php)
   ═══════════════════════════════════════════════════════════ */

.dx-hero {
  position: relative;
  overflow: hidden;
  margin: 12px 0 0;
  border: 1px solid var(--rx-accent-deep);
  border-radius: var(--rx-r-lg);
  background:
    radial-gradient(900px 320px at 90% -20%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(160deg, #2f6bff 0%, #0a4ee0 100%);
  padding: 18px 20px 16px;
  isolation: isolate;
  color: #ffffff;
}

/* subtle grid pattern overlay for that exchange terminal feel */
.dx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  mask: radial-gradient(circle at 70% 0%, #000 30%, transparent 75%);
  -webkit-mask: radial-gradient(circle at 70% 0%, #000 30%, transparent 75%);
}

.dx-hero__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.dx-hero__greet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--rx-muted);
  letter-spacing: .04em;
  font-weight: 500;
}
.dx-hero__greet strong {
  color: var(--rx-text);
  font-weight: 600;
  letter-spacing: 0;
}
.dx-hero__greet img {
  width: 16px;
  height: 16px;
  cursor: pointer;
  filter: brightness(0) invert(1) opacity(.55);
  transition: opacity .15s, filter .15s;
}
/* Tour-restart affordance — sits as a satellite to the username on
   the brand-blue hero. Translucent-on-brand chip, no off-palette
   accent. One-time invite ring pulse on first paint to draw the eye
   without nagging. */
.dx-hero__tour {
  /* layout: an inline satellite riding the username baseline */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 1px;
  vertical-align: -3px;
  position: relative;

  /* surface: translucent white on the brand-blue hero */
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  transition:
    background .18s var(--rx-ease-snap, cubic-bezier(.2,.8,.2,1)),
    border-color .18s var(--rx-ease-snap, cubic-bezier(.2,.8,.2,1)),
    color .18s var(--rx-ease-snap, cubic-bezier(.2,.8,.2,1)),
    transform .18s var(--rx-ease-snap, cubic-bezier(.2,.8,.2,1));
}
.dx-hero__tour svg {
  width: 12px;
  height: 12px;
  display: block;
  pointer-events: none;
}
.dx-hero__tour:hover,
.dx-hero__tour:focus-visible {
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.55);
  color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}
.dx-hero__tour:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,255,255,.28);
}
.dx-hero__tour:active {
  transform: translateY(0) scale(.94);
  background: rgba(255,255,255,.14);
}

/* Invite pulse — three soft rings on first paint, then rests.
   Uses a pseudo so the button itself doesn't reflow. */
.dx-hero__tour::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  opacity: 0;
  pointer-events: none;
  animation: dx-tour-invite 2.4s ease-out 1.2s 3;
}
@keyframes dx-tour-invite {
  0%   { transform: scale(.85); opacity: .7; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dx-hero__tour { transition: none; }
  .dx-hero__tour::after { animation: none; display: none; }
  .dx-hero__tour:hover { transform: none; }
}
.dx-hero__tier {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(240,185,11,.18), rgba(240,185,11,.06));
  color: var(--rx-warn);
  border: 1px solid rgba(240,185,11,.3);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dx-hero__tier:empty { display: none; }
.dx-hero__tier::before {
  content: "★";
  font-size: 9px;
  margin-right: 2px;
}
.dx-hero__sep { flex: 1; }

.dx-hero__pulse {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-family: var(--rx-font-mono);
  color: var(--rx-good);
  letter-spacing: .04em;
}
.dx-hero__pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rx-good);
  box-shadow: 0 0 8px rgba(22,199,132,.5);
  animation: dx-pulse 1.6s ease-in-out infinite;
}
@keyframes dx-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.dx-hero__equity {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 6px 0 14px;
}
.dx-hero__label {
  font-size: 10.5px;
  color: var(--rx-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  flex-basis: 100%;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dx-hero__eye {
  width: 14px; height: 14px;
  cursor: pointer;
  opacity: .5;
  transition: opacity var(--rx-dur-fast) var(--rx-ease-snap),
              color var(--rx-dur-fast) var(--rx-ease-snap);
  border-radius: 50%;
}
.dx-hero__eye:hover { opacity: 1; color: var(--rx-accent); }
.dx-hero__eye:focus-visible { outline: none; opacity: 1; color: var(--rx-accent); }

/* The balance — hero-of-the-page typography. Display font + brand
   gradient. Mono is reserved for inline tabular numerics elsewhere. */
.dx-hero__value {
  font-family: var(--rx-font-display);
  font-variant-numeric: tabular-nums slashed-zero;
  font-feature-settings: "tnum","zero","ss01";
  font-size: var(--rx-display-1);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: .98;
  background: var(--rx-brand-grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--rx-accent); /* fallback */
  text-shadow: 0 0 24px rgba(30,99,255,.18);
  transition: filter var(--rx-dur-base) var(--rx-ease-soft),
              opacity var(--rx-dur-base) var(--rx-ease-soft);
  display: inline-block; /* contains gradient text */
  will-change: filter;
}
.dx-hero__value:empty::before {
  content: "0.0000";
  -webkit-text-fill-color: var(--rx-faint);
          text-fill-color: var(--rx-faint);
  color: var(--rx-faint);
  background: none;
  text-shadow: none;
  opacity: .55;
}
.dx-hero__value.is-blurred {
  filter: blur(14px) saturate(.8);
  user-select: none;
}
.dx-hero__symbol {
  font-family: var(--rx-font-mono);
  font-size: 13px;
  color: var(--rx-muted);
  font-weight: 500;
  letter-spacing: .04em;
  align-self: flex-end;
  padding-bottom: 4px;
}

/* 24h delta pill — green/red automatically via modifier */
.dx-hero__delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--rx-good-soft);
  color: var(--rx-good);
  font-family: var(--rx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  border-radius: 99px;
  padding: 3px 9px;
  border: 1px solid rgba(22,199,132,.25);
  align-self: flex-end;
  margin-bottom: 6px;
}
.dx-hero__delta--down {
  background: var(--rx-bad-soft);
  color: var(--rx-bad);
  border-color: rgba(234,57,67,.25);
}
.dx-hero__delta--flat {
  background: var(--rx-surface-3);
  color: var(--rx-muted);
  border-color: var(--rx-border);
}
.dx-hero__delta[hidden] { display: none !important; }
.dx-hero__delta svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Tighter on mobile */
@media (max-width: 540px) {
  .dx-hero__value { font-size: var(--rx-display-2); letter-spacing: -.02em; }
  .dx-hero__symbol { padding-bottom: 2px; font-size: 12px; }
}
@media (max-width: 380px) {
  .dx-hero__value { font-size: 32px; }
}

.dx-hero__pack {
  font-family: var(--rx-font);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rx-text-2);
  margin: 0 0 12px;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dx-hero__pack:empty { display: none; }
.dx-hero__pack::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rx-accent);
  box-shadow: 0 0 6px var(--rx-accent-glow);
}

.dx-hero__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
}
@media (min-width: 640px) {
  .dx-hero__actions { grid-template-columns: repeat(3, minmax(110px, auto)); }
}
.dx-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--rx-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: var(--rx-r-sm);
  cursor: pointer;
  transition: transform var(--rx-dur-fast) var(--rx-ease-snap),
              background-color var(--rx-dur-fast) var(--rx-ease-snap),
              border-color var(--rx-dur-fast) var(--rx-ease-snap),
              color var(--rx-dur-fast) var(--rx-ease-snap),
              box-shadow var(--rx-dur-fast) var(--rx-ease-snap);
  border: 1px solid var(--rx-border-strong);
  background: var(--rx-surface-2);
  color: var(--rx-text);
  text-transform: none;
  min-height: 40px;
}
.dx-hero__btn:hover {
  background: var(--rx-surface-3);
  border-color: var(--rx-accent);
  color: var(--rx-accent);
  transform: translateY(-1px);
}
.dx-hero__btn:active { transform: translateY(0); }
/* Solid cyan body for legibility, brand-gradient pushed to a thin
   top sheen + outer glow only — keeps dark text high-contrast. */
.dx-hero__btn--primary {
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 32%),
    linear-gradient(180deg, var(--rx-accent-2) 0%, var(--rx-accent-2) 100%);
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,.22);
  border-color: transparent;
  box-shadow: 0 6px 18px -6px rgba(30,99,255,.5),
              inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform var(--rx-dur-base) var(--rx-ease-spring),
              filter var(--rx-dur-fast) var(--rx-ease-snap),
              box-shadow var(--rx-dur-base) var(--rx-ease-snap);
}
.dx-hero__btn--primary svg { stroke-width: 2.4; }
.dx-hero__btn--primary:hover {
  filter: brightness(1.04);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(30,99,255,.55),
              0 0 0 1px rgba(110,160,255,.25),
              inset 0 1px 0 rgba(255,255,255,.28);
}
.dx-hero__btn--primary:active { transform: translateY(0); filter: brightness(.98); }
@media (prefers-reduced-motion: reduce) {
  .dx-hero__btn,
  .dx-hero__btn--primary { transition: none; }
  .dx-hero__btn:hover,
  .dx-hero__btn--primary:hover { transform: none; }
}
.dx-hero__btn svg {
  width: 13px; height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD WALLETS GRID (in index.php)
   ═══════════════════════════════════════════════════════════ */

.dx-wallets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 640px) {
  .dx-wallets { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .dx-wallets { grid-template-columns: 1fr 1fr 1fr; }
}

.dx-wallet {
  background: var(--rx-surface-2);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-md);
  padding: 12px 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--rx-dur-base) var(--rx-ease-snap),
              border-color var(--rx-dur-base) var(--rx-ease-snap),
              box-shadow  var(--rx-dur-base) var(--rx-ease-snap);
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .dx-wallet:hover { transform: none; }
}
.dx-wallet--feature {
  background: linear-gradient(135deg, rgba(30,99,255,.06), var(--rx-surface-2) 60%);
  border-color: rgba(30,99,255,.18);
}
.dx-wallet--promo {
  background: linear-gradient(135deg, rgba(240,185,11,.07), var(--rx-surface-2) 60%);
  border-color: rgba(240,185,11,.2);
}

.dx-wallet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dx-wallet__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rx-muted);
  font-weight: 600;
  margin: 0;
}
.dx-wallet__label-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--rx-r-xs);
  background: linear-gradient(135deg, var(--rx-accent-2) 0%, var(--rx-accent-2) 100%);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px -2px rgba(30,99,255,.35);
}
.dx-wallet__label-icon svg {
  width: 12px; height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dx-wallet__info {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  border-radius: 50%;
  color: var(--rx-faint);
  transition: color .12s;
}
.dx-wallet__info:hover { color: var(--rx-accent); }
.dx-wallet__info svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }

.dx-wallet__balance {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
}
.dx-wallet__num {
  font-family: var(--rx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--rx-accent);
  line-height: 1.1;
  word-break: break-all;
}
.dx-wallet__sym {
  font-family: var(--rx-font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--rx-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dx-wallet__rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dx-wallet__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--rx-bg-2);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-xs);
  padding: 5px 9px;
  font-size: 11px;
}
.dx-wallet__row-k {
  color: var(--rx-muted);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
}
.dx-wallet__row-v {
  color: var(--rx-text);
  font-family: var(--rx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
}

.dx-wallet__actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  flex-wrap: wrap;
}
.dx-wallet__btn {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  font-family: var(--rx-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-radius: var(--rx-r-sm);
  cursor: pointer;
  transition: all .12s ease;
  background: var(--rx-surface-3);
  border: 1px solid var(--rx-border);
  color: var(--rx-text-2);
  white-space: nowrap;
}
.dx-wallet__btn:hover {
  background: var(--rx-accent-soft);
  border-color: var(--rx-accent);
  color: var(--rx-accent);
}
.dx-wallet__btn--solid,
.dx-wallet__btn--solid:hover {
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2));
  color: #ffffff;
}

/* Promo center info bubble */
.dx-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(240,185,11,.10), rgba(240,185,11,.02) 70%);
  border: 1px solid rgba(240,185,11,.25);
  border-radius: var(--rx-r-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all .15s ease;
}
.dx-promo:hover { border-color: rgba(240,185,11,.5); }
.dx-promo__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rx-warn-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--rx-warn);
}
.dx-promo__icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.dx-promo__body { flex: 1; min-width: 0; }
.dx-promo__label {
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rx-warn);
  font-weight: 600;
  margin: 0 0 2px;
}
.dx-promo__sub {
  font-size: 11px;
  color: var(--rx-text-2);
  margin: 0;
}
.dx-promo__value {
  font-family: var(--rx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 600;
  color: var(--rx-accent);
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}
.dx-promo__value-sym {
  font-size: 11px;
  color: var(--rx-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD MARKETS / TICKERS
   ═══════════════════════════════════════════════════════════ */

.mx-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
@media (min-width: 768px) {
  .mx-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .mx-list { grid-template-columns: 1fr 1fr 1fr; }
}

.mx-ticker {
  background: var(--rx-surface-2);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-md);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr 100px;
  grid-template-areas:
    "head head"
    "price chart"
    "quotes chart"
    "time time";
  gap: 8px 12px;
  align-items: start;
  transition: all .15s ease;
  cursor: pointer;
}
.mx-ticker:hover {
  border-color: var(--rx-accent);
  transform: translateY(-1px);
}

.mx-ticker__head {
  grid-area: head;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--rx-border);
}
.mx-ticker__flag {
  width: 24px; height: 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--rx-border);
  background: var(--rx-surface-3);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.mx-ticker__flag img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.mx-ticker__pair {
  font-family: var(--rx-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--rx-text);
  letter-spacing: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mx-ticker__view {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rx-accent);
  padding: 3px 8px;
  border-radius: var(--rx-r-xs);
  border: 1px solid var(--rx-border);
  background: transparent;
  cursor: pointer;
  transition: all .12s ease;
  text-decoration: none;
}
.mx-ticker__view:hover {
  background: var(--rx-accent-soft);
  border-color: var(--rx-accent);
  color: var(--rx-accent);
}

.mx-ticker__price {
  grid-area: price;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mx-ticker__price-label {
  font-size: 9.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rx-faint);
  font-weight: 600;
}
.mx-ticker__price-value {
  font-family: var(--rx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 600;
  color: var(--rx-text);
  letter-spacing: -.01em;
}

.mx-ticker__quotes {
  grid-area: quotes;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.mx-ticker__bid,
.mx-ticker__ask {
  font-family: var(--rx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: var(--rx-r-xs);
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
}
.mx-ticker__bid {
  background: var(--rx-good-soft);
  color: var(--rx-good);
  border: 1px solid rgba(22,199,132,.25);
}
.mx-ticker__bid::before {
  content: "▲";
  font-size: 10px;
  margin-right: -5px;
  opacity: .8;
  margin-left: 4px;
}
.mx-ticker__ask {
  background: var(--rx-bad-soft);
  color: var(--rx-bad);
  border: 1px solid rgba(234,57,67,.25);
}
.mx-ticker__ask::before {
  content: "▼";
  font-size: 10px;
  margin-right: -5px;
  opacity: .8;
  margin-left: 4px;
}

.mx-ticker__chart {
  grid-area: chart;
  height: 56px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, transparent 0%, var(--rx-accent-soft) 100%);
  border-radius: var(--rx-r-xs);
  padding: 4px;
  position: relative;
  overflow: hidden;
}
.mx-ticker__chart canvas {
  width: 100% !important;
  height: 100% !important;
}

.mx-ticker__time {
  grid-area: time;
  font-size: 9.5px;
  color: var(--rx-faint);
  letter-spacing: 0;
  margin-top: 2px;
}

.mx-load-more {
  margin: 10px 0 0;
  text-align: center;
}
.mx-load-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rx-surface-2);
  border: 1px solid var(--rx-border-strong);
  color: var(--rx-text-2);
  border-radius: 99px;
  padding: 7px 18px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s ease;
}
.mx-load-more__btn:hover {
  background: var(--rx-accent-soft);
  color: var(--rx-accent);
  border-color: var(--rx-accent);
}

/* ═══════════════════════════════════════════════════════════
   PROFILE — HERO
   ═══════════════════════════════════════════════════════════ */

.acct-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rx-accent-deep);
  border-radius: var(--rx-r-lg);
  background:
    radial-gradient(700px 280px at 90% 100%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(160deg, #2f6bff 0%, #0a4ee0 100%);
  padding: 22px 22px 18px;
  isolation: isolate;
  color: #ffffff;
}
.acct-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask: radial-gradient(circle at 100% 100%, #000 30%, transparent 75%);
  -webkit-mask: radial-gradient(circle at 100% 100%, #000 30%, transparent 75%);
  pointer-events: none;
}

.acct-hero__main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.acct-hero__avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 30%, var(--rx-accent-2), var(--rx-accent-2) 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.1),
    0 8px 22px -8px rgba(30,99,255,.5);
  display: grid;
  place-items: center;
  font-family: var(--rx-font);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -.02em;
  flex-shrink: 0;
  position: relative;
}
.acct-hero__avatar::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--rx-accent-2), transparent);
  z-index: -1;
  opacity: .35;
  filter: blur(8px);
}

.acct-hero__id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.acct-hero__name {
  font-family: var(--rx-font);
  font-size: 17px;
  font-weight: 600;
  color: var(--rx-text);
  letter-spacing: -.005em;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-hero__email {
  font-family: var(--rx-font-mono);
  font-size: 11px;
  color: var(--rx-muted);
  letter-spacing: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.acct-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 99px;
  padding: 3px 10px;
  font-family: var(--rx-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid;
}
.acct-chip svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.acct-chip--package {
  background: #ffffff !important;
  color: #c79806 !important;
  border-color: #ffffff !important;
}
.acct-chip--package::before { content: "★"; font-size: 9px; color: var(--rx-warn) !important; }
.acct-chip--2fa-on {
  background: #ffffff !important;
  color: var(--rx-good) !important;
  border-color: #ffffff !important;
}
.acct-chip--2fa-off {
  background: #ffffff !important;
  color: var(--rx-bad) !important;
  border-color: #ffffff !important;
}
.acct-chip--id {
  background: #ffffff !important;
  color: var(--rx-accent) !important;
  border-color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════════
   PROFILE — STATS STRIP
   ═══════════════════════════════════════════════════════════ */

.acct-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
@media (min-width: 540px) {
  .acct-stats { grid-template-columns: repeat(3, 1fr); }
}
.acct-stat {
  background: var(--rx-surface-2);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.acct-stat__label {
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rx-muted);
  font-weight: 600;
  margin: 0;
}
.acct-stat__value {
  font-family: var(--rx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--rx-text);
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   PROFILE — LABEL/VALUE ROWS  (read-only data)
   ═══════════════════════════════════════════════════════════ */

.acct-rows {
  display: flex;
  flex-direction: column;
}
.acct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rx-border);
}
.acct-row:last-child { border-bottom: none; }
.acct-row__k {
  color: var(--rx-muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
}
.acct-row__v {
  font-family: var(--rx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--rx-text);
  font-weight: 500;
  text-align: right;
  letter-spacing: -.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}
.acct-row__v--placeholder { color: var(--rx-faint); }

/* ═══════════════════════════════════════════════════════════
   PROFILE — FORM FIELDS  (editable)
   ═══════════════════════════════════════════════════════════ */

.acct-fields { display: flex; flex-direction: column; gap: 10px; }

.acct-field {
  background: var(--rx-surface-2);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-sm);
  padding: 7px 12px;
  transition: border-color var(--rx-dur-fast) var(--rx-ease-snap),
              box-shadow   var(--rx-dur-fast) var(--rx-ease-snap),
              background-color var(--rx-dur-fast) var(--rx-ease-snap);
  position: relative;
}
.acct-field:focus-within {
  border-color: var(--rx-accent);
  box-shadow: var(--rx-focus-ring);
}
.acct-field__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rx-muted);
  margin: 0 0 1px;
}
.acct-field__row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.acct-field__control {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: var(--rx-text) !important;
  font-family: var(--rx-font) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 0 !important;
  height: auto !important;
  outline: none;
  box-shadow: none !important;
  min-width: 0;
}
.acct-field__control::placeholder { color: var(--rx-faint); opacity: 1; }
.acct-field__control:focus { outline: none; box-shadow: none !important; }
.acct-field__control[type="password"] { font-family: var(--rx-font-mono) !important; letter-spacing: .15em; }
.acct-field__suffix {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity var(--rx-dur-fast), filter var(--rx-dur-fast);
  background: none;
  border: 0;
}
.acct-field__suffix:hover,
.acct-field__suffix:focus-visible {
  opacity: 1;
}

/* ── Validation states ──────────────────────────────────────
   Apply .acct-field--error / --success / --loading on the wrapper.
   Helper copy goes in .acct-field__msg directly under the row. */
.acct-field--error {
  border-color: var(--rx-bad);
  background: linear-gradient(180deg, var(--rx-bad-soft), var(--rx-surface-2) 60%);
}
.acct-field--error:focus-within {
  border-color: var(--rx-bad);
  box-shadow: 0 0 0 3px rgba(234,57,67,.18), 0 0 0 1px var(--rx-bad);
}
.acct-field--success {
  border-color: var(--rx-good);
}
.acct-field--success:focus-within {
  border-color: var(--rx-good);
  box-shadow: 0 0 0 3px rgba(22,199,132,.18), 0 0 0 1px var(--rx-good);
}
.acct-field--loading { opacity: .85; pointer-events: none; }

.acct-field__msg {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--rx-muted);
  line-height: 1.35;
}
.acct-field__msg svg {
  width: 12px; height: 12px;
  flex-shrink: 0;
  stroke: currentColor; fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.acct-field--error  .acct-field__msg { color: var(--rx-bad); }
.acct-field--success .acct-field__msg { color: var(--rx-good); }

/* Status icon shown in the suffix slot. Pair with a hidden eye/etc.
   when error/success/loading is active. */
.acct-field__status {
  width: 18px; height: 18px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
}
.acct-field__status svg {
  width: 16px; height: 16px;
  stroke-width: 2.4;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.acct-field--error  .acct-field__status { color: var(--rx-bad); }
.acct-field--success .acct-field__status { color: var(--rx-good); }
.acct-field--loading .acct-field__status {
  border: 2px solid var(--rx-border-strong);
  border-top-color: var(--rx-accent);
  border-radius: 50%;
  animation: rx-spin .8s linear infinite;
}
@keyframes rx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .acct-field--loading .acct-field__status { animation: none; }
}

/* Mobile: 44px touch targets for any tap-anything in a field row. */
@media (max-width: 640px) {
  .acct-field { padding: 9px 12px; }
  .acct-field__row { min-height: 32px; }
  .acct-field__control { font-size: 14px !important; min-height: 28px; }
  .acct-field__suffix {
    width: 24px; height: 44px;
    margin: -10px -8px -10px 0; /* expand hit area without shifting layout */
  }
}

.acct-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.acct-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-family: var(--rx-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: var(--rx-r-sm);
  cursor: pointer;
  transition: all .15s ease;
  border: 1px solid var(--rx-border-strong);
  background: var(--rx-surface-3);
  color: var(--rx-text);
  text-transform: none;
}
.acct-btn:hover {
  background: var(--rx-surface-4);
  color: var(--rx-text);
}
.acct-btn--primary {
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px -4px rgba(30,99,255,.4);
}
.acct-btn--primary:hover {
  filter: brightness(1.06);
  color: #ffffff;
}
.acct-btn--ghost {
  background: transparent;
  border-color: var(--rx-border);
}
.acct-btn--danger {
  background: var(--rx-bad-soft);
  color: var(--rx-bad);
  border-color: rgba(234,57,67,.35);
}
.acct-btn--danger:hover { background: rgba(234,57,67,.18); color: var(--rx-bad); }

/* ═══════════════════════════════════════════════════════════
   PROFILE — 2FA QR FLOW
   ═══════════════════════════════════════════════════════════ */

.acct-2fa-steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.acct-2fa-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.acct-2fa-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--rx-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--rx-accent);
  background: var(--rx-accent-soft);
  border: 1px solid rgba(30,99,255,.3);
  border-radius: var(--rx-r-xs);
  padding: 2px 6px;
  flex-shrink: 0;
  line-height: 1;
  height: 22px;
  display: inline-flex;
  align-items: center;
}
.acct-2fa-step__body {
  flex: 1;
  min-width: 0;
}
.acct-2fa-step__title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rx-text);
  margin: 0 0 8px;
  letter-spacing: 0;
}

.acct-qr {
  background: var(--rx-surface-2);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.acct-qr__code {
  background: #fff;
  border-radius: var(--rx-r-sm);
  padding: 6px;
  width: 132px;
  height: 132px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.acct-qr__code .qrcode,
.acct-qr__code canvas,
.acct-qr__code img {
  width: 120px !important;
  height: 120px !important;
}
.acct-qr__hint {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.acct-qr__hint p {
  font-size: 11px;
  color: var(--rx-text-2);
  line-height: 1.5;
  margin: 0;
}
.acct-secret {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--rx-bg-2);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-sm);
  overflow: hidden;
}
.acct-secret__label {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rx-muted);
  font-weight: 600;
  padding: 6px 0 6px 10px;
  white-space: nowrap;
}
.acct-secret__code {
  flex: 1;
  font-family: var(--rx-font-mono);
  font-size: 11px;
  color: var(--rx-accent);
  font-weight: 600;
  padding: 6px 8px;
  word-break: break-all;
  letter-spacing: .04em;
}
.acct-secret__copy {
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2));
  border: none;
  border-left: 1px solid var(--rx-accent-2);
  padding: 0 12px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background .12s;
  align-self: stretch;
}
.acct-secret__copy:hover { background: var(--rx-accent-2); }
.acct-secret__copy img {
  width: 12px;
  filter: brightness(0) invert(1) opacity(1) !important;
}

/* ═══════════════════════════════════════════════════════════
   PROFILE — STATUS NOTICES
   ═══════════════════════════════════════════════════════════ */

.acct-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--rx-r-xs);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
}
.acct-notice img {
  width: 13px;
  height: 13px;
}
.acct-notice--good {
  background: var(--rx-good-soft);
  color: var(--rx-good);
  border: 1px solid rgba(22,199,132,.25);
}
.acct-notice--good img {
  filter: brightness(0) saturate(100%) invert(67%) sepia(70%) saturate(444%) hue-rotate(108deg) brightness(96%) contrast(89%);
}
.acct-notice--warn {
  background: var(--rx-warn-soft);
  color: var(--rx-warn);
  border: 1px solid rgba(240,185,11,.25);
}

/* E-contract view link card */
.acct-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--rx-surface-2);
  border: 1px dashed var(--rx-border-mid);
  border-radius: var(--rx-r-sm);
  padding: 10px 14px;
  text-decoration: none;
  transition: all .15s ease;
}
.acct-link-card:hover {
  border-color: var(--rx-accent);
  background: var(--rx-accent-soft);
}
.acct-link-card__label {
  font-size: 12px;
  color: var(--rx-text);
  font-weight: 600;
}
.acct-link-card__arrow {
  color: var(--rx-accent);
  font-size: 14px;
  font-family: var(--rx-font-mono);
}

/* Danger zone */
.acct-danger {
  border: 1px dashed rgba(234,57,67,.3);
  border-radius: var(--rx-r-md);
  padding: 14px 16px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(234,57,67,.025);
}
.acct-danger__title {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rx-bad);
  margin: 0 0 4px;
}
.acct-danger__sub {
  font-size: 11.5px;
  color: var(--rx-muted);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  DASHBOARD HERO MOON IMAGE                              ▒▒
   ═══════════════════════════════════════════════════════════ */
.dx-hero { isolation: isolate; overflow: hidden; }
.dx-hero__moon {
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  transform: translateY(-50%) rotate(-8deg);
  width: 180px;
  height: 180px;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
  z-index: 0;
  display: block !important;
  visibility: visible !important;
  opacity: .85;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.55))
          drop-shadow(0 0 22px rgba(240,185,11,.20));
  animation: dx-moon-float 9s ease-in-out infinite;
}
.dx-hero__moon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  filter: brightness(1.05);
}
@keyframes dx-moon-float {
  0%, 100% { transform: translateY(-50%) rotate(-8deg) translateX(0); }
  50%      { transform: translateY(calc(-50% - 6px)) rotate(-5deg) translateX(-3px); }
}

/* Make sure the hero's text content sits ABOVE the moon and gets enough
   right padding so it doesn't overlap with the moon visually */
.dx-hero__top,
.dx-hero__pack,
.dx-hero__equity,
.dx-hero__actions {
  position: relative !important;
  z-index: 1 !important;
}
@media (min-width: 480px) {
  .dx-hero__equity { padding-right: 200px; }
  .dx-hero__pack   { padding-right: 200px; }
}

/* Smaller / less prominent on phones so it doesn't overpower */
@media (max-width: 540px) {
  .dx-hero__moon {
    width: 120px;
    height: 120px;
    right: 8px !important;
    opacity: .45;
    top: 50% !important;
  }
  .dx-hero__equity,
  .dx-hero__pack { padding-right: 0 !important; }
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  OPEN-ORDER PAGE — Binance-grade trade execution        ▒▒
   ═══════════════════════════════════════════════════════════ */

.ot-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 0 24px;
}

/* ── Upcoming pairs rail ─────────────────────────────────── */
.ot-rail {
  background: var(--rx-surface-1);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-lg);
  padding: 14px 14px 12px;
}
.ot-rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ot-rail__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--rx-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rx-text);
}
.ot-rail__bar {
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--rx-warn), #d49b00);
}
.ot-rail__count {
  font-family: var(--rx-font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--rx-warn);
  background: var(--rx-warn-soft);
  border: 1px solid rgba(240,185,11,.25);
  border-radius: 99px;
  padding: 1px 7px;
  letter-spacing: 0;
}
.ot-rail__cards {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
  margin-bottom: -4px;
}
.ot-rail__cards::-webkit-scrollbar { height: 4px; }
.ot-rail__cards::-webkit-scrollbar-track { background: transparent; }
.ot-rail__cards::-webkit-scrollbar-thumb { background: var(--rx-surface-3); border-radius: 99px; }

.ot-upc {
  flex: 0 0 auto;
  min-width: 180px;
  background: linear-gradient(135deg, rgba(240,185,11,.06), var(--rx-surface-2) 70%);
  border: 1px solid rgba(240,185,11,.22);
  border-radius: var(--rx-r-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ot-upc__head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ot-upc__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rx-warn);
  box-shadow: 0 0 8px rgba(240,185,11,.5);
  animation: dx-pulse 1.6s ease-in-out infinite;
}
.ot-upc__pair {
  font-family: var(--rx-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--rx-text);
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
  background: none !important;
  -webkit-text-fill-color: var(--rx-text) !important;
}
.ot-upc__label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rx-warn);
  margin: 0;
}
.ot-upc__timer .custom-timer .time-box {
  background: var(--rx-bg-2) !important;
  color: var(--rx-text) !important;
  font-family: var(--rx-font-mono) !important;
  font-size: 12px !important;
  border-radius: var(--rx-r-xs) !important;
  border: 1px solid var(--rx-border) !important;
}

/* ── Section frames ──────────────────────────────────────── */
.ot-section {
  background: var(--rx-surface-1);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-lg);
  padding: 14px;
}
.ot-section__head {
  display: grid !important;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 10px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 0 10px !important;
  margin: 0 0 12px !important;
  border-bottom: 1px solid var(--rx-border) !important;
}
.ot-section__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  justify-self: center;
  text-align: center;
  color: var(--rx-text) !important;
  font-family: var(--rx-font) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

.ot-section__sub {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rx-muted);
  margin-left: 6px;
}
.ot-section__nav {
  display: inline-grid !important;
  place-items: center !important;
  width: 28px; height: 28px;
  background: var(--rx-surface-2) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-xs) !important;
  color: var(--rx-text-2) !important;
  transition: all .12s ease;
  text-decoration: none !important;
}
.ot-section__nav svg { width: 12px; height: 12px; }
.ot-section__nav:hover {
  background: var(--rx-accent-soft) !important;
  border-color: var(--rx-accent) !important;
  color: var(--rx-accent) !important;
}

/* ── Trading cards grid ──────────────────────────────────── */
.ot-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 10px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
@media (min-width: 720px) { .ot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ot-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ── Open-order trading card ─────────────────────────────── */
.ot-card {
  background: linear-gradient(180deg, var(--rx-surface-2), var(--rx-surface-1)) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-md) !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ot-card:hover {
  border-color: var(--rx-border-strong) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.4);
}
.ot-card[data-expired="true"] {
  opacity: .55;
  filter: grayscale(.4);
}

.ot-card__head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px;
  padding: 12px 14px 8px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.ot-card__id {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.ot-card__pill {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 26px;
  padding: 0 8px;
  border-radius: var(--rx-r-xs);
  background: linear-gradient(135deg, var(--rx-accent-soft), rgba(30,99,255,.02));
  border: 1px solid rgba(30,99,255,.3);
  color: var(--rx-accent);
  font-family: var(--rx-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
}
.ot-card__pair {
  font-family: var(--rx-font);
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--rx-text) !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none !important;
  -webkit-text-fill-color: var(--rx-text) !important;
}
.ot-card__action { flex-shrink: 0; }

/* The Trade button */
.ot-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px !important;
  font-family: var(--rx-font) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  border-radius: var(--rx-r-xs) !important;
  border: 0px solid transparent !important;
  cursor: pointer;
  transition: all .12s ease !important;
  min-height: 28px !important;
  box-shadow: none !important;
  white-space: nowrap;
}
.ot-btn svg { width: 11px; height: 11px; transition: transform .15s ease; }
.ot-btn--primary {
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2)) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px -4px rgba(30,99,255,.35) !important;
}
.ot-btn--primary:hover:not(:disabled),
.ot-btn--primary:focus:not(:disabled) {
  filter: brightness(1.08);
  color: #ffffff !important;
}
.ot-btn--primary:hover:not(:disabled) svg { transform: translateX(2px); }
.ot-btn--primary:disabled,
.ot-btn--primary[disabled] {
  background: var(--rx-surface-3) !important;
  color: var(--rx-muted) !important;
  cursor: not-allowed;
  box-shadow: none !important;
  border-color: var(--rx-border) !important;
}
.ot-btn--gold {
  background: linear-gradient(180deg, var(--rx-warn), #c79806) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px -4px rgba(240,185,11,.4) !important;
}
.ot-btn--gold:hover { filter: brightness(1.08); color: #ffffff !important; }

/* Countdown timer row */
.ot-card__timer {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin: 0 14px 10px !important;
  padding: 8px 12px !important;
  background: var(--rx-bg-2);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-sm);
  position: relative;
  overflow: hidden;
}
.ot-card__timer::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2));
}
.ot-card__timer-label {
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rx-muted);
  font-weight: 600;
}
.ot-card__timer-display {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--rx-font-mono) !important;
  font-variant-numeric: tabular-nums;
}
.ot-card__timer-display .time-box {
  background: var(--rx-surface-3) !important;
  color: var(--rx-text) !important;
  border: 1px solid var(--rx-border) !important;
  font-family: var(--rx-font-mono) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: var(--rx-r-xs) !important;
  padding: 2px 4px !important;
  margin: 0 1px;
  text-transform: none !important;
  letter-spacing: 0 !important;
  width: auto !important;
  min-width: 22px;
  text-align: center;
}
.ot-card__timer-display .colon {
  color: var(--rx-accent) !important;
  font-weight: 700 !important;
  margin: 0 1px !important;
  font-family: var(--rx-font-mono) !important;
}

/* Stats stack */
.ot-stats {
  display: flex !important;
  flex-direction: column;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 14px !important;
  margin: 0 !important;
}
.ot-stat {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  padding: 8px 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px dashed var(--rx-border) !important;
  border-radius: 0 !important;
  font-size: 11.5px;
  transition: background .12s;
}
.ot-stat:last-child { border-bottom: none !important; }
.ot-stat--clickable { cursor: pointer; padding-left: 6px !important; padding-right: 6px !important; margin: 0 -6px !important; border-radius: var(--rx-r-xs) !important; }
.ot-stat--clickable:hover { background: var(--rx-surface-3) !important; }
.ot-stat__k {
  color: var(--rx-muted) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.ot-stat__v {
  color: var(--rx-text) !important;
  font-family: var(--rx-font-mono) !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: -.005em !important;
  text-align: right;
}
.ot-stat__v--good { color: var(--rx-good) !important; }
.ot-stat__v--bad  { color: var(--rx-bad)  !important; }
.ot-stat__v--big {
  font-size: 14px !important;
  color: var(--rx-text) !important;
}
.ot-stat__sym {
  font-family: var(--rx-font) !important;
  font-size: 10px;
  color: var(--rx-muted);
  font-weight: 500;
  margin-left: 2px;
}

/* Exchange rate badge */
.ot-rate {
  display: inline-flex !important;
  align-items: center;
  padding: 3px 8px !important;
  background: var(--rx-bad-soft) !important;
  color: var(--rx-bad) !important;
  border: 1px solid rgba(234,57,67,.25) !important;
  border-radius: var(--rx-r-xs) !important;
  font-family: var(--rx-font-mono) !important;
  font-variant-numeric: tabular-nums;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  min-width: 70px;
  justify-content: center;
}
.ot-rate.bg-success {
  background: var(--rx-good-soft) !important;
  color: var(--rx-good) !important;
  border-color: rgba(22,199,132,.25) !important;
}
.ot-rate.bg-danger {
  background: var(--rx-bad-soft) !important;
  color: var(--rx-bad) !important;
  border-color: rgba(234,57,67,.25) !important;
}
.ot-rate.bg-secondary {
  background: var(--rx-surface-3) !important;
  color: var(--rx-text-2) !important;
  border-color: var(--rx-border) !important;
}

/* Progress bar — Binance-style */
.ot-card__progress {
  margin: 10px 14px 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}
.ot-progress {
  width: 100%;
  height: 6px;
  background: var(--rx-bg-2);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--rx-border);
}
.ot-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rx-accen-2), var(--rx-accent-2)) !important;
  border-radius: 99px;
  transition: width .4s ease;
  box-shadow: 0 0 10px rgba(30,99,255,.3);
}
.ot-progress__fill--gold {
  background: linear-gradient(90deg, var(--rx-warn), #ffce4d) !important;
  box-shadow: 0 0 10px rgba(240,185,11,.3);
}
.ot-card__progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.ot-card__progress-label {
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rx-muted);
  font-weight: 600;
}
.ot-card__progress-pct {
  font-family: var(--rx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  color: var(--rx-accent);
  letter-spacing: -.01em;
  background: none !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Footer (payment + webhook) */
.ot-card__foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px 12px !important;
  background: var(--rx-bg-2);
  border-top: 1px solid var(--rx-border);
  margin-top: auto;
}
.ot-pay {
  display: flex !important;
  align-items: center !important;
  gap: 6px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.ot-pay__btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 24px;
  background: var(--rx-surface-2);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-xs);
  transition: border-color .12s, transform .12s;
  text-decoration: none !important;
}
.ot-pay__btn:hover {
  border-color: var(--rx-accent);
  transform: translateY(-1px);
}
.ot-pay__btn img { height: 14px !important; width: auto; opacity: .85; }
.ot-pay__btn:hover img { opacity: 1; }

.ot-webhook {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 11px;
}
.ot-webhook .webhook-details {
  display: flex !important;
  align-items: center !important;
  gap: 6px;
  flex-wrap: wrap;
}
.ot-webhook__logo {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain;
}
.ot-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--rx-font-mono) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 2px 7px !important;
  border-radius: 99px !important;
  border: 1px solid var(--rx-border) !important;
  background: var(--rx-surface-3) !important;
  color: var(--rx-text-2) !important;
  text-decoration: none !important;
  transition: all .12s ease;
}
.ot-pill--accent.bg-primary {
  background: var(--rx-accent-soft) !important;
  color: var(--rx-accent) !important;
  border-color: rgba(30,99,255,.25) !important;
}
.ot-pill--accent.bg-primary:hover {
  background: rgba(30,99,255,.18) !important;
  border-color: var(--rx-accent) !important;
}
.ot-webhook__amount {
  font-family: var(--rx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  color: var(--rx-good);
  margin-left: auto;
}

/* ── My Exchange Order (positions) card ──────────────────── */
.ot-pos {
  background: linear-gradient(180deg, var(--rx-surface-2), var(--rx-surface-1)) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-md) !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
  transition: border-color .15s, transform .15s;
  position: relative;
}
.ot-pos:hover {
  border-color: var(--rx-border-strong) !important;
  transform: translateY(-1px);
}
.ot-pos__head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px;
  padding: 12px 14px 8px !important;
  background: linear-gradient(135deg, rgba(240,185,11,.04), transparent 70%) !important;
  border: none !important;
  border-bottom: 1px dashed var(--rx-border) !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.ot-pos__id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ot-pos__pill {
  position: relative;
  background: var(--rx-font) !important;
  border: 1px solid var(--rx-border) !important;
  color:  var(--rx-warn)!important;
  font-family: var(--rx-font-mono) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  padding-left: 10px !important;
  padding-right: 9px !important;
  height: 24px !important;
  min-width: 0 !important;
  border-radius: var(--rx-r-xs) !important;
  overflow: hidden;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.ot-pos__pill::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--rx-warn) !important;
}

.ot-pos__pair {
  font-family: var(--rx-font);
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--rx-text) !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.ot-pos__order {
  margin: 0 !important;
}
.ot-pos__order h6 {
  margin: 0 !important;
  font-size: 10.5px !important;
  color: var(--rx-muted) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.ot-pos__order code {
  font-family: var(--rx-font-mono);
  font-size: 10.5px;
  color: var(--rx-text-2);
  background: var(--rx-bg-2);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-xs);
  padding: 1px 5px;
  margin-left: 2px;
}

.ot-pos__action { flex-shrink: 0; }

.ot-pos .ot-stats { padding: 4px 14px 12px !important; }

.ot-pos__progress {
  margin: 0 14px 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left !important;
}
.ot-pos__progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ot-pos__progress-label {
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rx-muted);
  font-weight: 600;
}
.ot-pos__countdown {
  font-family: var(--rx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  color: var(--rx-warn);
  letter-spacing: -.01em;
}

/* Pagination */
.ot-pager {
  display: flex !important;
  justify-content: center;
  margin: 12px 0 0 !important;
  padding: 0 !important;
}
.ot-pager .pagination { gap: 4px; }
.ot-pager .pagination li a,
.ot-pager .pagination li span {
  background: var(--rx-surface-2) !important;
  border: 1px solid var(--rx-border) !important;
  color: var(--rx-text-2) !important;
  font-family: var(--rx-font-mono) !important;
  font-size: 11.5px !important;
  border-radius: var(--rx-r-xs) !important;
  padding: 5px 10px !important;
  min-width: 30px;
  text-align: center;
  transition: all .12s ease;
}
.ot-pager .pagination li a:hover {
  background: var(--rx-accent-soft) !important;
  color: var(--rx-accent) !important;
  border-color: var(--rx-accent) !important;
}
.ot-pager .pagination li.active a {
  background: var(--rx-accent-soft) !important;
  border-color: var(--rx-accent) !important;
  color: var(--rx-accent) !important;
}

/* Empty state */
.ot-empty {
  padding: 36px 12px !important;
  text-align: center;
  color: var(--rx-muted);
}
.ot-empty figure { margin: 0 auto 10px; }
.ot-empty figure img { max-width: 110px; opacity: .6; }
.ot-empty article {
  font-size: 12px;
  color: var(--rx-muted);
  letter-spacing: 0;
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  TOAST NOTIFICATIONS — pinned top-right                ▒▒
   ═══════════════════════════════════════════════════════════ */

.tk-toast-container,
.toast-container {
  position: fixed !important;
  top: 16px;
  right: 16px;
  left: auto !important;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: auto;
}
@media (max-width: 540px) {
  .tk-toast-container,
  .toast-container { top: 10px; right: 10px; left: 10px !important; }
}

.tk-toast {
  position: relative !important;
  right: auto !important;
  top: auto !important;
  display: none;
  align-items: flex-start;
  gap: 10px;
  min-width: 280px;
  max-width: 380px;
  margin: 0 !important;
  padding: 12px 14px 12px 14px !important;
  background: linear-gradient(180deg, var(--rx-surface-2), var(--rx-surface-1)) !important;
  color: var(--rx-text) !important;
  border: 1px solid var(--rx-border-mid) !important;
  border-radius: var(--rx-r-md) !important;
  box-shadow:
    0 18px 40px -12px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.02) inset !important;
  font-family: var(--rx-font) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.4;
  text-align: left !important;
  overflow: hidden;
  pointer-events: auto;
  isolation: isolate;
  opacity: 0;
  transform: translateX(110%);
  transition: opacity .22s ease, transform .35s cubic-bezier(.22,.61,.36,1);
}
.tk-toast.show {
  display: flex !important;
  opacity: 1;
  transform: translateX(0);
}
.tk-toast.fade.show { opacity: 1; }
@media (max-width: 540px) {
  .tk-toast {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .tk-toast { transform: translateY(-110%); }
  .tk-toast.show { transform: translateY(0); }
}

/* Accent left bar */
.tk-toast::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--rx-accent);
}

/* Subtle ambient sheen behind icon */
.tk-toast::after {
  content: "";
  position: absolute;
  left: -20px; top: -20px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, var(--rx-accent-glow), transparent 70%);
  pointer-events: none;
  z-index: -1;
  opacity: .35;
}

/* Variant — success */
.tk-toast--success::before { background: var(--rx-good); }
.tk-toast--success::after  { background: radial-gradient(circle, rgba(22,199,132,.22), transparent 70%); }
.tk-toast--success .tk-toast__icon {
  background: var(--rx-good-soft);
  color: var(--rx-good);
  border-color: rgba(22,199,132,.3);
}

/* Variant — error */
.tk-toast--error::before { background: var(--rx-bad); }
.tk-toast--error::after  { background: radial-gradient(circle, rgba(234,57,67,.22), transparent 70%); }
.tk-toast--error .tk-toast__icon {
  background: var(--rx-bad-soft);
  color: var(--rx-bad);
  border-color: rgba(234,57,67,.3);
}

/* Icon disc */
.tk-toast__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  background: var(--rx-accent-soft);
  color: var(--rx-accent);
  border: 1px solid rgba(30,99,255,.3);
  border-radius: 50%;
  margin-top: 1px;
}
.tk-toast__icon svg {
  width: 14px;
  height: 14px;
}

/* Body */
.tk-toast__body {
  flex: 1;
  min-width: 0;
  color: var(--rx-text) !important;
  font-family: var(--rx-font) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.45;
  padding-top: 4px;
  word-break: break-word;
}
.tk-toast__body span {
  background: none !important;
  color: inherit !important;
  padding: 0 !important;
}
/* Override any bg-success/bg-danger that legacy JS adds to inner span */
.tk-toast__body .bg-success,
.tk-toast__body .bg-danger {
  background: none !important;
  color: inherit !important;
}

/* Close btn */
.tk-toast__close {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: transparent;
  border: 0px solid transparent;
  border-radius: var(--rx-r-xs);
  color: var(--rx-faint);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: all .12s ease;
  margin-top: 3px;
  padding: 0;
}
.tk-toast__close:hover {
  color: var(--rx-text);
  background: var(--rx-surface-3);
  border-color: var(--rx-border);
}
.tk-toast__close svg { width: 11px; height: 11px; }

/* Subtle progress shimmer at bottom (visual cue) */
.tk-toast.show::after { opacity: .45; }

/* Override legacy .toast styles bleeding through */
.toast.tk-toast {
  background: linear-gradient(180deg, var(--rx-surface-2), var(--rx-surface-1)) !important;
}
.toast.tk-toast.success,
.toast.tk-toast.failed {
  color: var(--rx-text) !important;
  box-shadow:
    0 18px 40px -12px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.02) inset !important;
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  SUPPORT / TICKET LIST                                  ▒▒
   ═══════════════════════════════════════════════════════════ */

.tk-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0 24px;
}

.tk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--rx-surface-2), var(--rx-surface-1));
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-lg);
  position: relative;
  overflow: hidden;
}
.tk-toolbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 200px at 100% 0%, rgba(30,99,255,.08), transparent 70%);
  pointer-events: none;
}
.tk-toolbar__left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.tk-toolbar__bar {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2));
  flex-shrink: 0;
}
.tk-toolbar__title {
  margin: 0;
  font-family: var(--rx-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rx-text);
}
.tk-toolbar__count {
  font-family: var(--rx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--rx-accent);
  background: var(--rx-accent-soft);
  border: 1px solid rgba(30,99,255,.3);
  border-radius: 99px;
  padding: 1px 8px;
  letter-spacing: 0;
}
.tk-toolbar__right {
  position: relative;
  z-index: 1;
}

.tk-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2));
  color: #ffffff;
  border: 0px solid transparent;
  border-radius: var(--rx-r-sm);
  padding: 8px 14px;
  font-family: var(--rx-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .15s ease, transform .12s ease;
  box-shadow: 0 4px 14px -4px rgba(30,99,255,.4);
}
.tk-new-btn:hover { filter: brightness(1.08); color: #ffffff; transform: translateY(-1px); }
.tk-new-btn svg { width: 13px; height: 13px; }

/* Ticket cards list */
.tk-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tk-card {
  display: grid;
  grid-template-columns: 4px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 0;
  background: var(--rx-surface-1);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-md);
  text-decoration: none !important;
  transition: all .15s ease;
  overflow: hidden;
  position: relative;
}
.tk-card:hover {
  border-color: var(--rx-border-strong);
  transform: translateX(2px);
  background: var(--rx-surface-2);
}
.tk-card--unread {
  background: linear-gradient(135deg, rgba(30,99,255,.05), var(--rx-surface-1) 60%);
}
.tk-card__bar {
  width: 4px;
  align-self: stretch;
  background: var(--rx-border);
  transition: background .15s;
}
.tk-card--unread .tk-card__bar {
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2));
}
.tk-card:hover .tk-card__bar {
  background: var(--rx-accent);
}

.tk-card__body {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.tk-card__row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tk-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 99px;
  font-family: var(--rx-font);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid;
}
.tk-status__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.tk-status--open {
  background: var(--rx-accent-soft);
  color: var(--rx-accent);
  border-color: rgba(30,99,255,.3);
}
.tk-status--open .tk-status__dot {
  animation: dx-pulse 1.6s ease-in-out infinite;
}
.tk-status--pending {
  background: var(--rx-warn-soft);
  color: var(--rx-warn);
  border-color: rgba(240,185,11,.3);
}
.tk-status--closed {
  background: var(--rx-surface-3);
  color: var(--rx-muted);
  border-color: var(--rx-border);
}
.tk-card__time {
  font-family: var(--rx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  color: var(--rx-faint);
  letter-spacing: 0;
}
.tk-card__subject {
  margin: 0;
  font-family: var(--rx-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--rx-text);
  letter-spacing: -.005em;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-card--unread .tk-card__subject { font-weight: 700; }
.tk-card__preview {
  margin: 0;
  font-size: 11.5px;
  color: var(--rx-muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.tk-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 0 0;
  flex-shrink: 0;
}
.tk-card__badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--rx-accent);
  color: #ffffff;
  font-family: var(--rx-font);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tk-card__chev {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--rx-faint);
  transition: color .12s, transform .12s;
}
.tk-card__chev svg { width: 12px; height: 12px; }
.tk-card:hover .tk-card__chev {
  color: var(--rx-accent);
  transform: translateX(2px);
}

/* Empty state */
.tk-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 38px 20px;
  background: var(--rx-surface-1);
  border: 1px dashed var(--rx-border-mid);
  border-radius: var(--rx-r-md);
  text-align: center;
}
.tk-empty figure { margin: 0; }
.tk-empty figure img { max-width: 110px; opacity: .5; }
.tk-empty__title {
  margin: 0;
  font-family: var(--rx-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--rx-text);
  letter-spacing: 0;
}
.tk-empty__sub {
  margin: 0 0 8px;
  color: var(--rx-muted);
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  TICKET DETAIL — chat thread                            ▒▒
   ═══════════════════════════════════════════════════════════ */

.tk-thread-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px 0 24px;
  height: calc(100vh - 180px);
  min-height: 540px;
  max-height: calc(100vh - 100px);
}

.tk-thread__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--rx-surface-2), var(--rx-surface-1));
  border: 1px solid var(--rx-border-mid);
  border-radius: var(--rx-r-md) var(--rx-r-md) 0 0;
  border-bottom: none;
}

.tk-thread__back {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--rx-surface-3);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-sm);
  color: var(--rx-text-2) !important;
  text-decoration: none !important;
  flex-shrink: 0;
  transition: all .12s ease;
}
.tk-thread__back:hover {
  background: var(--rx-accent-soft);
  color: var(--rx-accent) !important;
  border-color: var(--rx-accent);
}
.tk-thread__back svg { width: 14px; height: 14px; }

.tk-thread__id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.tk-thread__pill {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--rx-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rx-accent);
  background: var(--rx-accent-soft);
  border: 1px solid rgba(30,99,255,.25);
  border-radius: 99px;
  padding: 1px 7px;
}
.tk-thread__title {
  margin: 0;
  font-family: var(--rx-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--rx-text);
  letter-spacing: -.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-thread__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--rx-font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--rx-good);
  flex-shrink: 0;
}
.tk-thread__live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rx-good);
  box-shadow: 0 0 8px rgba(22,199,132,.5);
  animation: dx-pulse 1.6s ease-in-out infinite;
}

/* Thread body — scroll area */
.tk-thread {
  flex: 1;
  overflow-y: auto;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(30,99,255,.04), transparent 70%),
    var(--rx-bg-2);
  border-left: 1px solid var(--rx-border-mid);
  border-right: 1px solid var(--rx-border-mid);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
  max-height: none !important;
}
.tk-thread::-webkit-scrollbar { width: 6px; }
.tk-thread::-webkit-scrollbar-track { background: transparent; }
.tk-thread::-webkit-scrollbar-thumb { background: var(--rx-surface-3); border-radius: 99px; }

/* Day divider */
.tk-day {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 !important;
  padding: 0 !important;
  text-align: center !important;
  color: var(--rx-faint) !important;
  font-family: var(--rx-font-mono) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
.tk-day__line {
  flex: 1;
  height: 1px;
  background: var(--rx-border);
}
.tk-day__label {
  padding: 2px 10px;
  background: var(--rx-surface-2);
  border: 1px solid var(--rx-border);
  border-radius: 99px;
  color: var(--rx-muted);
}

/* Message row */
.tk-msg {
  display: flex !important;
  align-items: flex-end !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  font-family: var(--rx-font) !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  max-width: 100%;
  animation: tkMsgIn .35s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes tkMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tk-msg--admin { justify-content: flex-start; }
.tk-msg--user  { justify-content: flex-end; flex-direction: row-reverse; }

/* Avatar */
.tk-msg__avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rx-border);
}
.tk-msg__avatar svg { width: 14px; height: 14px; }
.tk-msg__avatar--admin {
  background: linear-gradient(135deg, var(--rx-accent-soft), rgba(30,99,255,.04));
  color: var(--rx-accent);
  border-color: rgba(30,99,255,.3);
}
.tk-msg__avatar--user {
  background: linear-gradient(135deg, rgba(240,185,11,.18), rgba(240,185,11,.04));
  color: var(--rx-warn);
  border-color: rgba(240,185,11,.3);
}

.tk-msg__article {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  max-width: 75% !important;
  min-width: 0;
}
.tk-msg--user .tk-msg__article { align-items: flex-end !important; }
.tk-msg--admin .tk-msg__article { align-items: flex-start !important; }

.tk-msg__sender {
  font-family: var(--rx-font);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rx-accent);
  margin-bottom: 2px;
}

/* Bubble */
.tk-msg__bubble {
  position: relative;
  padding: 10px 14px 18px !important;
  border-radius: 14px !important;
  background: var(--rx-surface-2) !important;
  border: 1px solid var(--rx-border) !important;
  color: var(--rx-text) !important;
  font-family: var(--rx-font) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  word-break: break-word !important;
  overflow-wrap: break-word;
  max-width: 100% !important;
  min-width: 70px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.tk-msg__text {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  color: inherit !important;
  text-align: left !important;
  font-family: inherit !important;
}
.tk-msg__text a {
  color: var(--rx-accent) !important;
  word-break: break-word !important;
}

/* User bubble — accent tint, right-aligned tail style via radius shape */
.tk-msg--user .tk-msg__bubble {
  background: linear-gradient(135deg, rgba(30,99,255,.18), rgba(30,99,255,.06)) !important;
  border-color: rgba(30,99,255,.35) !important;
  border-bottom-right-radius: 4px !important;
}
.tk-msg--admin .tk-msg__bubble {
  border-bottom-left-radius: 4px !important;
}

.tk-msg__time {
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-family: var(--rx-font-mono) !important;
  font-variant-numeric: tabular-nums;
  font-size: 9.5px !important;
  color: var(--rx-faint) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1 !important;
}
.tk-msg--user .tk-msg__time { color: var(--rx-muted) !important; }

/* Composer */
.tk-composer {
  display: flex !important;
  align-items: flex-end !important;
  gap: 8px;
  padding: 10px 12px !important;
  background: linear-gradient(180deg, var(--rx-surface-1), var(--rx-bg-2));
  border: 1px solid var(--rx-border-mid) !important;
  border-radius: 0 0 var(--rx-r-md) var(--rx-r-md) !important;
  border-top: 1px solid var(--rx-border-mid) !important;
  margin: 0 !important;
  min-height: 0 !important;
}
.tk-composer__input {
  flex: 1;
  min-height: 36px !important;
  max-height: 140px !important;
  background: var(--rx-surface-2) !important;
  color: var(--rx-text) !important;
  font-family: var(--rx-font) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.4 !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-sm) !important;
  padding: 9px 12px !important;
  resize: none !important;
  outline: none !important;
  transition: border-color .15s, box-shadow .15s;
  width: auto !important;
}
.tk-composer__input::placeholder {
  color: var(--rx-faint);
}
.tk-composer__input:focus {
  border-color: var(--rx-accent) !important;
  box-shadow: 0 0 0 3px var(--rx-accent-soft) !important;
}
.tk-composer__send {
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  padding: 0 14px !important;
  height: 36px !important;
  min-height: 36px !important;
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2)) !important;
  color: #ffffff !important;
  border: 0px solid transparent !important;
  border-radius: var(--rx-r-sm) !important;
  font-family: var(--rx-font) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: all .12s ease !important;
  box-shadow: 0 4px 14px -4px rgba(30,99,255,.4) !important;
  width: auto !important;
  margin: 0 !important;
}
.tk-composer__send:hover:not(:disabled) {
  filter: brightness(1.08);
  color: #ffffff !important;
}
.tk-composer__send:active:not(:disabled) {
  transform: scale(.98);
}
.tk-composer__send:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.tk-composer__send svg { width: 14px; height: 14px; }
.tk-composer__send-label {
  font-family: var(--rx-font) !important;
  font-size: 12px !important;
}
@media (max-width: 540px) {
  .tk-composer__send-label { display: none; }
  .tk-composer__send { padding: 0 12px !important; }
}

/* Stretch the page block to use viewport */
.tk-thread-page > .tk-thread { flex: 1 1 auto; }

/* ═══════════════════════════════════════════════════════════
   ▒▒  MOBILE MENU DRAWER — Binance-grade redesign  v3        ▒▒
   ═══════════════════════════════════════════════════════════ */

/* ── Header bar + hamburger ─────────────────────────────── */
header { position: relative; z-index: 50; }

.header {
  padding: 10px 16px !important;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header .logo a { display: inline-flex; align-items: center; }
.header .logo img { height: 22px; width: auto; }

.header .menu_toggle {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: var(--rx-r-sm) !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  cursor: pointer;
  transition: all .15s ease;
}
.header .menu_toggle:hover,
header.nav_on .menu_toggle {
  background: rgba(255,255,255,.22) !important;
  border-color: rgba(255,255,255,.5) !important;
}
.header .menu_toggle img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1) opacity(.95);
  transition: filter .15s;
}
.header .menu_toggle:hover img,
header.nav_on .menu_toggle img {
  filter: brightness(0) invert(1) opacity(1);
}

/* Overlay behind drawer */
.menu_overlay {
  background: rgba(0,0,0,.6) !important;
  -webkit-backdrop-filter: blur(6px) !important;
          backdrop-filter: blur(6px) !important;
  transition: opacity .35s ease !important;
}

/* ════════════════════════════════════════════════════════
   MOBILE drawer (≤ 767px)
   ════════════════════════════════════════════════════════ */
@media (max-width: 992px) {

  /* ── Drawer shell ─────────────────────────────────────── */
  header .menu_list {
    display: block !important;
    position: fixed !important;
    top: 14px !important;
    right: -380px !important;
    width: 320px !important;
    max-width: 90vw;
    max-height: calc(100vh - 93px);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background:
      radial-gradient(420px 220px at 100% 0%, rgba(30,99,255,.08), transparent 65%),
      linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%) !important;
    border: 1px solid var(--rx-border-mid) !important;
    border-radius: var(--rx-r-lg) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.04),
      0 30px 80px -10px rgba(0,0,0,.7),
      0 12px 30px -10px rgba(30,99,255,.18) !important;
    padding: 8px 8px 14px !important;
    transition: right .42s cubic-bezier(.22,.61,.36,1) !important;
    z-index: 100 !important;
    scrollbar-width: thin;
    scrollbar-color: var(--rx-surface-3) transparent;
  }
  header .menu_list::-webkit-scrollbar { width: 5px; }
  header .menu_list::-webkit-scrollbar-thumb { background: var(--rx-surface-3); border-radius: 99px; }

  header.nav_on .menu_list { right: 12px !important; }

  /* Subtle grid pattern */
  header .menu_list::before {
    content: "";
    position: sticky;
    top: 0;
    left: 0; right: 0;
    height: 0;
    pointer-events: none;
  }

  /* ── List reset — force block, full width, no flex/grid bleed ─ */
  header .menu_list ul {
    display: block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    gap: 0 !important;
    flex-direction: initial !important;
  }
  header .menu_list ul li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    position: relative;
    flex: none !important;
  }

  /* ── Drawer header row ────────────────────────────────── */
  header .menu_list ul li.logo_close {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 12px !important;
    margin: 0 0 8px !important;
    border-bottom: 1px solid var(--rx-border) !important;
    background: transparent !important;
  }
  header .menu_list ul li.logo_close .menu_text {
    background: none !important;
    -webkit-background-clip: initial !important;
            background-clip: initial !important;
    -webkit-text-fill-color: var(--rx-muted) !important;
    color: var(--rx-muted) !important;
    font-family: var(--rx-font) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    margin: 0 !important;
  }
  /* Back button injected by JS */
  header .menu_list ul li.logo_close .menu_text .menu-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 10px !important;
    background: var(--rx-surface-2) !important;
    border: 1px solid var(--rx-border) !important;
    border-radius: var(--rx-r-xs) !important;
    color: var(--rx-text-2) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    transition: all .12s ease;
    cursor: pointer;
  }
  header .menu_list ul li.logo_close .menu_text .menu-back-btn:hover {
    background: var(--rx-accent-soft) !important;
    border-color: var(--rx-accent) !important;
    color: var(--rx-accent) !important;
  }
  header .menu_list ul li.logo_close .menu_text .menu-back-btn img {
    width: 7px !important;
  }
  header .menu_list ul li.logo_close .menu_close {
    width: 28px !important;
    height: 28px !important;
    background: var(--rx-surface-2) !important;
    border: 1px solid var(--rx-border) !important;
    border-radius: var(--rx-r-xs) !important;
    display: inline-grid !important;
    place-items: center !important;
    padding: 0 !important;
    cursor: pointer;
    transition: all .15s ease;
  }
  header .menu_list ul li.logo_close .menu_close:hover {
    background: var(--rx-surface-3) !important;
    border-color: var(--rx-bad) !important;
  }
  header .menu_list ul li.logo_close .menu_close img {
    width: 10px !important;
    filter: brightness(0) invert(1) opacity(.65);
    transition: opacity .15s, transform .25s, filter .15s;
  }
  header .menu_list ul li.logo_close .menu_close:hover img {
    opacity: 1;
    transform: rotate(90deg);
    filter: brightness(0) saturate(100%) invert(38%) sepia(85%) saturate(1746%) hue-rotate(331deg) brightness(96%) contrast(95%);
  }

  /* ── Top-level item rows ──────────────────────────────── */
  header .menu_list ul li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 12px 14px !important;
    margin: 1px 0 !important;
    background: transparent !important;
    color: var(--rx-text) !important;
    -webkit-text-fill-color: var(--rx-text) !important;
    font-family: var(--rx-font) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    border-radius: var(--rx-r-sm) !important;
    text-decoration: none !important;
    position: relative;
    z-index: 1;
    transition: background .15s ease, color .15s ease, padding-left .12s ease;
    -webkit-tap-highlight-color: transparent;
  }
  header .menu_list ul li > a:hover {
    background: var(--rx-surface-2) !important;
    color: var(--rx-text) !important;
  }
  header .menu_list ul li > a.active {
    background: var(--rx-accent-soft) !important;
    color: var(--rx-accent) !important;
  }
  header .menu_list ul li > a.active::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2));
    transform: translateY(-50%);
  }

  /* ── Main dropdown (.dropdown-container) ─────────────── */
  header .menu_list ul li .dropdown-container {
    display: block !important;
    width: 100% !important;
    position: static !important;
    margin: 0 !important;
  }

  /* The Asset/Trade/Card top-level toggle */
  header .menu_list ul li .dropdown-container > .main-drop {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 11px 14px !important;
    padding-right: 38px !important;
    margin: 1px 0 !important;
    background: transparent !important;
    color: var(--rx-text-2) !important;
    font-family: var(--rx-font) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    border-radius: var(--rx-r-sm) !important;
    text-decoration: none !important;
    cursor: pointer;
    position: relative;
    transition: background .15s ease, color .15s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
            user-select: none;
  }
  header .menu_list ul li .dropdown-container > .main-drop:hover {
    background: var(--rx-surface-2) !important;
    color: var(--rx-text) !important;
  }
  header .menu_list ul li .dropdown-container > .main-drop.active {
    background: var(--rx-accent-soft) !important;
    color: var(--rx-accent) !important;
  }
  header .menu_list ul li .dropdown-container > .main-drop.active::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2));
    transform: translateY(-50%);
  }

  /* Suppress legacy ::after chevron from bu.scss; use our own */
  header .menu_list ul li .dropdown.dropdown-container::after,
  header .menu_list ul li .lan .dark_arrow::after {
    display: none !important;
    content: none !important;
    background: none !important;
  }
  header .menu_list ul li .dropdown-container > .main-drop::after {
    content: "";
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    width: 8px !important;
    height: 8px !important;
    border: none !important;
    border-right: 1.7px solid var(--rx-muted) !important;
    border-bottom: 1.7px solid var(--rx-muted) !important;
    transform: translateY(-65%) rotate(45deg) !important;
    background: none !important;
    transition: transform .3s ease, border-color .15s !important;
  }
  header .menu_list ul li .dropdown-container.show > .main-drop::after,
  header .menu_list ul li .dropdown-container > .main-drop[aria-expanded="true"]::after {
    transform: translateY(-25%) rotate(-135deg) !important;
    border-color: var(--rx-accent) !important;
  }

  /* ── OUTER dropdown panel (inline accordion) ──────────── */
  header .menu_list ul li .dropdown-container > .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    transform: none !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 4px 0 6px !important;
    padding: 6px !important;
    background: var(--rx-bg-2) !important;
    border: 1px solid var(--rx-border) !important;
    border-radius: var(--rx-r-sm) !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }
  /* Bootstrap controls visibility via .show on the OUTER dropdown-menu */
  header .menu_list ul li .dropdown-container > .dropdown-menu:not(.show) {
    display: none !important;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu.show {
    display: block !important;
    animation: tkMenuFade .25s ease both;
  }
  @keyframes tkMenuFade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Direct dropdown-item inside outer (Trade: Open Order/Complete Order;
     Virtual Card: KYC/Apply/Overview). These are the only children of
     .dropdown-submenu — render them like the Asset sub-sub items so all
     three menus read identically. */
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > a.dropdown-item:not(.dropdown-toggle),
  header .menu_list ul li .dropdown-container > .dropdown-menu .dropdown-submenu > a.dropdown-item:not(.dropdown-toggle) {
    display: flex !important;
    align-items: center !important;
    gap: 9px;
    padding: 5px 12px !important;
    margin: 1px 0 !important;
    color: var(--rx-text) !important;
    font-family: var(--rx-font) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    border-radius: var(--rx-r-xs) !important;
    text-decoration: none !important;
    background: transparent !important;
    transition: background .12s ease, color .12s ease, padding-left .15s ease;
    position: relative;
  }
  /* Bullet dot prefix to match Asset's deep-level items */
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > a.dropdown-item:not(.dropdown-toggle)::before,
  header .menu_list ul li .dropdown-container > .dropdown-menu .dropdown-submenu > a.dropdown-item:not(.dropdown-toggle)::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--rx-faint);
    flex-shrink: 0;
    transition: background .12s, transform .15s, box-shadow .15s;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > a.dropdown-item:not(.dropdown-toggle):hover,
  header .menu_list ul li .dropdown-container > .dropdown-menu .dropdown-submenu > a.dropdown-item:not(.dropdown-toggle):hover {
    background: var(--rx-accent-soft) !important;
    color: var(--rx-accent) !important;
    padding-left: 14px !important;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > a.dropdown-item:not(.dropdown-toggle):hover::before,
  header .menu_list ul li .dropdown-container > .dropdown-menu .dropdown-submenu > a.dropdown-item:not(.dropdown-toggle):hover::before {
    background: var(--rx-accent);
    transform: scale(1.5);
    box-shadow: 0 0 6px var(--rx-accent-glow);
  }
  /* Generic fallback hover for any other dropdown-item still left grey */
  header .menu_list ul li .dropdown-container > .dropdown-menu .dropdown-item:hover {
    background: var(--rx-surface-3) !important;
    color: var(--rx-text) !important;
  }

  /* ── INNER submenu wrapper (Transaction Report / Earn Report) ─ */
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu {
    display: block !important;
    width: 100% !important;
    margin: 2px 0 !important;
    padding: 0 !important;
    background: var(--rx-surface-1) !important;
    border: 1px solid var(--rx-border) !important;
    border-radius: var(--rx-r-xs) !important;
    overflow: hidden;
    transition: border-color .15s ease, background .15s ease;
  }
  /* Highlight when expanded */
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu:has(> a.dropdown-toggle[aria-expanded="true"]),
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu:has(> .dropdown-menu.menu-level-sub) {
    border-color: rgba(30,99,255,.5) !important;
    background: var(--rx-surface-2) !important;
  }

  /* Toggle row */
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > a.dropdown-item.dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 7px 12px !important;
    padding-right: 36px !important;
    margin: 0 !important;
    background: transparent !important;
    color: var(--rx-text) !important;
    font-family: var(--rx-font) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
            user-select: none;
    transition: background .12s ease, color .12s ease;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > a.dropdown-item.dropdown-toggle:hover {
    background: var(--rx-surface-3) !important;
    color: var(--rx-accent) !important;
  }
  /* Folder icon */
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > a.dropdown-item.dropdown-toggle::before {
    content: "";
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7a2 2 0 0 1 2-2h4l2 3h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7a2 2 0 0 1 2-2h4l2 3h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/></svg>") center/contain no-repeat;
    color: var(--rx-muted);
    margin-right: 4px;
    transition: color .15s;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu:has(> a.dropdown-toggle[aria-expanded="true"]) > a.dropdown-item.dropdown-toggle::before,
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu:has(> .dropdown-menu.menu-level-sub) > a.dropdown-item.dropdown-toggle::before {
    color: var(--rx-accent);
  }

  /* Override ANY legacy chevron after pseudo */
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > a.dropdown-item.dropdown-toggle::after {
    content: "" !important;
    width: 8px !important;
    height: 8px !important;
    background: none !important;
    border: none !important;
    border-right: 1.7px solid var(--rx-muted) !important;
    border-bottom: 1.7px solid var(--rx-muted) !important;
    transform: rotate(45deg) translateY(-25%) !important;
    transition: transform .3s ease, border-color .15s !important;
    color: transparent !important;
    font-size: 0 !important;
    margin-left: auto;
    margin-right: 2px;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > a.dropdown-item.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg) translate(-25%, 0) !important;
    border-color: var(--rx-accent) !important;
  }

  /* ── INNER nested list — collapse via max-height ──────── */
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > .dropdown-menu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 14px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    max-height: 0 !important;
    opacity: 0;
    transition: max-height .4s cubic-bezier(.22,.61,.36,1),
                opacity .25s ease,
                padding .25s ease;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > .dropdown-menu.menu-level-sub,
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > .dropdown-menu.show {
    max-height: 800px !important;
    opacity: 1;
    padding: 4px 14px 10px !important;
    border-top: 1px dashed var(--rx-border) !important;
    display: block!important;
  }

  /* Item wrapper divs (the markup wraps each <a> in a <div>) */
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > .dropdown-menu > div {
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
  }

  /* Sub-sub items (Deposit History, Withdraw History, etc.) */
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > .dropdown-menu .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 7px 8px 7px 10px !important;
    margin: 1px 0 !important;
    color: var(--rx-text-2) !important;
    font-family: var(--rx-font) !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    border-radius: var(--rx-r-xs) !important;
    text-decoration: none !important;
    background: transparent !important;
    position: relative;
    transition: background .12s, color .12s, padding-left .15s ease, transform .12s;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > .dropdown-menu .dropdown-item::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--rx-faint);
    flex-shrink: 0;
    transition: background .12s, transform .15s, box-shadow .15s;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > .dropdown-menu .dropdown-item:hover {
    background: var(--rx-accent-soft) !important;
    color: var(--rx-accent) !important;
    padding-left: 14px !important;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > .dropdown-menu .dropdown-item:hover::before {
    background: var(--rx-accent);
    transform: scale(1.5);
    box-shadow: 0 0 6px var(--rx-accent-glow);
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > .dropdown-menu .dropdown-item.active {
    background: var(--rx-accent-soft) !important;
    color: var(--rx-accent) !important;
    font-weight: 600 !important;
  }

  /* ── Language picker (mobile dropdown variant) ─────────── */
  header .menu_list ul li.d-lg-none .dropdown-container > .main-drop {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding-left: 14px !important;
  }
  header .menu_list ul li.d-lg-none .dropdown-container > .main-drop .lang-icons {
    width: 16px !important;
    height: 12px !important;
    border-radius: 2px !important;
    object-fit: cover;
    margin: 0 !important;
  }

  /* Inner #lang-list — items have flag thumbs */
  header .menu_list ul li #lang-list {
    background: var(--rx-surface-1) !important;
    border-color: var(--rx-border) !important;
  }
  header .menu_list ul li #lang-list a.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    background: transparent !important;
    color: var(--rx-text-2) !important;
    font-size: 12.5px !important;
    border-radius: var(--rx-r-xs) !important;
    cursor: pointer;
    transition: all .12s ease;
  }
  header .menu_list ul li #lang-list a.dropdown-item img {
    width: 18px !important;
    height: 13px !important;
    border-radius: 2px !important;
    object-fit: cover;
    margin: 0 !important;
  }
  header .menu_list ul li #lang-list a.dropdown-item:hover {
    background: var(--rx-accent-soft) !important;
    color: var(--rx-accent) !important;
  }

  /* When #lang-list contains the .dropdown-submenu structure used here,
     it has the toggle pattern. But this one has direct <a> children,
     so treat it like a flat list (max-height pattern doesn't apply). */
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu#lang-list {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }

  /* ── Logout — destructive bottom row ──────────────────── */
  header .menu_list ul li > a.logout_link {
    margin: 14px 4px 4px !important;
    padding: 11px 14px !important;
    background: var(--rx-bad-soft) !important;
    color: var(--rx-bad) !important;
    border: 1px solid rgba(234,57,67,.3) !important;
    border-top: 1px solid rgba(234,57,67,.3) !important;
    border-radius: var(--rx-r-sm) !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: all .15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  header .menu_list ul li > a.logout_link:hover,
  header .menu_list ul li > a.logout_link:focus {
    background: rgba(234,57,67,.18) !important;
    color: var(--rx-bad) !important;
    border-color: var(--rx-bad) !important;
  }
  header .menu_list ul li > a.logout_link::before { display: none !important; }
  header .menu_list ul li > a.logout_link img {
    filter: brightness(0) saturate(100%) invert(38%) sepia(85%) saturate(1746%) hue-rotate(331deg) brightness(96%) contrast(95%);
    width: 13px !important;
  }

  /* ── Item-reveal staggered fade-in ─────────────────────── */
  @keyframes tkItemIn {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  header.nav_on .menu_list ul > li:not(.logo_close) {
    animation: tkItemIn .35s cubic-bezier(.22,.61,.36,1) both;
  }
  header.nav_on .menu_list ul > li:not(.logo_close):nth-child(2)  { animation-delay: 0.03s; }
  header.nav_on .menu_list ul > li:not(.logo_close):nth-child(3)  { animation-delay: 0.06s; }
  header.nav_on .menu_list ul > li:not(.logo_close):nth-child(4)  { animation-delay: 0.09s; }
  header.nav_on .menu_list ul > li:not(.logo_close):nth-child(5)  { animation-delay: 0.12s; }
  header.nav_on .menu_list ul > li:not(.logo_close):nth-child(6)  { animation-delay: 0.15s; }
  header.nav_on .menu_list ul > li:not(.logo_close):nth-child(7)  { animation-delay: 0.18s; }
  header.nav_on .menu_list ul > li:not(.logo_close):nth-child(8)  { animation-delay: 0.21s; }
  header.nav_on .menu_list ul > li:not(.logo_close):nth-child(9)  { animation-delay: 0.24s; }
  header.nav_on .menu_list ul > li:not(.logo_close):nth-child(10) { animation-delay: 0.27s; }
  header.nav_on .menu_list ul > li:not(.logo_close):nth-child(11) { animation-delay: 0.30s; }
  header.nav_on .menu_list ul > li:not(.logo_close):nth-child(12) { animation-delay: 0.33s; }

  /* Force-hide the desktop language <li> inside the drawer */
  header .menu_list ul li.d-lg-block.d-none { display: none !important; }
}

@media (min-width: 992px) {

  header .menu_toggle,
  header .menu .menu_toggle { display: none !important; }
  header .menu_list {
    display: block !important;
    position: static !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    right: auto !important;
    top: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  header .menu_list ul {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  header .menu_list ul li > a,
  header .menu_list ul li .dropdown-container > .main-drop {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: var(--rx-text-2) !important;
    font-family: var(--rx-font) !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    padding: 8px 12px !important;
    border-radius: var(--rx-r-sm) !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .12s ease, color .12s ease !important;
    position: relative;
  }
  header .menu_list ul li > a:hover,
  header .menu_list ul li .dropdown-container > .main-drop:hover {
    background: var(--rx-surface-2) !important;
    color: var(--rx-text) !important;
  }
  header .menu_list ul li > a.active,
  header .menu_list ul li .dropdown-container > .main-drop.active {
    color: var(--rx-accent) !important;
    background: var(--rx-accent-soft) !important;
  }

}

/* ════════════════════════════════════════════════════════
   DESKTOP / TABLET horizontal nav (≥ 768px)
   ════════════════════════════════════════════════════════ */
@media (min-width: 992px) {

  /* Desktop chevron */
  header .menu_list ul li .dropdown.dropdown-container::after { display: none !important; }
  header .menu_list ul li .dropdown-container > .main-drop::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 4px;
    margin-top: -2px;
    transition: transform .2s;
    opacity: .55;
    position: static !important;
    background: none !important;
    border-radius: 0 !important;
  }
  header .menu_list ul li .dropdown-container.show > .main-drop::after,
  header .menu_list ul li .dropdown-container > .main-drop[aria-expanded="true"]::after {
    transform: rotate(-135deg);
    margin-top: 2px;
    opacity: 1;
  }

  /* Desktop floating dropdown */
  header .menu_list ul li .dropdown-container > .dropdown-menu {
    position: absolute !important;
    background: var(--rx-surface-2) !important;
    border: 1px solid var(--rx-border-mid) !important;
    border-radius: var(--rx-r-md) !important;
    padding: 6px !important;
    margin-top: 6px !important;
    box-shadow: var(--rx-shadow-lg) !important;
    min-width: 220px;
    z-index: 1000;
  }

  /* Desktop sub-submenu opens to the side */
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu {
    position: relative;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > a.dropdown-item.dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content:flex-start!important;
    color: var(--rx-text-2) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 7px 28px 7px 12px !important;
    border-radius: var(--rx-r-xs) !important;
    cursor: pointer;
    background: transparent !important;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > a.dropdown-item.dropdown-toggle::before { display: none !important; }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > a.dropdown-item.dropdown-toggle::after {
    content: "›" !important;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
    background: none !important;
    color: var(--rx-muted) !important;
    font-size: 14px !important;
    font-weight: 600;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu:hover > a.dropdown-item.dropdown-toggle,
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > a.dropdown-item.dropdown-toggle:hover {
    background: var(--rx-surface-3) !important;
    color: var(--rx-text) !important;
  }

  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > .dropdown-menu {
    display: none !important;
    position: absolute !important;
    left: 100% !important;
    top: -6px !important;
    margin: 0 0 0 6px !important;
    padding: 6px !important;
    max-height: none !important;
    opacity: 1 !important;
    background: var(--rx-surface-2) !important;
    border: 1px solid var(--rx-border-mid) !important;
    border-radius: var(--rx-r-md) !important;
    box-shadow: var(--rx-shadow-lg) !important;
    min-width: 200px;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > .dropdown-menu.menu-level-sub,
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > .dropdown-menu.show {
    display: block !important;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > .dropdown-menu .dropdown-item {
    color: var(--rx-text-2) !important;
    font-size: 12px !important;
    padding: 7px 10px !important;
    border-radius: var(--rx-r-xs) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > .dropdown-menu .dropdown-item:hover {
    background: var(--rx-surface-3) !important;
    color: var(--rx-text) !important;
  }

  /* Desktop language */
  header .menu_list ul li.d-lg-none.d-block { display: none !important; }
  header .menu_list ul li.d-lg-block .lan .drop_with_icon {
    background: var(--rx-surface-2) !important;
    border: 1px solid var(--rx-border) !important;
    border-radius: var(--rx-r-sm) !important;
    width: auto;
    min-width: 120px;
    position: relative;
  }
  header .menu_list ul li.d-lg-block .lan .drop_with_icon select {
    background: transparent !important;
    color: var(--rx-text-2) !important;
    font-size: 11.5px !important;
    height: 30px !important;
    padding: 0 26px 0 10px !important;
    border: none !important;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    cursor: pointer;
  }

  header .menu_list ul li > a.logout_link {
    background: #ffffff !important;
    color: var(--rx-bad) !important;
    border: 1px solid var(--rx-bad) !important;
    border-radius: var(--rx-r-sm) !important;
    padding: 7px 12px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    margin-left: 4px;
  }
  header .menu_list ul li > a.logout_link img { display: none !important; }
  header .menu_list ul li > a.logout_link:hover {
    background: var(--rx-bad) !important;
    color: #ffffff !important;
    border-color: var(--rx-bad) !important;
  }

  .menu_overlay { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  AUTH PAGES — Login / Register / Forgot / Reset / Force ▒▒
   Split-screen brand + form layout, exchange identity card
   ═══════════════════════════════════════════════════════════ */

/* Suppress legacy landing-page art when our auth shell is present */
body:has(.au-shell) .landing_page_section::before,
body:has(.au-shell) .landing_page_section::after,
body:has(.au-shell) .astronaut_bg::before,
body:has(.au-shell) .astronaut_bg::after { display: none !important; }
body:has(.au-shell) .landing_page_section { background: transparent !important; }
body:has(.au-shell) { padding: 0 !important; }

/* Page shell */
.au-shell {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(30,99,255,.10), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(240,185,11,.05), transparent 60%),
    var(--rx-bg-deep, #ffffff);
  overflow-y: auto;
  z-index: 1;
  isolation: isolate;
}
@media (min-width: 880px) {
  .au-shell { grid-template-columns: 1.05fr 1fr; }
}

/* Subtle grid texture */
.au-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
}

/* ── Brand panel (left, hidden on mobile) ────────────────── */
.au-brand {
  display: none;
  position: relative;
  padding: 48px 56px;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--rx-border);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 880px) { .au-brand { display: flex; } }



.au-brand__moon {
  position: absolute;
  top: 50%;
  right: -120px;
  transform: translateY(-50%) rotate(-10deg);
  width: 540px;
  height: 540px;
  z-index: 0;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6))
          drop-shadow(0 0 40px rgba(240,185,11,.18));
  -webkit-mask-image: radial-gradient(circle at 60% 50%, #000 50%, transparent 90%);
          mask-image: radial-gradient(circle at 60% 50%, #000 50%, transparent 90%);
  opacity: .7;
  animation: au-moon-float 11s ease-in-out infinite;
  pointer-events: none;
}
.au-brand__moon img { width: 100%; height: 100%; object-fit: contain; }
@keyframes au-moon-float {
  0%, 100% { transform: translateY(-50%) rotate(-10deg) translateX(0); }
  50%      { transform: translateY(calc(-50% - 12px)) rotate(-7deg) translateX(-6px); }
}

.au-brand__top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.au-brand__logo img { height: 28px; }
.au-brand__pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--rx-accent-soft);
  color: var(--rx-accent);
  border: 1px solid rgba(30,99,255,.3);
  border-radius: 99px;
  padding: 3px 10px;
  font-family: var(--rx-font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.au-brand__pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rx-accent);
  box-shadow: 0 0 8px var(--rx-accent-glow);
  animation: dx-pulse 1.6s ease-in-out infinite;
}

.au-brand__hero {
  position: relative;
  z-index: 1;
  max-width: 460px;
}
.au-brand__title {
  margin: 0 0 16px;
  font-family: var(--rx-font);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--rx-text);
}
.au-brand__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--rx-accent-2), var(--rx-warn));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.au-brand__sub {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--rx-text-2);
  line-height: 1.6;
  max-width: 380px;
}

.au-brand__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  position: relative;
  z-index: 1;
  max-width: 460px;
}
.au-metric {
  background: var(--rx-surface-1);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-sm);
  padding: 10px 12px;
}
.au-metric__k {
  display: block;
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rx-muted);
  font-weight: 600;
  margin-bottom: 3px;
}
.au-metric__v {
  display: block;
  font-family: var(--rx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
  color: var(--rx-text);
  letter-spacing: -.01em;
}
.au-metric__v small {
  font-size: 9.5px;
  color: var(--rx-good);
  margin-left: 4px;
}

.au-brand__foot {
  position: relative;
  z-index: 1;
  font-size: 10.5px;
  color: var(--rx-faint);
  letter-spacing: .04em;
}

/* ── Form panel (right) ──────────────────────────────────── */
.au-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px 48px;
  position: relative;
}
@media (min-width: 880px) {
  .au-form-wrap { padding: 40px 48px; }
}

.au-form {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--rx-surface-2), var(--rx-surface-1));
  border: 1px solid var(--rx-border-mid);
  border-radius: var(--rx-r-lg);
  padding: 26px 26px 22px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.03);
  position: relative;
  isolation: isolate;
}
@media (max-width: 879px) {
  .au-form { max-width: 380px; padding: 22px 20px 18px; }
}
.au-form--wide { max-width: 720px; }

.au-form__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rx-border);
}
.au-form__head--mobile-logo { padding-top: 4px; }
.au-form__bar {
  width: 3px;
  height: 22px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2));
  flex-shrink: 0;
}
.au-form__title {
  margin: 0;
  font-family: var(--rx-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--rx-text);
  letter-spacing: -.01em;
}
.au-form__sub {
  margin: 0 0 0 auto;
  font-size: 11px;
  color: var(--rx-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Mobile-only logo at top of form */
.au-form__mlogo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.au-form__mlogo img { height: 24px; }
@media (min-width: 880px) { .au-form__mlogo { display: none; } }

/* ── Field ───────────────────────────────────────────────── */
.au-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 700px) {
  .au-fields--two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .au-fields--two-col > .au-field--full { grid-column: 1 / -1; }
}

.au-field {
  background: var(--rx-surface-1) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-sm) !important;
  padding: 8px 12px !important;
  transition: border-color .15s, box-shadow .15s;
  margin: 0 !important;
}
.au-field:focus-within {
  border-color: var(--rx-accent) !important;
  box-shadow: 0 0 0 3px var(--rx-accent-soft) !important;
}
.au-field__label {
  display: block;
  font-family: var(--rx-font);
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  color: var(--rx-muted) !important;
  margin: 0 0 1px !important;
}
.au-field__row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.au-field__control,
.au-field input.form-control {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  color: var(--rx-text) !important;
  font-family: var(--rx-font) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 0 !important;
  height: auto !important;
  line-height: 1.5 !important;
  min-width: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.au-field input[type="password"] { font-family: var(--rx-font-mono) !important; letter-spacing: .15em; }
.au-field input::placeholder { color: var(--rx-faint) !important; }

.au-field__suffix {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity .12s, filter .12s;
  opacity: 0.8;
}
.au-field__suffix:hover {
  opacity: 0.8;
}

/* Captcha row inside au-field */
.au-field--captcha .au-field__row { gap: 8px; }
.au-field--captcha .renewCaptcha {
  width: 100px !important;
  height: 32px !important;
  border-radius: var(--rx-r-xs);
  background: #fff;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid var(--rx-border);
}
.au-field--captcha .au-field__refresh {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-xs);
  background: var(--rx-surface-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: all .12s;
}
.au-field--captcha .au-field__refresh:hover {
  border-color: var(--rx-accent);
  background: var(--rx-accent-soft);
}
.au-field--captcha .au-field__refresh img {
  width: 13px;
}
.au-field--captcha .au-field__refresh:hover img {
  opacity: 1;
}

/* ── Remember me checkbox + forgot link row ─────────────── */
.au-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 11.5px;
}
.au-meta__remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--rx-text-2);
  cursor: pointer;
  user-select: none;
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: none;
}
.au-meta__remember input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--rx-surface-1);
  border: 1px solid var(--rx-border-strong);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background .12s, border-color .12s;
}
.au-meta__remember input[type="checkbox"]:checked {
  background: var(--rx-accent);
  border-color: var(--rx-accent);
}
.au-meta__remember input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 1px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2302181a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-position: center;
  background-size: 10px;
  background-repeat: no-repeat;
}
.au-meta__link,
.au-meta__link a {
  color: var(--rx-accent) !important;
  font-weight: 600;
  text-decoration: none !important;
  background: none !important;
  -webkit-text-fill-color: var(--rx-accent) !important;
}
.au-meta__link:hover { color: var(--rx-accent-2) !important; }

/* ── Primary CTA ─────────────────────────────────────────── */
.au-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  width: 100%;
  margin: 18px 0 12px !important;
  padding: 11px 16px !important;
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2)) !important;
  color: #ffffff !important;
  border: 0px solid transparent !important;
  border-radius: var(--rx-r-sm) !important;
  font-family: var(--rx-font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: filter .15s ease, transform .12s !important;
  box-shadow: 0 6px 20px -6px rgba(30,99,255,.45) !important;
  min-height: 42px !important;
}
.au-cta:hover { filter: brightness(1.08); color: #ffffff !important; }
.au-cta:active { transform: scale(.98); }
.au-cta:disabled { opacity: .55; cursor: not-allowed; }
.au-cta::before { display: none !important; }
.au-cta svg { width: 14px; height: 14px; transition: transform .15s; }
.au-cta:hover svg { transform: translateX(2px); }

/* ── Form footer (alt links) ─────────────────────────────── */
.au-foot {
  margin: 8px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--rx-muted);
  letter-spacing: 0;
  line-height: 1.7;
}
.au-foot a,
.au-foot .landing_link a {
  color: var(--rx-accent) !important;
  font-weight: 600;
  text-decoration: none !important;
  background: none !important;
  -webkit-text-fill-color: var(--rx-accent) !important;
}
.au-foot a:hover { color: var(--rx-accent-2) !important; }
.au-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
  color: var(--rx-faint);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
}
.au-divider::before,
.au-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rx-border);
}

/* ── Floating language picker top-right ──────────────────── */
.au-lang {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
}
.au-lang .drop_with_icon {
  position: relative;
  background: var(--rx-surface-2) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-sm) !important;
  width: 140px;
  padding: 0 !important;
}
.au-lang .drop_with_icon::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--rx-muted);
  border-bottom: 1.5px solid var(--rx-muted);
  transform: rotate(45deg);
  background: none !important;
  pointer-events: none;
}
.au-lang select.form-control,
.au-lang select.currency-select {
  background: transparent !important;
  border: none !important;
  color: var(--rx-text-2) !important;
  font-size: 11.5px !important;
  height: 32px !important;
  padding: 0 26px 0 12px !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}
.au-lang select option {
  background: var(--rx-surface-2);
  color: var(--rx-text);
}

/* ── Local toasts on auth pages (legacy ids) ─────────────── */
.au-shell ~ .toast-container .toast,
.toast-container > .toast#toast-success,
.toast-container > .toast#toast-failed {
  background: linear-gradient(180deg, var(--rx-surface-2), var(--rx-surface-1)) !important;
  color: var(--rx-text) !important;
  border: 1px solid var(--rx-border-mid) !important;
  border-radius: var(--rx-r-md) !important;
  padding: 12px 16px !important;
  font-family: var(--rx-font) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6) !important;
}
.toast-container > .toast#toast-success {
  border-left: 3px solid var(--rx-good) !important;
}
.toast-container > .toast#toast-failed {
  border-left: 3px solid var(--rx-bad) !important;
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  LOADING SKELETONS (.skl-*)                             ▒▒
   ═══════════════════════════════════════════════════════════ */

@keyframes sklShimmer {
  0%, 100% { opacity: .55; }
  50%      { opacity: .9; }
}

.skl-line,
.skl-block,
.skl-circle {
  display: inline-block;
  background: linear-gradient(90deg,
    var(--rx-surface-2) 0%,
    var(--rx-surface-3) 35%,
    rgba(30,99,255,.06) 50%,
    var(--rx-surface-3) 65%,
    var(--rx-surface-2) 100%);
  background-size: 200% 100%;
  animation: sklSweep 1.6s ease-in-out infinite, sklShimmer 1.6s ease-in-out infinite;
  border-radius: var(--rx-r-xs);
}
@keyframes sklSweep {
  from { background-position: -100% 0; }
  to   { background-position: 200% 0; }
}
.skl-line {
  width: 100%;
  height: 12px;
  border-radius: 99px;
}
.skl-line--sm  { height: 8px; }
.skl-line--lg  { height: 18px; }
.skl-line--w50 { width: 50%; }
.skl-line--w70 { width: 70%; }
.skl-line--w90 { width: 90%; }

.skl-block {
  display: block;
  width: 100%;
  height: 80px;
  border-radius: var(--rx-r-md);
}

.skl-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* Replace legacy spinner with branded skeleton ring */
#loader {
  background: rgba(0,0,0,.65) !important;
  -webkit-backdrop-filter: blur(4px) !important;
          backdrop-filter: blur(4px) !important;
}
#loader .spinner,
.spinner {
  width: 44px !important;
  height: 44px !important;
  border: 3px solid var(--rx-surface-3) !important;
  border-top-color: var(--rx-accent) !important;
  border-right-color: var(--rx-accent-2) !important;
  border-radius: 50% !important;
  animation: spin 0.9s linear infinite !important;
  box-shadow: 0 0 24px rgba(30,99,255,.25);
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  TRADE HISTORY BRIDGE — legacy .left/.right inside .ot-pos
   ═══════════════════════════════════════════════════════════ */
.ot-pos .ot-stats .list_row .left,
.ot-pos .ot-stats .ot-stat .left {
  color: var(--rx-muted) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  background: none !important;
}
.ot-pos .ot-stats .list_row .right,
.ot-pos .ot-stats .ot-stat .right {
  color: var(--rx-text) !important;
  font-family: var(--rx-font-mono) !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: -.005em !important;
  text-align: right;
  background: none !important;
}
.ot-pos .ot-stats .list_row {
  border-bottom: 1px dashed var(--rx-border) !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
.ot-pos .ot-stats .list_row:last-child { border-bottom: none !important; }

.ot-pos .head_area .left .head_area_title {
  font-family: var(--rx-font);
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--rx-text) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 0 !important;
}
.ot-pos .head_area .remaining h6 {
  font-size: 10.5px !important;
  color: var(--rx-muted) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 2px 0 0 !important;
}

.ot-pos .head_area .right .btn-claim,
.ot-pos .head_area .right .btn-secondary {
  background: linear-gradient(180deg, var(--rx-warn), #c79806) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  padding: 5px 12px !important;
  border-radius: var(--rx-r-xs) !important;
  min-height: 26px !important;
  box-shadow: 0 4px 14px -4px rgba(240,185,11,.4) !important;
  text-transform: uppercase !important;
}

.ot-pos--completed { opacity: .92; }
.ot-pos--completed .ot-pos__head { background: linear-gradient(135deg, rgba(22,199,132,.04), transparent 70%) !important; }
.ot-pos--completed .ot-pos__head .ot-pos__pair::before {
  content: none;
}


/* Above 640 px keep the existing dark table treatment (defined in refine.css). */

/* Helper class for status pill in tx rows */
.tx-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 99px;
  font-family: var(--rx-font);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid;
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  PAYMENT BRAND CHIPS (open-order card footer)            ▒▒
   ═══════════════════════════════════════════════════════════ */
/* Override the older .ot-pay__btn rule — these now hold inline SVGs */
.ot-pay__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  height: 26px !important;
  background: #fff !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-xs) !important;
  padding: 0 !important;
  transition: transform .12s, border-color .12s, box-shadow .12s;
  text-decoration: none !important;
  overflow: hidden;
}
.ot-pay__btn:hover {
  transform: translateY(-1px);
  border-color: var(--rx-accent);
  box-shadow: 0 4px 10px -4px rgba(30,99,255,.4);
}
.ot-pay__btn svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ot-pay__btn--mc { background: #fff !important; }

/* Hide the entire webhook row when there's no payment to show.
   Inline style on .webhook-details flips to "display:none;" via PHP when
   $pair['latestWebhookPaymentId'] is empty — propagate that to the parent. */
.ot-webhook:has(> .webhook-details[style*="display:none"]),
.ot-webhook:has(> .webhook-details[style*="display: none"]),
.ot-webhook:has(> .webhook-details:empty),
.ot-card__foot > .ot-webhook.list_row:has(> .left[style*="display:none"]),
.ot-card__foot > .ot-webhook.list_row:has(> .left[style*="display: none"]) {
  display: none !important;
}

/* Hide the row if its only contents are em-dashes (PayID & amount empty) */
.ot-webhook .webhook-details:not([style*="display:none"]):not([style*="display: none"]) {
  display: flex !important;
}

/* Webhook logo — only show the placeholder chip when it has a valid src */
.ot-webhook__logo {
  width: 18px !important;
  height: 18px !important;
  border-radius: var(--rx-r-xs);
  object-fit: contain;
  flex-shrink: 0;
  border: none;
  background: transparent;
}
/* Add bordered chip ONLY when the image has a real src */
.ot-webhook__logo[src]:not([src=""]):not([src*="undefined"]) {
  background: var(--rx-surface-3);
  border: 1px solid var(--rx-border);
  padding: 1px;
}
/* Hide image entirely if it has no src */
.ot-webhook__logo:not([src]),
.ot-webhook__logo[src=""],
.ot-webhook__logo[src*="undefined"] {
  display: none !important;
}
/* If the image has no src or failed: show a generic ✓ glyph instead */
.ot-webhook__logo:not([src]),
.ot-webhook__logo[src=""],
.ot-webhook__logo[src*="undefined"] {
  position: relative;
}
.ot-webhook__logo:not([src])::after,
.ot-webhook__logo[src=""]::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--rx-good);
  font-size: 11px;
  font-weight: 700;
}

/* If alt text shows up (browser default for broken images), styled it nicely */
.ot-webhook__logo {
  font-family: var(--rx-font);
  font-size: 9px;
  color: var(--rx-muted);
  text-align: center;
  line-height: 16px;
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  MODALS — consistent dark skin across all 27 modals      ▒▒
   Target the existing legacy classes so no markup changes are
   needed. Bootstrap 4 dialog/backdrop/animation kept intact.
   ═══════════════════════════════════════════════════════════ */

/* Backdrop ─── soft dim with blur */
.modal-backdrop.show {
  opacity: .7 !important;
  background: #000 !important;
}

/* Dialog wrapper */
.modal-dialog,
.modal-dialog.modal-dialog-centered {
  margin: 16px auto !important;
}
.modal-dialog,
.modal-dialog.modal-dialog-centered {
  max-width: 440px !important;
}
@media (min-width: 768px) {
  .modal-dialog,
  .modal-dialog.modal-dialog-centered { max-width: 460px !important; }
}

/* Modal shell */
.modal-content,
.modal-content.custom-modal-content {
  background: linear-gradient(180deg, var(--rx-surface-2) 0%, var(--rx-bg-2) 100%) !important;
  border: 1px solid var(--rx-border-mid) !important;
  border-radius: var(--rx-r-lg) !important;
  color: var(--rx-text) !important;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.03) !important;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Subtle accent gradient line at the very top of every modal */
.modal-content.custom-modal-content::before,
.modal-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--rx-accent-2) 30%,
    var(--rx-accent) 70%,
    transparent 100%);
  z-index: 1;
  pointer-events: none;
  opacity: .85;
}

/* Body padding */
.modal-body,
.modal-body.terms_modal {
  padding: 18px 18px 20px !important;
  position: relative;
}
.modal-contents-wrapper { color: var(--rx-text); }

/* ── Header (.temrs_header) ─────────────────────────────── */
.temrs_header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 0 0 12px !important;
  margin: 0 0 16px !important;
  border-bottom: 1px solid var(--rx-border) !important;
  position: relative;
}
.temrs_header::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2));
  flex-shrink: 0;
  margin-right: -2px;
}
.temrs_header h5,
.temrs_header h5.ttu,
.temrs_header h5.modal-icon-titles {
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--rx-font) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  color: var(--rx-text) !important;
  text-align: left !important;
  background: none !important;
  -webkit-text-fill-color: var(--rx-text) !important;
}

/* Close button — dark glyph on white pill, fills red on hover. */
.temrs_header .modal_close_btn,
.modal_close_btn,
.tk-modal__close,
.modal-header .close,
button.close {
  width: 30px !important;
  height: 30px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: var(--rx-surface-2) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-sm) !important;
  padding: 0 !important;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  flex-shrink: 0;
  color: var(--rx-text-2);
  opacity: 1 !important;
  text-shadow: none !important;
  font-weight: 400;
  font-size: 18px;
}
.temrs_header .modal_close_btn:hover,
.modal_close_btn:hover,
.tk-modal__close:hover,
.modal-header .close:hover,
button.close:hover {
  background: var(--rx-bad) !important;
  border-color: var(--rx-bad) !important;
  color: #ffffff !important;
}
.temrs_header .modal_close_btn img,
.modal_close_btn img,
.tk-modal__close img {
  width: 12px !important;
  height: 12px !important;
  filter: brightness(0) opacity(.7);
  transition: filter .15s, transform .25s;
}
.temrs_header .modal_close_btn:hover img,
.modal_close_btn:hover img,
.tk-modal__close:hover img {
  filter: brightness(0) invert(1) opacity(1);
  transform: rotate(90deg);
}

/* ── Data summary card (.trade_wallet_main) ─────────────── */
.modal-body .trade_wallet_main {
  background: var(--rx-surface-1) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-md) !important;
  padding: 12px 14px !important;
  margin: 0 0 14px !important;
}
.modal-body .trade_wallet_main h5,
.modal-body .trade_wallet_main .heading,
.modal-body .trade_wallet_main .trade_title {
  color: var(--rx-muted) !important;
  font-family: var(--rx-font) !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  margin: 0 0 4px !important;
  background: none !important;
  -webkit-text-fill-color: var(--rx-muted) !important;
}
.modal-body .trade_wallet_main h3,
.modal-body .trade_wallet_main .trade_value {
  color: var(--rx-text) !important;
  font-family: var(--rx-font-mono) !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
  margin: 0 !important;
  background: none !important;
  -webkit-text-fill-color: var(--rx-text) !important;
}

/* ── Notice / warning card (.notice_card) ────────────────── */
.modal-body .notice_card {
  background: var(--rx-warn-soft) !important;
  border: 1px solid rgba(240,185,11,.25) !important;
  border-radius: var(--rx-r-md) !important;
  padding: 12px 14px !important;
  margin: 12px 0 !important;
  position: relative;
}
.modal-body .notice_card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--rx-warn);
  border-radius: 2px 0 0 2px;
}
.modal-body .notice_card .notice_head,
.modal-body .notice_card h5,
.modal-body .notice_card h6 {
  color: var(--rx-warn) !important;
  font-family: var(--rx-font) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  margin: 0 0 6px !important;
}
.modal-body .notice_card p,
.modal-body .notice_card ul li {
  color: var(--rx-text-2) !important;
  font-family: var(--rx-font) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 0 0 4px !important;
}
.modal-body .notice_card ul {
  padding-left: 16px !important;
  margin: 4px 0 0 !important;
}
.modal-body .notice_card .red_text {
  color: var(--rx-bad) !important;
  font-weight: 600 !important;
}

/* ── List rows (label/value) ───────────────────────────── */
.modal-body .list_contents_main {
  display: flex;
  flex-direction: column;
}
.modal-body .list_contents_main .list_row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 9px 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px dashed var(--rx-border) !important;
  border-radius: 0 !important;
}
.modal-body .list_contents_main .list_row:last-child { border-bottom: none !important; }
.modal-body .list_contents_main .list_row .left {
  color: var(--rx-muted) !important;
  font-family: var(--rx-font) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  background: none !important;
}
.modal-body .list_contents_main .list_row .right {
  color: var(--rx-text) !important;
  font-family: var(--rx-font-mono) !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: -.005em !important;
  text-align: right;
  background: none !important;
  -webkit-text-fill-color: var(--rx-text) !important;
}

/* ── Order/choice cards inside modals ──────────────────── */
.modal-body .order_cards_main {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 0 0 14px !important;
}
.modal-body .order_cards_main .order_cards_single {
  background: var(--rx-surface-1) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-md) !important;
  padding: 10px 12px !important;
  margin: 0 !important;
}
.modal-body .order_cards_main .order_cards_single .heading {
  font-family: var(--rx-font) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  color: var(--rx-text) !important;
  margin: 0 0 8px !important;
  background: none !important;
  -webkit-text-fill-color: var(--rx-text) !important;
}

/* ── Form fields inside modals ─────────────────────────── */
.modal-body .form-group {
  background: var(--rx-surface-1) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-sm) !important;
  padding: 8px 12px !important;
  margin: 0 0 10px !important;
  transition: border-color .15s, box-shadow .15s;
}
.modal-body .form-group:focus-within {
  border-color: var(--rx-accent) !important;
  box-shadow: 0 0 0 3px var(--rx-accent-soft) !important;
}
.modal-body .form-group label {
  color: var(--rx-muted) !important;
  font-family: var(--rx-font) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  margin: 0 0 1px !important;
}
.modal-body .form-group .form-control,
.modal-body .form-group input,
.modal-body .form-group textarea,
.modal-body .form-group select {
  background: transparent !important;
  border: none !important;
  color: var(--rx-text) !important;
  font-family: var(--rx-font) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 0 !important;
  height: auto !important;
  line-height: 1.5 !important;
  outline: none !important;
  box-shadow: none !important;
  min-width: 0 !important;
  width: 100% !important;
}
.modal-body .form-group input::placeholder,
.modal-body .form-group textarea::placeholder { color: var(--rx-faint) !important; }
.modal-body .form-group textarea { min-height: 80px; resize: vertical; }

/* ── Buttons in modals ─────────────────────────────────── */
.modal-body .modal-btns-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px !important;
  flex-wrap: wrap;
}

/* Default: secondary stays as a ghost / outline */
.modal-body .btn,
.modal-body .btn-secondary,
.modal-body .btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  padding: 9px 18px !important;
  font-family: var(--rx-font) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  border-radius: var(--rx-r-sm) !important;
  border: 0px solid transparent !important;
  cursor: pointer;
  min-height: 38px !important;
  transition: filter .15s, transform .12s, background .15s, border-color .15s, color .15s !important;
}
.modal-body .btn::before { display: none !important; }

/* In modals, btn-secondary is the primary action (legacy convention here) */
.modal-body .btn.btn-secondary {
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2)) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 20px -6px rgba(30,99,255,.4) !important;
}
.modal-body .btn.btn-secondary:hover {
  filter: brightness(1.08);
  color: #ffffff !important;
  transform: translateY(-1px);
}
.modal-body .btn.btn-secondary:active { transform: scale(.98); }
.modal-body .btn.btn-secondary:disabled,
.modal-body .btn.btn-secondary[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* btn-primary in modals = secondary action (cancel / close / alt) */
.modal-body .btn.btn-primary,
.modal-body .btn.btn-primary:hover {
  color: rgb(255, 255, 255) !important;
  min-height: 30px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  box-shadow: rgba(255, 255, 255, 0.22) 0px 1px 0px inset, rgba(0, 0, 0, 0.1) 0px -1px 0px inset !important;
  filter: none !important;
  background: linear-gradient(135deg, var(--rx-accent-2) 0%, var(--rx-accent-2) 100%) !important;
  border: 1px solid var(--rx-accent-deep) !important;
  border-radius: var(--rx-r-xs) !important;
  padding: 7px 13px !important;
  transition: background .14s var(--rx-ease-snap, ease), border-color .14s var(--rx-ease-snap, ease), transform .08s ease, box-shadow .14s ease !important;
}

/* btn-success — keep green for positive actions */
.modal-body .btn.btn-success {
  background: linear-gradient(180deg, #1ee08f, var(--rx-good)) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

/* btn-danger / claim — gold */
.modal-body .btn.btn-claim {
  background: linear-gradient(180deg, var(--rx-warn), #c79806) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px -4px rgba(240,185,11,.4) !important;
}

/* QR code area inside modals */
.modal-body .qr_code_main {
  background: var(--rx-surface-2);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-md);
  padding: 12px;
  margin: 12px auto;
  display: inline-block;
  text-align: center;
}
.modal-body .qr_code_main .qrcode {
  background: #fff !important;
  padding: 10px !important;
  border-radius: var(--rx-r-sm) !important;
  display: inline-block;
}
.modal-body .scan_text {
  display: block;
  text-align: center;
  color: var(--rx-muted) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  margin: 8px 0 14px !important;
}

/* Copy address row */
.modal-body .copy_input {
  display: flex !important;
  align-items: stretch !important;
  background: var(--rx-bg-2) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-sm) !important;
  overflow: hidden;
  margin-top: 4px;
  gap: 0 !important;
}
.modal-body .copy_input .form-control,
.modal-body .copy_input .copy_target {
  flex: 1;
  padding: 8px 12px !important;
  background: transparent !important;
  border: none !important;
  color: var(--rx-text) !important;
  font-family: var(--rx-font-mono) !important;
  font-size: 11.5px !important;
  word-break: break-all;
  line-height: 1.35;
}
.modal-body .copy_input .input_copy_btn {
  background: var(--rx-accent-2) !important;
  border: none !important;
  border-left: 1px solid var(--rx-accent-deep) !important;
  padding: 0 14px !important;
  color: #ffffff !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px;
  transition: background .12s;
}
.modal-body .copy_input .input_copy_btn:hover { background: var(--rx-accent-deep) !important; }
.modal-body .copy_input .input_copy_btn img {
  width: 13px !important;
  filter: brightness(0) invert(1) opacity(1) !important;
}

/* Value range buttons (25/50/75/100%) */
.modal-body .value_range_main {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px !important;
  margin: 8px 0 12px !important;
}
.modal-body .value_range_main .value_range {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--rx-surface-2) !important;
  color: var(--rx-text-2) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-sm) !important;
  padding: 7px 0 !important;
  font-family: var(--rx-font) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: all .12s ease;
}
.modal-body .value_range_main .value_range:hover,
.modal-body .value_range_main .value_range.active {
  background: var(--rx-accent-soft) !important;
  color: var(--rx-accent) !important;
  border-color: var(--rx-accent) !important;
}

/* Center large titles like ConfirmModalTitle */
.modal-body h5.modal-icon-titles {
  text-align: center !important;
  margin-bottom: 12px !important;
}

/* The text-center wrapper for action buttons */
.modal-body .text-center,
.modal-body .text-center.mt-3 {
  text-align: center !important;
  margin-top: 14px !important;
}

/* Adjust a few specific modals */

/* Search modal — simpler */
#searchModal .form-group { margin-bottom: 0 !important; }

/* Confirm avatar / two-button rows */
#generateAvatarConfirmModal .modal-body .text-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
#generateAvatarConfirmModal .modal-body .btn { flex: 1 1 130px; max-width: 180px; }
#generateAvatarConfirmModal .modal-body .text-center span { display: none; }

/* Trade success modal */
#TradeSucessModal .modal-body .btn { width: auto; min-width: 120px; }

/* Stake/unstake — center the submit row */
#stakeModal .modal-body .text-center,
#unstakeModal .modal-body .text-center,
#topUpModal .modal-body .text-center,
#transferModal .modal-body .text-center,
#withdrawalModal .modal-body .text-center,
#sendModal .modal-body .text-center {
  margin-top: 16px !important;
}
#stakeModal .modal-body .btn,
#unstakeModal .modal-body .btn,
#topUpModal .modal-body .btn,
#transferModal .modal-body .btn,
#withdrawalModal .modal-body .btn,
#sendModal .modal-body .btn,
#supportModal .modal-body .btn {
  min-width: 60% !important;
}

/* Claim activate / claim modals — give it full-width footer buttons */
#ClaimModal .modal-body .text-center,
#ClaimActivateModal .modal-body .text-center {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#ClaimModal .modal-body .text-center .btn,
#ClaimActivateModal .modal-body .text-center .btn { flex: 1; min-width: 140px; }

/* Footer text inside modals */
.modal-body .footer-txt,
.modal-body .footer-txt ol,
.modal-body .footer-txt li {
  font-family: var(--rx-font) !important;
  font-size: 11px !important;
  color: var(--rx-muted) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Keep modal within viewport on small screens */
@media (max-width: 540px) {
  .modal-dialog,
  .modal-dialog.modal-dialog-centered { margin: 8px !important; max-width: calc(100% - 16px) !important; }
  .modal-body, .modal-body.terms_modal { padding: 14px !important; }
  .temrs_header h5 { font-size: 12px !important; }
}

/* Keep open dropdowns inside modals layered correctly */
.modal-body .dropdown-menu { z-index: 1056 !important; }
.modal-body .select2-container { z-index: 1056 !important; }

/* Animate modal entry slightly with backdrop */
.modal.fade .modal-dialog { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.modal.fade.show .modal-dialog { transform: translate(0, 0) scale(1); }
.modal.fade .modal-dialog { transform: translate(0, -16px) scale(.98); }

/* ── Trade modal-specific (#tradeModal) ────────────────── */
#tradeModal .pop-progress-value { background: linear-gradient(90deg, var(--rx-accent-2), var(--rx-accent-2)) !important; }

/* Empty .nodata inside modals */
.modal-body .nodata {
  text-align: center;
  padding: 20px 12px;
  color: var(--rx-muted);
}
.modal-body .nodata figure img { max-width: 100px; opacity: .55; }
.modal-body .nodata article { margin-top: 8px; font-size: 12px; }

/* ── Trade modal action button row (.trade_action_btns) ── */
.modal-body .trade_action_btns {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  margin: 14px 0 4px !important;
}
.modal-body .trade_action_btns .btn,
.modal-body .trade_action_btns .btn-trade-cancel {
  flex: 1 !important;
  min-width: 0 !important;
}
.modal-body .btn-trade-cancel {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  padding: 9px 18px !important;
  font-family: var(--rx-font) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  border: 1px solid var(--rx-border-strong) !important;
  border-radius: var(--rx-r-sm) !important;
  background: var(--rx-surface-3) !important;
  color: var(--rx-text-2) !important;
  cursor: pointer;
  min-height: 38px !important;
  transition: all .12s ease !important;
}
.modal-body .btn-trade-cancel:hover {
  background: var(--rx-surface-4) !important;
  color: var(--rx-text) !important;
  border-color: var(--rx-bad) !important;
}
.modal-body .btn-trade-cancel:active { transform: scale(.98); }

/* ═══════════════════════════════════════════════════════════
   ▒▒  KYC + VIRTUAL CARD FLOW                                 ▒▒
   ═══════════════════════════════════════════════════════════ */

/* ── Stepper at top of KYC pages ─────────────────────────── */
.kyc-stepper {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 14px 0 16px;
  padding: 10px;
  background: var(--rx-surface-1);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-md);
  overflow-x: auto;
  scrollbar-width: none;
}
.kyc-stepper::-webkit-scrollbar { display: none; }

.kyc-step {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
  padding: 8px 10px;
  border-radius: var(--rx-r-sm);
  background: var(--rx-bg-2);
  border: 1px solid var(--rx-border);
  position: relative;
  transition: all .15s ease;
}
.kyc-step__num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--rx-surface-3);
  border: 1px solid var(--rx-border-strong);
  color: var(--rx-muted);
  font-family: var(--rx-font-mono);
  font-size: 11px;
  font-weight: 700;
}
.kyc-step__body { min-width: 0; flex: 1; }
.kyc-step__label {
  display: block;
  font-family: var(--rx-font);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rx-muted);
  line-height: 1;
  margin: 0 0 2px;
}
.kyc-step__title {
  display: block;
  font-family: var(--rx-font);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--rx-text-2);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kyc-step--done {
  background: var(--rx-good-soft);
  border-color: rgba(22,199,132,.3);
}
.kyc-step--done .kyc-step__num {
  background: var(--rx-good);
  color: #ffffff;
  border-color: transparent;
  font-size: 0;
}
.kyc-step--done .kyc-step__num::before {
  content: "✓";
  font-size: 12px;
  font-weight: 700;
}
.kyc-step--done .kyc-step__title { color: var(--rx-good); }
.kyc-step--done .kyc-step__label { color: var(--rx-good); }

.kyc-step--active {
  background: var(--rx-accent-soft);
  border-color: var(--rx-accent);
  box-shadow: 0 0 0 3px var(--rx-accent-soft);
}
.kyc-step--active .kyc-step__num {
  background: var(--rx-accent);
  color: #ffffff;
  border-color: transparent;
}
.kyc-step--active .kyc-step__title { color: var(--rx-accent); }
.kyc-step--active .kyc-step__label { color: var(--rx-accent); }

/* ── KYC banner (hero) ───────────────────────────────────── */
.page_bottom_content .kyc-banner {
  position: relative;
  margin: 0px;
  padding: 45px 0px 35px 0px;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 120px;
  overflow: hidden;
}
.page_bottom_content .kyc-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 240px at 90% 0%, rgba(30,99,255,.10), transparent 60%),
    radial-gradient(500px 200px at 0% 100%, rgba(240,185,11,.05), transparent 60%),
    linear-gradient(135deg, var(--rx-surface-2), var(--rx-bg-2));
  border: 1px solid var(--rx-border-mid);
  z-index: -1;
}
.kyc-banner .banner_main { padding: 12px 18px; width: 100%; }
.kyc-banner .assets_currency_main {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.kyc-banner .assets_currency_main .assets_currency_title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px !important;
  padding: 0 !important;
  border: none !important;
  font-family: var(--rx-font) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -.005em !important;
  text-transform: none !important;
  color: var(--rx-text) !important;
  text-align: left !important;
}
.kyc-banner .assets_currency_main .assets_currency_title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2));
}
.kyc-banner .para_text {
  font-size: 12px;
  color: var(--rx-text-2) !important;
  line-height: 1.55;
  margin: 0;
  text-align: left !important;
  max-width: 600px;
}

/* ── KYC form section card ───────────────────────────────── */
.page_bottom_content .grey_card_main {
  background: var(--rx-surface-1) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-lg) !important;
  padding: 18px !important;
  margin: 12px 0 !important;
}

/* Status alert at top */
.page_bottom_content .alert.alert-secondary {
  background: var(--rx-surface-2) !important;
  border: 1px solid var(--rx-border-mid) !important;
  border-left: 3px solid var(--rx-accent) !important;
  border-radius: var(--rx-r-sm) !important;
  color: var(--rx-text-2) !important;
  font-size: 12.5px !important;
  padding: 10px 14px !important;
  margin: 0 0 16px !important;
}
.page_bottom_content .alert.alert-secondary strong {
  color: var(--rx-text) !important;
  margin-right: 6px;
}
.page_bottom_content .alert.alert-success {
  background: var(--rx-good-soft) !important;
  border: 1px solid rgba(22,199,132,.25) !important;
  border-left: 3px solid var(--rx-good) !important;
  color: var(--rx-good) !important;
  font-size: 12.5px !important;
  padding: 10px 14px !important;
  border-radius: var(--rx-r-sm) !important;
}
.page_bottom_content .alert.alert-warning {
  background: var(--rx-warn-soft) !important;
  border: 1px solid rgba(240,185,11,.25) !important;
  border-left: 3px solid var(--rx-warn) !important;
  color: var(--rx-warn) !important;
  font-size: 12.5px !important;
  padding: 10px 14px !important;
  border-radius: var(--rx-r-sm) !important;
}

/* ── File upload dropzone ─────────────────────────────────── */
.form-control-file {
  display: block;
  width: 100%;
  background: var(--rx-bg-2);
  border: 1.5px dashed var(--rx-border-strong);
  border-radius: var(--rx-r-md);
  padding: 16px 14px;
  color: var(--rx-text-2);
  font-family: var(--rx-font);
  font-size: 12px;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
}
.form-control-file:hover {
  border-color: var(--rx-accent);
}
.form-control-file::file-selector-button,
.form-control-file::-webkit-file-upload-button {
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2)) !important;
  color: white;
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-xs);
  padding: 6px 14px;
  font-family: var(--rx-font);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  margin-right: 12px;
  transition: all .12s ease;
}

.form-text.text-muted,
small.form-text {
  display: block;
  margin-top: 6px !important;
  font-size: 10.5px !important;
  color: var(--rx-muted) !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
}

/* KYC image preview thumb */
.page_bottom_content .form-group img[alt="Front ID"],
.page_bottom_content .form-group img[alt="Back ID"],
.page_bottom_content .form-group img[alt="Face"] {
  border: 1px solid var(--rx-border-mid) !important;
  border-radius: var(--rx-r-sm) !important;
  background: var(--rx-bg-2);
  padding: 4px;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.4);
}

/* ── Apply Virtual Card page ─────────────────────────────── */
.card-container-box {
  display: block;
  margin: 12px auto 18px !important;
  max-width: 380px;
  border-radius: var(--rx-r-lg);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.card-container-box img {
  display: block;
  width: 100% !important;
  height: auto;
  position: relative;
  z-index: 0;
}

/* Tick / check feature row */
.tick-inside {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
}
.tick-inside img { width: 11px !important; }
.kyc-txt {
  font-family: var(--rx-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--rx-text) !important;
  line-height: 1.4;
  margin: 0 0 4px;
  letter-spacing: -.005em;
}
.kyc-p {
  font-size: 11.5px;
  color: var(--rx-muted) !important;
  line-height: 1.55;
  margin: 0;
}

/* ── Card overview — embossed virtual card visual ─────────── */
.card-container-details {
  display: flex;
  justify-content: center;
  margin: 16px 0;
  perspective: 1200px;
}
.card-container-details .card-box {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1.586 / 1;
  border-radius: var(--rx-r-lg);
  background:
    radial-gradient(420px 200px at 0% 0%, rgba(61,126,255,.30), transparent 60%),
    radial-gradient(380px 180px at 100% 100%, rgba(240,185,11,.18), transparent 60%),
    linear-gradient(135deg, #3d7eff 0%, #2f6bff 50%, #0a4ee0 100%);
  border: 1px solid var(--rx-border-mid);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.5);
  padding: 22px 24px;
  overflow: hidden;
  isolation: isolate;
  transform: rotateX(2deg) rotateY(-3deg);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.card-container-details .card-box:hover {
  transform: rotateX(0) rotateY(0);
}
.card-container-details .card-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 30% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(circle at 30% 50%, #000 30%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}
/* Chip glyph */
.card-container-details .card-box::after {
  content: "";
  position: absolute;
  top: 60px;
  left: 26px;
  width: 36px;
  height: 26px;
  background:
    linear-gradient(135deg, #c89b22, #f0c25c, #b88820);
  border-radius: 5px;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.25),
    0 2px 6px rgba(0,0,0,.4);
  z-index: 1;
}
.card-container-details .card-logo2 {
  height: 26px !important;
  width: auto !important;
  filter: brightness(1.1);
  opacity: 1 !important;
}
.card-container-details .card-number {
  position: absolute;
  bottom: 56px;
  left: 24px;
  right: 24px;
  font-family: var(--rx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--rx-text);
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
}

/* Card balance display */
.kyc-amount,
.vc-card-balance {
  font-family: var(--rx-font-mono) !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--rx-text) !important;
  letter-spacing: -.01em !important;
}

/* Card-action top row buttons */
.card-action-row {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}

/* Empty card-yet placeholder */
.page_bottom_content .small_title.mb-3 + * {
  color: var(--rx-text-2) !important;
}

/* Top-up summary card */
.modal-body .trade_wallet_main #usdtBalance,
.modal-body .trade_wallet_main .trade_value {
  color: var(--rx-text) !important;
  background: none !important;
  -webkit-text-fill-color: var(--rx-text) !important;
}

/* Loader overlay specific to KYC page */
#vcKycLoader {
  background: rgba(0,0,0,.65) !important;
  -webkit-backdrop-filter: blur(6px) !important;
          backdrop-filter: blur(6px) !important;
}

/* ── Generic KYC select wrapper polish ──────────────────── */
.page_bottom_content .grey_card_main .form-group .select_dropdown {
  position: relative;
}
.page_bottom_content .grey_card_main .form-group .select_dropdown::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-65%) rotate(45deg);
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--rx-muted);
  border-bottom: 1.5px solid var(--rx-muted);
  pointer-events: none;
  background: none;
}

/* ── Datepicker dark theme ──────────────────────────────── */
.ui-datepicker {
  background: var(--rx-surface-2) !important;
  border: 1px solid var(--rx-border-mid) !important;
  border-radius: var(--rx-r-md) !important;
  padding: 6px !important;
  box-shadow: var(--rx-shadow-lg) !important;
}
.ui-datepicker .ui-datepicker-header {
  background: var(--rx-surface-3) !important;
  border: none !important;
  color: var(--rx-text) !important;
  border-radius: var(--rx-r-sm) !important;
}
.ui-datepicker .ui-datepicker-title {
  color: var(--rx-text) !important;
  font-family: var(--rx-font) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
.ui-datepicker td a,
.ui-datepicker td span {
  color: var(--rx-text-2) !important;
  background: transparent !important;
  border: none !important;
  border-radius: var(--rx-r-xs) !important;
  font-family: var(--rx-font-mono) !important;
  font-size: 11px !important;
}
.ui-datepicker td a:hover {
  background: var(--rx-accent-soft) !important;
  color: var(--rx-accent) !important;
}
.ui-datepicker .ui-state-active,
.ui-datepicker .ui-state-highlight {
  background: var(--rx-accent) !important;
  color: #ffffff !important;
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  SHEPHERD.JS TOUR — dark exchange popovers              ▒▒
   ═══════════════════════════════════════════════════════════ */

/* Modal overlay */
.shepherd-modal-overlay-container.shepherd-modal-is-visible {
  background: #000 !important;
  opacity: .65 !important;
  transition: opacity .35s ease, height 0s 0s, opacity .35s 0s !important;
}
.shepherd-modal-overlay-container path {
  fill: #000 !important;
}

/* Outer popover element */
.shepherd-element {
  background: transparent !important;
  border-radius: var(--rx-r-lg) !important;
  box-shadow: none !important;
  max-width: 360px !important;
  z-index: 100000 !important;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6))
          drop-shadow(0 0 24px rgba(30,99,255,.15));
}
.shepherd-element.shepherd-has-title {
  background: transparent !important;
}

/* Content card */
.shepherd-content,
.shepherd-content.tooltip-container,
.tooltip-container {
  background: linear-gradient(180deg, var(--rx-surface-2), var(--rx-bg-2)) !important;
  border: 1px solid var(--rx-border-mid) !important;
  border-radius: var(--rx-r-lg) !important;
  outline: none !important;
  padding: 0 !important;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* Subtle accent line at top — matches modal style */
.shepherd-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--rx-accent-2) 30%,
    var(--rx-accent) 70%,
    transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Header (title bar) */
.shepherd-header,
.shepherd-has-title .shepherd-content .shepherd-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--rx-border) !important;
  padding: 14px 16px 12px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  position: relative;
}
.shepherd-header::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2));
  flex-shrink: 0;
}

/* Title text */
.shepherd-title,
.shepherd-has-title .shepherd-content .shepherd-header .shepherd-title {
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--rx-font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  color: var(--rx-text) !important;
  background: none !important;
}

/* Cancel (close X) */
.shepherd-cancel-icon,
.shepherd-has-title .shepherd-content .shepherd-cancel-icon {
  width: 26px !important;
  height: 26px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: var(--rx-surface-3) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-xs) !important;
  color: var(--rx-muted) !important;
  font-size: 18px !important;
  font-family: var(--rx-font) !important;
  font-weight: 400 !important;
  padding: 0 !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: all .15s ease;
  flex-shrink: 0;
}
.shepherd-cancel-icon:hover,
.shepherd-has-title .shepherd-content .shepherd-cancel-icon:hover {
  background: var(--rx-surface-4) !important;
  color: var(--rx-text) !important;
  border-color: var(--rx-bad) !important;
  transform: rotate(90deg);
}

/* Body text */
.shepherd-text {
  color: var(--rx-text-2) !important;
  font-family: var(--rx-font) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  padding: 14px 16px 4px !important;
  background: transparent !important;
}
.shepherd-text p { margin: 0 0 8px !important; color: inherit !important; }
.shepherd-text p:last-child { margin-bottom: 0 !important; }
.shepherd-text strong { color: var(--rx-text) !important; font-weight: 600; }

/* Buttons inside the body (prev/next/finish) */
.shepherd-element .btn,
.shepherd-text .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px;
  padding: 7px 16px !important;
  font-family: var(--rx-font) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  border-radius: var(--rx-r-xs) !important;
  border: 0px solid transparent !important;
  cursor: pointer;
  transition: filter .15s ease, transform .12s !important;
  min-height: 32px !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.shepherd-element .btn::before { display: none !important; }

/* btn-secondary inside tour = primary advance action */
.shepherd-element .btn.btn-secondary {
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2)) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px -4px rgba(30,99,255,.4) !important;
}
.shepherd-element .btn.btn-secondary:hover {
  filter: brightness(1.08);
  color: #ffffff !important;
}

/* btn-bordered-dark inside tour = back / secondary action */
.shepherd-element .btn.btn-bordered-dark {
  background: var(--rx-surface-3) !important;
  color: var(--rx-text-2) !important;
  border-color: var(--rx-border-strong) !important;
}
.shepherd-element .btn.btn-bordered-dark:hover {
  background: var(--rx-surface-4) !important;
  color: var(--rx-text) !important;
  border-color: var(--rx-border-strong) !important;
}

/* Action row container (the inline JS wraps buttons in a flex div) */
.shepherd-text .d-flex.justify-content-between {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px;
  padding: 28px 16px 12px !important;
  margin: 0 -16px -4px !important;
  background: var(--rx-bg-2);
  flex-wrap: wrap;
}

/* Pagination dots */
.shepherd-text .dot-contaienr,
.dot-contaienr {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 16px 12px !important;
  margin: 0 -16px -4px !important;
  background: var(--rx-bg-2);
}
.dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: var(--rx-surface-4) !important;
  cursor: pointer;
  transition: all .2s ease;
}
.dot.active {
  width: 18px !important;
  border-radius: 99px !important;
  background: var(--rx-accent) !important;
  box-shadow: 0 0 8px var(--rx-accent-glow);
}

/* Arrow */
.shepherd-arrow {
  height: 14px !important;
  width: 14px !important;
}
.shepherd-arrow::before {
  background: var(--rx-surface-2) !important;
  border-top: 1px solid var(--rx-border-mid);
  border-left: 1px solid var(--rx-border-mid);
  transform: rotate(45deg) !important;
  width: 100% !important;
  height: 100% !important;
}
.shepherd-element[data-popper-placement^=top] > .shepherd-arrow::before {
  transform: rotate(225deg) !important;
}
.shepherd-element[data-popper-placement^=right] > .shepherd-arrow::before {
  transform: rotate(-45deg) !important;
}
.shepherd-element[data-popper-placement^=left] > .shepherd-arrow::before {
  transform: rotate(135deg) !important;
}
.shepherd-element.shepherd-has-title[data-popper-placement^=bottom] > .shepherd-arrow::before {
  background: var(--rx-surface-2) !important;
}

/* (Restart-tour button styles live with the rest of .dx-hero__top
   near the top of this file — the old <img>-era rules were retired
   when the icon became a real <button>.) */

/* ═══════════════════════════════════════════════════════════
   ▒▒  STAGGER REVEAL ANIMATIONS — list cohesion              ▒▒
   ═══════════════════════════════════════════════════════════ */

@keyframes tkRiseIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tkFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Generic helper */
.tk-stagger > * {
  animation: tkRiseIn .42s cubic-bezier(.22,.61,.36,1) both;
}
.tk-stagger > *:nth-child(1)  { animation-delay: 0.04s; }
.tk-stagger > *:nth-child(2)  { animation-delay: 0.08s; }
.tk-stagger > *:nth-child(3)  { animation-delay: 0.12s; }
.tk-stagger > *:nth-child(4)  { animation-delay: 0.16s; }
.tk-stagger > *:nth-child(5)  { animation-delay: 0.20s; }
.tk-stagger > *:nth-child(6)  { animation-delay: 0.24s; }
.tk-stagger > *:nth-child(7)  { animation-delay: 0.28s; }
.tk-stagger > *:nth-child(8)  { animation-delay: 0.32s; }
.tk-stagger > *:nth-child(9)  { animation-delay: 0.36s; }
.tk-stagger > *:nth-child(n+10) { animation-delay: 0.40s; }

/* ── Auto-applied to existing list components ───────────── */

/* Dashboard wallet grid */
.dx-wallets > .dx-wallet {
  animation: tkRiseIn .45s cubic-bezier(.22,.61,.36,1) both;
}
.dx-wallets > .dx-wallet:nth-child(1) { animation-delay: 0.05s; }
.dx-wallets > .dx-wallet:nth-child(2) { animation-delay: 0.10s; }
.dx-wallets > .dx-wallet:nth-child(3) { animation-delay: 0.15s; }
.dx-wallets > .dx-wallet:nth-child(4) { animation-delay: 0.20s; }
.dx-wallets > .dx-wallet:nth-child(5) { animation-delay: 0.25s; }
.dx-wallets > .dx-wallet:nth-child(6) { animation-delay: 0.30s; }
.dx-wallets > .dx-wallet:nth-child(7) { animation-delay: 0.35s; }
.dx-wallets > .dx-wallet:nth-child(n+8) { animation-delay: 0.40s; }

/* Market tickers */
.mx-list > .mx-ticker {
  animation: tkRiseIn .42s cubic-bezier(.22,.61,.36,1) both;
}
.mx-list > .mx-ticker:nth-child(1)  { animation-delay: 0.04s; }
.mx-list > .mx-ticker:nth-child(2)  { animation-delay: 0.08s; }
.mx-list > .mx-ticker:nth-child(3)  { animation-delay: 0.12s; }
.mx-list > .mx-ticker:nth-child(4)  { animation-delay: 0.16s; }
.mx-list > .mx-ticker:nth-child(5)  { animation-delay: 0.20s; }
.mx-list > .mx-ticker:nth-child(6)  { animation-delay: 0.24s; }
.mx-list > .mx-ticker:nth-child(7)  { animation-delay: 0.28s; }
.mx-list > .mx-ticker:nth-child(8)  { animation-delay: 0.32s; }
.mx-list > .mx-ticker:nth-child(n+9) { animation-delay: 0.36s; }

/* Open-order trade cards */
.ot-grid > .ot-card,
.ot-grid > .ot-pos {
  animation: tkRiseIn .42s cubic-bezier(.22,.61,.36,1) both;
}
.ot-grid > *:nth-child(1)  { animation-delay: 0.04s; }
.ot-grid > *:nth-child(2)  { animation-delay: 0.08s; }
.ot-grid > *:nth-child(3)  { animation-delay: 0.12s; }
.ot-grid > *:nth-child(4)  { animation-delay: 0.16s; }
.ot-grid > *:nth-child(5)  { animation-delay: 0.20s; }
.ot-grid > *:nth-child(6)  { animation-delay: 0.24s; }
.ot-grid > *:nth-child(n+7) { animation-delay: 0.28s; }

/* Support ticket cards */
.tk-list > .tk-card {
  animation: tkRiseIn .4s cubic-bezier(.22,.61,.36,1) both;
}
.tk-list > .tk-card:nth-child(1)  { animation-delay: 0.04s; }
.tk-list > .tk-card:nth-child(2)  { animation-delay: 0.08s; }
.tk-list > .tk-card:nth-child(3)  { animation-delay: 0.12s; }
.tk-list > .tk-card:nth-child(4)  { animation-delay: 0.16s; }
.tk-list > .tk-card:nth-child(5)  { animation-delay: 0.20s; }
.tk-list > .tk-card:nth-child(n+6) { animation-delay: 0.24s; }

/* Profile stats strip */
.acct-stats > .acct-stat {
  animation: tkRiseIn .4s cubic-bezier(.22,.61,.36,1) both;
}
.acct-stats > .acct-stat:nth-child(1) { animation-delay: 0.05s; }
.acct-stats > .acct-stat:nth-child(2) { animation-delay: 0.10s; }
.acct-stats > .acct-stat:nth-child(3) { animation-delay: 0.15s; }
.acct-stats > .acct-stat:nth-child(4) { animation-delay: 0.20s; }

/* Profile sections — gentle reveal */
.acct-page > .acct-section,
.acct-page > .acct-hero,
.acct-page > .acct-danger {
  animation: tkRiseIn .45s cubic-bezier(.22,.61,.36,1) both;
}
.acct-page > *:nth-child(1) { animation-delay: 0.02s; }
.acct-page > *:nth-child(2) { animation-delay: 0.08s; }
.acct-page > *:nth-child(3) { animation-delay: 0.14s; }
.acct-page > *:nth-child(4) { animation-delay: 0.20s; }
.acct-page > *:nth-child(5) { animation-delay: 0.26s; }
.acct-page > *:nth-child(6) { animation-delay: 0.32s; }
.acct-page > *:nth-child(n+7) { animation-delay: 0.38s; }

/* History table cards (mobile) — only animate when in card layout */
@media (max-width: 640px) {
  .history_table tbody tr {
    animation: tkRiseIn .35s cubic-bezier(.22,.61,.36,1) both;
  }
  .history_table tbody tr:nth-child(1)  { animation-delay: 0.04s; }
  .history_table tbody tr:nth-child(2)  { animation-delay: 0.07s; }
  .history_table tbody tr:nth-child(3)  { animation-delay: 0.10s; }
  .history_table tbody tr:nth-child(4)  { animation-delay: 0.13s; }
  .history_table tbody tr:nth-child(5)  { animation-delay: 0.16s; }
  .history_table tbody tr:nth-child(6)  { animation-delay: 0.19s; }
  .history_table tbody tr:nth-child(7)  { animation-delay: 0.22s; }
  .history_table tbody tr:nth-child(8)  { animation-delay: 0.25s; }
  .history_table tbody tr:nth-child(n+9) { animation-delay: 0.28s; }
}

/* Upcoming pair rail */
.ot-rail__cards > .ot-upc {
  animation: tkRiseIn .35s cubic-bezier(.22,.61,.36,1) both;
}
.ot-rail__cards > .ot-upc:nth-child(1) { animation-delay: 0.04s; }
.ot-rail__cards > .ot-upc:nth-child(2) { animation-delay: 0.07s; }
.ot-rail__cards > .ot-upc:nth-child(3) { animation-delay: 0.10s; }
.ot-rail__cards > .ot-upc:nth-child(n+4) { animation-delay: 0.13s; }

/* Modal items inside choice cards */
.modal-body .order_cards_main > .order_cards_single {
  animation: tkRiseIn .35s cubic-bezier(.22,.61,.36,1) both;
}
.modal-body .order_cards_main > .order_cards_single:nth-child(1) { animation-delay: 0.04s; }
.modal-body .order_cards_main > .order_cards_single:nth-child(2) { animation-delay: 0.08s; }
.modal-body .order_cards_main > .order_cards_single:nth-child(3) { animation-delay: 0.12s; }
.modal-body .order_cards_main > .order_cards_single:nth-child(n+4) { animation-delay: 0.16s; }

/* KYC stepper steps */
.kyc-stepper > .kyc-step {
  animation: tkRiseIn .35s cubic-bezier(.22,.61,.36,1) both;
}
.kyc-stepper > .kyc-step:nth-child(1) { animation-delay: 0.04s; }
.kyc-stepper > .kyc-step:nth-child(2) { animation-delay: 0.10s; }
.kyc-stepper > .kyc-step:nth-child(3) { animation-delay: 0.16s; }
.kyc-stepper > .kyc-step:nth-child(4) { animation-delay: 0.22s; }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .tk-stagger > *,
  .dx-wallets > .dx-wallet,
  .mx-list > .mx-ticker,
  .ot-grid > *,
  .tk-list > .tk-card,
  .acct-stats > .acct-stat,
  .acct-page > *,
  .ot-rail__cards > .ot-upc,
  .modal-body .order_cards_main > .order_cards_single,
  .kyc-stepper > .kyc-step,
  .history_table tbody tr {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  PROGRESS BAR — clean Binance-style label + thin bar     ▒▒
   ═══════════════════════════════════════════════════════════ */

/* Wrapper — clean chunky bar */
.ot-card__progress.custom_progressbar,
.modal-body .ot-card__progress.custom_progressbar {
  display: block !important;
  margin: 12px auto 14px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  position: relative !important;
  cursor: default !important;
  height: 22px !important;
  width: calc(100% - 56px) !important;
  max-width: 320px;
  overflow: visible !important;
}

/* The pill itself */
.ot-card__progress .ot-progress,
.ot-card__progress .progress_bg_main {
  position: absolute !important;
  inset: 0 !important;
  height: 22px !important;
  border-radius: 99px !important;
  background: var(--rx-bg-2) !important;
  border: 1px solid var(--rx-border) !important;
  overflow: hidden !important;
  display: block !important;
}

/* Filled portion */
.ot-card__progress .ot-progress__fill,
.ot-card__progress .progress_meter,
.ot-card__progress .progress-bar {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  border-radius: 99px 0 0 99px !important;
  background: linear-gradient(90deg, var(--rx-accent) 0%, var(--rx-accent-2) 100%) !important;
  box-shadow: 0 0 14px rgba(30,99,255,.30) !important;
  transition: width .55s cubic-bezier(.22,.61,.36,1) !important;
  z-index: 0 !important;
}

/* When fill is 100% give it full pill rounding */
.ot-card__progress[data-pct="100"] .ot-progress__fill,
.ot-card__progress[data-pct="100.00"] .ot-progress__fill {
  border-radius: 99px !important;
}

/* Inner sheen — top highlight + bottom shadow for the polished look */
.ot-card__progress .ot-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, transparent 50%, rgba(0,0,0,.12) 100%);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

/* Hide the legacy meta row entirely — percentage lives via JS in .progress-text */
.ot-card__progress .ot-card__progress-meta { display: none !important; }
.ot-card__progress .ot-card__progress-label  { display: none !important; }

/* The percentage value — pinned absolutely centered ON the bar */
.ot-card__progress .ot-card__progress-pct,
.ot-card__progress .progress_value,
.ot-card__progress .progress-text {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--rx-font-mono) !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(255,255,255,.45);
  pointer-events: none !important;
  z-index: 3 !important;
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Low fill (<35%) — text sits over dark side, switch to white */
.ot-card__progress[data-pct^="0"] .progress_value,
.ot-card__progress[data-pct^="0"] .progress-text,
.ot-card__progress[data-pct^="0"] .ot-card__progress-pct,
.ot-card__progress[data-pct^="1"] .progress_value,
.ot-card__progress[data-pct^="1"] .progress-text,
.ot-card__progress[data-pct^="1"] .ot-card__progress-pct,
.ot-card__progress[data-pct^="2"] .progress_value,
.ot-card__progress[data-pct^="2"] .progress-text,
.ot-card__progress[data-pct^="2"] .ot-card__progress-pct,
.ot-card__progress[data-pct^="3."] .progress_value,
.ot-card__progress[data-pct^="3."] .progress-text,
.ot-card__progress[data-pct^="3."] .ot-card__progress-pct {
  color: var(--rx-text) !important;
  -webkit-text-fill-color: var(--rx-text) !important;
  text-shadow: 0 0 4px rgba(0,0,0,.85), 0 1px 0 rgba(0,0,0,.5) !important;
}

/* ── Same treatment for .ot-pos__progress (your-positions) ─ */
.ot-pos__progress.custom_progressbar {
  display: block !important;
  margin: 10px 14px 14px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  text-align: left !important;
  min-height: 28px;
}
.ot-pos__progress .ot-progress {
  height: 6px !important;
  border-radius: 99px !important;
  background: var(--rx-bg-2) !important;
  border: 1px solid var(--rx-border) !important;
  overflow: hidden;
  position: relative;
}
.ot-pos__progress .ot-progress__fill {
  height: 100% !important;
  border-radius: 99px !important;
  transition: width .55s cubic-bezier(.22,.61,.36,1) !important;
}
.ot-pos__progress .ot-progress__fill--gold {
  background: linear-gradient(90deg, var(--rx-warn), #ffce4d) !important;
  box-shadow: 0 0 10px rgba(240,185,11,.35);
}
.ot-pos__progress-meta {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 !important;
}
.ot-pos__progress-label {
  font-family: var(--rx-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rx-muted);
}
.ot-pos__countdown {
  font-family: var(--rx-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  color: var(--rx-warn);
  letter-spacing: -.01em;
  line-height: 1;
}

/* Bar fill animates on width change (legacy aliases too) */
.ot-card__progress .progress-bar,
.ot-card__progress .progress_meter,
.ot-pos__progress .progress_meter {
  transition: width .55s cubic-bezier(.22,.61,.36,1);
}

/* Pair cards: high fill (≥80%) — must beat layout.css .custom_progressbar … !important */
.custom_progressbar .progress_bg_main .progress_meter.ot-pair-fill--high {
  background: linear-gradient(90deg, #e81333 0%, #FF6961 100%) !important;
  box-shadow: 0 0 12px rgba(232, 19, 51, 0.28) !important;
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  TIME-REMAINING-TO-CLAIM — editorial countdown widget   ▒▒
   ─────────────────────────────────────────────────────────────
   The countdown sits as the hero (right column) with a tracked
   eyebrow label (left). A razor-thin gold rail underneath shows
   elapsed-of-window. Nothing is rendered inside the bar.
   ═══════════════════════════════════════════════════════════ */

.ot-pos__claim {
  position: relative;
  margin: 4px 14px 14px;
  padding: 12px 14px 13px;
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-md);
  background:
    radial-gradient(120% 200% at 0% 0%, rgba(240,185,11,.05), transparent 55%),
    #ffffff;
  overflow: hidden;
  isolation: isolate;
}
.ot-pos__claim::before {
  /* Hairline ornament across the top edge */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(217,154,4,.55) 18%,
    rgba(217,154,4,.95) 32%,
    rgba(217,154,4,.55) 46%,
    transparent 80%);
  opacity: .9;
  pointer-events: none;
  z-index: 1;
}

.ot-pos__claim-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 !important;
}

.ot-pos__claim-label {
  position: relative;
  padding-left: 16px;
  font-family: var(--rx-font);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--rx-muted);
  letter-spacing: 0.5px !important;
  white-space: nowrap;
}
.ot-pos__claim-label::before {
  /* Gold stub mark — the same accent that fills the rail */
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: #d99a04;
  transform: translateY(-50%);
  border-radius: 2px;
}

.ot-pos__claim-digits {
  font-family: var(--rx-font-mono) !important;
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em !important;
  color: #1f2937;
  -webkit-text-fill-color: currentColor;
  display: inline-block;
  white-space: nowrap;
  font-feature-settings: 'tnum' 1, 'zero' 1, 'ss01' 1;
  /* Soft tick pulse — opacity, not glow (glow is invisible on white) */
  animation: ot-pos__claim-tick 2s ease-in-out infinite;
}

.ot-pos__claim-pct {
  margin-left: auto;
  font-family: var(--rx-font-mono) !important;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  color: #0e8e5e;
  white-space: nowrap;
}
@keyframes ot-pos__claim-tick {
  0%, 100% { opacity: 1; }
  50%      { opacity: .72; }
}

.ot-pos__claim-rail {
  position: relative;
  height: 4px;
  border-radius: 99px;
  background: #eef1f5;
  border: 1px solid var(--rx-border);
  overflow: hidden;
}

.ot-pos__claim-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg,
    #d99a04 0%,
    var(--rx-warn) 55%,
    #ffce4d 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  transition: width .55s cubic-bezier(.22,.61,.36,1);
  z-index: 1;
}
.ot-pos__claim-fill::after {
  /* Travelling sheen — restrained, wraps at the leading edge */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.55) 50%,
    transparent 100%);
  transform: translateX(-100%);
  animation: ot-pos__claim-sheen 4.2s ease-in-out infinite;
  animation-delay: 1.5s;
  pointer-events: none;
}
@keyframes ot-pos__claim-sheen {
  0%, 35%   { transform: translateX(-100%); }
  60%, 100% { transform: translateX(140%); }
}

/* Ready state — countdown hit zero, the order is claimable / completed */
.ot-pos__claim.is-ready {
  border-color: rgba(22,199,132,.55);
  background:
    radial-gradient(120% 200% at 0% 0%, rgba(22,199,132,.10), transparent 55%),
    #f4fbf7;
}
.ot-pos__claim.is-ready::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(11,140,90,.65) 18%,
    rgba(11,140,90,1)   32%,
    rgba(11,140,90,.65) 46%,
    transparent 80%);
  opacity: 1;
}
.ot-pos__claim.is-ready .ot-pos__claim-label::before {
  background: #0e8e5e;
}
.ot-pos__claim.is-ready .ot-pos__claim-digits {
  /* Solid, deep green — readable on white, still celebratory */
  color: #0e8e5e;
  -webkit-text-fill-color: currentColor;
  background: none;
  text-shadow: none;
  animation: none;
}
.ot-pos__claim.is-ready .ot-pos__claim-fill {
  background: linear-gradient(90deg,
    #0b6b48 0%,
    #0e8e5e 55%,
    #16c784 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

/* Compact viewports — tighten the type and padding */
@media (max-width: 520px) {
  .ot-pos__claim { margin: 4px 10px 10px; padding: 10px 12px 11px; }
  .ot-pos__claim-digits { font-size: 16px; }
  .ot-pos__claim-label  { font-size: 9.5px; padding-left: 14px; }
  .ot-pos__claim-label::before { width: 8px; }
}

/* Honor reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .ot-pos__claim-digits     { animation: none; }
  .ot-pos__claim-fill::after { animation: none; opacity: 0; }
  .ot-pos__claim-fill        { transition: none; }
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  DIAGRAM / COMMUNITY PAGE                               ▒▒
   ═══════════════════════════════════════════════════════════ */

/* Suppress legacy diagram.css visual bits we don't want */
.page_bottom_content .archive_0 ul:before,
.page_bottom_content .archive_0 ul li:before,
.page_bottom_content .archive_0 ul li:after,
.page_bottom_content .archive_0 ul li:last-child:after {
  border-color: var(--rx-border-mid) !important;
  border-radius: 0 !important;
}

/* ── Referral hero (.blue_main) — pick up profile-style hero ─ */
.page_bottom_content .assets_currency_main.blue_main .blue-sub-box .form_main {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.page_bottom_content .assets_currency_main.blue_main .form-group {
  background: var(--rx-bg-2) !important;
  border: 1px solid var(--rx-border-mid) !important;
  border-radius: var(--rx-r-sm) !important;
  padding: 8px 12px !important;
  position: relative;
}

.page_bottom_content .assets_currency_main.blue_main .form-group label {
  color: var(--rx-muted) !important;
  font-family: var(--rx-font) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  margin: 0 0 1px !important;
}

.page_bottom_content .assets_currency_main.blue_main .form-group .form-control,
.page_bottom_content .assets_currency_main.blue_main .form-group input,
.page_bottom_content .assets_currency_main.blue_main #refLink {
  background: transparent !important;
  border: none !important;
  color: var(--rx-text) !important;
  font-family: var(--rx-font-mono) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 0 !important;
  height: auto !important;
  min-width: 0 !important;
  word-break: break-all;
  line-height: 1.45;
  outline: none !important;
  box-shadow: none !important;
}

.page_bottom_content .assets_currency_main.blue_main .referral-right-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--rx-r-xs);
  background: var(--rx-surface-3);
  border: 1px solid var(--rx-border);
  cursor: pointer;
  transition: all .12s ease;
}
.page_bottom_content .assets_currency_main.blue_main .referral-right-icon:hover {
  background: var(--rx-accent-soft);
  border-color: var(--rx-accent);
}
.page_bottom_content .assets_currency_main.blue_main .referral-right-icon img {
  width: 14px !important;
  transition: filter .12s;
}
.page_bottom_content .assets_currency_main.blue_main .referral-right-icon:hover img {
  opacity: 1;
}

.page_bottom_content .assets_currency_main.blue_main .btn.btn-border-white {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  padding: 11px 16px !important;
  font-family: var(--rx-font) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  border-radius: var(--rx-r-sm) !important;
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2)) !important;
  color: #ffffff !important;
  border: 0px solid transparent !important;
  box-shadow: 0 6px 18px -6px rgba(30,99,255,.45) !important;
}
.page_bottom_content .assets_currency_main.blue_main .btn.btn-border-white:hover {
  filter: brightness(1.08);
  color: #ffffff !important;
}

/* Para text inside hero */
.page_bottom_content .assets_currency_main.blue_main .para_text {
  color: var(--rx-text-2) !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  text-align: left !important;
  position: relative;
  z-index: 1;
  max-width: 600px;
}

/* ── My Community stats grid ─────────────────────────────── */
.page_bottom_content .assets_currency_main .header_with_btn .assets_currency_title {
  font-family: var(--rx-font) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: var(--rx-text) !important;
}

/* The dual-column referral/matching card */
.page_bottom_content .assets_card .top_section.referral-middle {
  display: flex !important;
  align-items: stretch;
  gap: 12px;
}
.page_bottom_content .assets_card .top_section.referral-middle .left,
.page_bottom_content .assets_card .top_section.referral-middle .right {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}
.page_bottom_content .assets_card .top_section.referral-middle .right {
  border-left: 1px dashed var(--rx-border);
}
.page_bottom_content .assets_card .top_section.referral-middle .right .assets_card_title,
.page_bottom_content .assets_card .top_section.referral-middle .right .assets_card_value {
  text-align: right;
}

/* Right-arrow chevron in some cards */
.page_bottom_content .assets_card .top_section .right > img[src*="icon-rigths"] {
  width: 8px !important;
  filter: brightness(0) invert(1) opacity(.5);
  transition: opacity .12s, transform .12s;
}
.page_bottom_content .assets_card .top_section .right:hover > img[src*="icon-rigths"] {
  opacity: 1;
  transform: translateX(2px);
}

/* ── Community Breakdown section ─────────────────────────── */
.page_bottom_content .assets_card.white-box {
  background: var(--rx-surface-1) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-lg) !important;
  padding: 16px !important;
  margin-top: 16px !important;
}

.page_bottom_content .community-filter-box {
  background: var(--rx-bg-2) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-md) !important;
  padding: 12px !important;
  margin-bottom: 14px !important;
}

.page_bottom_content .community-filter-box label {
  font-family: var(--rx-font) !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: var(--rx-muted) !important;
}

.page_bottom_content .community-filter-box .form-control {
  background: var(--rx-surface-2) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-sm) !important;
  color: var(--rx-text) !important;
  font-family: var(--rx-font-mono) !important;
  font-variant-numeric: tabular-nums;
  font-size: 12px !important;
  height: 36px !important;
  padding: 0 12px !important;
  transition: border-color .15s, box-shadow .15s;
}
.page_bottom_content .community-filter-box .form-control:focus {
  border-color: var(--rx-accent) !important;
  box-shadow: 0 0 0 3px var(--rx-accent-soft) !important;
  outline: none;
}

.page_bottom_content .community-filter-box .filter_chips_row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px !important;
}
.page_bottom_content .community-filter-box .filter_chips_row .btn-filter-static {
  background: var(--rx-surface-2) !important;
  color: var(--rx-text-2) !important;
  border: 1px solid var(--rx-border-strong) !important;
  font-family: var(--rx-font) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  padding: 7px 12px !important;
  border-radius: var(--rx-r-sm) !important;
  background-image: none !important;
  cursor: pointer;
  transition: all .12s ease;
}
.page_bottom_content .community-filter-box .filter_chips_row .btn-filter-static:hover,
.page_bottom_content .community-filter-box .filter_chips_row .btn-filter-static.active {
  background: var(--rx-accent-soft) !important;
  border-color: var(--rx-accent) !important;
  color: var(--rx-accent) !important;
}

.page_bottom_content .community-filter-box #applyFilter {
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2)) !important;
  color: #ffffff !important;
  border: 0px solid transparent !important;
  font-family: var(--rx-font) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  border-radius: var(--rx-r-sm) !important;
  height: 36px !important;
  margin-top: 0 !important;
  box-shadow: 0 4px 14px -4px rgba(30,99,255,.4) !important;
}
.page_bottom_content .community-filter-box #applyFilter:hover { filter: brightness(1.08); color: #ffffff !important; }

/* Search button next to title */
.page_bottom_content .header_with_btn .filter_reset .icon_btn {
  background: var(--rx-surface-3) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-sm) !important;
  width: 32px;
  height: 32px;
}
.page_bottom_content .header_with_btn .filter_reset .icon_btn img {
  width: 14px !important;
}
.page_bottom_content .header_with_btn .filter_reset .icon_btn:hover {
  background: var(--rx-accent-soft) !important;
  border-color: var(--rx-accent) !important;
}
.page_bottom_content .header_with_btn .filter_reset .icon_btn:hover img {
  opacity: 1;
}

/* ── Tree visualization ─────────────────────────────────── */

.page_bottom_content #downlines.archive_0 {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}
.page_bottom_content #downlines.archive_0 > li {
  list-style: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
.page_bottom_content #downlines.archive_0 > li.row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px;
}

/* Tree connector lines — use accent colour, dashed */
.page_bottom_content .archive_0 ul li:before,
.page_bottom_content .archive_0 ul li:after,
.page_bottom_content .archive_0 ul:before,
.page_bottom_content .archive_0 ul li:last-child:after {
  border-color: rgba(30,99,255,.25) !important;
  border-style: solid !important;
}

/* Node card (rendered by JS) */
.page_bottom_content .namebox {
  margin-bottom: 14px !important;
  padding: 0 6px !important;
}

.page_bottom_content .namebox .bgfirst {
  background: linear-gradient(180deg, var(--rx-surface-2), var(--rx-surface-1)) !important;
  border: 1px solid var(--rx-border-mid) !important;
  border-radius: var(--rx-r-md) !important;
  padding: 14px 14px 12px !important;
  margin: 0 !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .15s ease, transform .12s ease;
}
.page_bottom_content .namebox .bgfirst:hover {
  border-color: var(--rx-accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.5);
}

/* Decorative accent line at the top of node card (re-uses .linesss) */
.page_bottom_content .namebox .bgfirst .linesss {
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  height: 2px !important;
  width: 100% !important;
  padding: 0 !important;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--rx-accent-2) 30%,
    var(--rx-accent-2) 70%,
    transparent 100%) !important;
  -webkit-mask: none !important;
  mask: none !important;
  z-index: 1;
}

/* Username header inside node card */
.page_bottom_content .namebox .hierarchy-box .hierarchy-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 8px !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid var(--rx-border) !important;
  position: relative;
  z-index: 2;
}
.page_bottom_content .namebox .hierarchy-box .hierarchy-title > div {
  font-family: var(--rx-font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  color: var(--rx-text) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  word-break: break-word;
  text-transform: none !important;
}
/* Avatar disc before username (CSS-only) */
.page_bottom_content .namebox .hierarchy-box .hierarchy-title > div::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--rx-accent-2), var(--rx-accent-deep) 70%);
  flex-shrink: 0;
  box-shadow: 0 2px 8px -2px rgba(30,99,255,.5),
              inset 0 0 0 1px rgba(255,255,255,.1);
}

/* Sub-data rows (label / value) */
.page_bottom_content .namebox .hierarchy-box .hierarchy-sub-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  border-bottom: 1px dashed var(--rx-border);
  font-size: 11.5px;
  position: relative;
  z-index: 2;
}
.page_bottom_content .namebox .hierarchy-box .hierarchy-sub-title:last-child { border-bottom: none; }
.page_bottom_content .namebox .hierarchy-box .hierarchy-sub-title > div:first-child {
  color: var(--rx-muted) !important;
  font-family: var(--rx-font) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
}
.page_bottom_content .namebox .hierarchy-box .hierarchy-sub-title > div:last-child,
.page_bottom_content .namebox .hierarchy-box .hierarchy-sub-title .font-weight-bold {
  color: var(--rx-text) !important;
  font-family: var(--rx-font-mono) !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-align: right;
  word-break: break-word;
  letter-spacing: -.005em;
}

/* No-data placeholder */
.page_bottom_content .nodata_main {
  background: var(--rx-bg-2) !important;
  border: 1px dashed var(--rx-border-mid) !important;
  border-radius: var(--rx-r-md) !important;
  padding: 36px 16px !important;
  min-height: 200px !important;
}
.page_bottom_content .nodata_main .nodata figure img {
  max-width: 110px !important;
  opacity: .55;
}
.page_bottom_content .nodata_main .nodata article {
  margin-top: 10px;
  color: var(--rx-muted) !important;
  font-weight: 600;
  font-family: var(--rx-font);
  font-size: 12px;
}

/* ── Tips / shareable button ─────────────────────────────── */
.page_bottom_content .btn.btn-greysss {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  background: var(--rx-surface-2) !important;
  color: var(--rx-text-2) !important;
  border: 0px;
  border-radius: var(--rx-r-md) !important;
  font-family: var(--rx-font) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  padding: 11px 16px !important;
  transition: all .15s ease;
}

.page_bottom_content .btn.btn-greysss::before { display: none !important; }

/* ── Tips swiper carousel ──────────────────────────────── */
.page_bottom_content .swiper-containers.diagram-swiper {
  margin: 16px 0 !important;
}
.page_bottom_content .diagram-swiper .swiper-slide {
  background: linear-gradient(135deg,
    rgba(30,99,255,.12) 0%,
    rgba(30,99,255,.04) 50%,
    rgba(240,185,11,.04) 100%) !important;
  border: 1px solid var(--rx-border-mid) !important;
  border-radius: var(--rx-r-md) !important;
  color: var(--rx-text) !important;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page_bottom_content .diagram-swiper .swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 90% 10%, #000 30%, transparent 80%);
          mask-image: radial-gradient(circle at 90% 10%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}
.page_bottom_content .diagram-swiper .referral-titles {
  font-family: var(--rx-font) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -.005em !important;
  color: var(--rx-text) !important;
  text-transform: none !important;
  margin: 0 0 6px;
}
.page_bottom_content .diagram-swiper .steps_para {
  font-family: var(--rx-font) !important;
  font-size: 12.5px !important;
  color: var(--rx-text-2) !important;
  line-height: 1.6 !important;
  letter-spacing: 0;
}
.page_bottom_content .diagram-swiper .btn-border-white {
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2)) !important;
  color: #ffffff !important;
  border: 0px solid transparent !important;
  border-radius: var(--rx-r-sm) !important;
  font-family: var(--rx-font) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  padding: 9px 14px !important;
  box-shadow: 0 4px 14px -4px rgba(30,99,255,.4) !important;
}

.page_bottom_content .diagram-swiper .swiper-pagination-bullet {
  background: rgba(255,255,255,.3) !important;
  width: 6px !important;
  height: 6px !important;
  opacity: 1 !important;
  margin: 0 4px;
}
.page_bottom_content .diagram-swiper .swiper-pagination-bullet-active {
  background: var(--rx-accent) !important;
  width: 18px !important;
  border-radius: 99px !important;
}

/* ── Rules / FAQ section ────────────────────────────────── */
.page_bottom_content .referral-container {
  color: var(--rx-text-2) !important;
  font-size: 12.5px !important;
  line-height: 1.6 !important;
  letter-spacing: 0;
}
.page_bottom_content .referral-container strong {
  color: var(--rx-text) !important;
  font-weight: 700;
}
.page_bottom_content .border-1px-greyss {
  height: 1px;
  background: var(--rx-border) !important;
  border: none !important;
  margin: 12px 0 !important;
}

/* ── Filter / search modal already gets modal skin from earlier ─ */
.modal-body .filter_popup .form_main { display: grid; gap: 10px; }
.modal-body .filter_popup .d-flex .btn-filter {
  background: var(--rx-surface-2) !important;
  color: var(--rx-text-2) !important;
  border: 1px solid var(--rx-border) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  border-radius: var(--rx-r-sm) !important;
  margin: 0 4px;
}
.modal-body .filter_popup .d-flex .btn-filter:first-child { margin-left: 0; }
.modal-body .filter_popup .d-flex .btn-filter:last-child { margin-right: 0; }
.modal-body .filter_popup .d-flex .btn-filter.active {
  background: var(--rx-accent-soft) !important;
  color: var(--rx-accent) !important;
  border-color: var(--rx-accent) !important;
}

/* ── Inline tablecontents inside modals ─────────────────── */
.modal-body .history_table.tablecontents thead tr th,
.modal-body .table.history_table thead tr th {
  background: var(--rx-surface-2) !important;
  color: var(--rx-muted) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid var(--rx-border) !important;
}
.modal-body .history_table.tablecontents tbody td {
  font-family: var(--rx-font) !important;
  font-size: 11.5px !important;
  color: var(--rx-text-2) !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid var(--rx-border) !important;
}
.modal-body .history_table.tablecontents tbody tr:hover td {
  background: var(--rx-surface-2);
}

/* Stagger reveal for namebox cards on page load */
.page_bottom_content .archive_0 .namebox {
  animation: tkRiseIn .42s cubic-bezier(.22,.61,.36,1) both;
}
.page_bottom_content .archive_0 .namebox:nth-child(1)  { animation-delay: 0.05s; }
.page_bottom_content .archive_0 .namebox:nth-child(2)  { animation-delay: 0.10s; }
.page_bottom_content .archive_0 .namebox:nth-child(3)  { animation-delay: 0.15s; }
.page_bottom_content .archive_0 .namebox:nth-child(4)  { animation-delay: 0.20s; }
.page_bottom_content .archive_0 .namebox:nth-child(5)  { animation-delay: 0.25s; }
.page_bottom_content .archive_0 .namebox:nth-child(6)  { animation-delay: 0.30s; }
.page_bottom_content .archive_0 .namebox:nth-child(n+7) { animation-delay: 0.35s; }

/* Card grid on wider screens */
@media (min-width: 768px) {
  .page_bottom_content #downlines.archive_0 > li.row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (min-width: 1100px) {
  .page_bottom_content #downlines.archive_0 > li.row {
    grid-template-columns: repeat(3, 1fr);
  }
}
.page_bottom_content #downlines.archive_0 > li.row > .namebox {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  padding: 0 !important;
}

/* ── Diagram tree node — kill remaining legacy bright-blue ─ */

/* The whole .row.bgfirst (legacy white card BG) */
.page_bottom_content .walletbgforprogram .tabcontent1 .nt_rk .namebox .row,
.page_bottom_content .walletbgforprogram .tabcontent1 .nt_rk .namebox .row.bgfirst,
.page_bottom_content .nt_rk .namebox .row.bgfirst,
.page_bottom_content .namebox .row.bgfirst {
  background: linear-gradient(180deg, var(--rx-surface-2), var(--rx-surface-1)) !important;
  border: 1px solid var(--rx-border-mid) !important;
  border-radius: var(--rx-r-md) !important;
  padding: 12px 14px !important;
  margin: 0 !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* The .nt_rk .namebox has a fixed 450 px width + purple border in legacy */
.page_bottom_content .nt_rk .namebox,
.page_bottom_content .walletbgforprogram .tabcontent1 .nt_rk .namebox {
  width: auto !important;
  border: none !important;
  background: transparent !important;
}

/* Username title — kill legacy bright-blue gradient + rounded box */
.page_bottom_content .namebox .hierarchy-title,
.page_bottom_content .walletbgforprogram .hierarchy-title,
.page_bottom_content #graph22 .hierarchy-title {
  background: transparent !important;
  background-image: none !important;
  border-radius: 0 !important;
  color: var(--rx-text) !important;
  padding: 0 0 8px 0 !important;
  margin: 0 0 8px !important;
  border-bottom: 1px solid var(--rx-border) !important;
  font-family: var(--rx-font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px;
}
.page_bottom_content .namebox .hierarchy-title > div {
  background: none !important;
  -webkit-text-fill-color: var(--rx-text) !important;
  color: var(--rx-text) !important;
  font-family: var(--rx-font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Legacy .linesss inside .bgfirst was a full-card gradient mask — neutralise */
.page_bottom_content .namebox .bgfirst .linesss,
.page_bottom_content .walletbgforprogram .bgfirst .linesss {
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  bottom: auto !important;
  height: 2px !important;
  width: 100% !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--rx-accent-2) 30%,
    var(--rx-accent) 70%,
    transparent 100%) !important;
  -webkit-mask: none !important;
          mask: none !important;
  -webkit-mask-composite: initial !important;
          mask-composite: initial !important;
  pointer-events: none;
  z-index: 1;
}

/* Padding on .hierarchy-sub-title to match new card */
.page_bottom_content .namebox .hierarchy-sub-title {
  padding: 6px 0 !important;
  font-family: var(--rx-font) !important;
  font-size: 11.5px !important;
}
.page_bottom_content .namebox .hierarchy-sub-title > div:first-child {
  background: none !important;
  -webkit-text-fill-color: var(--rx-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  font-size: 10.5px !important;
  color: var(--rx-muted) !important;
  font-weight: 600 !important;
}

/* Avatar disc — keep the one I added via ::before, but only on first row */
.page_bottom_content .namebox .hierarchy-box .hierarchy-title > div::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--rx-accent-2), var(--rx-accent-deep) 70%);
  flex-shrink: 0;
  box-shadow: 0 2px 8px -2px rgba(30,99,255,.5),
              inset 0 0 0 1px rgba(255,255,255,.1);
  margin-right: 8px;
}

/* Mobile — no fixed width 450 px */
@media (max-width: 767px) {
  .page_bottom_content .nt_rk .namebox,
  .page_bottom_content .walletbgforprogram .tabcontent1 .nt_rk .namebox {
    width: 100% !important;
  }
}

/* ── Embrace the rounded pill row design — proper dark theme ── */
.page_bottom_content .namebox .hierarchy-box .hierarchy-sub-title,
.page_bottom_content .namebox .hierarchy-sub-title {
  background: rgba(30,99,255,.04) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: 99px !important;
  padding: 6px 14px !important;
  margin: 4px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  font-size: 11.5px !important;
  color: var(--rx-text-2) !important;
  position: relative;
  overflow: hidden;
  transition: border-color .12s, background .12s;
}
.page_bottom_content .namebox .hierarchy-box .hierarchy-sub-title:hover,
.page_bottom_content .namebox .hierarchy-sub-title:hover {
  background: var(--rx-accent-soft) !important;
  border-color: rgba(30,99,255,.3) !important;
}

/* Kill any stray pseudo content that might bleed past pill edges */
.page_bottom_content .namebox .hierarchy-sub-title::before,
.page_bottom_content .namebox .hierarchy-sub-title::after {
  display: none !important;
  content: none !important;
}

/* Label / value typography inside the pill */
.page_bottom_content .namebox .hierarchy-sub-title > div:first-child {
  background: none !important;
  -webkit-text-fill-color: var(--rx-muted) !important;
  color: var(--rx-muted) !important;
  font-family: var(--rx-font) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}
.page_bottom_content .namebox .hierarchy-sub-title > div:last-child,
.page_bottom_content .namebox .hierarchy-sub-title .font-weight-bold {
  background: none !important;
  -webkit-text-fill-color: var(--rx-text) !important;
  color: var(--rx-text) !important;
  font-family: var(--rx-font-mono) !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: -.005em !important;
  text-align: right;
  flex-shrink: 0;
}

/* Status row — give it status pill styling when value is ACTIVE / INACTIVE */
.page_bottom_content .namebox .hierarchy-sub-title:has(> div:last-child:is(:contains("ACTIVE"))) > div:last-child {
  /* :has + :contains doesn't actually work in CSS — kept as docs */
}

/* Padding on .bgfirst so pills have room to breathe */
.page_bottom_content .namebox .row.bgfirst {
  padding: 14px 12px 14px !important;
}

/* Username title spacing — pull it close to the first pill */
.page_bottom_content .namebox .hierarchy-box .hierarchy-title {
  margin: 0 0 6px !important;
  padding: 0 4px 8px !important;
}
.page_bottom_content .namebox .hierarchy-box .hierarchy-title > div {
  font-size: 13px !important;
  padding: 0 !important;
  background: none !important;
  border-radius: 0 !important;
}

/* Make the avatar disc a bit bigger to match the chunky pills */
.page_bottom_content .namebox .hierarchy-box .hierarchy-title > div::before {
  width: 24px !important;
  height: 24px !important;
}


/* ═══════════════════════════════════════════════════════════
   ▒▒  AUTH BRAND PANEL — centered moon + moonex wordmark    ▒▒
   ═══════════════════════════════════════════════════════════ */

.au-brand--minimal {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 32px !important;
  border-right: 1px solid var(--rx-border);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(800px 600px at 50% 50%, rgba(30,99,255,.10), transparent 65%),
    radial-gradient(500px 400px at 50% 100%, rgba(240,185,11,.06), transparent 60%);
}

/* Subtle grid texture */
.au-brand--minimal::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 80%);
          mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Floating particles — soft animated specks for atmosphere */
.au-brand--minimal::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 18%, rgba(30,99,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 28%, rgba(240,185,11,.4), transparent 60%),
    radial-gradient(1px 1px at 32% 76%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 62%, rgba(30,99,255,.35), transparent 60%),
    radial-gradient(1px 1px at 18% 88%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(2px 2px at 60% 12%, rgba(240,185,11,.3), transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: au-stars 14s ease-in-out infinite;
}
@keyframes au-stars {
  0%, 100% { opacity: .85; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-4px); }
}

/* Centered stack — moon image on top + wordmark logo below */
.au-brand__stack {
  position: relative;
  z-index: 2;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-decoration: none !important;
  width: 100%;
  max-width: 420px;
}

/* Glowing halo backdrop behind the moon */
.au-brand__halo {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 88%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(240,185,11,.22), transparent 70%),
    radial-gradient(closest-side, rgba(30,99,255,.18), transparent 80%);
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
  z-index: -1;
  animation: au-pulse 6s ease-in-out infinite;
}
@keyframes au-pulse {
  0%, 100% { opacity: .85; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.06); }
}

/* The moon coin image */
.au-brand__moonart {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.65))
          drop-shadow(0 0 36px rgba(240,185,11,.22));
  animation: au-moon-float 11s ease-in-out infinite;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.au-brand__moonart img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain;
}
.au-brand__stack:hover .au-brand__moonart {
  transform: scale(1.03) rotate(-2deg);
}

/* moonex wordmark logo — pill chip below the moon */
.au-brand__wordmark {
  margin: 0;
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--rx-surface-2), var(--rx-surface-1));
  border: 1px solid var(--rx-border-mid);
  border-radius: 99px;
  box-shadow:
    0 12px 28px -10px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.04);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.au-brand__wordmark::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--rx-accent-2) 30%,
    var(--rx-accent) 70%,
    transparent 100%);
  pointer-events: none;
}
.au-brand__wordmark img {
  height: 30px !important;
  width: auto !important;
  display: block !important;
  filter: brightness(1.1);
}
.au-brand__stack:hover .au-brand__wordmark {
  border-color: var(--rx-accent);
  transform: translateY(-2px);
}

/* Hide the brand panel on small screens */
@media (max-width: 879px) {
  .au-brand--minimal { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  AUTH — moon-background, centered logo + form          ▒▒
   ═══════════════════════════════════════════════════════════ */

/* Hide the legacy split-screen brand panel — old approach */
.au-shell--moonbg .au-brand,
.au-shell--moonbg .au-brand--minimal { display: none !important; }

/* Full-bleed moon photo as page background */
.au-shell--moonbg {
  position: fixed;
  inset: 0;
  display: block !important;
  grid-template-columns: none !important;
  background:
    /* dark vignette overlay so the form card pops */
    linear-gradient(180deg, rgba(6,8,10,.35) 0%, rgba(6,8,10,.55) 60%, rgba(6,8,10,.85) 100%),
    /* the real moon */
    url("../img/land-bg.jpg") center top / cover no-repeat,
    var(--rx-bg-deep, #ffffff);
  overflow-y: auto;
  z-index: 1;
  isolation: isolate;
}

/* Subtle dust-grain overlay */
.au-shell--moonbg::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
}

/* Centered form wrapper */
.au-shell--moonbg .au-form-wrap {
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 100vh;
  padding: 60px 20px 40px !important;
  position: relative;
  z-index: 2;
}

/* Big moonex wordmark above the form */
.au-bigbrand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  text-decoration: none !important;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.65))
          drop-shadow(0 0 24px rgba(30,99,255,.35));
  transition: transform .25s ease;
}
.au-bigbrand:hover { transform: scale(1.03); }
.au-bigbrand img {
  height: 52px !important;
  width: auto !important;
  display: block !important;
  filter: brightness(1.15);
}
@media (max-width: 540px) {
  .au-bigbrand img { height: 40px !important; }
  .au-shell--moonbg .au-form-wrap { padding-top: 36px !important; }
}

/* Form card — translucent dark with backdrop blur so the moon shows through */
.au-shell--moonbg .au-form,
.au-shell--moonbg .au-form.au-form--wide {
  background: linear-gradient(180deg, rgba(17,22,29,.88), rgba(13,17,23,.92)) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
          backdrop-filter: blur(20px) saturate(140%) !important;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,.7),
    0 0 0 1px rgba(30,99,255,.10) inset,
    0 1px 0 rgba(255,255,255,.06) inset !important;
}

/* Float the language picker over the moon */
.au-shell--moonbg .au-lang { z-index: 5; }
.au-shell--moonbg .au-lang .drop_with_icon {
  background: rgba(17,22,29,.85) !important;
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

/* Hide the small mobile-logo in the form (we use the big one above) */
.au-shell--moonbg .au-form__mlogo { display: none !important; }

/* Reduce padding on small screens for the form card */
@media (max-width: 540px) {
  .au-shell--moonbg .au-form,
  .au-shell--moonbg .au-form.au-form--wide {
    padding: 20px 18px 16px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  DASHBOARD HERO — SVG moon (.rx-moon-art)               ▒▒
   ═══════════════════════════════════════════════════════════ */

/* The legacy coin-banner figure is no longer used — the SVG moon
   below replaces it. Keep it hidden defensively. */
.dx-hero .dx-hero__moon { display: none !important; }

.dx-hero { position: relative; overflow: hidden; isolation: isolate; }

.rx-moon-art {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 220px;
  height: 220px;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.55))
          drop-shadow(0 0 32px rgba(30,99,255,.18));
  animation: rx-moon-float 11s ease-in-out infinite;
  will-change: transform;
}
@keyframes rx-moon-float {
  0%, 100% { transform: translate(0,    -50%) rotate(-2deg); }
  50%      { transform: translate(-4px, calc(-50% - 6px)) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .rx-moon-art { animation: none; }
}

/* Make sure hero text always wins z-index against the moon */
.dx-hero__top,
.dx-hero__pack,
.dx-hero__equity,
.dx-hero__actions { position: relative; z-index: 2; }

/* Reserve space on the right so the balance/actions don't sit on top of the moon */
@media (min-width: 640px) {
  .dx-hero__equity,
  .dx-hero__pack,
  .dx-hero__top { padding-right: 220px; }
}

/* Mobile: shrink the moon and tuck it into the top-right corner so it
   reads as decoration, not a content blocker. Lower opacity lets the
   balance text pass through it cleanly. */
@media (max-width: 640px) {
  .rx-moon-art {
    width: 110px;
    height: 110px;
    top: 6px;
    right: 6px;
    transform: none;
    opacity: .32;
    animation: none;
    z-index: 0;
  }
  .dx-hero__top { padding-right: 96px; } /* keep the LIVE pill clear */
}
@media (max-width: 420px) {
  .rx-moon-art {
    width: 86px;
    height: 86px;
    opacity: .25;
  }
}

/* Long balance numbers must wrap on narrow screens, not overflow */
.dx-hero__value {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.dx-hero__equity { max-width: 100%; min-width: 0; }

/* ═══════════════════════════════════════════════════════════
   ▒▒  FIXES — invisible button text + dropdown sub-items     ▒▒
   ═══════════════════════════════════════════════════════════ */

/* Trade button (and any wallet ghost-action) is an <a>, refine.css forces
   color: var(--rx-accent) !important on all <a>. Override per button. */
.dx-wallet__btn,
a.dx-wallet__btn,
.dx-wallet__btn--solid,
a.dx-wallet__btn--solid {
  color: var(--rx-text-2) !important;
  -webkit-text-fill-color: var(--rx-text-2) !important;
  text-decoration: none !important;
}
.dx-wallet__btn--solid,
a.dx-wallet__btn--solid {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.dx-wallet__btn--solid:hover,
a.dx-wallet__btn--solid:hover {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  /* No washout: keep the same gradient, deepen toward the cyan to lift
     text contrast and add a subtle outer glow. */
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-deep)) !important;
  box-shadow: 0 6px 18px -6px rgba(30,99,255,.45),
              inset 0 1px 0 rgba(255,255,255,.22);
  filter: none;
}
.dx-wallet__btn:hover,
a.dx-wallet__btn:hover {
  border: 0px;
}

/* Dashboard hero quick-action buttons — same fix in case any are <a> */
a.dx-hero__btn,
a.dx-hero__btn--primary {
  color: var(--rx-text) !important;
  -webkit-text-fill-color: var(--rx-text) !important;
  text-decoration: none !important;
}
a.dx-hero__btn--primary {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ── Desktop dropdown sub-items — bright white text ─────── */
@media (min-width: 768px) {
  /* Direct sub-items inside any dropdown (Trade, Virtual Card direct items;
     Asset's nested sub-sub items) */
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > a.dropdown-item:not(.dropdown-toggle),
  header .menu_list ul li .dropdown-container > .dropdown-menu .dropdown-submenu > a.dropdown-item:not(.dropdown-toggle),
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > .dropdown-menu .dropdown-item,
  header .menu_list ul li .dropdown-container .dropdown-menu .dropdown-item:not(.dropdown-toggle) {
    color: var(--rx-text) !important;
    -webkit-text-fill-color: var(--rx-text) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background: transparent !important;
    padding: 8px 12px !important;
    border-radius: var(--rx-r-xs) !important;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > a.dropdown-item:not(.dropdown-toggle):hover,
  header .menu_list ul li .dropdown-container > .dropdown-menu .dropdown-submenu > a.dropdown-item:not(.dropdown-toggle):hover,
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > .dropdown-menu .dropdown-item:hover,
  header .menu_list ul li .dropdown-container .dropdown-menu .dropdown-item:not(.dropdown-toggle):hover {
    background: var(--rx-accent-soft) !important;
    color: var(--rx-accent) !important;
    -webkit-text-fill-color: var(--rx-accent) !important;
  }

  /* Sub-toggle (Transaction Report, Earn History Report headers) */
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > a.dropdown-item.dropdown-toggle {
    color: var(--rx-text) !important;
    -webkit-text-fill-color: var(--rx-text) !important;
    font-weight: 700 !important;
  }
  header .menu_list ul li .dropdown-container > .dropdown-menu > .dropdown-submenu > a.dropdown-item.dropdown-toggle:hover {
    color: var(--rx-accent) !important;
    -webkit-text-fill-color: var(--rx-accent) !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  FAQ PAGE — accordion redesign                          ▒▒
   ═══════════════════════════════════════════════════════════ */

.page_bottom_content .announcements_cards_main.faq_acco {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
}

.page_bottom_content .faq_acco .announcements_card_single {
  background: var(--rx-surface-2) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-md) !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  transition: border-color .15s ease, background .15s ease;
  cursor: pointer;
  position: relative;
}
.page_bottom_content .faq_acco .announcements_card_single:hover {
  border-color: var(--rx-border-strong) !important;
  background: var(--rx-surface-3) !important;
}
.page_bottom_content .faq_acco .announcements_card_single.is-open,
.page_bottom_content .faq_acco .announcements_card_single:has(> .faq_answer:not([style*="display:none"])):not(:has(> .faq_answer[style*="display: none"])) {
  border-color: var(--rx-accent) !important;
  background: linear-gradient(180deg, rgba(30,99,255,.05), var(--rx-surface-2) 60%) !important;
}

/* Question row */
.page_bottom_content .faq_acco .anounce_title_sec {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  position: relative;
}
.page_bottom_content .faq_acco .anounce_title_sec::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: var(--rx-surface-3);
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-r-xs);
  color: var(--rx-muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: all .25s ease;
}
.page_bottom_content .faq_acco .announcements_card_single:has(> .faq_answer:not([style*="display:none"])):not(:has(> .faq_answer[style*="display: none"])) .anounce_title_sec::after {
  content: "−";
  color: #ffffff;
  background: var(--rx-accent);
  border-color: transparent;
  transform: rotate(180deg);
}

/* Question title */
.page_bottom_content .faq_acco .anounce_title {
  flex: 1;
  margin: 0 !important;
  padding: 0 !important;
  padding-right: 8px !important;
  font-family: var(--rx-font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--rx-text) !important;
  line-height: 1.45;
}
.page_bottom_content .faq_acco .announcements_card_single:hover .anounce_title {
  color: var(--rx-accent) !important;
}

/* Answer body — slide-down */
.page_bottom_content .faq_acco .faq_answer {
  background: var(--rx-bg-2) !important;
  border-top: 1px dashed var(--rx-border) !important;
  padding: 12px 16px 14px !important;
  margin: 0 !important;
}
.page_bottom_content .faq_acco .faq_answer p {
  font-family: var(--rx-font) !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  color: var(--rx-text-2) !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
}
.page_bottom_content .faq_acco .faq_answer a {
  color: var(--rx-accent) !important;
}

/* Empty state inside FAQ */
.page_bottom_content .faq_acco .nodata_main {
  background: var(--rx-bg-2) !important;
  border: 1px dashed var(--rx-border-mid) !important;
  border-radius: var(--rx-r-md) !important;
  padding: 36px 16px !important;
}

/* Stagger reveal of FAQ items */
.page_bottom_content .faq_acco .announcements_card_single {
  animation: tkRiseIn .35s cubic-bezier(.22,.61,.36,1) both;
}
.page_bottom_content .faq_acco .announcements_card_single:nth-child(1) { animation-delay: 0.04s; }
.page_bottom_content .faq_acco .announcements_card_single:nth-child(2) { animation-delay: 0.08s; }
.page_bottom_content .faq_acco .announcements_card_single:nth-child(3) { animation-delay: 0.12s; }
.page_bottom_content .faq_acco .announcements_card_single:nth-child(4) { animation-delay: 0.16s; }
.page_bottom_content .faq_acco .announcements_card_single:nth-child(5) { animation-delay: 0.20s; }
.page_bottom_content .faq_acco .announcements_card_single:nth-child(6) { animation-delay: 0.24s; }
.page_bottom_content .faq_acco .announcements_card_single:nth-child(n+7) { animation-delay: 0.28s; }

/* ═══════════════════════════════════════════════════════════
   ▒▒  FAQ — unscoped fallback + mobile clearance             ▒▒
   ═══════════════════════════════════════════════════════════ */

/* Unscoped fallback in case .page_bottom_content wrapper is missing */
.announcements_cards_main.faq_acco {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.faq_acco .announcements_card_single {
  background: var(--rx-surface-2) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-md) !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  transition: border-color .15s ease, background .15s ease;
  cursor: pointer;
  position: relative;
  color: var(--rx-text-2) !important;
}
.faq_acco .announcements_card_single:hover {
  border-color: var(--rx-border-strong) !important;
  background: var(--rx-surface-3) !important;
}
.faq_acco .anounce_title_sec {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  position: relative;
  background: transparent !important;
}
.faq_acco .anounce_title_sec::after {
  content: "+";
  display: inline-grid !important;
  place-items: center !important;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: var(--rx-surface-3) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-xs) !important;
  color: var(--rx-muted) !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: all .25s ease;
}
.faq_acco .announcements_card_single:has(> .faq_answer:not([style*="display:none"])):not(:has(> .faq_answer[style*="display: none"])) .anounce_title_sec::after {
  content: "−";
  color: #ffffff !important;
  background: var(--rx-accent) !important;
  border-color: transparent !important;
  transform: rotate(180deg);
}
.faq_acco .announcements_card_single:has(> .faq_answer:not([style*="display:none"])):not(:has(> .faq_answer[style*="display: none"])) {
  border-color: var(--rx-accent) !important;
  background: linear-gradient(180deg, rgba(30,99,255,.05), var(--rx-surface-2) 60%) !important;
}
.faq_acco .anounce_title {
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 8px 0 0 !important;
  font-family: var(--rx-font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--rx-text) !important;
  line-height: 1.45 !important;
  background: none !important;
  -webkit-text-fill-color: var(--rx-text) !important;
}
.faq_acco .announcements_card_single:hover .anounce_title {
  color: var(--rx-accent) !important;
  -webkit-text-fill-color: var(--rx-accent) !important;
}
.faq_acco .faq_answer {
  background: var(--rx-bg-2) !important;
  border-top: 1px dashed var(--rx-border) !important;
  padding: 12px 16px 14px !important;
  margin: 0 !important;
}
.faq_acco .faq_answer p {
  font-family: var(--rx-font) !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  color: var(--rx-text-2) !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  HISTORY — better empty state + footer clearance        ▒▒
   ═══════════════════════════════════════════════════════════ */

/* Empty-state row inside .history_table */
.history_table tbody tr td.nodata_main,
.history_table tbody tr td[colspan] {
  padding: 30px 16px !important;
  text-align: center !important;
  border: none !important;
  background: transparent !important;
}
.history_table tbody tr td .nodata,
.history_table tbody tr td.nodata_main .nodata {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  padding: 16px 0 !important;
}
.history_table tbody tr td .nodata figure,
.history_table tbody tr td.nodata_main .nodata figure {
  margin: 0 !important;
}
.history_table tbody tr td .nodata figure img,
.history_table tbody tr td.nodata_main .nodata figure img {
  max-width: 90px !important;
  opacity: .55;
  filter: brightness(.95) saturate(0);
}
.history_table tbody tr td .nodata article,
.history_table tbody tr td.nodata_main .nodata article {
  font-family: var(--rx-font) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: var(--rx-muted) !important;
  margin: 0 !important;
}

/* The empty rows showing as faint lines on Direct Payout History
   (header columns rendering vertical separators) — kill grid lines */
.history_table tbody tr:has(td.nodata_main),
.history_table tbody tr:has(td[colspan]),
.history_table tbody tr.no-card {
  background: transparent !important;
  border: none !important;
}
.history_table tbody tr:has(td.nodata_main) td,
.history_table tbody tr:has(td[colspan]) td {
  border: none !important;
  background: transparent !important;
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  MOBILE FOOTER CLEARANCE — fix overflow under nav menu  ▒▒
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
  body { padding-bottom: 50px !important; }

  .page_bottom_content,
  .page_bottom_content .container { padding-bottom: 24px; }

  /* Inline pagination (when JS hasn't moved it to the mount):
     full-width block under the list, no card chrome, system colors.
     Empty paginators collapse so they never become a ghost block. */
  .pagination-container {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    text-align: center !important;
    margin: 14px 0 18px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  .pagination-container .pagination {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
    max-width: 100%;
  }
  .pagination-container:not(:has(.pagination li)),
  .pagination-container:has(.pagination:empty) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
  }

  /* Defensive: any pagination markup that bleeds into a table row
     should reset to a full-width block, not sit between label and
     value of a flex card cell. */
  .history_table tbody tr td .pagination,
  .history_table tbody tr td .pagination-container,
  .history_table tbody .pagination,
  .history_table tbody .pagination-container {
    flex: 0 0 100% !important;
    width: 100% !important;
    margin: 8px 0 !important;
    padding: 0 !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    background: transparent !important;
    border: 0 !important;
  }
  .history_table tbody tr:has(.pagination),
  .history_table tbody tr:has(.pagination-container) {
    flex-wrap: wrap !important;
  }
}

/* ── Pagination mount (#tk-pag-mount) ────────────────────────
   Mobile: a single dedicated container at the end of the page
   wrapper houses the active paginator. Every other paginator on
   the page is hidden so it can't appear mid-content. */
.tk-pag-mount { display: none; }

@media (max-width: 640px) {
  /* (1) Hide every inline paginator outside the mount. */
  body .pagination-container,
  body ul.pagination,
  body ul.pagination li {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  /* (2) Re-enable ONLY inside #tk-pag-mount. The mount is anchored
        inside .main_content (see footer-links.php tkPagMount), so it
        sits in normal flow directly under the list — no body-floating,
        no mid-viewport drift. Transparent + system tokens — no card. */
  body #tk-pag-mount {
    display: block !important;
    visibility: visible !important;
    position: relative;
    z-index: 5;
    width: 100%;
    height: auto !important;
    margin: 14px 0 18px !important;
    padding: 0 12px !important;
    overflow: visible !important;
    background: transparent !important;
  }
  body #tk-pag-mount .pagination-container {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-align: center !important;
  }
  body #tk-pag-mount ul.pagination {
    display: inline-flex !important;
    visibility: visible !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
    list-style: none !important;
  }
  body #tk-pag-mount ul.pagination li {
    display: inline-flex !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* (3) Empty mount → fully collapse so a 1-page list never produces
        a ghost rectangle floating mid-screen. */
  body #tk-pag-mount:not(:has(ul.pagination li)),
  body #tk-pag-mount:has(ul.pagination:empty) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
  }
  body #tk-pag-mount .pagination-container:not(:has(.pagination li)) {
    display: none !important;
  }

  /* (4) Pagination buttons re-stated against system tokens so the
        mobile mount inherits the same chip look as desktop. */
  body #tk-pag-mount .pagination li a,
  body #tk-pag-mount .pagination li span {
    background: var(--rx-surface-2) !important;
    border: 1px solid var(--rx-border) !important;
    color: var(--rx-text-2) !important;
    font-family: var(--rx-font-mono) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: var(--rx-r-sm) !important;
    padding: 7px 12px !important;
    min-width: 34px !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all .12s ease !important;
  }
  body #tk-pag-mount .pagination li.active a,
  body #tk-pag-mount .pagination li.active span {
    background: var(--rx-accent-soft) !important;
    border-color: var(--rx-accent) !important;
    color: var(--rx-accent) !important;
  }
  body #tk-pag-mount .pagination li.disabled a,
  body #tk-pag-mount .pagination li.disabled span {
    color: var(--rx-faint) !important;
    background: transparent !important;
    border-color: var(--rx-divider) !important;
    pointer-events: none;
  }
}

/* Small-phone tighter */
@media (max-width: 540px) {
  body { padding-bottom: 84px !important; }

  .faq_acco .anounce_title_sec { padding: 12px 14px !important; }
  .faq_acco .anounce_title { font-size: 12.5px !important; line-height: 1.4 !important; }
  .faq_acco .faq_answer { padding: 10px 14px 12px !important; }
  .faq_acco .faq_answer p { font-size: 12px !important; }
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  HISTORY TABLES — uniform white text across all pages   ▒▒
   ═══════════════════════════════════════════════════════════ */

/* Desktop — values bright white, labels muted-uppercase (consistent) */
.history_table thead tr th,
.history_table_main table thead tr th,
.table.history_table thead tr th {
  color: var(--rx-muted) !important;
  font-family: var(--rx-font) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  background: var(--rx-surface-2) !important;
  border-bottom: 1px solid var(--rx-border) !important;
  padding: 12px 16px !important;
}
.history_table tbody tr td,
.history_table_main table tbody tr td,
.table.history_table tbody tr td {
  color: var(--rx-text) !important;
  -webkit-text-fill-color: var(--rx-text) !important;
  font-family: var(--rx-font) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--rx-border) !important;
  background: transparent !important;
}
.history_table tbody tr,
.history_table_main table tbody tr {
  background: transparent !important;
  transition: background .12s ease;
}
.history_table tbody tr:hover,
.history_table_main table tbody tr:hover {
  background: rgba(30,99,255,.04) !important;
}
.history_table tbody tr:nth-child(odd) {
  background: var(--rx-surface-1) !important;
}
.history_table tbody tr:nth-child(odd):hover {
  background: rgba(30,99,255,.06) !important;
}

/* Mono numerics for amount-like cells */
.history_table tbody tr td:nth-last-child(-n+3) {
  font-family: var(--rx-font-mono) !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -.005em;
}


/* ═══════════════════════════════════════════════════════════
   ▒▒  FOOTER CLEARANCE — ensure content not clipped on phones ▒▒
   ═══════════════════════════════════════════════════════════ */

/* Body padding so the last item is visible above the fixed footer menu.
   Footer is 90px tall (layout.css) — buffer covers it + safe-area.
   On desktop the footer is hidden, so reset layout.css's 100px bottom
   padding to 0 to remove the dead space below the copyright bar. */
@media (min-width: 992px) {
  body { padding-bottom: 0 !important; }
}
@media (max-width: 991px) {

  .page_bottom_content {
    padding-bottom: 0px !important;
  }
  .pagination-container {
    margin-bottom: 0px !important;
  }
  /* History pages — extra clearance so the last card never touches the
     footer even on dense lists / RTL languages. */
  .history_table_main,
  .history_table_main .table-responsive {
    padding-bottom: 24px !important;
  }
  .history_table tbody tr:last-child {
    margin-bottom: 16px !important;
  }
}



/* Footer pin — refine.css:825 has `header, .container, .container-fluid,
   footer { position: relative; z-index: 1; }` which overrides the
   position:fixed declared in layout.css. Without this re-pin, the footer
   sits in normal document flow and content renders around it instead of
   scrolling beneath. We restore fixed positioning + the dark, opaque,
   vertically-centered look. */
footer {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  background: linear-gradient(180deg, #2f6bff 0%, #0a4ee0 100%) !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
  border-top: 1px solid var(--rx-accent-deep) !important;
  display: flex !important;
  align-items: center !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}
@media (min-width: 992px) {
  /* responsive.css:66 hides the footer on desktop; keep it hidden — but
     since we just forced display:flex above, override it here for desktop. */
  footer { display: none !important; }
}
footer > .container {
  width: 100% !important;
}
footer .footer_menu {
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
}

/* Solid fade above the footer so the last card visually dims out instead
   of being clipped by the opaque bar. */
footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  height: 28px;
  background: linear-gradient(to top, var(--rx-bg, #ffffff) 25%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

/* Mobile footer items (HOME / ASSETS / TRADE / COMMUNITY / More) — white on blue */
footer .footer_menu ul li a,
footer .footer_menu ul li a *,
footer .footer_menu .footer_more_toggle,
footer .footer_menu .footer_more_toggle .more_text,
footer .footer_menu .more_dots span {
  color: #ffffff !important;
}
footer .footer_menu ul li a img,
footer .footer_menu .footer_more_toggle img {
  filter: brightness(0) invert(1) opacity(.95) !important;
}
footer .footer_menu ul li a.active,
footer .footer_menu ul li a:hover,
footer .footer_menu .footer_more_toggle:hover {
  color: #ffffff !important;
}
footer .footer_menu ul li a.active img,
footer .footer_menu ul li a:hover img {
  filter: brightness(0) invert(1) opacity(1) !important;
}
footer .footer_menu .more_dots span { background: #ffffff !important; }
/* Pop-up "more" dropdown above the footer — keep white surface, dark text */
footer .footer_menu .footer_more_dropdown_menu,
footer .footer_menu .footer_more_dropdown_menu * { color: var(--rx-text) !important; }
footer .footer_menu .footer_more_dropdown_item:hover { color: var(--rx-accent) !important; }
footer .footer_menu .footer_more_dropdown_item:hover .footer_more_dropdown_item_label { color: var(--rx-accent) !important; }

/* ═══════════════════════════════════════════════════════════
   ▒▒  TIER-2 PRIMITIVES — sparkline, empty state, sheet, atmos ▒▒
   ═══════════════════════════════════════════════════════════ */

/* ── Sortable .history_table headers ─────────────────────────
   Add data-sort="asc" / "desc" / "" on <th> to render the caret.
   No JS required for the indicator itself. */
.history_table thead th[data-sort] {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 18px !important;
  transition: color var(--rx-dur-fast) var(--rx-ease-snap);
}
.history_table thead th[data-sort]:hover { color: var(--rx-accent); }
.history_table thead th[data-sort]::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  background-image:
    linear-gradient(45deg, transparent 45%, currentColor 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, currentColor 45% 55%, transparent 55%);
  background-size: 8px 5px;
  background-position: 0 0, 0 100%;
  background-repeat: no-repeat;
  opacity: .35;
  transition: opacity var(--rx-dur-fast), transform var(--rx-dur-fast);
}
.history_table thead th[data-sort]:hover::after { opacity: .8; }
.history_table thead th[data-sort="asc"]::after {
  background-image: linear-gradient(45deg, transparent 45%, var(--rx-accent) 45% 55%, transparent 55%),
                    linear-gradient(-45deg, transparent 45%, var(--rx-accent) 45% 55%, transparent 55%);
  background-position: 0 0, 0 0;
  background-size: 8px 5px, 0 0;
  opacity: 1;
}
.history_table thead th[data-sort="desc"]::after {
  background-image: linear-gradient(45deg, transparent 45%, var(--rx-accent) 45% 55%, transparent 55%),
                    linear-gradient(-45deg, transparent 45%, var(--rx-accent) 45% 55%, transparent 55%);
  background-position: 0 100%, 0 100%;
  background-size: 0 0, 8px 5px;
  opacity: 1;
}

/* ── Empty state (.dx-empty) ─────────────────────────────────
   <div class="dx-empty">
     <div class="dx-empty__art">[svg/img]</div>
     <h4 class="dx-empty__title">…</h4>
     <p class="dx-empty__text">…</p>
     <a class="dx-empty__cta">…</a>  // optional
   </div> */
.dx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  gap: 10px;
  color: var(--rx-muted);
}
.dx-empty__art {
  width: 96px; height: 96px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
              var(--rx-accent-soft) 0%,
              transparent 65%);
  color: var(--rx-accent);
  margin-bottom: 4px;
  position: relative;
}
.dx-empty__art::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed var(--rx-border);
  opacity: .6;
  animation: dx-empty-orbit 18s linear infinite;
}
@keyframes dx-empty-orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .dx-empty__art::after { animation: none; }
}
.dx-empty__art svg, .dx-empty__art img {
  width: 48px; height: 48px;
  stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.dx-empty__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--rx-text);
  letter-spacing: -.005em;
}
.dx-empty__text {
  margin: 0;
  max-width: 36ch;
  font-size: 12px;
  line-height: 1.5;
  color: var(--rx-muted);
}
.dx-empty__cta {
  margin-top: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--rx-r-sm);
  border: 1px solid var(--rx-border-strong);
  background: var(--rx-surface-2);
  color: var(--rx-text) !important;
  text-decoration: none !important;
  transition: all var(--rx-dur-fast) var(--rx-ease-snap);
}
.dx-empty__cta:hover {
  border-color: var(--rx-accent);
  color: var(--rx-accent) !important;
  background: var(--rx-surface-3);
}

/* Make .dx-empty also style legacy .nodata blocks for free, since
   the existing markup uses .nodata + figure + article. */
.nodata,
.modal-body .nodata,
.nodata_main .nodata {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  gap: 8px;
  color: var(--rx-muted);
}
.nodata figure {
  width: 96px; height: 96px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--rx-accent-soft) 0%, transparent 65%);
  margin: 0 0 4px;
  position: relative;
}
.nodata figure::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed var(--rx-border);
  opacity: .6;
  animation: dx-empty-orbit 18s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .nodata figure::after { animation: none; }
}
.nodata figure img {
  max-width: 56px !important;
  max-height: 56px !important;
  opacity: .75 !important;
  filter: drop-shadow(0 0 12px var(--rx-accent-glow));
}
.nodata article {
  margin: 0 !important;
  font-size: 12px !important;
  color: var(--rx-muted) !important;
  max-width: 36ch;
  line-height: 1.5;
}

/* ── Background atmosphere (auth pages only — keep dashboard
   surfaces flat to avoid blend-mode interactions with overlays) ─
   The auth-page mesh below is opt-in via a class. The previous
   body::before noise + dx-hero::after constellation were removed
   because their blend modes interfered with the mobile menu text. */

/* Auth pages — slow-drifting gradient mesh */
.au-page,
.au-mesh {
  position: relative;
  isolation: isolate;
}
.au-page::before,
.au-mesh::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(40% 35% at 18% 22%, rgba(30,99,255,.18), transparent 70%),
    radial-gradient(35% 30% at 82% 12%, rgba(110,160,255,.12), transparent 70%),
    radial-gradient(45% 40% at 78% 78%, rgba(30,99,255,.10), transparent 70%),
    radial-gradient(30% 25% at 28% 88%, rgba(61,126,255,.10), transparent 70%);
  filter: blur(8px) saturate(1.05);
  animation: rx-mesh-drift 22s ease-in-out infinite alternate;
}
@keyframes rx-mesh-drift {
  0%   { transform: translate3d(0,0,0)    scale(1);   }
  50%  { transform: translate3d(2%, -1%, 0) scale(1.04); }
  100% { transform: translate3d(-1.5%, 2%, 0) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .au-page::before, .au-mesh::before { animation: none; }
}

/* ── Bottom-sheet primitive (.rx-sheet) ──────────────────────
   Drop-in mobile drawer. JS in web/js/rx-sheet.js toggles
   .is-open on the sheet element. ESC and backdrop click close.
   Works on all sizes; deliberately smaller on desktop. */
.rx-sheet {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  max-height: 90dvh;
  background: var(--rx-surface-1);
  border-top: 1px solid var(--rx-border);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -16px 40px -12px rgba(0,0,0,.7);
  transform: translateY(100%);
  transition: transform var(--rx-dur-base) var(--rx-ease-soft);
  visibility: hidden;
  pointer-events: none;
}
.rx-sheet.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.rx-sheet__handle {
  align-self: center;
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: var(--rx-border-strong);
  margin: 8px 0 4px;
  cursor: grab;
}
.rx-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 18px 10px;
  border-bottom: 1px solid var(--rx-divider);
}
.rx-sheet__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--rx-text);
}
.rx-sheet__close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--rx-surface-3);
  border: 1px solid var(--rx-border);
  border-radius: 50%;
  color: var(--rx-text-2);
  cursor: pointer;
  padding: 0;
  transition: all var(--rx-dur-fast) var(--rx-ease-snap);
}
.rx-sheet__close:hover { color: var(--rx-accent); border-color: var(--rx-accent); }
.rx-sheet__close svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rx-sheet__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 18px 22px;
  -webkit-overflow-scrolling: touch;
}

.rx-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(2, 6, 12, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--rx-dur-base) var(--rx-ease-soft), visibility var(--rx-dur-base);
}
.rx-sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* On wider screens, center the sheet as a modal-ish card */
@media (min-width: 768px) {
  .rx-sheet {
    inset: auto 50% 0 auto;
    transform: translate(50%, 100%);
    max-width: 480px;
    width: calc(100% - 32px);
    margin: 0 auto;
    bottom: 24px;
    border-radius: 16px;
    border: 1px solid var(--rx-border);
  }
  .rx-sheet.is-open { transform: translate(50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .rx-sheet { transition: none; }
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  LIGHT/BLUE THEME CORRECTIONS — must win specificity    ▒▒
   These ride at the bottom of the file so they beat earlier
   declarations regardless of selector specificity.
   ═══════════════════════════════════════════════════════════ */

/* ── Hero (dx + acct): white text on royal-blue gradient ──── */
.dx-hero,
.dx-hero .dx-hero__pack,
.dx-hero .dx-hero__pulse,
.acct-hero,
.acct-hero .acct-hero__name,
.acct-hero .acct-hero__id,
.acct-hero .acct-hero__id * { color: #ffffff !important; }

.dx-hero .dx-hero__label,
.dx-hero .dx-hero__symbol,
.acct-hero .acct-hero__email,
.acct-hero .acct-hero__sub,
.acct-hero [class*="__sub"],
.acct-hero [class*="__label"] { color: rgba(255,255,255,.78) !important; }

.dx-hero .dx-hero__greet,
.dx-hero .dx-hero__greet * { color: rgba(255,255,255,.85) !important; }
.dx-hero .dx-hero__greet strong { color: #ffffff !important; }

/* Hero balance — solid white, drop the now-invisible blue gradient */
.dx-hero .dx-hero__value,
.acct-hero [class*="__balance"],
.acct-hero [class*="__amount"] {
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  text-shadow: 0 2px 16px rgba(0,0,0,.18) !important;
}
.dx-hero .dx-hero__eye { color: rgba(255,255,255,.85) !important; }
.dx-hero .dx-hero__eye:hover,
.dx-hero .dx-hero__eye:focus-visible { color: #ffffff !important; }

/* Hero action buttons: white pill + blue text, on the blue hero */
.dx-hero .dx-hero__btn,
.dx-hero a.dx-hero__btn {
  background: rgba(255,255,255,.95) !important;
  color: var(--rx-accent) !important;
  border: 1px solid rgba(255,255,255,.6) !important;
  text-shadow: none !important;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.25) !important;
}
.dx-hero .dx-hero__btn:hover,
.dx-hero a.dx-hero__btn:hover {
  background: #ffffff !important;
  color: var(--rx-accent-deep) !important;
  border-color: #ffffff !important;
}
.dx-hero .dx-hero__btn--primary,
.dx-hero a.dx-hero__btn--primary {
  background: #ffffff !important;
  color: var(--rx-accent) !important;
  border-color: #ffffff !important;
  box-shadow: 0 8px 22px -8px rgba(0,0,0,.3) !important;
}
.dx-hero .dx-hero__btn--primary:hover,
.dx-hero a.dx-hero__btn--primary:hover {
  background: #ffffff !important;
  color: var(--rx-accent-deep) !important;
}

/* ── Desktop nav: force white menu links on the blue header ──
   Scoped to desktop only — the mobile drawer (<992px) uses its own
   light-surface drawer styling, so white text would be invisible there. */
@media (min-width: 992px) {
  body header .header .menu_list ul li a,
  body header .header .menu_list ul li > a,
  body header .header .menu_list ul li .main-drop,
  body header .header .menu_list ul li a.main-drop,
  body header .header .menu_list ul li .dropdown-toggle,
  body header .header .menu_list ul li a:not([href]),
  body header .header .menu_list ul li a:not([tabindex]),
  body header .header .menu_text,
  body header .header .menu_list .lan,
  body header .header .menu_list .lan * {
    color: #ffffff !important;
  }
  /* Caret (˅) on dropdown triggers — also white */
  body header .header .menu_list ul li .main-drop::after,
  body header .header .menu_list ul li .dropdown-container > .main-drop::after,
  body header .header .menu_list ul li .dropdown.dropdown-container::after,
  body header .header .menu_list ul li .lan .dark_arrow::after {
    border-top-color: #ffffff !important;
    color: #ffffff !important;
  }
  /* Hover (only when NOT active/open): translucent white pill, white text */
  body header .header .menu_list ul li a:not(.active):hover,
  body header .header .menu_list ul li .main-drop:not(.active):hover {
    background: rgba(255,255,255,.22) !important;
    color: #ffffff !important;
  }
  /* Active (current page) AND open-dropdown: white pill, royal-blue text.
     Literal hex + -webkit-text-fill-color used so no upstream rule
     (text-fill-color via background-clip etc.) can hide the label. */
  html body header .header .menu_list ul li a.active,
  html body header .header .menu_list ul li a.active:hover,
  html body header .header .menu_list ul li .main-drop.active,
  html body header .header .menu_list ul li .main-drop.active:hover,
  html body header .header .menu_list ul li .dropdown-container.show > .main-drop,
  html body header .header .menu_list ul li .main-drop[aria-expanded="true"] {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #2f6bff !important;
    -webkit-text-fill-color: #2f6bff !important;
    border-color: #ffffff !important;
  }
  html body header .header .menu_list ul li a.active *,
  html body header .header .menu_list ul li .main-drop.active *,
  html body header .header .menu_list ul li .dropdown-container.show > .main-drop *,
  html body header .header .menu_list ul li .main-drop[aria-expanded="true"] * {
    color: #2f6bff !important;
    -webkit-text-fill-color: #2f6bff !important;
  }
  html body header .header .menu_list ul li a.active::after,
  html body header .header .menu_list ul li .main-drop.active::after,
  html body header .header .menu_list ul li .dropdown-container.show > .main-drop::after,
  html body header .header .menu_list ul li .main-drop[aria-expanded="true"]::after {
    border-top-color: #2f6bff !important;
    border-right-color: #2f6bff !important;
    border-bottom-color: #2f6bff !important;
    color: #2f6bff !important;
  }
  /* Dropdown panel that opens from the nav: keep light bg + dark items */
  body header .header .menu_list ul li .dropdown-menu,
  body header .header .menu_list ul li .dropdown-menu * {
    color: var(--rx-text) !important;
  }
  body header .header .menu_list ul li .dropdown-menu .dropdown-item:hover {
    color: var(--rx-accent) !important;
    background: var(--rx-accent-soft) !important;
  }
  /* Logout link — ghost outline on blue header (white pill, red text);
     fills red on hover. */
  body header .header .menu_list ul li .logout_link,
  body header .header .menu_list ul li > a.logout_link {
    background: #ffffff !important;
    color: var(--rx-bad) !important;
    border: 1px solid var(--rx-bad) !important;
  }
  body header .header .menu_list ul li .logout_link:hover,
  body header .header .menu_list ul li > a.logout_link:hover {
    background: var(--rx-bad) !important;
    color: #ffffff !important;
    border-color: var(--rx-bad) !important;
  }
  /* Lang select on blue header — white pill */
  body header .header .menu_list .lan .drop_with_icon,
  body header .header .menu_list .lan .select2-selection {
    background: rgba(255,255,255,.95) !important;
    color: var(--rx-accent) !important;
    border-color: rgba(255,255,255,.5) !important;
  }
  body header .header .menu_list .lan .drop_with_icon *,
  body header .header .menu_list .lan .select2-selection * {
    color: var(--rx-accent) !important;
  }
}

/* ── Mobile drawer (<992px): keep dark text on light surface ──
   The drawer slides in over the page on small screens; its own
   styling already gives a light background, so make sure dropdown
   triggers (Asset / Trade / Virtual Card) keep dark text and the
   carets stay visible. */
@media (max-width: 991.98px) {
  body header .header .menu_list ul li a,
  body header .header .menu_list ul li > a,
  body header .header .menu_list ul li .main-drop,
  body header .header .menu_list ul li a.main-drop,
  body header .header .menu_list ul li .dropdown-toggle,
  body header .header .menu_list ul li a:not([href]),
  body header .header .menu_list ul li a:not([tabindex]),
  body header .header .menu_text {
    color: var(--rx-text) !important;
  }
  body header .header .menu_list ul li .main-drop::after,
  body header .header .menu_list ul li .dropdown-container > .main-drop::after,
  body header .header .menu_list ul li .dropdown.dropdown-container::after {
    border-top-color: var(--rx-text-2) !important;
    color: var(--rx-text-2) !important;
  }
  body header .header .menu_list ul li a.active,
  body header .header .menu_list ul li .main-drop.active {
    color: var(--rx-accent) !important;
  }
}

/* ── Card secondary buttons: outline-blue (Collect Profit, Unstake, etc.) ── */
.dx-wallet__btn:not(.dx-wallet__btn--solid) {
  background: #ffffff !important;
  color: var(--rx-accent) !important;
  border: 1px solid var(--rx-accent) !important;
}
.dx-wallet__btn:not(.dx-wallet__btn--solid):hover {
  background: var(--rx-accent-soft) !important;
  color: var(--rx-accent-deep) !important;
  border-color: var(--rx-accent-deep) !important;
}

/* ── BALANCE-style alt cards: ensure value numbers are royal blue ── */
.dx-wallet__num,
.dx-promo__value,
.acct-stat__value,
[class*="__balance"] .num,
[class*="__bal-num"],
[class*="card__amount"] {
  color: var(--rx-accent) !important;
}

/* ═══════════════════════════════════════════════════════════════
   ▒▒  OPEN-ORDER + TRADE CTA — Binance-grade refinement          ▒▒
   ───────────────────────────────────────────────────────────────
   Mature, exchange-floor density. Flatter geometry, hairline rules,
   mono numerics, semantic-only color, and a Trade CTA that reads
   as a real action chip instead of a glossy gradient pill. Builds
   on the existing .ot-* contract — no markup changes.
   ═══════════════════════════════════════════════════════════════ */

/* Card — drop the gradient surface, sharper border, contained hover */
.ot-card {
  background: var(--rx-surface-1) !important;
  border: 1px solid var(--rx-border) !important;
  border-radius: var(--rx-r-sm) !important;
  box-shadow: 0 1px 0 var(--rx-divider) !important;
  transition: border-color .14s var(--rx-ease-snap, ease),
              box-shadow .14s var(--rx-ease-snap, ease) !important;
}
.ot-card::before {
  /* 2px top accent rail — defines the card as a tradeable instrument */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--rx-accent) 0%,
    var(--rx-accent-2) 55%,
    transparent 100%);
  opacity: .9;
  pointer-events: none;
  border-top-left-radius: var(--rx-r-sm);
  border-top-right-radius: var(--rx-r-sm);
}
.ot-card:hover {
  border-color: var(--rx-accent) !important;
  box-shadow:
    0 0 0 1px var(--rx-accent-soft),
    0 6px 18px -12px rgba(30,99,255,.45) !important;
  transform: none !important;
}

/* Header — tighter, hairline divider, ticker chip with edge stripe */
.ot-card__head {
  padding: 11px 12px 10px !important;
  border-bottom: 1px solid var(--rx-divider) !important;
}
.ot-card__pill {
  position: relative;
  background: var(--rx-surface-2) !important;
  border: 1px solid var(--rx-border) !important;
  color: var(--rx-accent-deep) !important;
  font-family: var(--rx-font-mono) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  padding-left: 10px !important;
  padding-right: 9px !important;
  height: 24px !important;
  min-width: 0 !important;
  border-radius: var(--rx-r-xs) !important;
  overflow: hidden;
}
.ot-card__pill::before {
  /* edge stripe — Binance ticker tag tell */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--rx-accent);
}
.ot-card__pair {
  font-family: var(--rx-font-display) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: -.005em !important;
  color: var(--rx-text) !important;
}

/* Timer — strip the surface card, make it an inline rail */
.ot-card__timer {
  margin: 10px 12px 8px !important;
  padding: 6px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--rx-divider) !important;
  border-radius: 0 !important;
}
.ot-card__timer::before {
  /* short accent dash — replaces the left rail */
  left: 0; top: 50% !important;
  width: 14px !important;
  height: 2px !important;
  transform: translateY(-50%);
  background: var(--rx-accent) !important;
  border-radius: 2px;
}
.ot-card__timer-label {
  padding-left: 22px;
  font-family: var(--rx-font) !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: var(--rx-muted) !important;
}
.ot-card__timer-display .time-box {
  background: transparent !important;
  border: 0 !important;
  color: var(--rx-text) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 0 1px !important;
  min-width: 18px !important;
}
.ot-card__timer-display .colon {
  color: var(--rx-faint) !important;
  font-weight: 500 !important;
}

/* Stats — hairline solid rules, eyebrow keys, monolith values */
.ot-stats { padding: 4px 12px 6px !important; }
.ot-stat {
  padding: 9px 0 !important;
  border-bottom: 1px solid var(--rx-divider) !important;
  font-size: 11.5px;
}
.ot-stat__k {
  font-family: var(--rx-font) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: var(--rx-muted) !important;
}
.ot-stat__v {
  font-family: var(--rx-font-mono) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: -.01em !important;
  color: var(--rx-text) !important;
}
.ot-stat__v--big {
  font-size: 14.5px !important;
  font-weight: 700 !important;
}
.ot-stat__v--good { color: var(--rx-good) !important; }
.ot-stat__v--bad  { color: var(--rx-bad)  !important; }
.ot-stat__sym {
  font-family: var(--rx-font-mono) !important;
  font-size: 9.5px !important;
  font-weight: 600 !important;
  color: var(--rx-faint) !important;
  letter-spacing: .04em !important;
  margin-left: 4px !important;
}
.ot-stat--clickable:hover {
  background: var(--rx-accent-soft) !important;
}

/* Exchange-rate chip — tighter, no shadow, semantic-only color */
.ot-rate {
  padding: 2px 7px !important;
  font-size: 11px !important;
  border-radius: var(--rx-r-xs) !important;
  min-width: 64px !important;
  letter-spacing: -.01em !important;
}

/* Progress — 2px hairline, gradient fill, no glow halo */
.ot-card__progress { margin: 4px 12px 12px !important; }
.ot-progress {
  height: 2px !important;
  background: var(--rx-surface-3) !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.ot-progress__fill {
  border-radius: 0 !important;
  background: linear-gradient(90deg,
    var(--rx-accent-deep) 0%,
    var(--rx-accent) 50%,
    var(--rx-accent-2) 100%) !important;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
}
.ot-progress__fill::after {
  /* travelling shimmer — a single mature highlight, not a disco light */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.55) 50%,
    transparent 100%);
  transform: translateX(-100%);
  animation: ot-progress-sheen 3.6s ease-in-out infinite;
  animation-delay: 1.4s;
}
@keyframes ot-progress-sheen {
  0%, 30%   { transform: translateX(-100%); }
  60%, 100% { transform: translateX(140%); }
}
.ot-card__progress-label {
  font-size: 9.5px !important;
  letter-spacing: .14em !important;
  font-weight: 700 !important;
  color: var(--rx-muted) !important;
}
.ot-card__progress-pct {
  font-family: var(--rx-font-mono) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: var(--rx-text) !important;
}

/* Footer — neutral, tighter, sharper pay chips */
.ot-card__foot {
  padding: 8px 12px 10px !important;
  background: var(--rx-surface-2) !important;
  border-top: 1px solid var(--rx-divider) !important;
}
.ot-pay__btn {
  width: 34px !important;
  height: 22px !important;
  border-radius: var(--rx-r-xs) !important;
  background: var(--rx-surface-1) !important;
}
.ot-pay__btn:hover {
  border-color: var(--rx-accent) !important;
  transform: none !important;
}

/* ── Trade CTA — the headliner ──────────────────────────────────
   Solid royal-blue chip with a 1px inset top highlight for depth.
   No drop shadow, no gradient fill — the chip is the action, not
   an ornament. Uppercase mono caps, sharp 4px radius, focus ring
   for keyboard. Disabled state is fully muted (no false-positive
   color), and the arrow slides on hover for kinetic feedback. */
.ot-btn--primary {
  background: linear-gradient(135deg, var(--rx-accent-2) 0%, var(--rx-accent-2) 100%) !important;
  color: #ffffff !important;
  border: 1px solid var(--rx-accent-deep) !important;
  border-radius: var(--rx-r-xs) !important;
  padding: 7px 13px !important;
  min-height: 30px !important;
  font-family: var(--rx-font-mono) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(0,0,0,.10) !important;
  transition:
    background .14s var(--rx-ease-snap, ease),
    border-color .14s var(--rx-ease-snap, ease),
    transform .08s ease,
    box-shadow .14s ease !important;
  filter: none !important;
}
.ot-btn--primary svg {
  width: 12px !important;
  height: 12px !important;
  stroke-width: 2.5 !important;
  margin-left: 2px;
}
.ot-btn--primary:hover:not(:disabled),
.ot-btn--primary:focus:not(:disabled) {
  background: var(--rx-accent-deep) !important;
  border-color: var(--rx-accent-deep) !important;
  filter: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 0 3px var(--rx-accent-soft) !important;
}
.ot-btn--primary:hover:not(:disabled) svg { transform: translateX(3px) !important; }
.ot-btn--primary:active:not(:disabled) {
  transform: translateY(1px) scale(.98);
  box-shadow:
    inset 0 2px 3px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(0,0,0,.10) !important;
}
.ot-btn--primary:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 0 0 3px var(--rx-accent-glow, rgba(30,99,255,.32)) !important;
}
.ot-btn--primary:disabled,
.ot-btn--primary[disabled] {
  background: var(--rx-surface-3) !important;
  color: var(--rx-faint) !important;
  border-color: var(--rx-border) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  filter: grayscale(.2);
}
.ot-btn--primary:disabled svg,
.ot-btn--primary[disabled] svg { opacity: .55; }

/* Claim (gold) CTA — same geometry, gold semantic — keep the brand
   warning ramp but match the sharper geometry of the primary. */
.ot-btn--gold {
  background: var(--rx-warn) !important;
  color: #1a1206 !important;
  border: 1px solid #c79806 !important;
  border-radius: var(--rx-r-xs) !important;
  padding: 7px 13px !important;
  min-height: 30px !important;
  font-family: var(--rx-font-mono) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -1px 0 rgba(0,0,0,.10) !important;
  filter: none !important;
}
.ot-btn--gold:hover {
  background: #ffce4d !important;
  filter: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 0 0 3px rgba(240,185,11,.25) !important;
}
.ot-btn--gold:active {
  transform: translateY(1px) scale(.98);
  box-shadow: inset 0 2px 3px rgba(0,0,0,.18) !important;
}

/* Mobile — keep the same density principles, slightly larger touch */
@media (max-width: 540px) {
  .ot-card__pair { font-size: 13.5px !important; }
  .ot-btn--primary, .ot-btn--gold {
    padding: 8px 14px !important;
    min-height: 32px !important;
    font-size: 11px !important;
  }
  .ot-card__head { padding: 12px 12px 10px !important; }
  .ot-stat { padding: 10px 0 !important; }
}

/* Reduced motion — kill the shimmer, kill the slide */
@media (prefers-reduced-motion: reduce) {
  .ot-progress__fill::after { animation: none; opacity: 0; }
  .ot-btn--primary:hover:not(:disabled) svg { transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   ▒▒  AUTH — WHITE THEME REVAMP                              ▒▒
   ▒▒  Login · Register · Forgot · Reset · Force-change       ▒▒
   ▒▒  Refined editorial light theme: frosted-white card on   ▒▒
   ▒▒  the moon photo backdrop. Premium-banking aesthetic.    ▒▒
   ═══════════════════════════════════════════════════════════ */

/* Backdrop: keep the original dark moon photo + vignette + dust grain
   from the existing .au-shell--moonbg / ::before rules. Only the form
   surface, controls, and chrome get the white treatment below. */

/* ── Form card: frosted white glass with brand top accent ── */
.au-shell--moonbg .au-form,
.au-shell--moonbg .au-form.au-form--wide {
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.88)) !important;
  border: 1px solid rgba(15,23,42,.07) !important;
  -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
          backdrop-filter: blur(28px) saturate(160%) !important;
  box-shadow:
    0 32px 80px -22px rgba(15,23,42,.22),
    0 12px 28px -10px rgba(30,99,255,.10),
    inset 0 1px 0 rgba(255,255,255,.95) !important;
  position: relative;
  overflow: hidden;
}
.au-shell--moonbg .au-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--rx-accent-2) 22%,
    var(--rx-accent) 55%,
    var(--rx-accent-deep) 80%,
    transparent 100%);
  opacity: .9;
  pointer-events: none;
}
.au-shell--moonbg .au-form::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 120px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,
    transparent, rgba(30,99,255,.55), transparent);
  filter: blur(3px);
  pointer-events: none;
}

/* ── Form head ────────────────────────────────────────────── */
.au-shell--moonbg .au-form__head {
  border-bottom: 1px solid rgba(15,23,42,.07) !important;
}
.au-shell--moonbg .au-form__title {
  color: var(--rx-text) !important;
  letter-spacing: -.015em !important;
}
.au-shell--moonbg .au-form__sub {
  color: var(--rx-muted) !important;
  font-family: var(--rx-font-mono) !important;
  font-size: 10px !important;
  letter-spacing: .14em !important;
}
.au-shell--moonbg .au-form__bar {
  background: linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-deep)) !important;
  box-shadow: 0 0 12px rgba(30,99,255,.55);
}

/* ── Fields: cream surfaces, dark ink ─────────────────────── */
.au-shell--moonbg .au-field {
  background: rgba(248,250,253,.85) !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}
.au-shell--moonbg .au-field:hover {
  border-color: rgba(30,99,255,.35) !important;
  background: rgba(252,253,255,.95) !important;
}
.au-shell--moonbg .au-field:focus-within {
  background: #ffffff !important;
  border-color: var(--rx-accent) !important;
  box-shadow:
    0 0 0 3px rgba(30,99,255,.14),
    0 1px 2px rgba(15,23,42,.04) !important;
}
.au-shell--moonbg .au-field__label {
  color: var(--rx-muted) !important;
  font-weight: 700 !important;
}
.au-shell--moonbg .au-field__control,
.au-shell--moonbg .au-field input.form-control {
  color: var(--rx-text) !important;
  background: transparent !important;
}
.au-shell--moonbg .au-field input::placeholder {
  color: rgba(15,23,42,.32) !important;
}
.au-shell--moonbg .au-field input[type="password"] {
  color: var(--rx-text) !important;
}

/* Eye toggle + suffix icons: dark-ink with hover-blue */

/* Captcha controls */
.au-shell--moonbg .au-field--captcha .renewCaptcha {
  border: 1px solid rgba(15,23,42,.10) !important;
  background: #ffffff !important;
  border-radius: var(--rx-r-xs);
}
.au-shell--moonbg .au-field--captcha .au-field__refresh {
  border: 1px solid rgba(15,23,42,.10) !important;
  background: #ffffff !important;
}
.au-shell--moonbg .au-field--captcha .au-field__refresh:hover {
  border-color: var(--rx-accent) !important;
  background: var(--rx-accent-soft) !important;
}

/* ── Remember-me + forgot link row ────────────────────────── */
.au-shell--moonbg .au-meta__remember {
  color: var(--rx-text-2) !important;
}
.au-shell--moonbg .au-meta__remember input[type="checkbox"] {
  background: #ffffff !important;
  border: 1.5px solid rgba(15,23,42,.22) !important;
}
.au-shell--moonbg .au-meta__remember input[type="checkbox"]:hover {
  border-color: var(--rx-accent) !important;
}
.au-shell--moonbg .au-meta__remember input[type="checkbox"]:checked {
  background: var(--rx-accent) !important;
  border-color: var(--rx-accent) !important;
  box-shadow: 0 0 0 3px rgba(30,99,255,.16);
}
.au-shell--moonbg .au-meta__remember input[type="checkbox"]:checked::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}
.au-shell--moonbg .au-meta__link,
.au-shell--moonbg .au-meta__link a {
  color: var(--rx-accent) !important;
  -webkit-text-fill-color: var(--rx-accent) !important;
  font-weight: 600 !important;
}
.au-shell--moonbg .au-meta__link a:hover {
  color: var(--rx-accent-deep) !important;
  -webkit-text-fill-color: var(--rx-accent-deep) !important;
}

/* ── Primary CTA: glossy royal-blue, premium pop on white ─ */
.au-shell--moonbg .au-cta {
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 38%), linear-gradient(180deg, var(--rx-accent-2), var(--rx-accent-2)) !important;
  box-shadow: 0 6px 18px -6px rgba(30, 99, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .22);
  border: 1px solid rgba(10,78,224,.55) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(10,40,120,.25);
  transition: transform .15s var(--rx-ease-snap, ease),
              box-shadow .2s ease,
              filter .15s ease !important;
}
/* ── Footer link area ─────────────────────────────────────── */
.au-shell--moonbg .au-foot {
  color: var(--rx-text-2) !important;
  display: block !important;
  text-align: center !important;
  max-width: none !important;
  margin: 8px auto 0 !important;
}
/* Override desktop .landing_footer flex-column that was breaking
   the inline "Already have an account? Back to Login" layout */
.au-shell--moonbg .au-foot.landing_footer {
  display: block !important;
  flex-direction: row !important;
  align-items: center !important;
}
.au-shell--moonbg .au-foot a,
.au-shell--moonbg .au-foot .landing_link a {
  color: var(--rx-accent) !important;
  -webkit-text-fill-color: var(--rx-accent) !important;
  font-weight: 700 !important;
  position: relative;
  padding-bottom: 1px;
  background-image: linear-gradient(var(--rx-accent), var(--rx-accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .25s var(--rx-ease-soft, ease) !important;
}
.au-shell--moonbg .au-foot a:hover,
.au-shell--moonbg .au-foot .landing_link a:hover {
  color: var(--rx-accent-deep) !important;
  -webkit-text-fill-color: var(--rx-accent-deep) !important;
  background-size: 100% 1px;
}

/* ── Big brand wordmark above the card ────────────────────── */
.au-shell--moonbg .au-bigbrand {
  filter:
    drop-shadow(0 8px 22px rgba(15,23,42,.18))
    drop-shadow(0 0 22px rgba(30,99,255,.22));
  transition: transform .25s var(--rx-ease-rise, ease);
}
.au-shell--moonbg .au-bigbrand:hover { transform: scale(1.04) translateY(-1px); }
.au-shell--moonbg .au-bigbrand img { filter: none !important; }

/* ── Floating language picker: light pill, glassy ─────────── */
.au-shell--moonbg .au-lang .drop_with_icon {
  background: rgba(255,255,255,.85) !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 6px 16px -6px rgba(15,23,42,.12);
}
.au-shell--moonbg .au-lang .drop_with_icon::after {
  border-right-color: var(--rx-text-2) !important;
  border-bottom-color: var(--rx-text-2) !important;
}
.au-shell--moonbg .au-lang select.form-control,
.au-shell--moonbg .au-lang select.currency-select {
  color: var(--rx-text) !important;
  font-weight: 600 !important;
}
.au-shell--moonbg .au-lang select option {
  background: #ffffff;
  color: var(--rx-text);
}

/* ── Toasts on white auth ─────────────────────────────────── */
body:has(.au-shell--moonbg) .toast-container .toast,
body:has(.au-shell--moonbg) .toast-container > .toast#toast-success,
body:has(.au-shell--moonbg) .toast-container > .toast#toast-failed {
  background: rgba(255,255,255,.96) !important;
  color: var(--rx-text) !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  box-shadow: 0 24px 48px -16px rgba(15,23,42,.22) !important;
  -webkit-backdrop-filter: blur(14px) saturate(160%);
          backdrop-filter: blur(14px) saturate(160%);
}
body:has(.au-shell--moonbg) .toast-container > .toast#toast-success {
  border-left: 3px solid var(--rx-good) !important;
}
body:has(.au-shell--moonbg) .toast-container > .toast#toast-failed {
  border-left: 3px solid var(--rx-bad) !important;
}

/* ── Entrance choreography: staggered reveal on page load ── */
@keyframes au-rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes au-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.au-shell--moonbg .au-bigbrand {
  animation: au-rise-in .65s var(--rx-ease-rise, cubic-bezier(.22,.61,.36,1)) both;
  animation-delay: .05s;
}
.au-shell--moonbg .au-form {
  animation: au-rise-in .75s var(--rx-ease-rise, cubic-bezier(.22,.61,.36,1)) both;
  animation-delay: .14s;
}
.au-shell--moonbg .au-form > .au-form__head { animation: au-fade-in .55s ease-out .34s both; }
.au-shell--moonbg .au-fields > .au-field    { animation: au-rise-in .55s var(--rx-ease-rise, cubic-bezier(.22,.61,.36,1)) both; }
.au-shell--moonbg .au-fields > .au-field:nth-child(1) { animation-delay: .40s; }
.au-shell--moonbg .au-fields > .au-field:nth-child(2) { animation-delay: .48s; }
.au-shell--moonbg .au-fields > .au-field:nth-child(3) { animation-delay: .56s; }
.au-shell--moonbg .au-fields > .au-field:nth-child(4) { animation-delay: .64s; }
.au-shell--moonbg .au-fields > .au-field:nth-child(5) { animation-delay: .72s; }
.au-shell--moonbg .au-fields > .au-field:nth-child(6) { animation-delay: .80s; }
.au-shell--moonbg .au-fields > .au-field:nth-child(7) { animation-delay: .88s; }
.au-shell--moonbg .au-meta { animation: au-rise-in .55s var(--rx-ease-rise, cubic-bezier(.22,.61,.36,1)) .80s both; }
.au-shell--moonbg .au-cta  { animation: au-rise-in .55s var(--rx-ease-rise, cubic-bezier(.22,.61,.36,1)) .92s both; }
.au-shell--moonbg .au-foot { animation: au-rise-in .55s var(--rx-ease-rise, cubic-bezier(.22,.61,.36,1)) 1.02s both; }

@media (prefers-reduced-motion: reduce) {
  .au-shell--moonbg .au-bigbrand,
  .au-shell--moonbg .au-form,
  .au-shell--moonbg .au-form__head,
  .au-shell--moonbg .au-fields > .au-field,
  .au-shell--moonbg .au-meta,
  .au-shell--moonbg .au-cta,
  .au-shell--moonbg .au-foot {
    animation: none !important;
  }
}

/* ── Mobile/tablet refinements ────────────────────────────── */
@media (max-width: 879px) {
  .au-shell--moonbg .au-form,
  .au-shell--moonbg .au-form.au-form--wide {
    background:
      linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.92)) !important;
    box-shadow:
      0 22px 56px -18px rgba(15,23,42,.22),
      0 8px 18px -8px rgba(30,99,255,.10),
      inset 0 1px 0 rgba(255,255,255,.95) !important;
  }
}
@media (max-width: 540px) {
  .au-shell--moonbg .au-form,
  .au-shell--moonbg .au-form.au-form--wide {
    padding: 22px 18px 18px !important;
  }
  .au-shell--moonbg .au-form-wrap {
    padding: 44px 16px 32px !important;
  }
}

