.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 30%),
    rgba(24, 22, 20, 0.52);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal.active,
.modal--active {
  display: flex;
}

.modal__content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(247, 241, 232, 0.74));
  padding: 46px;
  border-radius: 28px;
  width: 90%;
  max-width: 520px;
  position: relative;
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  animation: slideUp 0.36s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 20px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

@keyframes slideUp {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: var(--shadow-sm), 0 0 20px rgba(212, 175, 55, 0.1);
  }
  50% {
    box-shadow: var(--shadow-sm), 0 0 40px rgba(212, 175, 55, 0.3);
  }
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(74, 60, 39, 0.1);
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.modal__close:hover {
  color: var(--secondary-color);
  transform: translateY(-1px);
}

.modal__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
  color: var(--secondary-color);
  font-family: var(--font-display);
  font-weight: 600;
}

.age-verification__content {
  text-align: center;
  padding: 56px 42px !important;
  max-width: 500px !important;
}

.age-verification__header {
  margin-bottom: 35px;
}

.age-verification__title {
  font-size: 30px;
  color: var(--secondary-color) !important;
  margin-bottom: 8px !important;
  font-weight: 600 !important;
}

.age-verification__subtitle {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
  margin: 0 !important;
}

.age-verification__text {
  font-size: 16px;
  color: var(--secondary-color);
  line-height: 1.7;
  margin-bottom: 40px !important;
  font-weight: 400;
}

.age-verification__text strong {
  color: var(--primary-color);
  font-weight: 700;
}

.age-verification__buttons {
  display: flex;
  gap: 16px;
  flex-direction: column;
}

.age-verification__confirm-btn,
.age-verification__deny-btn {
  padding: 16px 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.28s ease;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--font-sans);
}

.age-verification__confirm-btn {
  background: linear-gradient(135deg, rgba(93, 70, 53, 0.98), rgba(63, 53, 43, 0.98));
  color: white;
  box-shadow: 0 18px 32px rgba(63, 53, 43, 0.18);
}

.age-verification__confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(63, 53, 43, 0.22);
}

.age-verification__confirm-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(114, 47, 55, 0.35);
}

.age-verification__deny-btn {
  background: rgba(255, 255, 255, 0.48);
  color: var(--secondary-color);
  border-color: rgba(74, 60, 39, 0.16);
}

.age-verification__deny-btn:hover {
  background: rgba(255, 255, 255, 0.74);
  transform: translateY(-2px);
}

.age-verification__deny-btn:active {
  transform: translateY(0);
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.7), rgba(18, 16, 20, 0.8)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(circle at bottom, rgba(114, 47, 55, 0.24), transparent 38%);
  opacity: 0;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  transition: opacity 0.32s ease;
}

.age-gate--visible {
  opacity: 1;
}

.age-gate--closing {
  opacity: 0;
}

.age-gate__panel {
  width: min(100%, 540px);
  padding: 44px 34px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  box-shadow: 0 30px 80px rgba(10, 8, 10, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-align: center;
}

.age-gate__eyebrow {
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 235, 221, 0.72);
}

.age-gate__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.02;
  color: rgba(255, 248, 241, 0.98);
}

.age-gate__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 239, 230, 0.84);
}

.age-gate__actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.age-gate__button {
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.age-gate__button:hover {
  transform: translateY(-1px);
}

.age-gate__button--confirm {
  background: linear-gradient(135deg, rgba(114, 47, 55, 0.96), rgba(33, 28, 31, 0.98));
  color: #fff8f1;
}

.age-gate__button--deny {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 239, 230, 0.92);
}

html.age-gate-open,
body.age-gate-open {
  overflow: hidden;
}
/* Mobile responsive */
@media (max-width: 768px) {
  .modal__content {
    padding: 28px 22px;
    margin: 16px;
    max-width: calc(100% - 32px);
    max-height: calc(100vh - 32px);
  }

  .modal__close {
    top: 15px;
    right: 15px;
    font-size: 28px;
  }

  .modal__title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .age-verification__content {
    padding: 40px 25px !important;
  }

  .age-verification__title {
    font-size: 22px;
  }

  .age-verification__text {
    font-size: 15px;
    margin-bottom: 30px !important;
  }

  .age-gate__panel {
    padding: 38px 24px;
    border-radius: 28px;
  }
}

@media (max-width: 576px) {
  .modal__content {
    padding: 24px 18px;
    margin: 10px;
    max-width: calc(100% - 20px);
    border-radius: 22px;
  }

  .modal__close {
    top: 10px;
    right: 10px;
    font-size: 24px;
  }

  .modal__title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .age-verification__content {
    padding: 30px 16px !important;
  }

  .age-verification__title {
    font-size: 20px;
  }

  .age-verification__subtitle {
    font-size: 13px;
  }

  .age-verification__text {
    font-size: 14px;
    margin-bottom: 25px !important;
  }

  .age-verification__buttons {
    gap: 12px;
  }

  .age-verification__confirm-btn,
  .age-verification__deny-btn {
    padding: 14px 24px;
    font-size: 14px;
  }

  .age-gate {
    padding: 18px 14px;
  }

  .age-gate__panel {
    padding: 30px 18px;
    border-radius: 24px;
  }

  .age-gate__text {
    font-size: 0.94rem;
  }
}