/**
 * Legendario Studio — Paywall & Checkout Nativo Web3 Elegance
 * Design System: #07090D, #0D1119, Hairline Borders, #FF5E1A CTA
 */

.paywall-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(7, 9, 13, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.paywall-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.paywall-container {
  display: flex;
  width: 100%;
  max-width: 980px;
  min-height: 560px;
  background: #0D1119;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.paywall-modal.is-visible .paywall-container {
  transform: scale(1) translateY(0);
}

/* ========================================================
   COLUNA ESQUERDA (Resumo do Produto)
======================================================== */
.paywall-sidebar {
  flex: 0 0 380px;
  background: #090C13;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.paywall-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 30px;
  font-size: 13px;
  color: #9499ad;
  max-width: 100%;
  margin-bottom: 28px;
}

.paywall-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FF5E1A;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.paywall-user-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paywall-product-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #F1F2F6;
  margin: 0 0 8px 0;
  text-wrap: balance;
}

.paywall-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0 24px 0;
}

.paywall-price-val {
  font-size: 36px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.04em;
}

.paywall-price-cents {
  font-size: 20px;
  font-weight: 700;
  color: #9499ad;
}

.paywall-price-tag {
  font-size: 12px;
  color: #FF9A3C;
  background: rgba(255, 94, 26, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 94, 26, 0.25);
  font-weight: 600;
}

.paywall-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.paywall-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #c4c7d4;
  line-height: 1.4;
}

.paywall-feature-icon {
  width: 18px;
  height: 18px;
  color: #FF5E1A;
  flex-shrink: 0;
}

.paywall-switch-btn {
  margin-top: 32px;
  background: transparent;
  border: none;
  color: #6B7280;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.paywall-switch-btn:hover {
  color: #EF4444;
}

/* ========================================================
   COLUNA DIREITA (Formas de Pagamento)
======================================================== */
.paywall-main {
  flex: 1;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
}

.paywall-nav-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  margin-bottom: 28px;
}

.paywall-tab-btn {
  background: transparent;
  border: none;
  color: #7B8194;
  font-size: 15px;
  font-weight: 600;
  padding: 0 0 14px 0;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.paywall-tab-btn:hover {
  color: #E2E4EB;
}

.paywall-tab-btn.is-active {
  color: #FFFFFF;
}

.paywall-tab-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #FF5E1A;
  box-shadow: 0 0 12px rgba(255, 94, 26, 0.6);
}

.paywall-tab-pane {
  display: none;
  flex-direction: column;
  flex: 1;
}

.paywall-tab-pane.is-active {
  display: flex;
}

/* ========================================================
   ABA PIX
======================================================== */
.paywall-pix-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.paywall-qr-wrapper {
  background: white;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paywall-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.paywall-pix-code-row {
  display: flex;
  width: 100%;
  max-width: 440px;
  gap: 8px;
  margin-bottom: 16px;
}

.paywall-pix-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: #8E94A5;
  font-size: 13px;
  font-family: monospace;
  outline: none;
}

.paywall-btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.paywall-btn-copy:hover {
  background: rgba(255, 255, 255, 0.15);
}

.paywall-pix-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #10B981;
}

.paywall-pulse-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ========================================================
   FORMULÁRIOS (Cartão & Código)
======================================================== */
.paywall-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.paywall-row {
  display: flex;
  gap: 12px;
}

.paywall-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.paywall-label {
  font-size: 12px;
  font-weight: 600;
  color: #8E94A5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.paywall-input,
.paywall-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: #FFFFFF;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.paywall-input:focus,
.paywall-select:focus {
  border-color: #FF5E1A;
  background: rgba(255, 94, 26, 0.04);
}

.paywall-btn-cta {
  margin-top: 8px;
  background: linear-gradient(135deg, #FF9A3C 0%, #FF5E1A 50%, #D93600 100%);
  border: none;
  color: white;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 94, 26, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.paywall-btn-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255, 94, 26, 0.45);
}

.paywall-btn-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.paywall-feedback {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
  margin-top: 12px;
}

.paywall-feedback.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
}

.paywall-feedback.is-success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
}
