/* ═══════════════════════════════════════════════════════════
   EZ2FLY — Site-Wide Turnstile Gate Overlay
   Shown once per session on first visit to any page.
   Fades out after Turnstile challenge is passed.
═══════════════════════════════════════════════════════════ */

#ez-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ocean, #0B1D35);
  /* Subtle diagonal weave — matches site hero style */
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(201,145,61,.06) 0px,
      rgba(201,145,61,.06) 1px,
      transparent 1px,
      transparent 40px
    );
  padding: 1.5rem;
  transition: opacity .55s ease, visibility .55s ease;
}

#ez-gate-overlay.ez-gate--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Card ── */
.ez-gate-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.75rem 2.5rem 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 2px 8px rgba(0,0,0,.10),
    0 24px 64px rgba(0,0,0,.30);
  animation: ez-gate-rise .5s cubic-bezier(.22,.68,0,1.2) both;
}

@keyframes ez-gate-rise {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* ── Logo area ── */
.ez-gate-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-bottom: 1.5rem;
}

.ez-gate-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}

.ez-gate-logo-text {
  text-align: left;
  line-height: 1.15;
}

.ez-gate-logo-name {
  font-family: var(--font-bara, 'Bebas Neue', Impact, sans-serif);
  font-size: 1.45rem;
  color: var(--ocean, #0B1D35);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ez-gate-logo-name em {
  color: var(--gold, #C9913D);
  font-style: normal;
}

.ez-gate-logo-sub {
  font-size: .68rem;
  color: #6b7a8d;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ── Divider ── */
.ez-gate-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold, #C9913D), #E8B96A);
  border-radius: 2px;
  margin: 0 auto 1.4rem;
}

/* ── Heading ── */
.ez-gate-title {
  font-family: var(--font-bara, 'Bebas Neue', Impact, sans-serif);
  font-size: 1.55rem;
  color: var(--ocean, #0B1D35);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.ez-gate-sub {
  font-size: .82rem;
  color: #5a6a7a;
  line-height: 1.75;
  margin-bottom: 1.6rem;
}

/* ── Turnstile widget centering ── */
.ez-gate-widget-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  min-height: 65px;
}

/* ── Status / error message ── */
.ez-gate-status {
  font-size: .78rem;
  color: #e05a3a;
  min-height: 1.2em;
  margin-bottom: .5rem;
}

/* ── Footer note ── */
.ez-gate-note {
  font-size: .7rem;
  color: #9aa5b4;
  line-height: 1.6;
  margin-top: .5rem;
}

.ez-gate-note a {
  color: var(--gold, #C9913D);
  text-decoration: none;
}

/* ── Loading spinner (while widget initialises) ── */
.ez-gate-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(201,145,61,.25);
  border-top-color: var(--gold, #C9913D);
  border-radius: 50%;
  animation: ez-spin .8s linear infinite;
  margin: .75rem auto;
}

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

/* ── Lock body scroll while gate is active ── */
body.ez-gate-open {
  overflow: hidden;
}

/* ── Mobile tweaks ── */
@media (max-width: 480px) {
  .ez-gate-card {
    padding: 2rem 1.25rem 1.75rem;
    border-radius: 12px;
  }
  .ez-gate-title { font-size: 1.3rem; }
}
