.shards-balance {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 52px;
  height: 34px;
  padding: 0 10px 0 8px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 9px;
  background: rgba(139, 92, 246, 0.08);
  color: #f5f3ff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.01em;
  user-select: none;
  white-space: nowrap;
}

.shards-balance.is-visible {
  display: inline-flex;
}

.shards-balance.is-unavailable {
  opacity: .48;
}

.shards-balance img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.35));
}

.shards-balance [data-shards-amount] {
  min-width: 1ch;
  text-align: left;
}

.admin-page-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(168,85,247,.42);
  border-radius: 7px;
  background: rgba(126,34,206,.16);
  color: #efe4ff;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  transition: background .15s ease,border-color .15s ease,transform .15s ease;
}

.admin-page-link:hover {
  background: rgba(145,71,255,.28);
  border-color: rgba(190,145,255,.75);
  transform: translateY(-1px);
}

.admin-page-link.hidden {
  display: none !important;
}

.shards-earned-toast {
  position: fixed;
  left: 50%;
  bottom: 82px;
  z-index: 10050;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 28px));
  padding: 12px 16px;
  border: 1px solid rgba(216, 180, 254, 0.34);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.97), rgba(126, 34, 206, 0.97));
  box-shadow: 0 14px 38px rgba(88, 28, 135, 0.42);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  opacity: 0;
  transform: translate(-50%, 12px) scale(0.98);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.shards-earned-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.shards-earned-toast.is-leaving {
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.98);
  transition-duration: 320ms;
}

.shards-earned-toast img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .shards-balance {
    min-width: 46px;
    height: 32px;
    padding: 0 8px 0 6px;
    gap: 4px;
    font-size: 13px;
  }

  .shards-balance img {
    width: 20px;
    height: 20px;
  }

  .admin-page-link {
    padding: 0 8px;
    font-size: 11px;
  }

  .shards-earned-toast {
    bottom: 74px;
    padding: 11px 14px;
  }
}