/* DefiX theme — dark palette + animated background, matching defiex.ai
   Loaded after styles.css so it overrides the light Sinqlo tokens. */

/* ------------------------------------------------------------------
   1. Design tokens
------------------------------------------------------------------ */

:root,
body.sinqlo-page {
  --dfx-bg: #070912;
  --dfx-bg-2: #0c1024;
  --dfx-bg-3: #05070f;

  --dfx-panel: rgba(20, 26, 52, 0.62);
  --dfx-panel-2: rgba(30, 38, 70, 0.5);
  --dfx-panel-solid: #101534;

  --dfx-line: rgba(140, 160, 230, 0.15);
  --dfx-line-strong: rgba(170, 190, 255, 0.32);

  --dfx-eth: #8ba7f7;
  --dfx-eth-core: #627eea;
  --dfx-eth-deep: #454a75;
  --dfx-pale: #c0cbf6;
  --dfx-lilac: #c9b3f5;
  --dfx-lilac-deep: #6f52ad;
  --dfx-peach: #f0cdc2;
  --dfx-mint: #b8faf6;

  --dfx-ink: #eef1fb;
  --dfx-ink-2: #a6b0d4;
  --dfx-ink-3: #6b76a0;

  --dfx-display: "Archivo", "Space Grotesk", Inter, system-ui, sans-serif;
  --dfx-sans: "Space Grotesk", Inter, system-ui, sans-serif;
  --dfx-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* Remap the existing Sinqlo variables so every component that already
   consumes them switches to the dark palette without markup changes. */
body.sinqlo-page {
  --page: var(--dfx-bg);
  --sidebar: rgba(10, 14, 32, 0.82);

  --mint: rgba(184, 250, 246, 0.14);
  --mint-soft: rgba(139, 167, 247, 0.1);

  --deep: linear-gradient(120deg, #627eea 0%, #8ba7f7 42%, #c9b3f5 100%);
  --hover-deep: linear-gradient(120deg, #c9b3f5 0%, #8ba7f7 45%, #b8faf6 100%);
  --deep-2: var(--dfx-eth);
  --deep-3: var(--dfx-lilac);

  --gradient: linear-gradient(120deg, #627eea 0%, #8ba7f7 42%, #c9b3f5 100%);
  --gradient-soft: linear-gradient(
    120deg,
    rgba(98, 126, 234, 0.18) 0%,
    rgba(139, 167, 247, 0.14) 45%,
    rgba(201, 179, 245, 0.14) 100%
  );

  --ink: var(--dfx-ink);
  --muted: var(--dfx-ink-2);
  --line: var(--dfx-line);

  --danger: #ff6b8b;
  --danger-soft: rgba(255, 107, 139, 0.16);
  --success: #5ce0c2;
  --warning: #f0cdc2;

  --shadow: 0 18px 45px rgba(4, 6, 16, 0.55);
  --shadow-lg: 0 30px 70px rgba(4, 6, 16, 0.7);

  color: var(--dfx-ink);
  background: var(--dfx-bg);
  font-family: var(--dfx-sans);
}

body.sinqlo-page h1,
body.sinqlo-page h2,
body.sinqlo-page h3,
body.sinqlo-page h4,
body.sinqlo-page h5,
body.sinqlo-page .bento-cell__title,
body.sinqlo-page .bento-spotlight__title,
body.sinqlo-page .deposit-hero__title {
  font-family: var(--dfx-display);
  color: var(--dfx-ink);
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------------
   2. Animated background
------------------------------------------------------------------ */

.dfx-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 12% -5%, rgba(139, 167, 247, 0.24), transparent 62%),
    radial-gradient(820px 600px at 88% 8%, rgba(201, 179, 245, 0.2), transparent 62%),
    radial-gradient(1100px 800px at 50% 108%, rgba(184, 250, 246, 0.14), transparent 68%),
    linear-gradient(180deg, var(--dfx-bg) 0%, var(--dfx-bg-2) 55%, var(--dfx-bg-3) 100%);
}

/* Slow drifting aurora blobs */
.dfx-bg__blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  min-width: 380px;
  min-height: 380px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.dfx-bg__blob--a {
  top: -14%;
  left: -8%;
  background: radial-gradient(circle at 50% 50%, rgba(98, 126, 234, 0.75), transparent 70%);
  animation: dfx-drift-a 26s ease-in-out infinite alternate;
}

.dfx-bg__blob--b {
  top: 18%;
  right: -12%;
  background: radial-gradient(circle at 50% 50%, rgba(201, 179, 245, 0.6), transparent 70%);
  animation: dfx-drift-b 32s ease-in-out infinite alternate;
}

.dfx-bg__blob--c {
  bottom: -20%;
  left: 32%;
  background: radial-gradient(circle at 50% 50%, rgba(184, 250, 246, 0.45), transparent 70%);
  animation: dfx-drift-c 38s ease-in-out infinite alternate;
}

/* Grid mesh that slowly scrolls upward */
.dfx-bg__grid {
  position: absolute;
  inset: -50% 0 -50% 0;
  background-image:
    linear-gradient(rgba(140, 160, 230, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 160, 230, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 78%);
  animation: dfx-grid-scroll 24s linear infinite;
}

/* Faint sweeping light beam */
.dfx-bg__beam {
  position: absolute;
  top: -40%;
  left: -30%;
  width: 60%;
  height: 180%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(139, 167, 247, 0.09) 45%,
    rgba(184, 250, 246, 0.07) 55%,
    transparent 100%
  );
  filter: blur(30px);
  animation: dfx-beam-sweep 18s ease-in-out infinite;
}

/* Blueprint rails with block packets travelling down them, mirroring the
   dashed chain lines on defiex.ai */
.dfx-bg__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(
    180deg,
    rgba(140, 190, 255, 0.16) 0 5px,
    transparent 5px 13px
  );
}

.dfx-bg__rail::before,
.dfx-bg__rail::after {
  content: "";
  position: absolute;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dfx-eth);
  box-shadow: 0 0 8px var(--dfx-eth);
}

.dfx-bg__rail::before {
  top: 17vh;
  animation: dfx-glow-pulse 3.6s ease-in-out infinite;
}

.dfx-bg__rail::after {
  bottom: 17vh;
  background: var(--dfx-lilac);
  box-shadow: 0 0 8px var(--dfx-lilac);
  animation: dfx-glow-pulse 4.8s ease-in-out infinite;
}

.dfx-bg__rail--1 {
  left: 25%;
}

.dfx-bg__rail--2 {
  left: 50%;
}

.dfx-bg__rail--3 {
  left: 75%;
}

.dfx-bg__packet {
  position: absolute;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(160deg, var(--dfx-pale), var(--dfx-eth-core));
  box-shadow: 0 0 16px rgba(139, 167, 247, 0.85);
  animation: dfx-packet-run 11s linear infinite;
}

.dfx-bg__rail--2 .dfx-bg__packet {
  animation-duration: 14s;
  animation-delay: -5s;
  background: linear-gradient(160deg, var(--dfx-mint), var(--dfx-eth));
  box-shadow: 0 0 16px rgba(184, 250, 246, 0.7);
}

.dfx-bg__rail--3 .dfx-bg__packet {
  animation-duration: 9s;
  animation-delay: -3s;
  background: linear-gradient(160deg, var(--dfx-lilac), var(--dfx-eth-core));
  box-shadow: 0 0 16px rgba(201, 179, 245, 0.75);
}

@keyframes dfx-packet-run {
  0% {
    top: -3%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 103%;
    opacity: 0;
  }
}

@keyframes dfx-drift-a {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(9vw, 7vh, 0) scale(1.14);
  }
}

@keyframes dfx-drift-b {
  0% {
    transform: translate3d(0, 0, 0) scale(1.08);
  }
  100% {
    transform: translate3d(-11vw, 10vh, 0) scale(0.94);
  }
}

@keyframes dfx-drift-c {
  0% {
    transform: translate3d(0, 0, 0) scale(0.96);
  }
  100% {
    transform: translate3d(7vw, -9vh, 0) scale(1.18);
  }
}

@keyframes dfx-grid-scroll {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 -64px, 64px 0;
  }
}

@keyframes dfx-beam-sweep {
  0%,
  100% {
    transform: translateX(0) rotate(8deg);
    opacity: 0.5;
  }
  50% {
    transform: translateX(120vw) rotate(8deg);
    opacity: 0.9;
  }
}

@keyframes dfx-glow-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dfx-bg__blob,
  .dfx-bg__grid,
  .dfx-bg__beam,
  .dfx-bg__packet,
  .dfx-bg__rail::before,
  .dfx-bg__rail::after {
    animation: none !important;
  }
}

/* Narrow screens only keep the centre rail to avoid visual noise */
@media (max-width: 720px) {
  .dfx-bg__rail--1,
  .dfx-bg__rail--3 {
    display: none;
  }
}

/* ------------------------------------------------------------------
   3. Dark is the only theme
------------------------------------------------------------------ */

/* Always use the light-on-dark logo variant. */
body.sinqlo-page .dash-brand__logo--light {
  display: none !important;
}

body.sinqlo-page .dash-brand__logo--dark {
  display: inline-block !important;
}

/* Appearance switch is disabled while dark is the only supported theme.
   The topbar button is also removed in header-and-sidebar.php, since its
   markup varies; these selectors cover the known variants. */
body.sinqlo-page .appearance-toggle,
body.sinqlo-page .theme-toggle,
body.sinqlo-page .theme-switch,
body.sinqlo-page .dash-topbar__theme,
body.sinqlo-page #theme-toggle,
body.sinqlo-page #appearance-toggle,
body.sinqlo-page [data-appearance-toggle],
body.sinqlo-page [data-theme-toggle],
body.sinqlo-page [aria-label*="theme" i],
body.sinqlo-page [aria-label*="appearance" i],
body.sinqlo-page [aria-label*="dark mode" i],
body.sinqlo-page [aria-label*="light mode" i] {
  display: none !important;
}

/* ------------------------------------------------------------------
   4. Shell: sidebar, topbar, page canvas
------------------------------------------------------------------ */

body.sinqlo-page .layout-row,
body.sinqlo-page .main-wrap,
body.sinqlo-page .dash-page,
body.sinqlo-page .st-page,
body.sinqlo-page .container-fluid {
  background: transparent !important;
}

body.sinqlo-page .app-sidebar {
  background: linear-gradient(180deg, rgba(12, 16, 36, 0.92), rgba(7, 9, 18, 0.86)) !important;
  border-right: 1px solid var(--dfx-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.sinqlo-page .sidebar-link {
  color: var(--dfx-ink-2) !important;
  border: 1px solid transparent;
}

body.sinqlo-page .sidebar-link:hover {
  color: var(--dfx-ink) !important;
  background: rgba(139, 167, 247, 0.1) !important;
  border-color: var(--dfx-line);
}

body.sinqlo-page .sidebar-link.active {
  color: #070912 !important;
  background: var(--dfx-eth) !important;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(98, 126, 234, 0.35);
}

body.sinqlo-page .sidebar-link.active i,
body.sinqlo-page .sidebar-link.active span {
  color: #070912 !important;
}

/* The topbar sits directly on the animated canvas: no plate, no blur. */
body.sinqlo-page .topbar,
body.sinqlo-page .dash-topbar,
body.sinqlo-page .dash-topbar--bento,
body.sinqlo-page .bento-topbar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ------------------------------------------------------------------
   5. Glass surfaces (bento cells, cards, panels)
------------------------------------------------------------------ */

body.sinqlo-page .bento-cell,
body.sinqlo-page .bento-spotlight,
body.sinqlo-page .card,
body.sinqlo-page .panel,
body.sinqlo-page .deposit-hero,
body.sinqlo-page .deposit-stat-card,
body.sinqlo-page .deposit-history-card,
body.sinqlo-page .deposit-address-card,
body.sinqlo-page .invoice-table-card,
body.sinqlo-page .notification-card,
body.sinqlo-page .bank-card,
body.sinqlo-page .rewards-board,
body.sinqlo-page .rewards-next,
body.sinqlo-page .downline-directory,
body.sinqlo-page .deposit-breakdown {
  background: var(--dfx-panel) !important;
  border: 1px solid var(--dfx-line) !important;
  border-radius: 18px;
  color: var(--dfx-ink);
  box-shadow: 0 18px 45px rgba(4, 6, 16, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Hero cell gets the accent mesh treatment */
body.sinqlo-page .deposit-hero,
body.sinqlo-page .bento-cell--hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 340px at 12% -20%, rgba(139, 167, 247, 0.2), transparent 68%),
    radial-gradient(600px 320px at 92% 0%, rgba(201, 179, 245, 0.16), transparent 66%),
    var(--dfx-panel) !important;
}

body.sinqlo-page .deposit-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px 260px at 50% 120%, rgba(184, 250, 246, 0.12), transparent 70%);
  animation: dfx-glow-pulse 9s ease-in-out infinite;
}

body.sinqlo-page .bento-cell:hover,
body.sinqlo-page .bento-spotlight:hover {
  border-color: var(--dfx-line-strong) !important;
}

/* Inner tiles / stats */
body.sinqlo-page .binary-stat,
body.sinqlo-page .bento-rank__stat,
body.sinqlo-page .bento-rank__target-row,
body.sinqlo-page .tree2-stat,
body.sinqlo-page .card-tile,
body.sinqlo-page .deposit-hero__panel,
body.sinqlo-page .deposit-token-pill,
body.sinqlo-page .metric-icon {
  background: var(--dfx-panel-2) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink);
}

body.sinqlo-page .binary-stat__icon,
body.sinqlo-page .activity-icon,
body.sinqlo-page .invoice-icon,
body.sinqlo-page .notification-card-icon,
body.sinqlo-page .downline-member__avatar {
  background: rgba(139, 167, 247, 0.16) !important;
  color: var(--dfx-eth) !important;
  border: 1px solid rgba(139, 167, 247, 0.22);
}

body.sinqlo-page .binary-stat__value,
body.sinqlo-page .bento-metric__value,
body.sinqlo-page .deposit-hero__panel-value,
body.sinqlo-page .deposit-stat-value,
body.sinqlo-page .money-value,
body.sinqlo-page .metric-value,
body.sinqlo-page .bank-value {
  color: var(--dfx-ink) !important;
}

body.sinqlo-page .binary-stat__label,
body.sinqlo-page .binary-stat__hint,
body.sinqlo-page .bento-spotlight__eyebrow,
body.sinqlo-page .deposit-hero__panel-label,
body.sinqlo-page .deposit-hero__panel-hint,
body.sinqlo-page .muted,
body.sinqlo-page .text-muted,
body.sinqlo-page small,
body.sinqlo-page .form-label {
  color: var(--dfx-ink-2) !important;
}

body.sinqlo-page .bento-spotlight__eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--dfx-mono);
  font-size: 11px;
  color: var(--dfx-ink-3) !important;
}

/* ------------------------------------------------------------------
   6. Pills, badges, buttons
------------------------------------------------------------------ */

body.sinqlo-page .bento-pill,
body.sinqlo-page .deposit-card__pill,
body.sinqlo-page .st-pill,
body.sinqlo-page .reward-tile__badge,
body.sinqlo-page .reward-tile__level,
body.sinqlo-page .downline-leg,
body.sinqlo-page .badge {
  background: rgba(139, 167, 247, 0.12) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-pale) !important;
}

body.sinqlo-page .btn-deep,
body.sinqlo-page .deposit-hero__cta,
body.sinqlo-page .reward-tile__cta,
body.sinqlo-page .btn-primary {
  background: var(--dfx-eth) !important;
  border: none !important;
  color: #070912 !important;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(98, 126, 234, 0.32);
}

body.sinqlo-page .btn-deep:hover,
body.sinqlo-page .deposit-hero__cta:hover,
body.sinqlo-page .reward-tile__cta:hover,
body.sinqlo-page .btn-primary:hover {
  background: var(--dfx-pale) !important;
  color: #070912 !important;
}

body.sinqlo-page .deposit-hero__cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.55rem;
}

body.sinqlo-page .deposit-hero__cta {
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  font-size: 0.78rem;
}

body.sinqlo-page .deposit-hero__cta--legacy {
  background: #e8c36a !important;
  box-shadow: 0 12px 28px rgba(232, 195, 106, 0.28) !important;
}

body.sinqlo-page .deposit-hero__cta--legacy:hover {
  background: #f3d78a !important;
}

body.sinqlo-page .btn-mint,
body.sinqlo-page .btn-outline-secondary,
body.sinqlo-page .filter-btn,
body.sinqlo-page .page-btn,
body.sinqlo-page .btsvg-tool-btn {
  background: var(--dfx-panel-2) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink-2) !important;
}

body.sinqlo-page .btn-mint:hover,
body.sinqlo-page .btn-outline-secondary:hover,
body.sinqlo-page .filter-btn:hover,
body.sinqlo-page .page-btn:hover,
body.sinqlo-page .btsvg-tool-btn:hover {
  border-color: var(--dfx-line-strong) !important;
  color: var(--dfx-ink) !important;
  background: rgba(139, 167, 247, 0.12) !important;
}

/* Topbar icon buttons ride on the bare canvas: outline only, no plate. */
body.sinqlo-page .circle-btn,
body.sinqlo-page .notification-menu,
body.sinqlo-page .user-menu,
body.sinqlo-page .mobile-menu-btn {
  background: transparent !important;
  border: 1px solid var(--dfx-line) !important;
  box-shadow: none !important;
  color: var(--dfx-ink-2) !important;
}

body.sinqlo-page .notification-menu,
body.sinqlo-page .user-menu {
  border: none !important;
}

body.sinqlo-page .circle-btn:hover,
body.sinqlo-page .mobile-menu-btn:hover {
  background: rgba(139, 167, 247, 0.12) !important;
  border-color: var(--dfx-line-strong) !important;
  color: var(--dfx-ink) !important;
}

/* ------------------------------------------------------------------
   7. Forms
------------------------------------------------------------------ */

body.sinqlo-page .form-control,
body.sinqlo-page .form-select,
body.sinqlo-page .search-control,
body.sinqlo-page .page-size-select,
body.sinqlo-page input[type="text"],
body.sinqlo-page input[type="number"],
body.sinqlo-page input[type="date"],
body.sinqlo-page input[type="search"],
body.sinqlo-page input[type="password"],
body.sinqlo-page textarea,
body.sinqlo-page select {
  background: rgba(10, 14, 32, 0.72) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink) !important;
}

body.sinqlo-page .form-control:focus,
body.sinqlo-page .form-select:focus,
body.sinqlo-page textarea:focus,
body.sinqlo-page select:focus {
  border-color: var(--dfx-eth) !important;
  box-shadow: 0 0 0 3px rgba(98, 126, 234, 0.22) !important;
}

body.sinqlo-page .form-control::placeholder,
body.sinqlo-page textarea::placeholder {
  color: var(--dfx-ink-3) !important;
}

body.sinqlo-page input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.6);
}

/* ------------------------------------------------------------------
   8. Tables
------------------------------------------------------------------ */

body.sinqlo-page table,
body.sinqlo-page .table,
body.sinqlo-page .downline-table,
body.sinqlo-page .deposit-history-table {
  color: var(--dfx-ink) !important;
  border-color: var(--dfx-line) !important;
}

/* Opaque so no light row colour bleeds through the header band. */
body.sinqlo-page thead,
body.sinqlo-page thead tr,
body.sinqlo-page thead th,
body.sinqlo-page .downline-table thead th,
body.sinqlo-page .datatable thead th {
  background: #131a38 !important;
  color: var(--dfx-pale) !important;
  border-bottom: 1px solid var(--dfx-line) !important;
}

body.sinqlo-page thead th,
body.sinqlo-page .downline-table thead th,
body.sinqlo-page .datatable thead th {
  font-family: var(--dfx-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.sinqlo-page tbody tr {
  border-bottom: 1px solid var(--dfx-line) !important;
}

body.sinqlo-page tbody tr:hover {
  background: rgba(139, 167, 247, 0.07) !important;
}

body.sinqlo-page tbody td {
  color: var(--dfx-ink) !important;
  background: transparent !important;
}

body.sinqlo-page .downline-amount,
body.sinqlo-page .downline-table strong {
  color: var(--dfx-mint) !important;
  font-family: var(--dfx-mono);
}

body.sinqlo-page .downline-muted {
  color: var(--dfx-ink-3) !important;
}

/* ------------------------------------------------------------------
   9. Rewards page
------------------------------------------------------------------ */

body.sinqlo-page .reward-tile {
  background: var(--dfx-panel-2) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

body.sinqlo-page .reward-tile:hover {
  border-color: var(--dfx-line-strong) !important;
  transform: translateY(-2px);
}

body.sinqlo-page .reward-tile--achieved {
  border-color: rgba(184, 250, 246, 0.35) !important;
  box-shadow: 0 0 30px rgba(184, 250, 246, 0.1);
}

body.sinqlo-page .reward-tile--paid {
  border-color: rgba(92, 224, 194, 0.3) !important;
}

body.sinqlo-page .reward-tile--skip {
  opacity: 0.62;
}

body.sinqlo-page .reward-tile.is-focus {
  border-color: var(--dfx-eth) !important;
  box-shadow: 0 0 36px rgba(98, 126, 234, 0.22);
}

body.sinqlo-page .reward-tile__payout em,
body.sinqlo-page .reward-tile__target strong {
  color: var(--dfx-mint) !important;
  font-style: normal;
  font-family: var(--dfx-mono);
}

body.sinqlo-page .rewards-bar__track,
body.sinqlo-page .bento-rank__meter-bar,
body.sinqlo-page .progress,
body.sinqlo-page .deposit-breakdown__stack {
  background: rgba(10, 14, 32, 0.8) !important;
  border: 1px solid var(--dfx-line) !important;
}

body.sinqlo-page .rewards-bar__fill--left,
body.sinqlo-page .bento-rank__meter-bar--left span,
body.sinqlo-page .progress-bar {
  background: linear-gradient(90deg, #627eea, #8ba7f7) !important;
}

body.sinqlo-page .rewards-bar__fill--right,
body.sinqlo-page .bento-rank__meter-bar--right span {
  background: linear-gradient(90deg, #6f52ad, #c9b3f5) !important;
}

body.sinqlo-page .deposit-breakdown__seg--credit,
body.sinqlo-page .deposit-breakdown__dot--credit {
  background: var(--dfx-mint) !important;
}

body.sinqlo-page .rewards-seg--achieved,
body.sinqlo-page .rewards-dot--achieved {
  background: var(--dfx-eth) !important;
}

body.sinqlo-page .deposit-breakdown__seg--avail,
body.sinqlo-page .deposit-breakdown__dot--avail {
  background: var(--dfx-lilac) !important;
}

body.sinqlo-page .deposit-breakdown__seg--debit,
body.sinqlo-page .deposit-breakdown__dot--debit {
  background: var(--dfx-peach) !important;
}

body.sinqlo-page .deposit-breakdown__seg--legacy,
body.sinqlo-page .deposit-breakdown__dot--legacy {
  background: #e8c36a !important;
}

/* ------------------------------------------------------------------
   10. Tabs, pagination, empty states
------------------------------------------------------------------ */

body.sinqlo-page .downline-tab,
body.sinqlo-page .rewards-tabs .btn,
body.sinqlo-page .tabs-pill .btn,
body.sinqlo-page .nav-link {
  color: var(--dfx-ink-2) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}

body.sinqlo-page .downline-tab.is-active,
body.sinqlo-page .rewards-tabs .btn.active,
body.sinqlo-page .tabs-pill .btn.active,
body.sinqlo-page .nav-link.active {
  color: #070912 !important;
  background: var(--dfx-eth) !important;
  border-color: transparent !important;
}

body.sinqlo-page .downline-pagination button,
body.sinqlo-page .downline-pages button {
  background: var(--dfx-panel-2) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink-2) !important;
}

body.sinqlo-page .downline-pagination button.is-active {
  background: var(--dfx-eth) !important;
  color: #070912 !important;
}

body.sinqlo-page .downline-empty,
body.sinqlo-page .rewards-empty,
body.sinqlo-page .deposit-empty-state {
  color: var(--dfx-ink-3) !important;
}

body.sinqlo-page .rewards-search {
  background: rgba(10, 14, 32, 0.72) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink) !important;
}

/* ------------------------------------------------------------------
   11. Overlays: modals, dropdowns, toasts
------------------------------------------------------------------ */

body.sinqlo-page .modal-content,
body.sinqlo-page .dropdown-menu,
body.sinqlo-page .notification-dropdown,
body.sinqlo-page .chart-tooltip,
body.sinqlo-page .swal2-popup {
  background: rgba(14, 19, 42, 0.96) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink) !important;
  box-shadow: 0 30px 70px rgba(4, 6, 16, 0.7);
}

body.sinqlo-page .modal-header,
body.sinqlo-page .modal-footer,
body.sinqlo-page .notification-dropdown__header {
  border-color: var(--dfx-line) !important;
}

body.sinqlo-page .swal2-title,
body.sinqlo-page .swal2-html-container {
  color: var(--dfx-ink) !important;
}

body.sinqlo-page .dropdown-item,
body.sinqlo-page .notification-item {
  color: var(--dfx-ink-2) !important;
}

body.sinqlo-page .dropdown-item:hover,
body.sinqlo-page .notification-item:hover {
  background: rgba(139, 167, 247, 0.12) !important;
  color: var(--dfx-ink) !important;
}

body.sinqlo-page .btn-close {
  filter: invert(1) opacity(0.7);
}

/* ------------------------------------------------------------------
   12. Wallet / self-trade (st-*) surfaces
------------------------------------------------------------------ */

body.sinqlo-page .st-card,
body.sinqlo-page .st-hero,
body.sinqlo-page .st-queue,
body.sinqlo-page .st-rules,
body.sinqlo-page .st-table-wrap,
body.sinqlo-page .st-notif-feed,
body.sinqlo-page .st-notif-summary,
body.sinqlo-page .st-profile-strip,
body.sinqlo-page .st-ai-gauge {
  background: var(--dfx-panel) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink) !important;
  box-shadow: 0 18px 45px rgba(4, 6, 16, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.sinqlo-page .st-hero {
  background:
    radial-gradient(700px 340px at 14% -20%, rgba(139, 167, 247, 0.2), transparent 68%),
    var(--dfx-panel) !important;
}

body.sinqlo-page .st-card__head,
body.sinqlo-page .st-queue__head,
body.sinqlo-page .st-notif-item__head,
body.sinqlo-page .st-profile-ref__head,
body.sinqlo-page .st-profile-summary__head {
  border-color: var(--dfx-line) !important;
}

body.sinqlo-page .st-card__title,
body.sinqlo-page .st-queue__title,
body.sinqlo-page .st-hero__title,
body.sinqlo-page .st-section-title,
body.sinqlo-page .st-field__value,
body.sinqlo-page .st-notif-item__title,
body.sinqlo-page .st-profile-summary__name {
  color: var(--dfx-ink) !important;
}

body.sinqlo-page .st-hero__kicker,
body.sinqlo-page .st-hero__sub,
body.sinqlo-page .st-field__label,
body.sinqlo-page .st-metric__hint,
body.sinqlo-page .st-notif-item__time,
body.sinqlo-page .st-email-hint,
body.sinqlo-page .st-empty,
body.sinqlo-page .st-profile-meta {
  color: var(--dfx-ink-2) !important;
}

body.sinqlo-page .st-metric,
body.sinqlo-page .st-field,
body.sinqlo-page .st-notif-item,
body.sinqlo-page .st-alert,
body.sinqlo-page .st-create {
  background: var(--dfx-panel-2) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink) !important;
}

body.sinqlo-page .st-metric__icon,
body.sinqlo-page .st-notif-item__icon,
body.sinqlo-page .st-profile-avatar {
  background: rgba(139, 167, 247, 0.16) !important;
  color: var(--dfx-eth) !important;
  border: 1px solid rgba(139, 167, 247, 0.22);
}

body.sinqlo-page .st-btn--primary,
body.sinqlo-page .st-profile-code-btn {
  background: var(--dfx-eth) !important;
  border: none !important;
  color: #070912 !important;
}

body.sinqlo-page .st-btn--ghost,
body.sinqlo-page .st-btn {
  background: var(--dfx-panel-2) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink-2) !important;
}

body.sinqlo-page .st-btn--primary:hover {
  background: var(--dfx-pale) !important;
}

body.sinqlo-page .st-btn--ghost:hover,
body.sinqlo-page .st-btn:hover {
  background: rgba(139, 167, 247, 0.12) !important;
  color: var(--dfx-ink) !important;
}

body.sinqlo-page .st-pill--ok,
body.sinqlo-page .st-notif-item--success .st-notif-item__icon {
  background: rgba(92, 224, 194, 0.14) !important;
  color: var(--dfx-mint) !important;
}

body.sinqlo-page .st-pill--pending,
body.sinqlo-page .st-notif-item--warning .st-notif-item__icon {
  background: rgba(240, 205, 194, 0.14) !important;
  color: var(--dfx-peach) !important;
}

body.sinqlo-page .st-pill--fail {
  background: rgba(255, 107, 139, 0.14) !important;
  color: var(--danger) !important;
}

body.sinqlo-page .st-amount,
body.sinqlo-page .st-type-dep {
  color: var(--dfx-mint) !important;
  font-family: var(--dfx-mono);
}

body.sinqlo-page .st-amount--wd,
body.sinqlo-page .st-type-wd {
  color: var(--dfx-peach) !important;
  font-family: var(--dfx-mono);
}

body.sinqlo-page .st-ai-gauge__ring {
  filter: drop-shadow(0 0 18px rgba(98, 126, 234, 0.35));
}

body.sinqlo-page .st-ai-gauge__value,
body.sinqlo-page .st-ai-gauge__pct {
  color: var(--dfx-ink) !important;
}

body.sinqlo-page .st-ai-gauge-stats__bar,
body.sinqlo-page .st-booster-fill__bar,
body.sinqlo-page .st-profile-progress__bar {
  background: rgba(10, 14, 32, 0.8) !important;
}

body.sinqlo-page .st-toast-container .st-toast {
  background: rgba(14, 19, 42, 0.96) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink) !important;
}

/* ------------------------------------------------------------------
   13. Level chart (accordion + datatable) and FD orders
------------------------------------------------------------------ */

body.sinqlo-page .accordion,
body.sinqlo-page .accordion-item {
  background: transparent !important;
  border-color: var(--dfx-line) !important;
  color: var(--dfx-ink) !important;
}

body.sinqlo-page .accordion-button,
body.sinqlo-page .accordion-button.collapsed {
  background: var(--dfx-panel-2) !important;
  color: var(--dfx-ink) !important;
  box-shadow: none !important;
  border: 1px solid var(--dfx-line) !important;
}

body.sinqlo-page .accordion-button:not(.collapsed) {
  background: rgba(139, 167, 247, 0.14) !important;
  color: var(--dfx-ink) !important;
}

body.sinqlo-page .accordion-button::after {
  filter: invert(1) opacity(0.65);
}

body.sinqlo-page .accordion-body {
  background: transparent !important;
  color: var(--dfx-ink) !important;
}

/* The +/- badge is a white puck by default, so its glyph disappears */
body.sinqlo-page .level-detail-toggle-icon,
body.sinqlo-page .toggle-icon {
  background: rgba(139, 167, 247, 0.18) !important;
  border: 1px solid rgba(139, 167, 247, 0.32) !important;
  color: var(--dfx-pale) !important;
  box-shadow: none !important;
}

body.sinqlo-page .accordion-button:not(.collapsed) .level-detail-toggle-icon,
body.sinqlo-page .accordion-button:not(.collapsed) .toggle-icon {
  background: var(--dfx-eth) !important;
  border-color: var(--dfx-eth) !important;
  color: #070912 !important;
}

body.sinqlo-page .level-detail-level-icon,
body.sinqlo-page .binary-stat__icon {
  background: rgba(139, 167, 247, 0.16) !important;
  border: 1px solid rgba(139, 167, 247, 0.22) !important;
  color: var(--dfx-eth) !important;
}

body.sinqlo-page .level-detail-level-title {
  color: var(--dfx-ink) !important;
}

body.sinqlo-page .level-detail-level-sub {
  color: var(--dfx-ink-2) !important;
}

body.sinqlo-page .datatable-footer,
body.sinqlo-page .datatable-length,
body.sinqlo-page .datatable-pagination {
  color: var(--dfx-ink-2) !important;
}

body.sinqlo-page .datatable-length select,
body.sinqlo-page .datatable-length input,
body.sinqlo-page .datatable-search input,
body.sinqlo-page .dataTables_length select,
body.sinqlo-page .dataTables_filter input {
  background: #0e1330 !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink) !important;
}

body.sinqlo-page .datatable-pagination button,
body.sinqlo-page .datatable-pagination a,
body.sinqlo-page .page-link {
  background: var(--dfx-panel-2) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink-2) !important;
}

body.sinqlo-page .datatable-pagination .active button,
body.sinqlo-page .datatable-pagination .active a,
body.sinqlo-page .page-item.active .page-link {
  background: var(--dfx-eth) !important;
  color: #070912 !important;
  border-color: transparent !important;
}

/* Rank chips inside the level table */
body.sinqlo-page .rank-chip,
body.sinqlo-page .level-rank-pill,
body.sinqlo-page .rank-badge {
  background: rgba(139, 167, 247, 0.14) !important;
  border: 1px solid rgba(139, 167, 247, 0.28) !important;
  color: var(--dfx-pale) !important;
}

/* FD order cards */
body.sinqlo-page .fd-order-card {
  background: var(--dfx-panel) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink) !important;
  box-shadow: 0 18px 45px rgba(4, 6, 16, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.sinqlo-page .fd-order-card:hover {
  border-color: var(--dfx-line-strong) !important;
}

body.sinqlo-page .fd-order-card--empty {
  background: var(--dfx-panel-2) !important;
  color: var(--dfx-ink-3) !important;
}

body.sinqlo-page .fd-order-card__index {
  background: rgba(139, 167, 247, 0.16) !important;
  color: var(--dfx-eth) !important;
  border: 1px solid rgba(139, 167, 247, 0.22);
}

body.sinqlo-page .fd-order-card__id {
  color: var(--dfx-ink) !important;
  font-family: var(--dfx-mono);
}

body.sinqlo-page .fd-order-card__amount {
  color: var(--dfx-ink) !important;
}

body.sinqlo-page .fd-order-card__date,
body.sinqlo-page .fd-order-card__hint,
body.sinqlo-page .fd-order-card__foot {
  color: var(--dfx-ink-2) !important;
}

body.sinqlo-page .fd-order-card__status {
  background: rgba(92, 224, 194, 0.16) !important;
  border: 1px solid rgba(92, 224, 194, 0.3) !important;
  color: var(--dfx-mint) !important;
}

body.sinqlo-page .fd-order-card__booster {
  background: rgba(201, 179, 245, 0.14) !important;
  border: 1px solid rgba(201, 179, 245, 0.28) !important;
  color: var(--dfx-lilac) !important;
}

/* Filter panels */
body.sinqlo-page .downline-filters-form,
body.sinqlo-page .datatable-toolbar {
  background: var(--dfx-panel-2) !important;
  border: 1px solid var(--dfx-line) !important;
  border-radius: 16px;
}

/* Pills need a touch more contrast on the dark canvas */
body.sinqlo-page .deposit-card__pill,
body.sinqlo-page .bento-pill {
  background: rgba(139, 167, 247, 0.18) !important;
  border-color: rgba(139, 167, 247, 0.32) !important;
  color: var(--dfx-pale) !important;
}

/* ------------------------------------------------------------------
   14. Notifications page (notif-*)
------------------------------------------------------------------ */

body.sinqlo-page .notif-inbox,
body.sinqlo-page .notif-list {
  background: transparent !important;
}

body.sinqlo-page .notif-card {
  background: var(--dfx-panel-2) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink) !important;
  box-shadow: none !important;
}

body.sinqlo-page .notif-card:hover {
  border-color: rgba(139, 167, 247, 0.32) !important;
  background: rgba(139, 167, 247, 0.08) !important;
}

body.sinqlo-page .notif-card__head {
  border-color: var(--dfx-line) !important;
}

body.sinqlo-page .notif-card__title {
  color: var(--dfx-ink) !important;
}

body.sinqlo-page .notif-card__text,
body.sinqlo-page .notif-card__time {
  color: var(--dfx-ink-2) !important;
}

body.sinqlo-page .notif-card__icon {
  background: rgba(139, 167, 247, 0.16) !important;
  border: 1px solid rgba(139, 167, 247, 0.22) !important;
  color: var(--dfx-eth) !important;
}

body.sinqlo-page .notif-card__icon--success {
  background: rgba(92, 224, 194, 0.14) !important;
  border-color: rgba(92, 224, 194, 0.24) !important;
  color: var(--dfx-mint) !important;
}

body.sinqlo-page .notif-card__icon--warning {
  background: rgba(240, 205, 194, 0.14) !important;
  border-color: rgba(240, 205, 194, 0.24) !important;
  color: var(--dfx-peach) !important;
}

body.sinqlo-page .notif-card--empty {
  background: var(--dfx-panel) !important;
  border-style: dashed !important;
}

/* ------------------------------------------------------------------
   15. Status colours
------------------------------------------------------------------ */

body.sinqlo-page .completed,
body.sinqlo-page .income,
body.sinqlo-page .text-success {
  color: var(--dfx-mint) !important;
}

body.sinqlo-page .pending,
body.sinqlo-page .text-warning {
  color: var(--dfx-peach) !important;
}

body.sinqlo-page .failed,
body.sinqlo-page .expense,
body.sinqlo-page .text-danger {
  color: var(--danger) !important;
}

/* Charts / axes drawn with light strokes */
body.sinqlo-page .grid-lines,
body.sinqlo-page .line-grid,
body.sinqlo-page .axis,
body.sinqlo-page .line-axis {
  stroke: var(--dfx-line) !important;
  color: var(--dfx-line) !important;
}

body.sinqlo-page .month-labels,
body.sinqlo-page .line-days {
  color: var(--dfx-ink-3) !important;
}

/* ------------------------------------------------------------------
   16. Remaining light surfaces from styles.css
------------------------------------------------------------------ */

body.sinqlo-page .user-menu-dropdown,
body.sinqlo-page .sinqlo-drawer-panel,
body.sinqlo-page .tree2-toolbar,
body.sinqlo-page .tree2-search-wrap,
body.sinqlo-page .tree2-mcard,
body.sinqlo-page .tv-row,
body.sinqlo-page .tv-toggle,
body.sinqlo-page .select-pill,
body.sinqlo-page .check-box,
body.sinqlo-page .deposit-qr,
body.sinqlo-page .fdc_deposit-box,
body.sinqlo-page .fdc_deposit-balance-box {
  background: var(--dfx-panel) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink) !important;
}

body.sinqlo-page .tree2-mcard:hover,
body.sinqlo-page .tv-row:hover {
  border-color: var(--dfx-line-strong) !important;
}

body.sinqlo-page .tv-row.is-selected {
  background: rgba(139, 167, 247, 0.14) !important;
  border-color: var(--dfx-eth) !important;
}

/* QR codes stay light so they remain scannable */
body.sinqlo-page .deposit-qr img,
body.sinqlo-page .fdc_deposit-qr img,
body.sinqlo-page .deposit-qr canvas {
  background: #fff !important;
  border-radius: 10px;
  padding: 6px;
}

body.sinqlo-page .donut::after,
body.sinqlo-page .wallet-pie-chart::after,
body.sinqlo-page .ring-chart {
  background: var(--dfx-bg-2) !important;
}

/* Auth pages */
body.auth-page,
body.auth-v2-page {
  background: transparent !important;
  color: var(--dfx-ink) !important;
}

body.auth-page .auth-card,
body.auth-page .auth-form-panel,
body.auth-v2-page .auth-v2__panel,
body.auth-v2-page .auth-v2__card {
  background: var(--dfx-panel) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.auth-page .auth-switch,
body.auth-page .auth-submit.auth-submit-outline,
body.auth-page .auth-disconnect-wallet {
  background: var(--dfx-panel-2) !important;
  border: 1px solid var(--dfx-line) !important;
  color: var(--dfx-ink-2) !important;
}

body.auth-v2-page .auth-v2__hero {
  background:
    radial-gradient(700px 420px at 20% 10%, rgba(139, 167, 247, 0.22), transparent 66%),
    radial-gradient(600px 380px at 80% 80%, rgba(201, 179, 245, 0.16), transparent 68%),
    rgba(10, 14, 32, 0.72) !important;
  border-right: 1px solid var(--dfx-line);
}

body.auth-v2-page.auth-v2-page--split .auth-v2__hero {
  background:
    radial-gradient(640px 380px at 18% 8%, rgba(139, 167, 247, 0.18), transparent 68%),
    radial-gradient(520px 340px at 78% 88%, rgba(201, 179, 245, 0.12), transparent 70%),
    rgba(7, 9, 18, 0.28) !important;
  border-right: 0;
  border-radius: 22px;
}

body.auth-v2-page .auth-v2__hero-title,
body.auth-v2-page .auth-v2__feature strong {
  color: var(--dfx-ink) !important;
}

body.auth-v2-page .auth-v2__hero-text,
body.auth-v2-page .auth-v2__feature p,
body.auth-v2-page .auth-v2__footer--hero {
  color: var(--dfx-ink-2) !important;
}

body.auth-v2-page .auth-v2__feature-icon {
  background: linear-gradient(145deg, rgba(139, 167, 247, 0.22), rgba(201, 179, 245, 0.14)) !important;
  color: var(--dfx-pale) !important;
  border: 1px solid rgba(140, 160, 230, 0.18);
}

body.auth-v2-page .auth-v2__trust--hero span {
  background: rgba(139, 167, 247, 0.1) !important;
  border: 1px solid rgba(140, 160, 230, 0.2) !important;
  color: var(--dfx-pale) !important;
}

body.auth-v2-page .auth-v2__brand-logo {
  mix-blend-mode: normal !important;
}

body.auth-v2-page .auth-v2__hero-eyebrow {
  color: var(--dfx-eth) !important;
}

/* Scrollbars */
body.sinqlo-page ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.sinqlo-page ::-webkit-scrollbar-track {
  background: rgba(7, 9, 18, 0.6);
}

body.sinqlo-page ::-webkit-scrollbar-thumb {
  background: rgba(139, 167, 247, 0.28);
  border-radius: 999px;
}

body.sinqlo-page ::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 167, 247, 0.45);
}

body.sinqlo-page ::selection {
  background: rgba(139, 167, 247, 0.35);
  color: var(--dfx-ink);
}

/* ------------------------------------------------------------------
   DefiX topup embed
------------------------------------------------------------------ */

body.sinqlo-page .defix-topup-shell__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body.sinqlo-page .defix-topup-shell__sub {
  margin: 6px 0 0;
  color: var(--dfx-ink-2) !important;
  font-size: 0.92rem;
}

body.sinqlo-page .defix-topup-shell__warn {
  background: rgba(240, 205, 194, 0.14) !important;
  border-color: rgba(240, 205, 194, 0.28) !important;
  color: var(--dfx-peach) !important;
}

body.sinqlo-page .defix-topup-shell--bare {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.sinqlo-page .defix-topup-mount {
  margin-top: 0;
  min-height: 720px;
  border-radius: 18px;
  border: 1px solid var(--dfx-line);
  background: rgba(10, 14, 32, 0.45);
  overflow: hidden;
}

body.sinqlo-page .defix-topup-mount--bare {
  margin-top: 0;
  border: none;
  border-radius: 18px;
  background: transparent;
}

body.sinqlo-page .defix-topup-frame {
  display: block;
  width: 100%;
  min-height: 720px;
  height: min(85vh, 960px);
  border: 0;
  background: transparent;
}

body.sinqlo-page .defix-topup-placeholder {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
}

body.sinqlo-page .defix-topup-placeholder code {
  color: var(--dfx-pale);
  font-family: var(--dfx-mono, "JetBrains Mono", monospace);
  font-size: 0.85em;
}

