.sdm-download-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: 0.2s;
}
.sdm-download-box:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); }
.sdm-download-icon { margin-right: 20px; flex-shrink: 0; }
.sdm-download-icon .dashicons { font-size: 48px; width: 48px; height: 48px; color: #4a5568; }
.sdm-download-info { flex-grow: 1; }
.sdm-download-title { margin: 0 0 8px; font-size: 1.25rem; font-weight: 600; }
.sdm-download-description { color: #4a5568; margin-bottom: 8px; }
.sdm-download-meta { font-size: 0.85rem; color: #718096; }
.sdm-download-count { background: #edf2f7; padding: 4px 10px; border-radius: 20px; display: inline-block; }
.sdm-download-button-wrap { margin-left: 20px; flex-shrink: 0; }
.sdm-download-button {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white !important;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.sdm-download-button:hover { background: linear-gradient(135deg, #2563eb, #1d4ed8); transform: scale(1.02); }
.sdm-error { background: #fee2e2; border-left: 4px solid #ef4444; padding: 12px 16px; border-radius: 8px; margin: 20px 0; }

/* Modal اصلاح شده - وسط صفحه و ریسپانسیو */
.sdm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}
.sdm-modal-content {
    background: #fff;
    max-width: 500px;
    width: 90%;
    border-radius: 20px;
    padding: 25px;
    position: relative;
    box-shadow: 0 20px 35px rgba(0,0,0,0.3);
    animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.sdm-modal-content h3 { margin-top: 0; }
.sdm-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}
.sdm-modal-close:hover { color: #000; }
.sdm-form-group { margin-bottom: 20px; }
.sdm-form-group label { display: block; font-weight: 600; margin-bottom: 6px; }
.sdm-form-group input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 8px; }
.sdm-submit-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 40px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
}
.sdm-submit-btn:hover { background: #2563eb; }
.sdm-modal-error { background: #fee2e2; padding: 10px; border-radius: 8px; margin-bottom: 15px; color: #c53030; }

@media (max-width: 640px) {
    .sdm-download-box {
        flex-direction: column;
        text-align: center;
    }
    .sdm-download-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .sdm-download-button-wrap {
        margin-left: 0;
        margin-top: 15px;
    }
    .sdm-download-button {
        white-space: normal;
        padding: 8px 20px;
    }
}