/*
 * Client-side copy deterrence.
 * This adds friction for casual copying, but cannot stop screenshots or
 * determined users who can still access rendered markup and network responses.
 */

body.accosis-protect-enabled {
  -webkit-touch-callout: none;
}

body.accosis-protect-enabled,
body.accosis-protect-enabled .protect-copy-surface,
body.accosis-protect-enabled main,
body.accosis-protect-enabled article,
body.accosis-protect-enabled section {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

body.accosis-protect-enabled input,
body.accosis-protect-enabled textarea,
body.accosis-protect-enabled select,
body.accosis-protect-enabled button,
body.accosis-protect-enabled [contenteditable="true"],
body.accosis-protect-enabled .allow-copy {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

body.accosis-protect-enabled img,
body.accosis-protect-enabled picture,
body.accosis-protect-enabled figure {
  -webkit-user-drag: none;
  user-drag: none;
}

.accosis-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  left: -9999px !important;
  top: -9999px !important;
}

.accosis-protect-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(20, 20, 30, 0.94);
  color: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.accosis-protect-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.accosis-protect-devtools {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 8, 12, 0.92);
}

.accosis-protect-devtools.is-visible {
  display: flex;
}

.accosis-protect-devtools__dialog {
  max-width: 520px;
  width: 100%;
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  color: #111827;
  text-align: center;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.accosis-protect-devtools__dialog h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.accosis-protect-devtools__dialog p {
  margin: 0;
  color: #4b5563;
}
