/* Estilos do Modal de Pagamento */
.modal-pagamento-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
    animation: fadeIn 0.3s ease;
}

.modal-pagamento {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: #4a5568 #2d3748;
}

.modal-pagamento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #333;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 20px 20px 0 0;
}

.modal-pagamento-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-pagamento-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-pagamento-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-pagamento-content {
    padding: 25px;
}

.produto-info {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.produto-info h3 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.produto-info p {
    color: #ccc;
    margin: 0;
    font-size: 0.9rem;
}

.preco-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preco-original {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-decoration: line-through;
}

.desconto-info {
    color: #4ade80;
    font-weight: 600;
    margin-bottom: 10px;
}

.preco-final {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.codigo-desconto {
    margin-bottom: 25px;
}

.codigo-desconto label {
    display: block;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 500;
}

.codigo-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.codigo-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

.codigo-input-group input::placeholder {
    color: #999;
}

.codigo-input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.codigo-input-group button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.codigo-input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

#codigo-status {
    min-height: 20px;
}

#codigo-status .sucesso {
    color: #4ade80;
    font-weight: 600;
}

#codigo-status .erro {
    color: #f87171;
    font-weight: 600;
}

.metodos-pagamento h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.metodos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.metodo-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #fff;
}

.metodo-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.metodo-btn.selecionado {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.metodo-btn i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.metodo-btn span {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.metodo-btn small {
    color: #ccc;
    font-size: 0.8rem;
}

.pagamento-actions {
    text-align: center;
}

.btn-finalizar {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-finalizar:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-finalizar:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsivo */
@media (max-width: 768px) {
    .modal-pagamento {
        width: 95%;
        margin: 10px;
    }
    
    .modal-pagamento-content {
        padding: 20px;
    }
    
    .metodos-grid {
        grid-template-columns: 1fr;
    }
    
    .codigo-input-group {
        flex-direction: column;
    }
    
    .codigo-input-group button {
        width: 100%;
    }
}

/* Estilos para features do produto */
.produto-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 15px;
}

.feature-item {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: #3b82f6;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .produto-features {
        grid-template-columns: 1fr;
    }
}

/* Barra de rolagem personalizada para modal de pagamento */
.modal-pagamento::-webkit-scrollbar {
    width: 4px;
}

.modal-pagamento::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.2);
    border-radius: 2px;
    margin: 8px 0;
}

.modal-pagamento::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(29, 78, 216, 0.5));
    border-radius: 2px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    min-height: 40px;
}

.modal-pagamento::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.7), rgba(29, 78, 216, 0.7));
    border-color: rgba(59, 130, 246, 0.4);
}

.modal-pagamento::-webkit-scrollbar-corner {
    background: transparent;
}

.modal-pagamento::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.modal-pagamento::-webkit-scrollbar-button:start:decrement,
.modal-pagamento::-webkit-scrollbar-button:end:increment {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
