body.scpm-no-select,
body.scpm-no-select * {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

body.scpm-no-select input,
body.scpm-no-select textarea,
body.scpm-no-select select,
body.scpm-no-select option,
body.scpm-no-select [contenteditable],
body.scpm-no-select pre,
body.scpm-no-select code,
body.scpm-no-select kbd,
body.scpm-no-select samp,
body.scpm-no-select .scp-allow-copy,
body.scpm-no-select [data-scp-allow-copy] {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}

.scpm-protected-image {
    -webkit-user-drag: none !important;
    user-drag: none !important;
}

#scpm-toast {
    position: fixed;
    z-index: 2147483646;
    inset-inline-start: 50%;
    bottom: 26px;
    max-width: min(520px, calc(100vw - 32px));
    padding: 12px 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    background: rgba(19, 24, 39, .94);
    color: #fff;
    box-shadow: 0 18px 55px rgba(0,0,0,.28);
    font: 600 14px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, 18px);
    pointer-events: none;
    backdrop-filter: blur(12px);
    transition: opacity .2s ease, transform .2s ease;
}

#scpm-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.scpm-watermark-overlay {
    position: absolute;
    z-index: 2147483000;
    display: flex;
    box-sizing: border-box;
    padding: 12px;
    overflow: hidden;
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .02em;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,.75);
    pointer-events: none;
    mix-blend-mode: normal;
}

.scpm-watermark-overlay.is-top-left { align-items: flex-start; justify-content: flex-start; }
.scpm-watermark-overlay.is-top-right { align-items: flex-start; justify-content: flex-end; }
.scpm-watermark-overlay.is-center { align-items: center; justify-content: center; }
.scpm-watermark-overlay.is-bottom-left { align-items: flex-end; justify-content: flex-start; }
.scpm-watermark-overlay.is-bottom-right { align-items: flex-end; justify-content: flex-end; }
.scpm-watermark-overlay.is-repeat {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    place-items: center;
    gap: 12px;
    transform: none;
}
.scpm-watermark-overlay.is-repeat i {
    font: inherit;
    font-style: normal;
    transform: rotate(-24deg);
    white-space: nowrap;
}

html.scpm-screen-shield body > *:not(#scpm-toast) {
    filter: blur(22px) brightness(.2) !important;
}

@media print {
    body.scpm-no-print > * {
        display: none !important;
    }
    body.scpm-no-print::after {
        content: "این محتوا برای چاپ محافظت شده است.";
        display: block !important;
        margin: 15vh auto;
        padding: 28px;
        max-width: 640px;
        border: 2px solid #111;
        color: #111;
        font: 700 18px/1.8 sans-serif;
        text-align: center;
    }
}
