/* Appslin — reusable content protection layer (site-wide).
   Include on any page:  <link rel="stylesheet" href="css/content-protection.css">
   No homepage design tokens are altered here. */

html.cp-active,
html.cp-active body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* Form fields must stay usable */
html.cp-active input,
html.cp-active textarea,
html.cp-active select,
html.cp-active [contenteditable="true"],
html.cp-active .cp-allow,
html.cp-active .cp-allow * {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
html.cp-active img,
html.cp-active svg,
html.cp-active picture {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* ---------- Popup ---------- */
.cp-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cp-modal.is-open { display: flex; }
.cp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 40, 0.55);
  backdrop-filter: blur(4px);
}
.cp-modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid rgba(14, 40, 84, 0.1);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(8, 20, 40, 0.28);
  padding: 26px 24px 22px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  animation: cpPop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cpPop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.cp-modal-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.13);
  color: #0f9d6e;
  margin-bottom: 14px;
}
.cp-modal-ico svg { width: 23px; height: 23px; }
.cp-modal-card h3 {
  margin: 0 0 8px;
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.12rem;
  line-height: 1.3;
  color: #0b1f3f;
}
.cp-modal-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.62;
  color: #4a5a72;
}
.cp-modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.cp-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 11px 20px;
  border-radius: 100px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.cp-btn-ghost {
  background: #f2f5fa;
  color: #1c3a63;
  border: 1px solid rgba(14, 40, 84, 0.1);
}
.cp-btn-ghost:hover { background: #e8eef7; }
.cp-btn-primary {
  background: linear-gradient(135deg, #1257d6, #0f9d6e);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(18, 87, 214, 0.28);
}
.cp-btn-primary:hover { transform: translateY(-2px); }
.cp-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(14, 40, 84, 0.1);
  background: #fff;
  color: #4a5a72;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.cp-modal-close:hover { background: #f2f5fa; color: #0b1f3f; }
@media (max-width: 420px) {
  .cp-modal-card { padding: 22px 18px 18px; }
  .cp-modal-actions { flex-direction: column-reverse; }
  .cp-btn { width: 100%; }
}
