/* ... CSS Anterior mantido ... */
:root {
    --bg-color: #f0f2f5;
    --primary-red: #ff0048;
    --green-pix: #25d366;
    --green-light: #dcfce7;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --border-color: #e5e7eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 20px; /* Aumentei o espaçamento entre flex items */
}

.card {
    background: white;
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    margin-bottom: 20px; /* Garante espaco mesmo se gap falhar */
}

/* HEADER */
.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container {
    background: black;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-img {
    width: 45px;
    transform: scale(1.2);
}

.product-info h3 {
    font-size: 14px;
    font-weight: 600;
}

.product-info .price {
    color: var(--green-pix);
    font-size: 20px;
    font-weight: 700;
    margin: 2px 0;
}

.badge {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
}

/* TITULOS COM NUMERO */
.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.bg-red { background-color: var(--primary-red); }

.card-title h3 {
    font-size: 16px;
    font-weight: 700;
}

/* FORMULARIO */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.form-group input:focus {
    border-color: #9ca3af;
}

/* PAGAMENTO */
.payment-option {
    border: 1px solid var(--green-pix);
    background-color: #f0fdf4;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 20px;
}

.pix-info-box {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.pix-info-box h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.icon-circle {
    width: 32px;
    height: 32px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle svg { width: 18px; height: 18px; }

.info-item strong {
    font-size: 13px;
    color: #065f46;
    display: block;
    margin-bottom: 2px;
}

.info-item p {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.4;
}

.total-row {
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-gray);
}

.total-price {
    font-size: 20px;
    font-weight: 800;
    color: black;
}

.btn-pagar {
    background-color: var(--primary-red);
    color: white;
    width: 100%;
    height: 50px; /* Altura fixa */
    border: none;
    border-radius: 6px;
    font-weight: 800;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-pagar:hover { background-color: #e60042; }
.btn-pagar:disabled { 
    background-color: var(--primary-red);
    opacity: 0.9;
    cursor: not-allowed; 
}

/* LOADER 3 PONTINHOS */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
}

.loader div {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: loader-bounce 0.5s infinite alternate;
}

.loader div:nth-child(2) { animation-delay: 0.1s; }
.loader div:nth-child(3) { animation-delay: 0.2s; }

@keyframes loader-bounce {
  to { transform: translateY(-6px); opacity: 0.7; }
}
.security-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.security-item:last-child { border-bottom: none; }

.sec-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-green-light { background-color: #ecfdf5; }

.security-item strong {
    font-size: 13px;
    display: block;
}

.security-item p {
    font-size: 11px;
    color: var(--text-gray);
}

.footer-badges {
    margin-top: 20px;
    text-align: center;
}

.footer-badges p {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.badges-img {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.badges-img img { height: 30px; }

/* REMOVIDO LOADER ANTIGO */
/* LOADER */
/*.loader { ... removido ... }*/
@keyframes flash {
  /* ... removido ... */
}

/* TELA FINAL */
.back-link {
    width: 100%;
    max-width: 480px;
    margin-bottom: 10px;
    color: var(--text-gray);
    font-size: 14px;
    cursor: pointer;
    text-align: left;
}

.final-title {
    color: #065f46;
    margin-bottom: 20px;
    font-size: 20px;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#qrcode img {
    margin: 0 auto;
}

.qr-instruction {
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
}

.ou-text {
    font-weight: 600;
    color: #065f46;
    font-size: 18px;
    margin: 15px 0;
    text-align: center;
}

.pix-code-title {
    color: #065f46;
    font-size: 16px;
    text-align: left;
    margin-bottom: 8px;
}

.copy-paste-box input {
    background-color: #f3f4f6;
    color: var(--text-gray);
    font-family: monospace;
    font-size: 12px;
    width: 100%;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 6px;
}

.btn-copy {
    background-color: #25d366;
    color: white;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-copy:hover { background-color: #1ebc57; }

/* INSTRUCOES */
.instructions-box {
    margin-top: 25px;
    text-align: left;
}

.instructions-box h4 {
    color: #065f46;
    margin-bottom: 15px;
    font-size: 16px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.step-num {
    background-color: #25d366;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.step-item p {
    font-size: 13px;
    color: var(--text-dark);
}

.waiting-card {
    border: 1px solid #25d366;
    background-color: #f0fdf4;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    margin: 20px 0;
}

.green-text { color: #065f46; font-size: 14px; margin-bottom: 5px; font-weight: 700; }
.waiting-card p { font-size: 12px; color: var(--text-dark); }

.btn-blue {
    background-color: #2563eb;
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.btn-blue:hover { background-color: #1d4ed8; }

.text-center { text-align: center; }
.text-left { text-align: left; }
