/* Demo Locks — visual treatment + modal for features greyed out in demo.
   Activated only when body.demo-mode is set (by demo_locks.js).
   Production users never see any of this. */

body.demo-mode .demo-locked {
  opacity: 0.55;
  filter: grayscale(0.45);
  cursor: not-allowed !important;
  position: relative;
}
body.demo-mode .demo-locked:hover {
  opacity: 0.7;
}

/* Lock badge for cards (block elements with their own area) */
body.demo-mode .card.demo-locked::after {
  content: '🔒 Full version';
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,.92);
  color: #5d4037;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid #ffd54f;
  letter-spacing: .3px;
}

/* Inline lock for buttons and tabs — small glyph appended */
body.demo-mode .btn.demo-locked,
body.demo-mode .tab.demo-locked {
  pointer-events: auto; /* let the JS interceptor catch the click */
}
body.demo-mode .btn.demo-locked::after,
body.demo-mode .tab.demo-locked::after {
  content: ' 🔒';
  font-size: 0.8em;
  margin-left: 3px;
  opacity: .75;
}

/* ── Lock modal ─────────────────────────────────────────────────── */
.demo-lock-backdrop {
  position: fixed; inset: 0;
  background: rgba(20,30,45,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100000;
  animation: dlFade .15s ease-out;
}
@keyframes dlFade { from { opacity:0 } to { opacity:1 } }

.demo-lock-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 460px;
  width: 92vw;
  padding: 26px 30px 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  font-family: inherit;
}
.demo-lock-modal h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #1a3a5c;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-lock-modal .dl-feat {
  background: #fff8e1;
  border-left: 4px solid #ffb300;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  color: #5d4037;
  margin: 12px 0 16px;
}
.demo-lock-modal p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.55;
  color: #37474f;
}
.demo-lock-modal .dl-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.demo-lock-modal .dl-btn {
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.demo-lock-modal .dl-btn.primary {
  background: #1a73e8;
  color: #fff;
}
.demo-lock-modal .dl-btn.primary:hover { background: #1558b3; }
.demo-lock-modal .dl-btn.secondary {
  background: #eceff1;
  color: #37474f;
}
.demo-lock-modal .dl-btn.secondary:hover { background: #cfd8dc; }
