/* Globe Premium — UI states for gating, badges, and overlays */

/* ── Premium Gate Overlay ────────────────────────────────────────── */
.ag-premium-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 21, 0.75);
  backdrop-filter: blur(6px);
  animation: ag-gate-fadein 0.2s ease;
}

@keyframes ag-gate-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ag-premium-gate__card {
  position: relative;
  max-width: 360px;
  width: 90vw;
  padding: 32px 24px 24px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  animation: ag-gate-scalein 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ag-gate-scalein {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ag-premium-gate__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s;
}
.ag-premium-gate__close:hover {
  color: #fff;
}

.ag-premium-gate__icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.ag-premium-gate__title {
  font-size: 18px;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 8px;
}

.ag-premium-gate__msg {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  line-height: 1.5;
}

.ag-premium-gate__btn {
  display: inline-block;
  padding: 10px 28px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}
.ag-premium-gate__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* ── Premium Badges ──────────────────────────────────────────────── */
.ag-premium-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  line-height: 1;
  vertical-align: middle;
  margin-left: 6px;
}

.ag-premium-badge--locked {
  background: #2563eb;
  color: #fff;
}

.ag-premium-badge--warning {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.ag-premium-badge--exhausted {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── Feature Button States ───────────────────────────────────────── */
.ag-premium-locked {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
}
.ag-premium-locked::after {
  content: "🔒";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
}

/* Near-limit warning pulse */
.ag-premium-near-limit {
  animation: ag-near-limit-pulse 2s ease-in-out infinite;
}

@keyframes ag-near-limit-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
  50% { box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.25); }
}

/* Limit reached state */
.ag-premium-limit-reached {
  opacity: 0.6;
  position: relative;
}
.ag-premium-limit-reached::after {
  content: "⚡";
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 12px;
}
