/* =========================================
   COLORS
========================================= */

$card-dark: #24180f;
$card-mid: #3a2412;
$card-light: #5e3817;

$text-main: #ffffff;
$text-soft: rgba(255, 255, 255, 0.75);

/* =========================================
   CARD
========================================= */

.card {
  position: relative;
  width: 100%;
  height: 140px;

  border-radius: 20px;
  padding: 1.2rem 1.4rem;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: linear-gradient(135deg, $card-dark, $card-mid, $card-light);
  color: $text-main;

  // box-shadow:
  //   0 14px 35px rgba(0, 0, 0, 0.25),
  //   inset 0 1px 0 rgba(255, 255, 255, 0.06);

  overflow: hidden;
  z-index: 1;

  @media (max-width: 1000px) {
    height: auto;
    padding: 1.6rem;
    gap: 0.6rem;
    height: 110px;
    padding-top: 1.6rem;
  }
}

/* =========================================
   LIGHT REFLECTION
========================================= */

.card::before {
  content: "";
  position: absolute;

  width: 140%;
  height: 100%;

  top: -20%;
  left: -20%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );

  transform: rotate(25deg);

  pointer-events: none;
  z-index: 0;
}

/* =========================================
   HEADER ROW (NEW)
========================================= */

.headerRow {
  display: flex;
  align-items: center;
  justify-content: space-between;

  position: relative;
  z-index: 2;
}

/* =========================================
   TITLE
========================================= */

.titleRow {
  display: flex;
  align-items: center;
  gap: 0.45rem;

  span {
    font-size: 0.9rem;
    color: $text-soft;
  }
}

/* =========================================
   EYE
========================================= */

.eye {
  all: unset;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 6px;

  color: $text-soft;

  transition: 0.2s ease;

  &:hover {
    color: #fff;
  }

  &:active {
    transform: scale(0.95);
  }
}

/* =========================================
   BALANCE
========================================= */

.balance {
  font-size: 1.6rem;
  font-weight: 700;

  margin-top: 0.4rem;

  position: relative;
  z-index: 2;
  @media (max-width: 1000px) {
    margin-top: 0;
    font-size: 1.4rem;
    padding-bottom: .3rem;
  }
}

/* =========================================
   ANIMATION
========================================= */

.animating {
  animation: blurFade 0.3s ease;
}

@keyframes blurFade {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }

  50% {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(6px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* =========================================
   BUTTON
========================================= */

.button {
  display: flex;
  align-items: center;
  gap: 0.4rem;

  padding: 0.5rem 0.9rem;
  border-radius: 10px;

  font-size: 0.75rem;
  font-weight: 600;

  text-decoration: none;

  background: rgba(255, 255, 255, 0.14);
  color: #fff;

  border: 1px solid rgba(255, 255, 255, 0.18);

  transition: all 0.25s ease;

  svg {
    font-size: 0.9rem;
  }

  &:hover {
    background: rgba(255, 255, 255, 0.22);
  }
}

/* =========================================
   SKELETON (UPDATED STRUCTURE)
========================================= */

.skeletonTop,
.skeletonAmount,
.skeletonButton {
  border-radius: 6px;

  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );

  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

.skeletonTop {
  width: 120px;
  height: 14px;
}

.skeletonAmount {
  width: 180px;
  height: 28px;
  margin-top: 0.5rem;
}

.skeletonButton {
  width: 100px;
  height: 32px;
}

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