.sdp-download-wrap {
    position: relative;
    margin: 12px 0;
}

.sdp-download-btn {
    background: #F7BC43;
    color: #ffffff;
    border: none;
    border-radius: 100px 100px 100px 100px;
    padding: 15px 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sdp-download-btn:hover {
    background: #363430
}

.sdp-message {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 6px;
}

.sdp-login {
    background: #fef3c7;
    color: #7a4a00;
}

.sdp-error {
    background: #fee2e2;
    color: #7f1d1d;
}

.sdp-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sdp-modal[hidden] {
    display: none !important;
}

.sdp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 21, 0.68);
    backdrop-filter: blur(2px);
}

.sdp-modal-panel {
    position: relative;
    width: min(92vw, 640px);
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
    animation: sdp-rise 0.25s ease;
}

.sdp-modal-panel h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.3rem;
}

.sdp-subtitle {
    margin: 8px 0 18px;
    color: #4b5563;
}

.sdp-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.sdp-checklist li {
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-height: 44px;
    padding: 6px 10px;
    color: #1f2937;
    background: #f9fafb;
}

.sdp-step-state {
    width: 20px;
    height: 20px;
    border: 2px solid #9ca3af;
    border-radius: 999px;
    position: relative;
}

.sdp-step-state.is-running {
    border-color: #2563eb;
    animation: sdp-pulse 0.8s infinite;
}

.sdp-step-state.is-done {
    border-color: #16a34a;
    background: #16a34a;
}

.sdp-step-state.is-done::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sdp-progress {
    width: 100%;
    margin-top: 16px;
    background: #e5e7eb;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
}

.sdp-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #2E4ACC, #F7438C);
    transition: width 1.05s ease;
}

@keyframes sdp-rise {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes sdp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35);
    }

    100% {
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
    }
}

@media (max-width: 640px) {
    .sdp-modal-panel {
        padding: 16px;
    }

    .sdp-checklist li {
        grid-template-columns: 24px 1fr;
        gap: 8px;
    }
}
