/* View Certificate - Protected Popup */
.vc-view-certificate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 0;
    border-radius: 6px;
    background: #C52D2C;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease;
}
.vc-view-certificate:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
.vc-view-certificate .dashicons { width: 18px; height: 18px; font-size: 18px; }

.vc-certificate-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}
.vc-certificate-modal.vc-open { display: block; }
.vc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.86);
}
.vc-modal-content {
    position: relative;
    z-index: 2;
    width: min(94vw, 1100px);
    height: min(94vh, 900px);
    margin: 3vh auto;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}
.vc-modal-close {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: 30px;
    line-height: 36px;
    cursor: pointer;
}
.vc-protected-viewer {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
.vc-certificate-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.vc-protection-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
body.vc-modal-active { overflow: hidden; }

@media (max-width: 600px) {
    .vc-view-certificate { padding: 10px 14px; font-size: 14px; }
    .vc-modal-content { width: 96vw; height: 94vh; margin: 3vh auto; }
    .vc-certificate-image { max-width: 96vw; max-height: 88vh; }
}
