:root{
  --pink:#ec0978;
  --pink-600:#d0086c;
  --pink-50:#fff4fa;
  --ink:#0f172a;
  --sky:#f8fafc;
  --footer:#1a1d29;
  --muted:#6b7280;
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:#111827;
  background:#ffffff;
  line-height:1.6;
}

.topbar{
  position:sticky; top:0; z-index:50;
  background:var(--pink);
  border-bottom:none;
}
.nav{
  max-width:1200px; margin:0 auto; padding:16px 20px;
  display:flex; align-items:center; justify-content:center;
}
.brand{
  display:inline-block; text-decoration:none;
}
.brand-logo{
  width:100px; height:42.5px; display:block; object-fit:contain;
  filter:brightness(0) invert(1);
}

.hero{
  padding:40px 16px 24px;
  background:#ffffff;
  margin-bottom:0;
}
.shell{
  max-width:1200px; margin:0 auto;
  display:grid; grid-template-columns:1fr; gap:24px;
}
.page-header{
  text-align:center; margin-bottom:32px;
}
.page-header h1{
  font-size:2rem; font-weight:600; color:#111827; margin:0 0 8px 0;
  letter-spacing:-.02em;
  line-height:1.3;
}
.page-header p{
  font-size:.95rem; color:#6b7280; margin:0;
  font-weight:400;
  line-height:1.5;
  max-width:600px; margin-left:auto; margin-right:auto;
}
.card{
  width:100%; background:white; border:1px solid #e5e7eb; border-radius:12px;
  box-shadow:0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
  overflow:hidden;
  transition:box-shadow .2s;
}
.card:hover{
  box-shadow:0 2px 6px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04);
}
.card-head{
  padding:20px 24px; border-bottom:1px solid #e5e7eb;
  background:#ffffff;
}
.card-title{
  font-weight:600; color:#111827; font-size:1rem; margin:0;
  letter-spacing:-.01em;
}
.iframe-wrap{
  height:70vh; min-height:520px;
  background:#ffffff !important;
  position:relative;
  border-radius:0 0 12px 12px;
  overflow:hidden;
}
.iframe-wrap iframe{
  width:100%; height:100%; border:0; display:block;
  border-radius:0 0 12px 12px;
  background:#ffffff !important;
  position:relative;
  z-index:1;
  color-scheme: light;
}
/* Overlay branco atrás do iframe para garantir fundo branco */
.iframe-wrap::after{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:#ffffff !important;
  z-index:0;
  pointer-events:none;
}

footer{
  margin-top:0;
  background:#f8f9fa;
  border-top:1px solid #e5e7eb;
  color:#6b7280;
}
.foot{
  max-width:1200px; margin:0 auto; padding:32px 16px 24px;
}
.foot-main{
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  margin-bottom:24px;
  padding-bottom:24px;
  border-bottom:1px solid #e5e7eb;
}
.foot-brand-section{
  display:flex; align-items:center;
}
.foot-logo{
  height:32px; width:auto; display:block; object-fit:contain;
  align-self:center;
}
.foot-links-section{
  display:flex; align-items:center; gap:20px; flex-wrap:wrap;
}
.foot-links-section a{
  color:#6b7280; text-decoration:none; font-size:.875rem;
  transition:color .2s;
  font-weight:400;
}
.foot-links-section a:hover{
  color:#111827;
}
.foot-bottom{
  display:flex; flex-direction:column; gap:8px;
  text-align:center;
}
.foot-bottom p{
  margin:0; font-size:.85rem; color:#9ca3af;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.foot-registry{
  font-size:.8rem !important; opacity:.8;
}

dialog{
  width:min(820px, 92vw);
  border:0; border-radius:16px; padding:0; overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}
.modal-head{padding:16px 18px; background:var(--pink); color:#fff; font-weight:800; display:flex; justify-content:space-between; align-items:center}
.modal-body{padding:24px; max-height:70vh; overflow:auto; background:#fff; line-height:1.6}
.modal-body p{margin:0 0 1rem 0; color:#374151}
.modal-body p:last-of-type{margin-bottom:1.5rem}
.modal-body h4{margin:1.5rem 0 .5rem; color:#111827; font-size:1rem}
.btn-close{all:unset; cursor:pointer; font-weight:900; font-size:1.2rem; opacity:.8}
.btn-close:hover{opacity:1}
.legal small{color:#64748b}
.contact-info{
  margin:1.5rem 0; padding:16px; background:#f9fafb; border-radius:8px; border-left:3px solid var(--pink);
}
.contact-info strong{display:block; color:#111827; margin-bottom:6px; font-size:.95rem}
.contact-info span{color:#6b7280; font-size:.9rem}

@media (max-width: 920px){
  .nav{padding:12px 16px}
  .brand-logo{width:80px; height:34px}
  .foot-main{
    flex-direction:column; align-items:center; text-align:center;
  }
  .foot-links-section{
    justify-content:center;
  }
}
@media (max-width: 640px){
  .hero{
    padding:24px 12px 32px;
  }
  .page-header{
    margin-bottom:20px;
  }
  .page-header h1{
    font-size:1.5rem;
  }
  .page-header p{
    font-size:.9rem;
  }
  .card{
    border-radius:8px;
  }
  .card-head{
    padding:16px 20px;
  }
  .card-title{
    font-size:.95rem;
  }
  .iframe-wrap{
    min-height:500px;
    border-radius:0 0 8px 8px;
  }
  .iframe-wrap iframe{
    border-radius:0 0 8px 8px;
  }
  .foot{
    padding:24px 16px 20px;
  }
  .foot-links-section{
    flex-direction:column; gap:12px;
  }
}
@media (min-width: 921px){
  .hamb{display:none}
}

/* Instruções de Pagamento PIX */
.pix-instructions{
  display:flex; flex-direction:column; gap:20px; padding:8px 0;
}

.instruction-step{
  display:flex; align-items:center; gap:16px;
  animation:fadeInUp 0.5s ease-out backwards;
}

.instruction-step:nth-child(1){animation-delay:0.1s}
.instruction-step:nth-child(2){animation-delay:0.2s}
.instruction-step:nth-child(3){animation-delay:0.3s}
.instruction-step:nth-child(4){animation-delay:0.4s}
.instruction-step:nth-child(5){animation-delay:0.5s}

.step-number{
  width:32px; height:32px; border-radius:50%;
  background:var(--pink); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:1rem; flex-shrink:0;
  animation:pulse 2s ease-in-out infinite;
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}

.step-number:hover{
  transform:scale(1.1);
  box-shadow:0 4px 12px rgba(236,9,120,0.4);
}

.step-text{
  margin:0; color:#374151; font-size:0.95rem;
  line-height:1.5;
}

/* Animações */
@keyframes fadeInUp{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes pulse{
  0%, 100%{
    transform:scale(1);
    box-shadow:0 0 0 0 rgba(236,9,120,0.7);
  }
  50%{
    transform:scale(1.05);
    box-shadow:0 0 0 8px rgba(236,9,120,0);
  }
}

/* Animação sequencial nos números */
.instruction-step .step-number{
  animation:pulse 2s ease-in-out infinite, numberAppear 0.6s ease-out backwards;
}

.instruction-step:nth-child(1) .step-number{animation-delay:0s, 0.1s}
.instruction-step:nth-child(2) .step-number{animation-delay:0.2s, 0.3s}
.instruction-step:nth-child(3) .step-number{animation-delay:0.4s, 0.5s}
.instruction-step:nth-child(4) .step-number{animation-delay:0.6s, 0.7s}
.instruction-step:nth-child(5) .step-number{animation-delay:0.8s, 0.9s}

@keyframes numberAppear{
  0%{
    opacity:0;
    transform:scale(0) rotate(-180deg);
  }
  50%{
    transform:scale(1.2) rotate(10deg);
  }
  100%{
    opacity:1;
    transform:scale(1) rotate(0deg);
  }
}

@media (max-width: 640px){
  .instruction-step{
    gap:12px;
  }

  .step-number{
    width:28px; height:28px; font-size:0.9rem;
  }

  .step-text{
    font-size:0.9rem;
  }
}

/* Estilos para página de pagamento */
.card-body{
  padding:24px;
}

.payment-form{
  display:flex; flex-direction:column; gap:20px;
}

.form-group{
  display:flex; flex-direction:column; gap:8px;
}

.form-group label{
  font-weight:500; color:#374151; font-size:.9rem;
}

.form-group input{
  padding:12px 16px; border:1px solid #d1d5db; border-radius:8px;
  font-size:1rem; font-family:inherit; transition:border-color .2s;
  background:#fff;
}

.form-group input:focus{
  outline:none; border-color:var(--pink); box-shadow:0 0 0 3px rgba(236,9,120,.1);
}

.form-group input:invalid:not(:placeholder-shown){
  border-color:#ef4444;
}

.form-hint{
  font-size:.8rem; color:#6b7280; margin-top:4px;
}

.btn-payment{
  padding:14px 24px; background:var(--pink); color:#fff;
  border:none; border-radius:8px; font-size:1rem; font-weight:600;
  cursor:pointer; transition:background .2s; margin-top:8px;
  display:flex; align-items:center; justify-content:center; gap:8px;
}

.btn-payment:hover:not(:disabled){
  background:var(--pink-600);
}

.btn-payment:disabled{
  opacity:.6; cursor:not-allowed;
}

.btn-secondary{
  padding:10px 20px; background:#f3f4f6; color:#374151;
  border:1px solid #e5e7eb; border-radius:8px; font-size:.9rem;
  font-weight:500; cursor:pointer; transition:all .2s;
}

.btn-secondary:hover{
  background:#e5e7eb; border-color:#d1d5db;
}

.payment-info{
  display:flex; flex-direction:column; gap:24px;
}

.payment-status{
  text-align:center;
}

.status-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 20px; border-radius:8px; font-weight:500;
  font-size:.95rem;
}

.status-pending{
  background:#fef3c7; color:#92400e;
}

.status-paid{
  background:#d1fae5; color:#065f46;
}

.status-cancelled{
  background:#fee2e2; color:#991b1b;
}

.status-refunded{
  background:#e0e7ff; color:#3730a3;
}

.status-icon{
  font-size:1.2rem;
}

/* Resumo do Pagamento */
.payment-summary{
  background:#f9fafb; padding:20px; border-radius:8px;
  margin-bottom:20px; border:1px solid #e5e7eb;
}

.summary-item{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 0;
}

.summary-item:not(:last-child){
  border-bottom:1px solid #e5e7eb;
}

.summary-label{
  font-size:0.95rem; color:#6b7280; font-weight:400;
}

.summary-value{
  font-size:1rem; color:var(--pink); font-weight:600;
}

.summary-amount{
  font-size:1.25rem; font-weight:700;
}

.payment-details{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:16px; padding:20px; background:#f9fafb; border-radius:8px;
}

.detail-item{
  display:flex; flex-direction:column; gap:4px;
}

.detail-label{
  font-size:.85rem; color:#6b7280; font-weight:500;
}

.detail-value{
  font-size:1rem; color:#111827; font-weight:600;
}

.qrcode-container{
  display:flex; justify-content:center; align-items:center;
  padding:24px; background:#f9fafb; border-radius:8px;
}

.qrcode-wrapper{
  position:relative; display:flex; justify-content:center;
  align-items:center; min-height:300px;
}

.qrcode-image{
  max-width:100%; height:auto; border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,.1);
}

.qrcode-loading{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:20px; color:#6b7280; min-height:300px;
}

.loading-spinner{
  width:60px; height:60px; border:4px solid #f3f4f6;
  border-top-color:var(--pink); border-radius:50%;
  animation:spin 1s linear infinite;
}

.loading-text{
  margin:0; font-size:1rem; color:#6b7280; font-weight:500;
  animation:pulseText 1.5s ease-in-out infinite;
}

@keyframes spin{
  to{transform:rotate(360deg)}
}

@keyframes pulseText{
  0%, 100%{opacity:1}
  50%{opacity:0.5}
}

.copy-paste-section{
  display:flex; flex-direction:column; gap:8px;
}

.copy-paste-section label{
  font-weight:500; color:#374151; font-size:.9rem;
}

.copy-input-group{
  display:flex; gap:8px;
}

.copy-input{
  flex:1; padding:12px 16px; border:1px solid #d1d5db;
  border-radius:8px; font-size:.9rem; background:#fff;
  font-family:monospace; color:#374151;
}

.btn-copy{
  padding:12px 20px; background:#f3f4f6; color:#374151;
  border:1px solid #e5e7eb; border-radius:8px; font-size:.9rem;
  font-weight:500; cursor:pointer; transition:all .2s;
  white-space:nowrap;
}

.btn-copy:hover{
  background:#e5e7eb; border-color:#d1d5db;
}

.btn-copy.copied{
  background:#d1fae5; color:#065f46; border-color:#a7f3d0;
}

.payment-actions{
  display:flex; gap:12px; flex-wrap:wrap;
}

.payment-actions .btn-secondary{
  flex:1; min-width:150px;
}

@media (max-width: 640px){
  .card-body{
    padding:20px 16px;
  }

  .payment-details{
    grid-template-columns:1fr; padding:16px;
  }

  .copy-input-group{
    flex-direction:column;
  }

  .btn-copy{
    width:100%;
  }

  .payment-actions{
    flex-direction:column;
  }

  .payment-actions .btn-secondary{
    width:100%;
  }

  .qrcode-wrapper{
    min-height:250px;
  }
}


