/* Trading Portal Modal Styles */
.trading-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.trading-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px; 
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.trading-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.trading-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.trading-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.trading-modal-close:hover {
    background-color: #f0f0f0;
    color: #666;
}

.trading-modal-body {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #555;
}

.trading-modal-body p {
    margin-bottom: 15px;
}

.trading-modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.trading-modal-body li {
    margin-bottom: 8px;
}

.trading-modal-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: bold;
}

.trading-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.trading-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: inherit;
}

.trading-modal-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.trading-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.trading-modal-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.trading-modal-btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

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

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

@media (max-width: 600px) {
    .trading-modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .trading-modal-actions {
        flex-direction: column;
    }
    
    .trading-modal-btn {
        width: 100%;
    }
}