.shiny {
  position: relative;
  border-radius: 10px;
  background-color: #1a1a1a; /* Base background color */
  color: #ffffff;
  padding: 16px;
  overflow: hidden;
  z-index: 0;
}

/* Animated rotating gradient light */
.shiny::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    #007bff,
    #00f2fe,
    transparent 30%
  );
  animation: rotate-shiny 3s linear infinite;
  z-index: -2;
}

/* Inner mask layer that reveals the border width */
.shiny::after {
  content: "";
  position: absolute;
  inset: 2px; /* Controls border thickness */
  background-color: inherit;
  border-radius: 8px; /* Adjust slightly smaller than container radius */
  z-index: -1;
}

@keyframes rotate-shiny {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}