/* Competitor-style offer wall: blurred page + centered modal */
body.is-offerwall-open #page.ae-offerwall-blurred {
  filter: blur(14px);
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
  transform: scale(1.01);
}

#av-offerwall__wrapper {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
  font-family: Inter, Roboto, system-ui, sans-serif;
}

.ae-offerwall__panel {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.ae-offerwall__panel--quiz #html_snippet_ae_jobs .elegant-quiz-container {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 28px 0 32px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.ae-offerwall__panel--quiz #html_snippet_ae_jobs .elegant-quiz-question-container,
.ae-offerwall__panel--quiz #html_snippet_ae_jobs .elegant-quiz-form-container {
  padding-left: 28px;
  padding-right: 28px;
}

.ae-offerwall__panel--quiz #html_snippet_ae_jobs .elegant-quiz-option,
.ae-offerwall__panel--quiz #html_snippet_ae_jobs .elegant-quiz-form-container button {
  background-color: #1f2937;
}

.ae-offerwall__panel--quiz #html_snippet_ae_jobs .elegant-quiz-progress-bar {
  background-color: #0f766e;
}

.ae-video-offer-wall {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  padding: 32px 28px 28px;
  text-align: center;
}

.ae-video-offer-wall__title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 700;
  color: #111827;
}

.ae-video-offer-wall__subtitle {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
}

.ae-video-offer-wall__button,
.ae-offerwall__cta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: #1f2937;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 16px 20px;
  cursor: pointer;
}

.ae-video-offer-wall__footnote {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Rewarded ad loading buffer — avoids white screen while GAM fills */
#ae-rewarded-loader {
  position: fixed;
  inset: 0;
  z-index: 2000000;
  display: none;
}

#ae-rewarded-loader.is-active {
  display: block;
}

.ae-rewarded-loader__backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(4px);
}

.ae-rewarded-loader__box {
  width: min(92vw, 320px);
  padding: 28px 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  text-align: center;
}

.ae-rewarded-loader__spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border: 4px solid #e5e7eb;
  border-top-color: #15803d;
  border-radius: 50%;
  animation: ae-rewarded-spin 0.8s linear infinite;
}

.ae-rewarded-loader__title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.ae-rewarded-loader__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #6b7280;
}

body.ae-rewarded-loading,
body.ae-rewarded-active {
  overflow: hidden;
}

/* Video rewarded ads fail to render when blur/backdrop filters stay on the page */
body.ae-rewarded-active #page,
body.ae-rewarded-active #page.ae-offerwall-blurred {
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

@keyframes ae-rewarded-spin {
  to {
    transform: rotate(360deg);
  }
}
