/* payment.css — Estilos del paywall y notificaciones de pago */

/* ── SIDEBAR LOCKS ─────────────────────────────────────────── */
.nav-item.locked {
  opacity: 0.55;
  cursor: default;
  pointer-events: auto; /* permitir click para mostrar paywall */
}
.nav-item.locked:hover {
  background: rgba(212,168,67,.04);
  color: var(--muted);
}

/* ── PAYWALL OVERLAY ───────────────────────────────────────── */
#paywall-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: rgba(5, 24, 40, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.paywall-card {
  background: linear-gradient(160deg, #0d2d50, #051828);
  border: 1px solid rgba(212,168,67,.35);
  border-radius: 10px;
  padding: 24px 20px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  animation: slideUp .3s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.paywall-compass {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 8px;
}
.paywall-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}
.paywall-subtitle {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 18px;
}

/* Features */
.paywall-features {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 12px;
  text-align: left;
  margin-bottom: 18px;
}
.paywall-divider {
  background: rgba(212,168,67,.2);
  width: 1px;
}
.pf-label {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 7px;
}
.pf-item {
  font-size: 12px;
  color: rgba(245,237,216,.75);
  padding: 2px 0;
  line-height: 1.4;
}
.paywall-premium .pf-item {
  color: var(--cream);
}
.paywall-premium .pf-label {
  color: var(--orange);
}

/* Price */
.paywall-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin-bottom: 4px;
}
.price-amount {
  font-family: 'Cinzel', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.price-currency {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: var(--gold);
}
.price-once {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}
.paywall-methods {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
  font-style: italic;
}

/* Pay button */
.pay-btn {
  background: linear-gradient(135deg, rgba(212,168,67,.95), rgba(232,98,42,.9));
  border: none;
  color: var(--deep);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .8px;
  padding: 13px 24px;
  cursor: pointer;
  border-radius: 5px;
  width: 100%;
  margin-bottom: 10px;
  transition: opacity .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.pay-btn:hover { opacity: .9; }
.pay-btn:active { transform: scale(.97); }
.pay-btn:disabled { opacity: .5; cursor: not-allowed; }

.paywall-close {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Crimson Pro', serif;
  font-size: 12px;
  font-style: italic;
  cursor: pointer;
  padding: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
  margin-bottom: 14px;
  display: block;
  width: 100%;
}
.paywall-close:hover { color: var(--cream); }

/* Nami quote */
.paywall-nami {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  background: rgba(10,37,64,.4);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  text-align: left;
  line-height: 1.4;
}

/* ── WELCOME UNLOCK ────────────────────────────────────────── */
#welcome-unlock {
  position: absolute;
  inset: 0;
  z-index: 110;
  background: rgba(5,24,40,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .3s ease;
}
.welcome-card {
  background: linear-gradient(160deg, #0d2d50, #051828);
  border: 1px solid rgba(212,168,67,.4);
  border-radius: 10px;
  padding: 32px 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  animation: slideUp .35s cubic-bezier(.4,0,.2,1);
}
.welcome-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.welcome-sub {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ── TOASTS ────────────────────────────────────────────────── */
.payment-toast {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  white-space: normal;
  text-align: center;
  animation: fadeIn .3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.payment-toast.error {
  background: rgba(161,35,35,.9);
  border: 1px solid rgba(248,113,113,.4);
  color: #fca5a5;
}
.payment-toast.pending {
  background: rgba(133,79,11,.9);
  border: 1px solid rgba(252,211,77,.4);
  color: #fde68a;
}

/* ── LOADING OVERLAY ───────────────────────────────────────── */
#loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 150;
  background: rgba(5,24,40,.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-card {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: .5px;
}
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(212,168,67,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 400px) {
  .paywall-card { padding: 18px 14px; }
  .price-amount { font-size: 30px; }
  .paywall-features { grid-template-columns: 1fr; }
  .paywall-divider { display: none; }
  .paywall-free { margin-bottom: 12px; }
}
