/* Estilos da Carteira de Fidelidade e Resgates */

/* Botão de Abertura da Carteira no Header */
.loyalty-wallet-btn {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.2) 0%, rgba(245, 166, 35, 0.05) 100%);
  border: 1px solid rgba(245, 166, 35, 0.5);
  color: var(--gold-coin, #f5a623);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-bounce);
}

.loyalty-wallet-btn:hover {
  transform: translateY(-2px);
  background: rgba(245, 166, 35, 0.3);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.3);
}

/* Banner de Notificação de Visitante */
.guest-notification-bar {
  background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  color: #e2e8f0;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
}

.guest-cta-btn {
  background: #38bdf8;
  color: #0f172a;
  border: none;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* Modal / Drawer da Carteira de Pontos */
.loyalty-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.loyalty-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.loyalty-modal-card {
  background: #181f2a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.loyalty-modal-backdrop.open .loyalty-modal-card {
  transform: scale(1);
}

.loyalty-modal-header {
  padding: 18px 24px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loyalty-modal-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-modal-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.close-modal-btn:hover {
  color: #ffffff;
}

.loyalty-modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card de Saldo e Meta de Recompensa */
.wallet-balance-box {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.15) 0%, rgba(0, 0, 0, 0.4) 100%);
  border: 1px solid rgba(245, 166, 35, 0.4);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  position: relative;
}

.wallet-balance-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold-coin, #f5a623);
  margin-bottom: 4px;
}

.wallet-next-goal-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-top: 8px;
}

.wallet-goal-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin-top: 10px;
  overflow: hidden;
}

.wallet-goal-bar {
  height: 100%;
  background: linear-gradient(90deg, #f5a623, #ffdd59);
  border-radius: var(--radius-full);
}

/* Seção de Recompensas */
.rewards-grid-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.reward-card-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.reward-points-badge {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold-coin);
}

.reward-discount-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-redeem-action {
  width: 100%;
  background: var(--theme-primary, #e53935);
  color: #ffffff;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 4px;
  transition: var(--transition-fast);
}

.btn-redeem-action:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: #64748b;
  cursor: not-allowed;
}

.btn-redeem-action:not(:disabled):hover {
  filter: brightness(1.15);
  transform: scale(1.02);
}

/* Extrato e Cupons Ativos */
.section-subheading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.active-coupons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coupon-item-pill {
  background: rgba(34, 197, 94, 0.12);
  border: 1px dashed rgba(34, 197, 94, 0.5);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coupon-code-val {
  font-family: monospace;
  font-weight: 700;
  color: #4ade80;
  font-size: 0.95rem;
}

.transactions-extract-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tx-item-row {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.tx-credit { color: #4ade80; font-weight: 700; }
.tx-debit { color: #f87171; font-weight: 700; }

/* Modal de Confirmação de Resgate */
.confirm-redeem-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #1a2230;
  border: 2px solid #f5a623;
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 90%;
  max-width: 420px;
  z-index: 1100;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  text-align: center;
  display: none;
}

.confirm-redeem-dialog.active {
  display: block;
  transform: translate(-50%, -50%) scale(1);
}
