/* Rainbow border for the owner confirmation: the gradient shows through a 3px frame around the window and slides
   around it. Lightweight: no SVG filter, no extra layers. Scoped to .electric-card. */
.electric-card {
  position: fixed;
  z-index: 1001;
  width: min(720px, 94vw);
  padding: 3px;
  border-radius: 14px;
  background-image: linear-gradient(90deg, #00c0ff 0%, #ffcf00 49%, #fc4f4f 80%, #00c0ff 100%);
  background-size: 200% 100%;
  animation: electric-slide 3s linear infinite;
  box-shadow: 0 0 18px rgba(0, 192, 255, 0.3);
}

.electric-card > .popout.electric-content {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  max-height: 70vh;
  overflow: auto;
  border: none;
  border-radius: 11px;
  background: #10172a;
  box-shadow: none;
}

@keyframes electric-slide {
  to { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .electric-card { animation: none; }
}

/* The window sits outside the main content, so it carries the site's button styles itself. */
.electric-card button {
  border: 1px solid rgba(142, 157, 255, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, #8997ff, #6677f5);
  color: #10152b;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.electric-card button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-weight: 600;
}
.electric-card button:disabled { opacity: 0.5; cursor: default; }
