/* ============================================
   MODAL SALDO INSUFICIENTE - CONVERSÃO DE VENDAS
   ============================================ */

.modal-saldo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-saldo-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Efeito de brilho animado */
.modal-saldo-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: brilhoModal 3s infinite;
}

@keyframes brilhoModal {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.modal-saldo-header {
    padding: 20px 20px 12px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.modal-saldo-icone {
    font-size: 40px;
    margin-bottom: 10px;
}

@keyframes balancear {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.modal-saldo-titulo {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.modal-saldo-subtitulo {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 400;
}

.modal-saldo-body {
    background: transparent;
    padding: 0 20px 20px;
    position: relative;
    z-index: 1;
}

.modal-saldo-info {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.modal-saldo-info-texto {
    font-size: 15px;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-saldo-destaque {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin: 16px 0;
}

.modal-saldo-destaque-titulo {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-saldo-destaque-valor {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
    letter-spacing: -0.5px;
}

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

.modal-saldo-beneficios {
    margin: 30px 0;
}

.modal-saldo-beneficios h3 {
    color: #3b82f6;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.beneficio-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.beneficio-item:last-child {
    border-bottom: none;
}

.beneficio-icone {
    font-size: 24px;
    margin-right: 15px;
    min-width: 30px;
}

.beneficio-texto {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.beneficio-texto strong {
    color: #3b82f6;
    font-weight: 600;
}

.modal-saldo-acoes {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-saldo-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.1px;
}

.modal-saldo-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.modal-saldo-btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.modal-saldo-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    padding: 8px 20px;
}

.modal-saldo-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.modal-saldo-urgencia {
    background: #ff6b6b;
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    animation: piscar 2s infinite;
}

@keyframes piscar {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.modal-saldo-garantia {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
    color: #999;
    font-size: 14px;
}

.modal-saldo-garantia strong {
    color: #28a745;
    font-size: 16px;
}

@media (max-width: 768px) {
    .modal-saldo-content {
        max-width: 95%;
    }
    
    .modal-saldo-header {
        padding: 16px 16px 10px;
    }
    
    .modal-saldo-titulo {
        font-size: 16px;
    }
    
    .modal-saldo-body {
        padding: 0 16px 16px;
    }
    
    .modal-saldo-destaque-valor {
        font-size: 18px;
    }
    
    .modal-saldo-acoes {
        flex-direction: column;
    }
}

