.sdp-archive-container * { box-sizing: border-box; }

/* DYNAMIC RESPONSIVE GRID USING CSS VARIABLES */
.sdp-archive-grid { 
    display: grid; 
    gap: 20px; 
    grid-template-columns: repeat(var(--sdp-desk, 3), 1fr); 
}
@media (max-width: 992px) {
    .sdp-archive-grid { grid-template-columns: repeat(var(--sdp-tab, 2), 1fr); }
}
@media (max-width: 576px) {
    .sdp-archive-grid { grid-template-columns: repeat(var(--sdp-mob, 1), 1fr); }
}

.sdp-card { border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; text-align: center; background: #fff; transition: box-shadow 0.3s ease; cursor: pointer; }
.sdp-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.sdp-card-icon { font-size: 40px; margin-bottom: 15px; color: #2271b1; }
.sdp-card-title { font-size: 18px; font-weight: bold; margin-bottom: 10px; color: #1d2327; line-height: 1.3; }
.sdp-card-meta { font-size: 13px; color: #646970; margin-bottom: 15px; }
.sdp-btn { display: inline-block; padding: 8px 16px; background: #2271b1; color: #fff; border-radius: 4px; text-decoration: none; font-weight: 500; }
.sdp-btn:hover { background: #135e96; color: #fff; }

/* DETAILS MODAL */
.sdp-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); z-index: 999998; align-items: center; justify-content: center; backdrop-filter: blur(3px); visibility: hidden; opacity: 0; transition: opacity 0.2s ease; }
.sdp-modal-overlay.active { display: flex !important; visibility: visible !important; opacity: 1 !important; }
.sdp-modal-content { background: #fff; width: 90%; max-width: 450px; border-radius: 12px; padding: 30px; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.sdp-modal-close { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #a7aaad; line-height: 1; transition: color 0.2s; }
.sdp-modal-close:hover { color: #d63638; }
.sdp-modal-body h3 { margin-top: 0; font-size: 22px; line-height: 1.3; margin-bottom: 8px; color: #1d2327; text-align: center; }

/* NEW: INPUT & ALERT MODALS (Email/Password capture) */
.sdp-prompt-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.7); z-index: 999999; align-items: center; justify-content: center; backdrop-filter: blur(4px); visibility: hidden; opacity: 0; transition: opacity 0.2s ease; }
.sdp-prompt-overlay.active { display: flex !important; visibility: visible !important; opacity: 1 !important; }
.sdp-prompt-box { background: #fff; width: 90%; max-width: 400px; border-radius: 12px; padding: 25px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); text-align: center; }
.sdp-prompt-box h4 { margin: 0 0 15px 0; font-size: 18px; color: #1d2327; font-weight: 600; line-height: 1.4; }
.sdp-prompt-input { width: 100%; padding: 12px; border: 1px solid #dcdcde; border-radius: 6px; font-size: 16px; margin-bottom: 20px; box-sizing: border-box; }
.sdp-prompt-input:focus { border-color: #2271b1; outline: none; box-shadow: 0 0 0 1px #2271b1; }
.sdp-prompt-actions { display: flex; gap: 10px; justify-content: center; }
.sdp-prompt-btn { flex: 1; padding: 12px; border: none; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.sdp-prompt-btn-cancel { background: #f0f0f1; color: #2c3338; }
.sdp-prompt-btn-cancel:hover { background: #dcdcde; }
.sdp-prompt-btn-submit { background: #2271b1; color: #fff; }
.sdp-prompt-btn-submit:hover { background: #135e96; }

/* PAGINATION STYLING */
.sdp-pagination-wrapper { margin-top: 35px; text-align: center; }
.sdp-pagination-wrapper ul { list-style: none; padding: 0; display: inline-flex; gap: 5px; }
.sdp-pagination-wrapper li a, .sdp-pagination-wrapper li span { display: inline-block; padding: 8px 14px; border: 1px solid #e2e8f0; border-radius: 4px; background: #fff; color: #2271b1; text-decoration: none; font-weight: 500; }
.sdp-pagination-wrapper li span.current { background: #2271b1; color: #fff; border-color: #2271b1; }
.sdp-pagination-wrapper li a:hover { background: #f6f7f7; }

/* SINGLE SHORTCODE WRAPPER STYLES */
.sdp-download-wrapper { display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 380px; margin: 0 auto; }
.sdp-btn-animated {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    background: #F37D16;
    color: #fff !important;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(34, 113, 177, 0.2);
    animation: sdp-pulse-btn 2s infinite;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}
.sdp-btn-animated:hover { background: #E26D00; transform: translateY(-2px); animation: none; box-shadow: 0 6px 12px rgba(34, 113, 177, 0.3); }
.sdp-btn-animated::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
    background-size: cover;
}
@keyframes sdp-pulse-btn {
    0% { box-shadow: 0 0 0 0 rgba(34, 113, 177, 0.4); }
    70% { box-shadow: 0 0 0 14px rgba(34, 113, 177, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 113, 177, 0); }
}
.sdp-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #00a32a;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
}
.sdp-file-details {
    list-style: none;
    padding: 20px 0 0 0 !important;
    margin: 20px 0 0 0;
    border-top: 1px solid #E4DED8;
    width: 100%;
    text-align: left;
}
.sdp-file-details li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #E4DED8;
    font-size: 14px;
    color: #1d2327;
}
.sdp-file-details li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sdp-file-details li span.label {
    color: #646970;
    font-weight: 500;
}