/* ── Demo mode — lock overlays, banner, upgrade modal ────────────────────── */

/* Top-of-sidebar banner */
.demo-banner {
  background: #0d1e30;
  border: 1px solid #1e3048;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
}
.demo-banner-label {
  font-family: monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #4a88c0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.demo-banner a {
  font-family: monospace;
  font-size: 0.62rem;
  color: #5a98d0;
  text-decoration: none;
  white-space: nowrap;
}
.demo-banner a:hover { color: #7ab8f0; text-decoration: underline; }

/* Wrapper that allows absolute overlay */
.demo-lock-wrap {
  position: relative;
}

/* Semi-transparent overlay covering a locked section */
.demo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 24, 0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  backdrop-filter: blur(1px);
  transition: background 0.15s;
}
.demo-overlay:hover { background: rgba(6, 13, 24, 0.55); }

/* Badge shown inside the overlay */
.demo-lock-badge {
  background: #1a2a3d;
  border: 1px solid #3a5870;
  color: #a8c8e8;
  padding: 0.28rem 0.72rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.55);
}

/* Smaller variant for inline rows inside a section */
.demo-overlay-sm {
  inset: 0;
  border-radius: 3px;
}
.demo-overlay-sm .demo-lock-badge {
  font-size: 0.6rem;
  padding: 0.16rem 0.48rem;
}

/* ── Upgrade modal ────────────────────────────────────────────────────────── */
.upgrade-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.upgrade-overlay.active { display: flex; }

.upgrade-card {
  background: #121e2c;
  border: 2px solid #2a3e56;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.9);
}
.upgrade-icon  { font-size: 2.5rem; margin-bottom: 0.75rem; line-height: 1; }
.upgrade-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #e8f4ff;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.upgrade-body {
  font-size: 0.87rem;
  color: #a8c8e8;
  line-height: 1.6;
  margin: 0 0 1.75rem;
}
.upgrade-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.upgrade-btn-primary {
  background: #1e5fa8;
  color: #e8f4ff;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s;
  display: inline-block;
}
.upgrade-btn-primary:hover { background: #2a75c8; }
.upgrade-btn-secondary {
  background: #253850;
  color: #a8c8e8;
  border: 1px solid #3a5870;
  padding: 0.6rem 1.4rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.upgrade-btn-secondary:hover { background: #3a5878; color: #e8f4ff; }
