/* Button styles */
.rcb-button {
  background: linear-gradient(90deg, #840909, #ff1a1a, #840909);
  background-size: 200% 100%;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(132, 9, 9, 0.3);
  animation: superJump 1.5s ease-in-out infinite, colorSlide 1s linear infinite;
}

.rcb-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.rcb-button:hover {
  transform: translateY(-15px) scale(1.2) rotate(3deg);
  box-shadow: 0 15px 30px rgba(132, 9, 9, 0.6);
  background-size: 200% 100%;
  animation: superJump 1.5s ease-in-out infinite,
    colorSlide 1.5s linear infinite;
}

.rcb-button:active {
  transform: translateY(5px) scale(0.9) rotate(-3deg);
  box-shadow: 0 2px 10px rgba(132, 9, 9, 0.3);
}

.rcb-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.5s;
}

.rcb-button:hover::before {
  left: 100%;
}

.rcb-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.rcb-button:hover::after {
  animation: ripple 0.6s ease-out;
}

@keyframes superJump {
  0% {
    transform: translateY(0px) scale(1) rotate(0deg);
  }
  25% {
    transform: translateY(-12px) scale(1.1) rotate(2deg);
  }
  50% {
    transform: translateY(0px) scale(1) rotate(0deg);
  }
  75% {
    transform: translateY(-8px) scale(1.05) rotate(-2deg);
  }
  100% {
    transform: translateY(0px) scale(1) rotate(0deg);
  }
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(132, 9, 9, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(132, 9, 9, 0.5);
  }
  100% {
    box-shadow: 0 4px 15px rgba(132, 9, 9, 0.3);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(30, 30);
    opacity: 0;
  }
}

/* Popup styles */
.rcb-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.rcb-popup-content {
  background: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  position: relative;
  max-width: 400px;
  width: 90%;
}
.rcb-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}
.rcb-code {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0;
  cursor: pointer;
  background: #f0f0f0;
  padding: 10px;
  border-radius: 3px;
}
.rcb-register-button {
  display: inline-block;
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 3px;
  margin-top: 10px;
}
.rcb-register-button:hover {
  background-color: #218838;
}
