/* Demo banner */
.demo-banner { position: fixed; bottom: 0; left: 0; right: 0; background: linear-gradient(135deg, #1a2a40, #1e3450); border-top: 2px solid var(--amber); padding: 12px 20px; text-align: center; font-size: 16px; font-weight: 600; z-index: 999; color: var(--text) }
.demo-banner a { color: var(--accent); text-decoration: none; font-weight: 700 }
.demo-banner a:hover { text-decoration: underline }

/* Demo nav lock during guided tour */
.demo-nav-locked { opacity: 0.35; cursor: not-allowed !important; }

/* Demo guided tour */
.demo-pulse {
  position: relative; z-index: 1001;
  animation: demoPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(91,163,245,.7);
  border-radius: 10px;
}
@keyframes demoPulse {
  0% { box-shadow: 0 0 0 0 rgba(91,163,245,.7) }
  50% { box-shadow: 0 0 0 12px rgba(91,163,245,0) }
  100% { box-shadow: 0 0 0 0 rgba(91,163,245,0) }
}
input.demo-pulse, textarea.demo-pulse, select.demo-pulse {
  border-color: var(--accent) !important;
  outline: 3px solid rgba(91,163,245,.4);
}
button.demo-pulse {
  outline: 3px solid rgba(91,163,245,.4);
  transform: scale(1.03);
}
.demo-tooltip {
  position: absolute; z-index: 1002;
  background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 600;
  padding: 10px 18px; border-radius: 10px;
  max-width: 320px; text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  pointer-events: none;
  animation: demoTipIn .3s ease;
}
.demo-tooltip::before {
  content: ''; position: absolute; top: -6px;
  left: 50%; transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-bottom: 7px solid var(--accent);
}
@keyframes demoTipIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: translateY(0) } }
.demo-tooltip-center { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 18px; padding: 24px 36px }
.demo-tooltip-center::before { display: none }

.demo-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 1000 }
.demo-pulse { position: relative; z-index: 1001 }
.demo-confirm-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  font-size: 20px; cursor: pointer; z-index: 1002;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s, transform .1s;
}
.demo-confirm-btn:hover:not(:disabled) { transform: translateY(-50%) scale(1.1) }
.demo-confirm-btn:disabled { cursor: default }

/* Minimize button on signup modal */
.demo-minimize-btn {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--muted); font-size: 20px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  line-height: 1;
}
.demo-minimize-btn:hover { background: var(--line); color: var(--text); }

/* Minimized pill — bottom-LEFT so it never overlaps the bottom-right "Save all" button */
.demo-signup-pill {
  position: fixed; bottom: 24px; left: 24px; z-index: 1000;
  background: linear-gradient(135deg, #3a7bd5, #5ba3f5);
  color: #fff; font-size: 19px; font-weight: 800;
  padding: 18px 36px; border-radius: 50px;
  cursor: pointer; box-shadow: 0 6px 26px rgba(91,163,245,.5);
  transition: transform .15s, box-shadow .15s;
  animation: pill-in .3s ease-out;
}
.demo-signup-pill:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(91,163,245,.6);
}
.demo-pill-sparkle {
  margin-right: 8px; font-size: 21px;
}
@media (max-width: 600px) { .demo-signup-pill { left: 14px; bottom: 14px; font-size: 17px; padding: 15px 28px } }
@keyframes pill-in {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
