/* =============================================
   MODAL DE CONFIRMAÇÃO DE RESERVA
============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  animation: pop-in 0.28s ease;
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: #D1FAE5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.modal-box h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.modal-box > p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

/* Recibo */
.modal-receipt {
  background: var(--bg);
  border-radius: 10px;
  padding: 16px;
  text-align: left;
  margin-bottom: 16px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.receipt-row strong { color: var(--text); }
.receipt-row.total {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0;
}
.receipt-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}
.receipt-installment {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Badge de parcelamento */
.split-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-lt);
  color: var(--primary);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.modal-close-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background var(--transition);
}
.modal-close-btn:hover { background: var(--primary-dk); }

/* =============================================
   TOAST DE NOTIFICAÇÃO
============================================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: #fff;
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 300;
  transition: transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
