/* NeuroPitch™ widget.css */

#np-widget {
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 99999;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--np-bg, #fff);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.07);
  padding: 18px 18px 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #1a1a1a;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
}

/* left position override */
#np-widget[style*="--np-side:left"] {
  right: auto;
  left: 16px;
}

#np-widget.np-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.np-close {
  all: unset;
  position: absolute;
  top: 10px;
  right: 12px;
  cursor: pointer;
  color: var(--np-accent, #2F6FFF);
  font-size: 20px;
  line-height: 1;
  opacity: .7;
  transition: opacity .15s;
}
.np-close:hover { opacity: 1; }

.np-title {
  margin: 0 28px 6px 0;
  font-size: 17px;
  font-weight: 600;
  color: #111;
  min-height: 1.3em;
}

.np-msg {
  margin: 0 0 12px;
  font-size: 14px;
  color: #444;
  line-height: 1.55;
}

.np-cta {
  display: inline-block;
  background: var(--np-accent, #2F6FFF);
  color: #fff !important;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: filter .15s;
}
.np-cta:hover { filter: brightness(1.08); }

/* Credit link */
.np-credit {
  margin: 10px 0 0;
  font-size: 11px;
  text-align: right;
  opacity: .45;
  line-height: 1;
}
.np-credit a {
  color: inherit;
  text-decoration: none;
}
.np-credit a:hover { opacity: 1; }

/* Debug badge (only shown with ?np_debug=1) */
.np-debug {
  margin-top: 8px;
  padding: 4px 8px;
  background: #f0f0f0;
  border-radius: 6px;
  font-size: 11px;
  font-family: monospace;
  color: #555;
  word-break: break-all;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #np-widget { transition: none; }
}
