/* ============================================ */
/* RESET E CONFIGURAÇÕES GERAIS */
/* ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
  color: #1a2c3e;
  line-height: 1.5;
  opacity: 0;
  animation: fadeInBody 0.3s ease forwards;
}

@keyframes fadeInBody {
  to { opacity: 1; }
}

/* ============================================ */
/* CONTAINER PRINCIPAL */
/* ============================================ */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ============================================ */
/* HEADER */
/* ============================================ */
.header {
  text-align: center;
  margin-bottom: 2rem;
}

.main-logo {
  max-width: 180px;
  width: 100%;
  height: auto;
  display: inline-block;
  transition: transform 0.3s ease;
}

.main-logo:hover {
  transform: scale(1.02);
}

.tagline {
  font-size: 0.875rem;
  color: #6b7c93;
  margin-top: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.divider-light {
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
  margin: 1.5rem 0;
}

/* ============================================ */
/* SSL BADGE */
/* ============================================ */
.ssl-badge {
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 11px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
}

/* ============================================ */
/* NOTIFICAÇÕES */
/* ============================================ */
.notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  width: 100%;
  pointer-events: none;
}

@media (max-width: 550px) {
  .notifications-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
  }
}

.notification-toast {
  background: white;
  border-radius: 1rem;
  padding: 0.875rem 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  animation: slideInRight 0.3s ease forwards;
  border-left: 4px solid #e67e22;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.98);
  pointer-events: auto;
}

.notification-toast:hover {
  transform: translateX(-4px);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
}

.notification-toast.fade-out {
  animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

.notification-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #fef3e8, #fffaf5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon svg {
  width: 20px;
  height: 20px;
  stroke: #e67e22;
}

.notification-content {
  flex: 1;
}

.notification-message {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2d3e50;
  margin-bottom: 0.25rem;
}

.notification-message strong {
  color: #1a3c5e;
  font-weight: 700;
}

.notification-message .valor {
  color: #e67e22;
  font-weight: 700;
}

.notification-time {
  font-size: 0.65rem;
  color: #8a9bb0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.notification-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.notification-close:hover {
  background: #f1f5f9;
}

.notification-close svg {
  width: 14px;
  height: 14px;
  stroke: #94a3b8;
}

/* ============================================ */
/* CARD DE NÚMERO */
/* ============================================ */
.number-card {
  background: white;
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.number-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.number-label {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  color: #4a5b6e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.number-card:hover .brand-icon {
  transform: scale(1.05);
}

.phone-input input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 1rem;
  outline: none;
  transition: all 0.2s;
  background: white;
  font-family: inherit;
  font-weight: 500;
}

.phone-input input:focus {
  border-color: #e67e22;
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
}

.error-message {
  color: #e53e3e;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  margin-left: 0.25rem;
}

/* ============================================ */
/* SEÇÕES E TÍTULOS */
/* ============================================ */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem 0;
  color: #1a3c5e;
  letter-spacing: -0.01em;
}

.subtitle-operadora {
  font-size: 1rem;
  font-weight: 600;
  color: #4a5b6e;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

/* ============================================ */
/* OPERADORAS */
/* ============================================ */
.operadoras-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.operadora-btn {
  background: white;
  border: 2px solid #eef2f8;
  border-radius: 1.25rem;
  padding: 1.5rem 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.operadora-btn img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  transition: all 0.25s ease;
}

.operadora-btn[data-operadora="TIM"] img,
.operadora-btn[data-operadora="Algar"] img,
.operadora-btn[data-operadora="Correios"] img {
  width: 90px;
  height: 90px;
}

.operadora-btn:hover {
  border-color: #e67e22;
  background: linear-gradient(135deg, #ffffff, #fffaf5);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(230, 126, 34, 0.2);
}

.operadora-btn.active {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  border-color: #e67e22;
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.35);
}

.operadora-btn.active img {
  filter: none !important;
}

/* ============================================ */
/* VALORES */
/* ============================================ */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 1rem;
}

.valor-card {
  background: white;
  border-radius: 1.25rem;
  padding: 1.125rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid #eef2f8;
  position: relative;
}

.valor-card:hover {
  border-color: #e67e22;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.valor-card.selected {
  border: 2px solid #e67e22;
  background: linear-gradient(135deg, #fffaf5, #ffffff);
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.15);
}

.valor-preco {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a3c5e;
}

.valor-preco small {
  font-size: 0.75rem;
  font-weight: 500;
  color: #8a9bb0;
}

.valor-bonus {
  font-size: 0.7rem;
  color: #e67e22;
  font-weight: 600;
  background: #fef3e8;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-top: 0.5rem;
}

.mais-escolhido {
  position: absolute;
  top: -10px;
  right: 10px;
  background: linear-gradient(135deg, #e67e22, #f39c12);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 50px;
}

/* ============================================ */
/* BOTÃO CONTINUAR */
/* ============================================ */
.prosseguir-area {
  text-align: center;
  margin: 2rem 0 2rem;
}

.btn-prosseguir {
  background: linear-gradient(135deg, #1a3c5e, #2c5a7a);
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  max-width: 300px;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(26, 60, 94, 0.2);
}

.btn-prosseguir:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 60, 94, 0.3);
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
.footer {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.75rem;
  color: #8a9bb0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: #8a9bb0;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #e67e22;
}

.secure-text {
  font-size: 0.65rem;
  margin-top: 0.5rem;
}

/* ============================================ */
/* MODAL PAGAMENTO */
/* ============================================ */
.modal-pagamento {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to { opacity: 1; backdrop-filter: blur(12px); }
}

.modal-pagamento.active {
  display: flex;
}

.modal-pagamento-content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  max-width: 580px;
  width: 100%;
  border-radius: 2rem;
  box-shadow: 0 40px 60px -20px rgba(0, 0, 0, 0.4);
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-fixed-header {
  background: linear-gradient(135deg, #1a3c5e 0%, #0f2c46 100%);
  padding: 1.5rem 2rem 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
  text-align: center;
}

.modal-brand-logo {
  max-width: 100px;
  width: 100%;
  height: auto;
  margin-bottom: 0.25rem;
}

.modal-subtitle {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.modal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  margin: 1rem 0 0.5rem 0;
}

.modal-scrollable {
  overflow-y: auto;
  padding: 1.5rem 2rem 2rem 2rem;
  flex: 1;
  background: white;
}

.modal-scrollable::-webkit-scrollbar {
  width: 6px;
}

.modal-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.modal-scrollable::-webkit-scrollbar-thumb {
  background: #e67e22;
  border-radius: 10px;
}

.fechar-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  z-index: 20;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.fechar-modal:hover {
  background: #e53e3e;
  transform: rotate(90deg);
}

.fechar-modal:hover svg {
  stroke: white;
}

.dados-pedido {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  margin: 0.5rem 0 1.5rem;
  border: 1px solid #eef2f8;
}

.pedido-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px dashed #eef2f8;
}

.pedido-item:last-child {
  border-bottom: none;
}

.pedido-label {
  font-weight: 600;
  color: #4a5b6e;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-wrapper {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #fffaf5, #ffffff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pedido-valor {
  color: #1a2c3e;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.operadora-logo-modal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.operadora-logo-modal img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.2s;
}

.operadora-logo-modal img:hover {
  transform: scale(1.05);
}

.operadora-logo-modal img[data-op="TIM"],
.operadora-logo-modal img[data-op="Algar"],
.operadora-logo-modal img[data-op="Correios"] {
  width: 60px;
  height: 60px;
}

.destaque-valor {
  color: #e67e22;
  font-weight: 800;
  font-size: 1.1rem;
}

.form-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  margin: 0.5rem 0 1.25rem 0;
}

.form-dados {
  margin: 0.5rem 0;
}

.input-group {
  margin-bottom: 1.25rem;
}

.input-group label {
  display: block;
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  color: #4a5b6e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.2s;
  background: white;
}

.input-group input:focus {
  outline: none;
  border-color: #e67e22;
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
}

.input-error {
  color: #e53e3e;
  font-size: 0.6875rem;
  margin-top: 0.25rem;
}

.btn-gerar-pix {
  width: 100%;
  background: linear-gradient(135deg, #e67e22, #f39c12);
  border: none;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  border-radius: 60px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-gerar-pix::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-gerar-pix:hover::before {
  left: 100%;
}

.btn-gerar-pix:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
}

.protecao-texto {
  text-align: center;
  font-size: 0.65rem;
  color: #8a9bb0;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ============================================ */
/* MODAL PIX */
/* ============================================ */
.modal-pix {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 1rem;
}

.modal-pix.active {
  display: flex;
}

.modal-pix-content {
  background: linear-gradient(135deg, #ffffff, #fef9f5);
  max-width: 460px;
  width: 100%;
  border-radius: 2rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.pix-qrcode {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin: 1.25rem 0;
  border: 2px dashed #e67e22;
}

.qr-label {
  font-weight: 600;
  margin: 0.5rem 0;
  font-size: 0.875rem;
  color: #4a5b6e;
}

.qr-container {
  background: #eef2ff;
  padding: 1rem;
  border-radius: 1rem;
}

.qr-container img {
  width: 130px;
  height: 130px;
  max-width: 100%;
}

.pix-codigo {
  background: #f1f5f9;
  padding: 0.875rem;
  border-radius: 1rem;
  font-family: monospace;
  font-size: 0.68rem;
  word-break: break-all;
  margin: 1rem 0;
}

.btn-copiar {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.875rem;
  color: white;
  width: 100%;
  transition: all 0.2s;
}

.btn-copiar:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.btn-fechar-pix {
  background: #f1f5f9;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 60px;
  cursor: pointer;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a5b6e;
  width: 100%;
  transition: all 0.2s;
}

.btn-fechar-pix:hover {
  background: #e2e8f0;
}

/* ============================================ */
/* RESPONSIVIDADE */
/* ============================================ */
@media (max-width: 550px) {
  .container {
    padding: 1.25rem;
  }
  
  .main-logo {
    max-width: 140px;
  }
  
  .operadoras-grid {
    gap: 0.875rem;
  }
  
  .operadora-btn {
    padding: 1rem 0.5rem;
  }
  
  .operadora-btn img {
    width: 44px;
    height: 44px;
  }
  
  .operadora-btn[data-operadora="TIM"] img,
  .operadora-btn[data-operadora="Algar"] img,
  .operadora-btn[data-operadora="Correios"] img {
    width: 70px;
    height: 70px;
  }
  
  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .brand-icon {
    width: 24px;
    height: 24px;
  }
  
  .modal-brand-logo {
    max-width: 80px;
  }
  
  .operadora-logo-modal img {
    width: 35px;
    height: 35px;
  }
  
  .operadora-logo-modal img[data-op="TIM"],
  .operadora-logo-modal img[data-op="Algar"],
  .operadora-logo-modal img[data-op="Correios"] {
    width: 50px;
    height: 50px;
  }
  
  .modal-fixed-header {
    padding: 1.25rem 1.25rem 0.75rem 1.25rem;
  }
  
  .modal-scrollable {
    padding: 1rem 1.25rem 1.25rem 1.25rem;
  }
}