/* ============================================
   CRÉDITOS E PAGAMENTOS — Módulo 06
   Carregado via section('styles') no frontend e no dashboard.
   Usa os tokens da extração visual: --ps-gold, --radius-pill, --text-5xl.
============================================ */

/* === Eyebrow em pill (página pública de pacotes) === */
.ps-eyebrow-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ps-gold-bg); color: var(--ps-gold);
  font-size: 12px; font-weight: 600; padding: 6px 16px;
  border-radius: var(--radius-pill); margin-bottom: 16px;
}

/* (ps-btn--pill e ps-btn--full agora são globais em main.css) */

/* === Grade de pacotes === */
.ps-pacotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.ps-pacote {
  position: relative; background: var(--ps-surface);
  border: 1px solid var(--ps-border); border-radius: var(--radius-lg);
  padding: 28px 22px; display: flex; flex-direction: column; gap: 6px;
}
.ps-pacote--popular {
  border: 2px solid var(--ps-gold);
}
.ps-pacote__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--ps-gold-bg); color: var(--ps-gold);
  font-size: 11px; font-weight: 700; padding: 4px 14px;
  border-radius: var(--radius-pill); white-space: nowrap;
}
.ps-pacote__nome {
  font-size: 13px; font-weight: 600; color: var(--ps-muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.ps-pacote__creditos {
  font-size: var(--text-5xl); font-weight: 800; color: var(--ps-gold);
  line-height: 1; letter-spacing: -0.03em;
}
.ps-pacote__creditos span { font-size: 15px; font-weight: 600; color: var(--ps-muted); display: block; margin-top: 4px; }
.ps-pacote__preco { font-size: 22px; font-weight: 700; color: var(--ps-text); margin: 10px 0 4px; }
.ps-pacote__preco small { font-size: 13px; font-weight: 500; color: var(--ps-muted); }
.ps-pacote__unit { font-size: 12px; color: var(--ps-subtle); margin-bottom: 16px; }
.ps-pacote__cta { margin-top: auto; }

/* === Saldo de créditos em destaque (dashboard) === */
.ps-saldo {
  background: var(--ps-surface); border: 1px solid var(--ps-border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.ps-saldo__label {
  font-size: 12px; font-weight: 600; color: var(--ps-muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.ps-saldo__valor {
  font-size: var(--text-5xl); font-weight: 800; color: var(--ps-gold);
  line-height: 1; letter-spacing: -0.03em;
}
/* Saldo baixo (< 10 créditos) — alerta visual em vermelho */
.ps-saldo__valor--baixo { color: var(--ps-critico); }
.ps-saldo__valor span { font-size: 16px; color: var(--ps-muted); font-weight: 600; }
.ps-saldo__bonus { font-size: 12px; color: var(--ps-subtle); margin-top: 4px; }

/* === PIX QR code === */
.ps-pix {
  border: 1px solid var(--ps-border); border-radius: var(--radius-lg);
  background: var(--ps-surface); padding: 28px; text-align: center;
  max-width: 420px; margin: 0 auto;
}
.ps-pix__qr {
  width: 240px; height: 240px; margin: 12px auto;
  border: 1px solid var(--ps-border); border-radius: var(--radius-md); display: block;
}
.ps-pix__code {
  font-family: var(--font-mono); font-size: 12px; color: var(--ps-text);
  background: var(--ps-surface-2); border: 1px solid var(--ps-border);
  border-radius: var(--radius-md); padding: 10px 12px; margin-top: 12px;
  word-break: break-all; max-height: 90px; overflow: auto;
}
.ps-pix__copy { margin-top: 10px; }

/* === Badges de transação (entrada/saída) === */
.ps-tx-entrada { background: var(--ps-excelente-bg); color: var(--ps-excelente-text); }
.ps-tx-saida   { background: var(--ps-surface-2); color: var(--ps-muted); border: 1px solid var(--ps-border); }

/* === Utilitários do módulo === */
.ps-mt-lg { margin-top: 32px; }
.ps-mb-lg { margin-bottom: 24px; }

/* === Responsivo === */
@media (max-width: 900px) {
  .ps-pacotes { grid-template-columns: 1fr 1fr; }
  .ps-saldo { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .ps-pacotes { grid-template-columns: 1fr; }
}
