/* auth-gate.css — STR Market Map Auth Gate modal (v=20260408a) */

/* ── Overlay ───────────────────────────────────────────────────────── */
.ag-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: ag-fade-in 0.18s ease-out both;
}
@keyframes ag-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Modal card ────────────────────────────────────────────────────── */
.ag-modal {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 32px 28px;
  width: 100%;
  max-width: 380px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.18),
    0 4px 16px  rgba(0, 0, 0, 0.08);
  text-align: center;
  animation: ag-scale-in 0.22s cubic-bezier(0.34, 1.38, 0.64, 1) both;
}
@keyframes ag-scale-in {
  from { transform: scale(0.92) translateY(10px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

/* ── Close (×) button ──────────────────────────────────────────────── */
.ag-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.40);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
  font-family: inherit;
}
.ag-close:hover {
  background: rgba(0, 0, 0, 0.10);
  color: rgba(0, 0, 0, 0.70);
}

/* ── Icon box ──────────────────────────────────────────────────────── */
.ag-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(8, 145, 178, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

/* ── Copy ──────────────────────────────────────────────────────────── */
.ag-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.ag-body {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 22px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ── Primary CTA ───────────────────────────────────────────────────── */
.ag-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0891B2 0%, #0E7490 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  box-sizing: border-box;
  transition: opacity 0.15s, transform 0.15s;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}
.ag-btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ── Secondary CTA ─────────────────────────────────────────────────── */
.ag-secondary {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 12px 0 6px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}
.ag-login-link {
  color: #0891B2;
  font-weight: 600;
  text-decoration: none;
}
.ag-login-link:hover { text-decoration: underline; }

/* ── Trust line ────────────────────────────────────────────────────── */
.ag-trust {
  font-size: 11px;
  color: #cbd5e1;
  margin: 0;
  letter-spacing: 0.01em;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ── Mobile: bottom sheet on narrow screens ────────────────────────── */
@media (max-width: 480px) {
  .ag-overlay {
    align-items: flex-end;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .ag-modal {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    padding: 28px 20px 36px;
    animation: ag-slide-up 0.26s cubic-bezier(0.34, 1.2, 0.64, 1) both;
  }
  @keyframes ag-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0);    }
  }
  .ag-btn-primary { font-size: 15px; min-height: 52px; }
}
