/* модальное окно */

/* затемнение */
.modal {
  display: none; /* скрыто по умолчанию */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

/* содержимое окна */
.modal-content {
  background: #eaeaea;
  padding: 20px;
  margin: 15% auto;
  border-radius: 10px;
  width: 420px;
  text-align: center;
  position: relative;
  font-family: Montserrat,sans-serif;
  font-weight: bold;
  font-size: 22px;
}

/* крестик */
.close {
  position: absolute;
  top: 0;
  right: 5px;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* золотая кнопка */

.magic-gold-button {
  position: relative;
  background: linear-gradient(90deg, #ffcc33, #ffd700, #ffcc33);
  background-size: 200% auto;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 20px;
  border: none;
  border-radius: 14px;
  padding: 16px 42px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  box-shadow: 
    0 0 25px rgba(255, 215, 0, 0.7),
    0 0 60px rgba(255, 223, 0, 0.5),
    inset 0 0 12px rgba(255, 255, 255, 0.4);
  animation: magic-glow 3s infinite alternate;
  overflow: hidden;
}

.magic-gold-button::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.35) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.magic-gold-button:hover::before {
  opacity: 1;
  animation: shine 2s linear infinite;
}

.magic-gold-button:hover {
  transform: scale(1.08);
  background-position: right center;
  box-shadow: 
    0 0 35px rgba(255, 215, 0, 1),
    0 0 70px rgba(255, 223, 0, 0.9),
    inset 0 0 15px rgba(255, 255, 255, 0.6);
  color: #000;
}

@keyframes magic-glow {
  0% {
    box-shadow: 
      0 0 20px rgba(255, 223, 0, 0.5),
      0 0 40px rgba(255, 215, 0, 0.3);
  }
  100% {
    box-shadow: 
      0 0 35px rgba(255, 223, 0, 0.9),
      0 0 80px rgba(255, 223, 0, 0.6);
  }
}

@keyframes shine {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}