/* ── Content protection ── */
body.bahr-protected {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body.bahr-protected input,
body.bahr-protected textarea,
body.bahr-protected select,
body.bahr-protected [contenteditable='true'],
body.bahr-protected [data-allow-copy],
body.bahr-protected .promo-copy,
body.bahr-protected .allow-select {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

body.bahr-protected img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* ── Security alert modal ── */
.bahr-security-alert {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.bahr-security-alert.is-visible {
  opacity: 1;
  visibility: visible;
}

.bahr-security-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.88);
  backdrop-filter: blur(12px);
}

.bahr-security-panel {
  position: relative;
  width: min(100%, 440px);
  padding: 32px 28px 24px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(3, 7, 18, 0.98));
  border: 1px solid rgba(248, 113, 113, 0.45);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(239, 68, 68, 0.15);
  text-align: center;
  animation: bahr-security-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bahr-security-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bahr-security-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.5));
}

.bahr-security-panel h2 {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fecaca;
  margin-bottom: 12px;
  line-height: 1.4;
}

.bahr-security-lead {
  font-size: 0.92rem;
  color: rgba(248, 250, 252, 0.85);
  line-height: 1.7;
  margin-bottom: 16px;
}

.bahr-security-list {
  list-style: none;
  padding: 14px 16px;
  margin: 0 0 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  text-align: right;
}

.bahr-security-list li {
  font-size: 0.85rem;
  color: #fca5a5;
  line-height: 1.8;
  font-weight: 600;
}

.bahr-security-list li:last-child {
  color: #fde68a;
}

.bahr-security-note {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 18px;
  line-height: 1.6;
}

.bahr-security-dismiss {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  color: #0f172a;
  background: linear-gradient(135deg, #fde047, #eab308);
  box-shadow: 0 4px 20px rgba(234, 179, 8, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.bahr-security-dismiss:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(234, 179, 8, 0.45);
}
