#gae-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

#gae-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gae-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 113, 115, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gae-box {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 440px;
  padding: 40px;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  text-align: center;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#gae-modal.show .gae-box {
  transform: scale(1);
  opacity: 1;
}

#gae-title {
 font-family: Inter, system-ui, sans-serif;
 font-size: 2rem;
 font-weight: 600;
 line-height: 1.25;
}

.gae-premium-tag {
  display: inline-block;
  background: rgba(255, 107, 53, 0.1);
  color: #ff6b35;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.gae-box h2 {
  margin: 0 0 15px;
  color: #0f7173;
  font-size: 26px;
  font-weight: 800;
}

.gae-box p {
  color: #556b6b;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.gae-box p strong {
    color: #0f7173;
}

.gae-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#gae-pay {
  background: #0f7173;
  color: #fff;
  border: none;
  padding: 18px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

#gae-cancel {
  background: transparent;
  color: #7a8a8a;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-weight: 600;
}

.gae-free-container {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed #e0e7e7;
}

#gae-free-btn {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 700;
}

.gae-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  margin-left: 8px;
  vertical-align: middle;
}

.gae-input-group {
  margin-bottom: 20px;
}

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

#gae-email {
  width: 100%;
  padding: 16px;
  border: 2px solid #e0e7e7;
  border-radius: 16px;
  font-size: 16px;
  margin-bottom: 15px;
  outline: none;
  text-align: center;
  color: #0f7173;
}

#gae-email:focus {
  border-color: #0f7173;
}

#gae-confirm-pay {
  padding: 18px;
  border-radius: 16px;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.gae-no-reg {
  display: block;
  font-size: 12px;
  color: #7a8a8a;
  margin: 5px 0 10px;
  font-weight: 500;
  font-style: italic;
}

/* Optional: improve spacing for the buttons area */
.gae-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Slightly reduced gap to accommodate the new text */
}

a.elementor-button:has(> .elementor-button-content-wrapper > .elementor-button-text:contains("Take Test [No Timer]")) .gae-lock {
    display: none !important;
}

/* Keep all your existing CSS and add these specific helpers at the bottom */

.gae-premium-tag.success {
    background: #4CAF50 !important;
    color: white !important;
}

#gae-success-modal .gae-box {
    animation: gaePopSuccess 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes gaePopSuccess {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}