.dpm-wrap { max-width: 900px; }
.dpm-notice { padding: 10px 15px; border-radius: 4px; margin: 15px 0; }
.dpm-notice.dpm-ok    { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.dpm-notice.dpm-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.dpm-buy-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.dpm-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.dpm-btn-free     { background: #17a2b8; color: #fff; }
.dpm-btn-login    { background: #6c757d; color: #fff; }
.dpm-btn:hover { opacity: 0.9; }

.dpm-btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0073aa;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    padding: 20px 44px;
    font-size: 1.6em;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,115,170,0.4);
    letter-spacing: 0.03em;
    transition: box-shadow 0.2s, transform 0.15s;
}
.dpm-btn-buy:hover {
    opacity: 1;
    color: #ffe600 !important;
    box-shadow: 0 6px 20px rgba(0,115,170,0.45);
    transform: translateY(-1px);
}

.dpm-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #7D03E0;
    background: linear-gradient(135deg, #7D03E0 0%, #6002b0 100%);
    color: #fff;
    padding: 20px 44px;
    font-size: 1.6em;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(125,3,224,0.4);
    letter-spacing: 0.03em;
    transition: box-shadow 0.2s, transform 0.15s;
}
.dpm-btn-download:hover {
    opacity: 1;
    color: #ffe600;
    box-shadow: 0 6px 20px rgba(125,3,224,0.45);
    transform: translateY(-1px);
}

.dpm-stripe-badge {
    display: block;
    height: 28px;
    width: auto;
    opacity: 0.85;
}

.dpm-price {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.dpm-price-paid {
    font-size: 1.5em;
    color: #1a1a1a;
    border-left: 3px solid #0073aa;
    padding-left: 10px;
}

.dpm-price-free {
    font-size: 1em;
    color: #17a2b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Free Download shortcode ── */

.dpm-fdl-wrap { display: inline-block; }

.dpm-btn-free-dl {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #7D03E0 0%, #5a02a8 100%);
    color: #fff;
    padding: 18px 40px;
    font-size: 1.15em;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 28px rgba(125,3,224,0.38);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s, background 0.2s;
    font-family: inherit;
}
.dpm-btn-free-dl:hover {
    background: linear-gradient(135deg, #8f10f5 0%, #6b04c9 100%);
    box-shadow: 0 10px 32px rgba(125,3,224,0.48);
    transform: translateY(-2px);
    color: #ffe600;
}
.dpm-btn-free-dl svg { flex-shrink: 0; }

/* Overlay */
.dpm-fdl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,5,20,0.65);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: dpm-fdl-fade-in 0.18s ease;
}
.dpm-fdl-overlay[hidden] { display: none; }

@keyframes dpm-fdl-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Modal card */
.dpm-fdl-modal {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px 40px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 32px 100px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.06);
    text-align: center;
    animation: dpm-fdl-slide-up 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes dpm-fdl-slide-up {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dpm-fdl-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    font-family: inherit;
}
.dpm-fdl-close:hover { background: #e5e7eb; color: #111; }

.dpm-fdl-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-radius: 50%;
    margin-bottom: 20px;
    color: #7D03E0;
    box-shadow: 0 4px 16px rgba(125,3,224,0.15);
}
.dpm-fdl-modal-icon svg { width: 28px; height: 28px; }

.dpm-fdl-title {
    font-size: 1.35em;
    font-weight: 800;
    color: #0f0a1a;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    font-family: inherit;
}

.dpm-fdl-subtitle {
    font-size: 0.93em;
    color: #6b7280;
    margin: 0 0 28px;
    line-height: 1.5;
    font-family: inherit;
}

/* Form */
.dpm-fdl-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dpm-fdl-email {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1em;
    color: #0f0a1a;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    font-family: inherit;
}
.dpm-fdl-email::placeholder { color: #9ca3af; }
.dpm-fdl-email:focus {
    outline: none;
    border-color: #7D03E0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(125,3,224,0.1);
}

.dpm-btn-free-dl-submit {
    width: 100%;
    background: linear-gradient(135deg, #7D03E0 0%, #5a02a8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: box-shadow 0.2s, transform 0.15s, opacity 0.15s;
    box-shadow: 0 6px 20px rgba(125,3,224,0.35);
    font-family: inherit;
}
.dpm-btn-free-dl-submit:hover:not(:disabled) {
    box-shadow: 0 8px 26px rgba(125,3,224,0.45);
    transform: translateY(-1px);
    color: #ffe600;
}
.dpm-btn-free-dl-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Notice */
.dpm-fdl-notice {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 0.88em;
    text-align: left;
    line-height: 1.45;
    font-family: inherit;
}
.dpm-fdl-notice[hidden] { display: none; }
.dpm-fdl-notice--ok    { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.dpm-fdl-notice--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
