:root {
    --primary: #003d80;
    --secondary: #0056b3;
    --bg-page: #f2f5f8;
    --white: #ffffff;
    --text-main: #1a1e21;
    --text-muted: #5a6268;
    --success: #218838;
}

* { box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg-page); color: var(--text-main); margin: 0; padding: 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

header { 
    background: linear-gradient(135deg, #002a5a 0%, var(--primary) 100%); 
    color: white; padding: 70px 0; text-align: center; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); 
}
header h1 { margin: 0; font-size: 2.6rem; font-weight: 700; }
header h1 span { font-weight: 300; color: #a3d2ff; }

.search-box { position: relative; max-width: 650px; margin: -35px auto 50px auto; z-index: 10; }
.search-box input { 
    width: 100%; padding: 20px 20px 20px 60px; border-radius: 12px; 
    border: 1px solid #ced4da; box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    outline: none; font-size: 1rem;
}
.search-icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 1.2rem; }

.grid-bios { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-bottom: 70px; }
.card { 
    background: var(--white); padding: 30px; border-radius: 15px; 
    text-align: center; border: 1px solid #e1e8ed; transition: 0.3s; 
}
.card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card i.main-icon { font-size: 2rem; color: var(--secondary); margin-bottom: 15px; display: block; }
.card h3 { color: var(--primary); font-size: 1.2rem; margin: 0 0 10px 0; }
.card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; margin-bottom: 20px; }
.verify-text { color: var(--success); font-weight: 600; display: block; margin-top: 5px; }

.btn-buy { 
    background: var(--primary); color: white; border: none; padding: 14px; 
    border-radius: 8px; cursor: pointer; width: 100%; font-weight: 600; transition: 0.3s;
}
.btn-buy:hover { background: #002a5a; }

.modal { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); }
.modal-content { background: white; margin: 5% auto; width: 90%; max-width: 460px; border-radius: 20px; overflow: hidden; position: relative; animation: slideIn 0.3s; }
@keyframes slideIn { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header { background: var(--primary); color: white; padding: 20px; text-align: center; }
.modal-body { padding: 30px; text-align: center; }

.input-email { width: 100%; padding: 15px; margin-bottom: 20px; border-radius: 10px; border: 1px solid #ddd; outline: none; }
.price-tag { font-size: 3rem; font-weight: 700; color: var(--success); margin: 10px 0 20px 0; }

.btn-confirm { background: #212529; color: white; border: none; padding: 16px; width: 100%; border-radius: 10px; cursor: pointer; font-weight: 600; }
.btn-download { display: block; background: #007bff; color: white; text-decoration: none; padding: 18px; border-radius: 10px; font-weight: 700; margin-top: 15px; }

.loader { border: 4px solid #f3f3f3; border-top: 4px solid var(--primary); border-radius: 50%; width: 35px; height: 35px; animation: spin 1s linear infinite; margin: 25px auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.close { position: absolute; right: 20px; top: 15px; font-size: 30px; color: white; cursor: pointer; z-index: 10; }
footer { text-align: center; padding: 50px; color: #6c757d; background: #e9ecef; }

/* CORREÇÃO DO ZOOM NO IPHONE */
/* Força a fonte ser 16px em celulares, o que impede o zoom automático */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* =========================================
   MODAL COMPACTO PARA CELULAR (Correção de Altura)
   ========================================= */
@media screen and (max-width: 768px) {
    
    /* 1. Diminui as margens da janela branca */
    .modal-content {
        margin: 10% auto; /* Sobe um pouco a janela */
        padding: 15px;    /* Reduz espaço interno */
        width: 95%;       /* Usa mais largura */
    }

    /* 2. Deixa o Título "Pagamento Seguro" mais fino */
    .modal-header h2 {
        font-size: 1.1rem;
        padding: 8px;
        margin: 0;
    }

    /* 3. Reduz o tamanho do Preço (estava muito grande) */
    .price-tag {
        font-size: 1.4rem !important; /* Força ficar menor */
        margin: 5px 0 !important;
        padding: 5px !important;
    }

    /* 4. O NOME do arquivo fica menor */
    #biosName {
        font-size: 0.95rem;
    }

    /* 5. O GRANDE SEGREDO: Limita o tamanho da imagem do QR Code */
    #qrcode-container img {
        max-width: 160px !important; /* Trava o tamanho máximo */
        height: auto;
        margin: 5px 0;
    }

    /* 6. Ajusta a caixa de texto do código PIX para ocupar menos espaço */
    #pixPayload {
        font-size: 11px !important;
        padding: 5px !important;
        height: 30px; /* Altura fixa menor */
    }

    /* 7. Esconde textos desnecessários apenas no passo do QR Code para economizar espaço */
    #step-2 p {
        margin: 5px 0;
        font-size: 0.85rem;
    }
}