/* ============================
   MODAL WERYFIKACJI WIEKU
============================ */
#ageModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#ageModal[hidden] {
  display: none;
}

.age-modal__card {
  background: #16141b;
  color: #fff;
  border-radius: 14px;
  max-width: 90%;
  width: 340px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  animation: modalFade 0.4s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

.age-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.age-modal__close:hover {
  background: rgba(255,255,255,0.2);
}

.age-modal__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.age-modal__desc {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 18px;
}

/* ✅ WYŚRODKOWANY CHECKBOX */
.age-modal__age {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  margin: 10px 0 14px;
  text-align: center;
}

.age-modal__age input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #e700c8;
  cursor: pointer;
}

/* ✅ WYŚRODKOWANY PRZYCISK */
.age-modal__btn {
  display: block;
  margin: 0 auto;
  padding: 10px 22px;
  border: 2px solid #e700c8;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.age-modal__btn:hover:not(.is-disabled) {
  background: #e700c8;
}

.age-modal__btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ✅ animacja migania tytułu */
.age-modal__title {
  animation: titleBlink 2.5s ease-in-out infinite;
}

@keyframes titleBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
