/* Demo modal-specific styles */
.demo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,12,5,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.demo-overlay.open { opacity: 1; pointer-events: all; }
.demo-modal {
  background: var(--jet-2);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1);
}
.demo-overlay.open .demo-modal { transform: translateY(0) scale(1); }
.demo-close {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cream-dim);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.demo-close:hover { background: rgba(218,255,1,0.08); color: var(--neon); }
@media (max-width: 600px) { .demo-modal { padding: 28px 20px; } }
