.tickerWrapper {
  position: relative;
  overflow: hidden;
  z-index: 0 !important; /* BELOW mobile sidebar */
  background:
    radial-gradient(1200px 200px at 50% 0%, rgba(255,255,255,0.03), transparent 70%),
    linear-gradient(to bottom, rgba(10,10,10,0.95), rgba(10,10,10,0.98));
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.4rem;
}

.track {
  overflow: hidden;
  padding: 1rem 0;
  position: relative;
  z-index: 0 !important;
}

.marquee {
  display: flex;
  gap: 0.8rem;
  width: max-content;
  will-change: transform;
  user-select: none;
  z-index: 0 !important;
}

.fadeLeft, .fadeRight {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 0 !important;
  pointer-events: none;
}

.fadeLeft {
  left: 0;
  background: linear-gradient(to right, rgba(10,10,10,1), rgba(10,10,10,0));
}

.fadeRight {
  right: 0;
  background: linear-gradient(to left, rgba(10,10,10,1), rgba(10,10,10,0));
}

/* =========================
   CARD
========================= */
.card {
  position: relative;
  min-width: 140px; /* smaller */
  padding: 0.5rem 0.75rem;
  gap: 0.4rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;

  animation: floatY 4.5s ease-in-out infinite;
  animation-delay: var(--float-delay);
}

@media (max-width: 768px) {
  .card {
    min-width: 110px;
    padding: 0.35rem 0.5rem;
  }
}

/* ICON */
.icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .icon {
    width: 18px;
    height: 18px;
  }
}

/* META */
.meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.symbol {
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
}

.price {
  font-size: 0.6rem;
  color: #cbd5e1;
  font-family: monospace;
}

/* CHANGE BADGE */
.change {
  margin-left: auto;
  font-size: 0.55rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.up { color: #22c55e; background: rgba(34,197,94,0.15); }
.down { color: #ef4444; background: rgba(239,68,68,0.15); }

/* PULSE */
.upPulse { animation: floatY 4.5s ease-in-out infinite, pulseUp 2.5s infinite; }
.downPulse { animation: floatY 4.5s ease-in-out infinite, pulseDown 2.5s infinite; }

@keyframes pulseUp { 0%,100%{box-shadow:none} 50%{box-shadow:0 0 0 5px rgba(34,197,94,0.1);} }
@keyframes pulseDown { 0%,100%{box-shadow:none} 50%{box-shadow:0 0 0 5px rgba(239,68,68,0.1);} }

@keyframes floatY { 0% {transform:translateY(0);} 50% {transform:translateY(-4px);} 100% {transform:translateY(0);} }

/* SKELETON */
.skeletonCircle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 37%, #1a1a1a 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* TOP GAINER */
.topGainer {
  border-color: rgba(34,197,94,0.3);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.15), 0 10px 25px rgba(34,197,94,0.15);
}
