.material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
            display: inline-block;
            vertical-align: middle;
        }
        .grainy-bg {
            position: relative;
        }
        .grainy-bg::before {
            content: "";
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            opacity: 0.03;
            pointer-events: none;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
        }
        .asymmetric-layout {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 4rem;
        }
        @media (max-width: 1024px) {
            .asymmetric-layout {
                grid-template-columns: 1fr;
            }
        }

/* ==========================================
   MODAL DE PLANO
   ========================================== */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.ativo {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 28px 20px 40px;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.modal-fechar {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-titulo {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
  text-align: center;
}

.modal-subtitulo {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 24px;
}

.cards-planos {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.card-plano {
  flex: 1;
  border: 2px solid #e8e8e8;
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.card-plano.selecionado {
  border-color: #8B4513;
  background: #FDF5EF;
}

.card-plano.destaque {
  border-color: #d4a056;
}

.plano-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #d4a056;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.plano-icone { font-size: 24px; margin-bottom: 6px; }
.plano-nome  { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.plano-preco { font-size: 18px; font-weight: 800; color: #8B4513; margin: 4px 0; }
.plano-desc  { font-size: 11px; color: #999; }

.btn-continuar-pagamento {
  width: 100%;
  background: linear-gradient(135deg, #8B4513, #d4a056);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 16px;
  transition: opacity 0.2s;
}

.btn-continuar-pagamento:hover { opacity: 0.9; }

#loading-pagamento {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  color: #666;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e8e8e8;
  border-top-color: #8B4513;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ==========================================
   ERROS E ESTADOS DE PAGAMENTO
   ========================================== */

.erro-pagamento-box,
.aviso-expirado-box {
  text-align: center;
  padding: 28px 20px;
}

.erro-icone {
  font-size: 40px;
  margin-bottom: 12px;
}

.erro-titulo {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.erro-motivo {
  font-size: 14px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn-tentar-novamente {
  width: 100%;
  background: linear-gradient(135deg, #8B4513, #d4a056);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
}

.btn-usar-pix {
  width: 100%;
  background: #fff;
  color: #25a244;
  border: 2px solid #25a244;
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================
   TELA PIX
   ========================================== */

.tela-pix-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pix-box {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 48px;
  width: 100%;
  max-width: 480px;
}

.pix-header {
  text-align: center;
  margin-bottom: 20px;
}

.pix-icone {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}

.pix-header h3 {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.pix-header p {
  font-size: 14px;
  color: #888;
}

.pix-qr-img {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  display: block;
  border-radius: 12px;
  border: 2px solid #f0f0f0;
}

.pix-codigo-wrap {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.pix-codigo-texto {
  display: block;
  font-size: 11px;
  word-break: break-all;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.6;
  font-family: monospace;
}

.btn-copiar-pix {
  width: 100%;
  background: #25a244;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.pix-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #888;
  margin-bottom: 16px;
}

.pix-countdown strong {
  font-size: 18px;
  color: #e05c2a;
  font-variant-numeric: tabular-nums;
}

.pix-aviso {
  font-size: 13px;
  color: #aaa;
  text-align: center;
  line-height: 1.5;
}

/* ==========================================
   TELA DE UPLOAD
   ========================================== */

.tela-upload {
  padding: 20px 16px 80px;
  min-height: 100vh;
}

.upload-header {
  text-align: center;
  margin-bottom: 28px;
}

.upload-badge {
  display: inline-block;
  background: #e6f7ec;
  color: #25a244;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.upload-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.upload-header p {
  font-size: 15px;
  color: #888;
}

.upload-dropzone {
  border: 2px dashed #d4a056;
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  background: #FDFAF5;
  margin-bottom: 20px;
  transition: background 0.2s;
}

.upload-dropzone:active {
  background: #FDF5EF;
}

.dropzone-icone {
  font-size: 48px;
  margin-bottom: 12px;
}

.dropzone-texto {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.dropzone-subtexto {
  font-size: 13px;
  color: #aaa;
}

.fotos-selecionadas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.foto-thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.foto-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foto-thumb-remover {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-enviar-fotos {
  width: 100%;
  background: linear-gradient(135deg, #8B4513, #d4a056);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 18px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================
   BOTTOM SHEET
   ========================================== */

.sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: flex-end;
}

.sheet-overlay.ativo {
  display: flex;
}

.sheet-box {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 12px 20px 40px;
  animation: slideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  -webkit-overflow-scrolling: touch;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 0 auto 20px;
}

.sheet-passo {
  display: none;
}

.sheet-passo.ativo {
  display: block;
}

.sheet-titulo {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.sheet-subtitulo {
  font-size: 15px;
  color: #888;
  margin-bottom: 24px;
}

/* Passos lista */
.passos-lista {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.passo-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.passo-numero {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d4a056;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.passo-verde {
  background: #25a244;
}

.passo-texto strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.passo-texto span {
  font-size: 14px;
  color: #888;
}

.btn-sheet-continuar {
  width: 100%;
  background: linear-gradient(135deg, #8B4513, #d4a056);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 18px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.2px;
}

.btn-voltar-sheet {
  background: none;
  border: none;
  color: #8B4513;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
}

/* Cards de plano dentro do sheet */
.cards-planos {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.plano-destaque-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #d4a056;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.plano-qtd     { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.plano-economia{ font-size: 12px; color: #999; }

/* Loading brick */
.loading-brick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  color: #888;
  font-size: 14px;
}

/* ==========================================
   TELA DE RESULTADO
   ========================================== */

.tela-resultado {
  padding: 0 0 80px;
  min-height: 100vh;
}

.resultado-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.btn-voltar-resultado {
  background: none;
  border: none;
  color: #8B4513;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.resultado-label {
  font-size: 13px;
  color: #aaa;
  margin: 0;
}

/* Comparação antes/depois */
.resultado-comparacao {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
}

.resultado-foto-box {
  flex: 1;
  position: relative;
}

.foto-label {
  display: block;
  font-size: 12px;
  color: #aaa;
  text-align: center;
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.foto-preview {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.resultado-seta {
  font-size: 24px;
  color: #d4a056;
  flex-shrink: 0;
}

/* Marca d'água */
.foto-watermark-wrap {
  position: relative;
}

.watermark-overlay {
  position: absolute;
  inset: 0;
  /* SVG de fundo repetido com marca d'água em padrão cruzado (X) */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Ctext x='50%25' y='45%25' fill='rgba(255,255,255,0.55)' font-size='18' font-family='sans-serif' font-weight='bold' text-anchor='middle' transform='rotate(-40, 80, 80)' style='text-shadow: 1px 1px 3px rgba(0,0,0,0.5)'%3EMEMÓRIAS ETERNAS%3C/text%3E%3Ctext x='50%25' y='60%25' fill='rgba(255,255,255,0.2)' font-size='12' font-family='sans-serif' font-weight='bold' text-anchor='middle' transform='rotate(40, 80, 80)'%3EPRÉVIA RESTRITA%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 85px 85px;
  pointer-events: none;
  z-index: 10;
  border-radius: 12px;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.3);
}

/* Aviso */
.resultado-aviso {
  font-size: 13px;
  color: #888;
  text-align: center;
  padding: 0 20px 20px;
  line-height: 1.5;
}

/* Opção principal */
.resultado-opcao-principal {
  background: #FDF5EF;
  border: 1.5px solid #e8c99a;
  border-radius: 20px;
  padding: 20px;
  margin: 0 16px 16px;
  text-align: center;
}

.opcao-titulo {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.btn-comprar-foto {
  width: 100%;
  background: linear-gradient(135deg, #8B4513, #d4a056);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 18px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
}

.opcao-detalhe {
  font-size: 13px;
  color: #aaa;
  margin: 0;
}

/* Divisor */
.resultado-divisor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 32px 16px;
}

.resultado-divisor::before,
.resultado-divisor::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}

.resultado-divisor span {
  font-size: 13px;
  color: #bbb;
  font-weight: 600;
}

/* Opção secundária */
.resultado-opcao-secundaria {
  padding: 0 16px;
  text-align: center;
}

.opcao-titulo-sec {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.opcao-desc {
  font-size: 14px;
  color: #888;
  margin-bottom: 14px;
  line-height: 1.5;
}

.btn-mais-fotos {
  width: 100%;
  background: #fff;
  color: #8B4513;
  border: 2px solid #8B4513;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================
   TELA AGUARDANDO ENTREGA
   ========================================== */
.tela-aguardando {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.aguardando-content {
  text-align: center;
  max-width: 320px;
}

.aguardando-icone {
  font-size: 56px;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.aguardando-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.aguardando-content p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
}

.aguardando-progresso {
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progresso-barra {
  height: 100%;
  background: linear-gradient(90deg, #8B4513, #d4a056);
  border-radius: 2px;
  animation: progresso 8s ease-in-out infinite alternate;
}

@keyframes progresso {
  from { width: 10%; }
  to   { width: 90%; }
}

.aguardando-dica {
  font-size: 13px;
  color: #aaa;
}