@property --rotate {
  syntax: "<angle>";
  initial-value: 132deg;
  inherits: false;
}

.ai-magic-card {
  position: relative;
  border-radius: 14px;
  background: #141414;
  transition: all 0.3s ease;
}

.ai-magic-card.active::before {
  content: "";
  width: 102%;
  height: 102%;
  border-radius: 16px;
  background-image: linear-gradient(var(--rotate), #ffffff, #888888 43%, #1a1a1a);
  position: absolute;
  top: -1%;
  left: -1%;
  z-index: 0;
  animation: spin 3s linear infinite;
  opacity: 0.7;
}

.ai-magic-card.active::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  filter: blur(18px);
  background-image: linear-gradient(var(--rotate), #ffffff, #888888 43%, #1a1a1a);
  opacity: 0.4;
  transition: opacity 0.5s;
  animation: spin 3s linear infinite;
}

.ai-card-content {
  position: relative;
  z-index: 1;
  background: #121212;
  border-radius: 14px;
  width: 100%;
  height: 100%;
}

@keyframes spin {
  0% {
    --rotate: 0deg;
  }
  100% {
    --rotate: 360deg;
  }
}
