.dc-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    z-index: 9998;
    animation: dcPopupFade .25s ease;
}

.dc-popup-wrap {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dc-popup-card {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
    animation: dcPopupScale .28s ease;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

    .dc-popup-card::after {
        content: "";
        position: absolute;
        top: -90px;
        right: -90px;
        width: 220px;
        height: 220px;
        background: rgba(13, 110, 253, 0.06);
        border-radius: 50%;
        pointer-events: none;
    }

.dc-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f8fafc;
    color: #0f172a;
    font-size: 16px;
    cursor: pointer;
    z-index: 3;
    transition: all .2s ease;
}

    .dc-popup-close:hover {
        background: #e2e8f0;
        transform: scale(1.05);
    }

.dc-popup-header {
    padding: 28px 28px 14px;
    border-bottom: 1px solid #eef2f7;
    position: relative;
    z-index: 1;
}

.dc-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.dc-popup-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    padding-right: 48px;
}

.dc-popup-body {
    padding: 24px 28px;
    color: #334155;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

.dc-popup-content-text {
    font-size: 15px;
    color: #475569;
}

    .dc-popup-content-text p {
        margin-bottom: 14px;
    }

    .dc-popup-content-text ul {
        margin: 14px auto 16px;
        padding-left: 20px;
        text-align: left;
        display: inline-block;
    }

    .dc-popup-content-text li {
        margin-bottom: 8px;
    }

.dc-popup-image {
    display: block;
    width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    object-fit: contain;
}

.dc-popup-footer {
    padding: 16px 28px 24px;
    border-top: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.dc-popup-counter {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.dc-popup-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dc-popup-btn {
    border: none;
    border-radius: 12px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.dc-popup-btn-primary {
    background: linear-gradient(135deg, #0d6efd, #2563eb);
    color: #fff;
    box-shadow: 0 12px 28px rgba(13, 110, 253, 0.22);
}

    .dc-popup-btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 32px rgba(13, 110, 253, 0.28);
    }

.dc-popup-btn-light {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

    .dc-popup-btn-light:hover {
        background: #f1f5f9;
    }

@keyframes dcPopupFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes dcPopupScale {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .dc-popup-wrap {
        padding: 14px;
    }

    .dc-popup-card {
        border-radius: 18px;
    }

    .dc-popup-header {
        padding: 22px 18px 12px;
    }

        .dc-popup-header h3 {
            font-size: 1.2rem;
            padding-right: 42px;
        }

    .dc-popup-body {
        padding: 18px;
    }

    .dc-popup-footer {
        padding: 14px 18px 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .dc-popup-actions {
        width: 100%;
    }

    .dc-popup-btn {
        width: 100%;
    }
}
