/* Correção do popup de pagamento para mobile */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

/* Estilos para elementos do PIX e pagamento */
.status-message {
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.status-message i {
    margin-right: 8px;
}

.status-message.success {
    background-color: rgba(54, 215, 183, 0.1);
    color: #2ca58d;
    border-left: 3px solid #36d7b7;
}

.status-message.warning {
    background-color: rgba(255, 206, 86, 0.1);
    color: #ffa726;
    border-left: 3px solid #ffce56;
}

.status-message.error {
    background-color: rgba(255, 99, 132, 0.1);
    color: #e83e6a;
    border-left: 3px solid #ff6384;
}

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

.btn-disabled:hover {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.customer-info {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.customer-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.customer-info p {
    color: rgba(26, 33, 56, 0.7);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.payment-popup {
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: popup-enter 0.5s forwards;
    margin: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.popup-content {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

@media (max-width: 767px) {
    .popup-overlay {
        align-items: flex-start;
        padding: 10px;
    }
    
    .payment-popup {
        width: 95%;
        max-height: 85vh;
        margin: 20px auto;
    }
    
    .popup-content {
        padding: 20px 15px;
    }
    
    .popup-header {
        padding: 20px 15px;
    }
    
    .payment-plans {
        grid-template-columns: 1fr;
    }
    
    .qrcode-container {
        padding: 15px;
    }
    
    .qrcode-image {
        width: 150px;
        height: 150px;
    }
}

/* Estilos para auth (login e registro) */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background-image: 
        radial-gradient(circle at 80% 10%, rgba(108, 99, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 20% 90%, rgba(255, 99, 132, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(255, 206, 86, 0.08) 0%, transparent 70%);
    background-attachment: fixed;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    animation: fade-in 0.5s;
}

.auth-header {
    background: var(--primary-gradient);
    padding: 30px;
    text-align: center;
    color: white;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.auth-form {
    padding: 30px;
}

.auth-footer {
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    background-color: white;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
    outline: none;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(26, 33, 56, 0.5);
}

.input-with-icon .form-input {
    padding-left: 45px;
}

.btn-block {
    width: 100%;
    display: block;
}

.success-message {
    background: rgba(54, 215, 183, 0.1);
    border-left: 4px solid var(--success);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #2ca58d;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.success-message i {
    margin-right: 10px;
    font-size: 1.2em;
}

.error-message {
    background: rgba(255, 99, 132, 0.1);
    border-left: 4px solid var(--danger);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #e83e6a;
    font-weight: 500;
}

.small-link {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
}

.text-right {
    text-align: right;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .auth-card {
        border-radius: 15px;
    }
    
    .auth-header {
        padding: 25px 20px;
    }
    
    .auth-form {
        padding: 20px;
    }
    
    .auth-footer {
        padding: 15px 20px;
    }
}