/* views/css/popup.css */
#age-popup {
  display: none;
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.55);
  justify-content: center;
  align-items: center;
  z-index: 99999;

  /* blur behind modal */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.age-popup-content {
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  max-width: 420px;
  width: 92%;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  transform-origin: center;
  animation: popupIn 220ms ease;
}

@keyframes popupIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.age-img {
  max-width: 140px;
  margin: 0 auto 14px auto;
  display: block;
}

.age-field {
  margin-top: 10px;
  text-align: left;
}

.age-field label {
  margin-bottom: 6px;
  font-weight: 500;
}

.age-field input[type="date"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

.privacy-label {
  font-size: 14px;
}

.age-buttons {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.age-buttons button {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

#age-accept {
  background: #1ea83a;
  color: #fff;
}

#age-cancel {
  background: #e03b3b;
  color: #fff;
}

/* error text under description */
.age-error {
  margin-top: 10px;
  color: #b00020;
  background: rgba(176,0,32,0.05);
  border-left: 4px solid rgba(176,0,32,0.15);
  padding: 8px 10px;
  border-radius: 6px;
  display: none;
  text-align: left;
  font-weight: 600;
}
