/* Investment Modal Styles */
.investment-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.investment-modal-wrapper.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    background: #000;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    transform: scale(0.8);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.investment-modal-wrapper.active .modal-container {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    padding: 25px;
    background: linear-gradient(135deg, #191c1f 0%, #191c1f 100%);
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-title {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-content {
    padding: 25px;
    background: #242841;
    border-radius: 0 0 20px 20px;
}

.results-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.result-card {
    background: #191c1f;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-3px);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.card-icon i {
    color: #fff;
    font-size: 1.2rem;
}

.card-details {
    flex: 1;
}

.card-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.amount-display {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.currency {
    margin-right: 5px;
    color: #dc3545;
}

.investment-form .form-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.input-container.invalid {
    border-color: #ff4d4d;
    animation: shake 0.4s ease;
}

.input-container.valid {
    border-color: #4dffb8;
}

.currency-prefix {
    padding: 0 15px;
    color: #000;
    font-weight: 500;
}

.modern-input {
    width: 100%;
    padding: 14px;
    background: none;
    border: none;
    color: #000;
    font-size: 1rem;
    outline: none;
}

.amount-range {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4d90fe 0%, #0d6efd 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-text {
    margin-right: 10px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-3px); }
}

@media (max-width: 480px) {
    .results-section {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        width: 95%;
    }
    
    .modal-header {
        padding: 20px;
    }
}