* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ajuste solicitado: fundo branco geral */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(600px 320px at 90% -10%, rgb(1 255 95 / 18%), transparent 60%), radial-gradient(600px 320px at -10% 10%, rgb(122 255 158 / 20%), transparent 60%), linear-gradient(83deg, #b3d5c6 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 6px 12px rgba(0, 0, 0, 0.15);
   border-radius: 20px;
   margin-top: -100;
}

.payment-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    padding: 20px;
    text-align: center;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.logo i {
    font-size: 24px;
}

.promo-banner {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    position: relative;
    z-index: 2;
}

.banner-text h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.banner-text p {
    font-size: 14px;
    margin-bottom: 10px;
}

.discount {
    background: #FF5722;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
}

.discount span {
    font-size: 12px;
}

.banner-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.emoji, .person {
    font-size: 24px;
    animation: bounce 2s infinite;
}

.percentage-badge {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #4CAF50;
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Destaque visual para a seção de instruções */
.instructions {
    position: relative;
    background: #ffffff;
    border-left: 4px solid #FF5722;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 6px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 14px;
    margin: 10px 16px 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.08);
}
.instructions::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 8px;
    bottom: 8px;
    background: linear-gradient(180deg, rgba(255,87,34,0.9), rgba(255,87,34,0.6));
    filter: blur(0.5px);
    box-shadow: 0 0 12px rgba(255, 87, 34, 0.35);
    border-radius: 2px;
}
.instructions h3 {
    color: #FF5722;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.instructions ol {
    list-style: none;
    counter-reset: step-counter;
}
.instructions li {
    counter-increment: step-counter;
    margin-bottom: 12px;
    padding-left: 40px;
    position: relative;
    line-height: 1.5;
    color: #555;
}
.step-number {
    position: absolute;
    left: 0;
    top: 0;
    background: #2196F3;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}
.form-section {
    padding: 25px;
    margin-top: -26px;
}
.input-group {
    margin-bottom: 20px;
}
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}
.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}
.form-input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}
.btn-primary:active {
    transform: translateY(0);
}
.qr-section {
    padding: 25px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}
.qr-container {
    text-align: center;
}
#btnEnviarComprovante{
    margin-top: 15px;
}
.qr-container h3 {
    margin-bottom: 20px;
    color: #333;
}
.qr-image {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
}
.qr-image img {
    max-width: 200px;
    height: auto;
}
.pix-code-container {
    margin-bottom: 20px;
    text-align: left;
}
.pix-code-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}
.code-input-group {
    display: flex;
    gap: 10px;
}
.pix-code-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    font-family: monospace;
    font-size: 14px;
}
.btn-copy {
    background: #FF9800;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-copy:hover {
    background: #F57C00;
    transform: translateY(-1px);
}
.btn-confirm {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}
.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}
.status-section {
    padding: 25px;
    text-align: center;
}
.status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.status-icon {
    font-size: 48px;
}
.status-icon.success {
    color: #4CAF50;
}
.status-icon.error {
    color: #f44336;
}
.status-icon.loading {
    color: #2196F3;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.status-message {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Loading overlay for verification */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none; /* toggled to flex via JS */
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.loading-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.loading-content {
    padding: 22px 20px 24px;
    text-align: center;
}

.loading-icon {
    font-size: 34px;
    color: #2e7d32;
    margin-bottom: 10px;
}

.loading-content h3 {
    margin: 6px 0 8px;
    color: #2e7d32;
    font-weight: 700;
}

.loading-content p {
    color: #555;
    font-size: 14px;
    margin-bottom: 12px;
}

.progress-container {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 999px;
    overflow: hidden;
    margin: 8px 0 6px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2e7d32, #4caf50);
    transition: width 0.1s linear;
}

.progress-text {
    font-size: 13px;
    color: #555;
}

.btn-cancel {
    margin-top: 14px;
    background: #eef2f7;
    color: #333;
    border: 1px solid #d5dae1;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
/* Responsividade */
@media (max-width: 600px) {
    .container {
        padding: 10px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 6px 12px rgba(0, 0, 0, 0.15);
        border-radius: 20px;
        margin-top: -70px;
    }
    
    .payment-card {
        border-radius: 15px;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .percentage-badge {
        position: static;
        transform: none;
        margin-top: 10px;
    }
    
    .code-input-group {
        flex-direction: column;
    }
    
    .btn-copy {
        width: 100%;
        justify-content: center;
    }
    
    .loading-content {
        padding: 30px 20px;
    }
    
    .loading-title {
        font-size: 20px;
    }
}

/* Animações de entrada */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo para mensagens de erro */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #f44336;
    font-size: 14px;
}

/* Estilo para mensagens de sucesso */
.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #4caf50;
    font-size: 14px;
}

/* Overlay para exibir o QR Code em um card por cima */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.overlay-card {
  background: #fff;
  width: min(520px, 92vw);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  padding: 20px 20px 26px;
  position: relative;
}

.overlay-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: #f5f5f5;
  color: #333;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.overlay-close:hover { background: #eaeaea; }

/* Image-only banner (no background) used for plain promotional images */
.promo-banner-img {
    display: block;
    width: 100%;
    height: auto; /* evita corte vertical */
    scale: 0.9;
    object-fit: contain;
    margin: 10px 0 12px; /* remove margem lateral para não "comer" bordas com overflow hidden do card */
    border-radius: 12px;
    background: transparent;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.payment-card .instructions { order: 4; }
.payment-card .form-section { order: 5; }

/* Imagem de verificado no card aprovado */
.approved-content {
    text-align: center;
}
.approved-content .verified-img {
    display: block;
    width: 140px;
    max-width: 60%;
    height: auto;
    margin: 0 auto 12px;
}
@media (max-width: 480px) {
    .approved-content .verified-img {
        width: 110px;
        max-width: 70%;
    }
}