/* Estilos para Sistema de Pagamento Coinbase - Versão Corrigida */

/* Modal Base */
.coinbase-payment-modal,
.amount-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.coinbase-payment-modal.show,
.amount-selection-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    border: 2px solid #4CAF50;
    animation: modalSlideIn 0.4s ease;
}

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

/* Header do Modal */
.modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 18px 18px 0 0;
}

.modal-header h3 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Body do Modal */
.modal-body {
    padding: 30px;
}

/* Seleção de Valor */
.amount-selection h4 {
    color: #4CAF50;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-align: center;
}

.amount-selection p {
    color: #ccc;
    text-align: center;
    margin: 0 0 30px 0;
}

.preset-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.amount-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.amount-btn.selected {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-color: #4CAF50;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Input Customizado */
.custom-amount {
    margin-bottom: 30px;
}

.custom-amount label {
    color: #ccc;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: #4CAF50;
}

.currency-symbol,
.currency-code {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    padding: 15px;
    font-weight: 600;
}

#customAmount {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 15px;
    text-align: center;
    outline: none;
}

#customAmount::placeholder {
    color: #666;
}

/* Botão de Continuar */
.proceed-btn {
    width: 100%;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.proceed-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.proceed-btn:disabled {
    background: #666;
    cursor: not-allowed;
    box-shadow: none;
}

/* Informações de Pagamento */
.payment-info {
    text-align: center;
    margin-bottom: 30px;
}

.payment-info h4 {
    color: #4CAF50;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.payment-info p {
    color: #ccc;
    margin: 0 0 20px 0;
}

.amount-display {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
}

.amount-display strong {
    color: #4CAF50;
    font-size: 20px;
    font-weight: 700;
}

/* Métodos de Pagamento */
.payment-methods h5 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-align: center;
}

.payment-method-btn {
    width: 100%;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.payment-method-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.method-icon {
    font-size: 24px;
}

.method-info {
    text-align: left;
}

.method-info strong {
    color: white;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.method-info span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Opções de Crypto */
.crypto-options {
    border-top: 1px solid #333;
    padding-top: 20px;
}

.crypto-options p {
    color: #ccc;
    text-align: center;
    margin-bottom: 15px;
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.crypto-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.crypto-btn:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.crypto-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.crypto-btn span {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Footer de Informações */
.payment-info-footer {
    background: rgba(76, 175, 80, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
}

.payment-info-footer p {
    color: #4CAF50;
    font-size: 14px;
    margin: 5px 0;
    text-align: center;
}

/* Notificações */
.payment-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 10001;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
}

.payment-notification.success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: 1px solid #4CAF50;
}

.payment-notification.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    border: 1px solid #f44336;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Botão Principal com Estado de Loading */
#pagarBtn.processing {
    background: #666 !important;
    cursor: not-allowed !important;
    animation: pulse 1.5s infinite;
}

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

/* Atualizações no Progresso */
.crowdfund-info span.updated {
    color: #4CAF50 !important;
    font-weight: bold !important;
    animation: highlight 0.8s ease;
}

@keyframes highlight {
    0% { background: rgba(76, 175, 80, 0.3); }
    100% { background: transparent; }
}

.progress-bar {
    transition: width 0.8s ease;
}

/* Responsividade */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-header {
        padding: 20px 20px 15px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .preset-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .crypto-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .preset-amounts {
        grid-template-columns: 1fr;
    }
    
    .amount-btn {
        font-size: 16px;
        padding: 12px;
    }
}

