/* Only theme-aware loader styling */
html.dark #dexbros-loader {
  background-color: #1e1e1e;
  color: white;
}

html.light #dexbros-loader {
  background-color: #ffffff;
  color: black;
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}
.dxb-loader-icon {
  width: 128px; /* optional */
  height: auto;
}

/***/
#dexbros-loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dxb-loader-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 128px;
  height: 128px;
  z-index: 10;
  pointer-events: none;
}

.index-loader-title {
  position: absolute;
  bottom: 10%;
  display: table;
  margin: 0 auto;
  /* left: 50%;
  transform: translateX(-50%); */
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

span.index-sub-loader-title {
  display: block;
  font-size: 15px;
  text-align: center;
}
/* --- Background wave icons --- */
.crypto-bg {
  position: absolute;
  inset: 0;
  overflow: visible;
  z-index: 1;
}

.crypto-bg .coin {
  position: absolute;
  width: 60px;
  height: 60px;
  opacity: 0.5;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  animation: waveIn 8s infinite ease-in-out;
}

/* Spread initial positions */
.c1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.c2 {
  top: 15%;
  right: 15%;
  animation-delay: 0.8s;
}
.c3 {
  bottom: 15%;
  left: 20%;
  animation-delay: 1.6s;
}
.c4 {
  bottom: 10%;
  right: 10%;
  animation-delay: 2.2s;
}
.c5 {
  top: 30%;
  left: 40%;
  animation-delay: 3s;
}
.c6 {
  bottom: 25%;
  right: 35%;
  animation-delay: 3.6s;
}
.c7 {
  top: 50%;
  left: 75%;
  animation-delay: 4.2s;
}

/* --- wave-like inward motion --- */
@keyframes waveIn {
  0% {
    transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(0.7)
      rotate(0deg);
    opacity: 0;
  }
  25% {
    transform: translate3d(0, 0, 0) scale(1.05) rotate(10deg);
    opacity: 0.15;
  }
  50% {
    transform: translate3d(0, 0, 0) scale(1.1) rotate(-10deg);
    opacity: 0.1;
  }
  75% {
    transform: translate3d(0, 0, 0) scale(0.9) rotate(5deg);
    opacity: 0.08;
  }
  100% {
    transform: translate3d(var(--txEnd, 0), var(--tyEnd, 0), 0) scale(0.7)
      rotate(0deg);
    opacity: 0;
  }
}
