.pmt-certification-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.pmt-certification-trigger img {
    display: block;
    width: 100%;
    height: auto;
}

.pmt-cert-watermark-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    user-select: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 280'%3E%3Ctext x='200' y='140' transform='rotate(-35 200 140)' font-family='Arial, Helvetica, sans-serif' font-size='22' font-weight='700' fill='rgba(82,92,112,0.3)' text-anchor='middle'%3EPT. Pacific Marine Technology%3C/text%3E%3C/svg%3E");
    background-size: 115% 115%;
    background-position: center;
    background-repeat: no-repeat;
}

.pmt-cert-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pmt-cert-preview-modal[hidden] {
    display: none !important;
}

.pmt-cert-preview-modal.is-open {
    display: flex;
}

.pmt-cert-preview-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 16, 32, 0.82);
}

.pmt-cert-preview-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    background: #0b1a2d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.pmt-cert-preview-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.pmt-cert-preview-modal__header {
    padding: 1rem 3rem 0.5rem 1.25rem;
}

.pmt-cert-preview-modal__title {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.pmt-cert-preview-modal__body {
    padding: 0 1.25rem 1.25rem;
}

.pmt-cert-preview-modal__frame {
    position: relative;
    background: #eef2f6;
    border-radius: 8px;
    padding: 0.75rem;
    overflow: visible;
}

.pmt-cert-preview-modal__loader {
    position: absolute;
    inset: 0.75rem;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.35));
    background-size: 200% 100%;
    animation: pmt-cert-shimmer 1.2s linear infinite;
}

.pmt-cert-preview-modal__pages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pmt-cert-preview-modal__canvas {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(15, 49, 58, 0.08);
}

.pmt-cert-preview-modal__canvas.is-loaded {
    opacity: 1;
}

.pmt-cert-preview-modal__notice {
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    text-align: center;
}

@keyframes pmt-cert-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

body.pmt-cert-preview-open {
    overflow: hidden;
}
