/* ── Feature hover previews ──
   One floating panel (#pv) shows a looping mini demo of the hovered feature.
   Every preview draws into .pv-stage, a fixed 460×280 box; class names are
   prefixed pv- so nothing leaks into the page. */

[data-preview] { cursor: default; }
[data-preview].glass-card { position: relative; }
.pv-hint {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: 99px;
  font-size: 11px; font-weight: 600; letter-spacing: .01em;
  color: var(--blue, #0768fd); background: rgba(7,104,253,.06);
  opacity: .55; transition: opacity .25s ease, background .25s ease;
  pointer-events: none; white-space: nowrap;
}
[data-preview]:hover .pv-hint, [data-preview].pv-on .pv-hint { opacity: 1; background: rgba(7,104,253,.1); }
.pv-hint svg { width: 9px; height: 9px; }
.pv-row-ic { display: inline-flex; vertical-align: -1px; margin-left: 6px; color: var(--blue, #0768fd); opacity: .5; transition: opacity .2s; }
[data-preview]:hover .pv-row-ic, [data-preview].pv-on .pv-row-ic { opacity: 1; }
.pv-row { border-radius: 10px; margin: -6px -8px; padding: 6px 8px; transition: background .2s; }
.pv-row:hover, .pv-row.pv-on { background: rgba(7,104,253,.05); }

#pv {
  position: fixed; left: 0; top: 0; z-index: 9000;
  width: 476px; padding: 8px;
  border-radius: 20px;
  background: linear-gradient(140deg, #2a66ff 0%, #1240e6 55%, #0a2fc9 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 30px 70px rgba(2,10,70,.35), 0 10px 24px rgba(2,10,70,.18);
  opacity: 0; transform-origin: 50% 50%;
  transition: opacity .18s ease, transform .22s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #111827; -webkit-font-smoothing: antialiased;
}
#pv.pv-show { opacity: 1; }
#pv::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
  background: radial-gradient(60% 50% at 20% 0%, rgba(160,200,255,.45), transparent 70%),
              radial-gradient(50% 60% at 100% 100%, rgba(3,10,70,.45), transparent 70%);
}
#pv .pv-win {
  position: relative; width: 460px; border-radius: 13px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.6);
}
#pv .pv-bar {
  height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  border-bottom: 1px solid #eef0f3; background: #fff;
}
#pv .pv-dots { display: flex; gap: 5px; }
#pv .pv-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e5e7eb; }
#pv .pv-title { font-size: 12.5px; font-weight: 600; color: #374151; }
#pv .pv-badge { margin-left: auto; font-size: 10.5px; font-weight: 600; color: #2563eb; background: #eff6ff; padding: 2px 8px; border-radius: 99px; }
#pv .pv-stage { position: relative; width: 460px; height: 280px; overflow: hidden; background: #f9fafb; }
#pv .pv-cap {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 10px 8px 4px; color: #fff; min-height: 34px;
}
#pv .pv-steps { display: flex; gap: 4px; flex: none; }
#pv .pv-steps i { width: 16px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
#pv .pv-steps i b { position: absolute; left: 0; top: 0; bottom: 0; background: #fff; border-radius: 4px; }
#pv .pv-ctext { font-size: 13px; font-weight: 600; letter-spacing: -.005em; line-height: 17px; transition: opacity .2s; }
#pv .pv-close { display: none; }

/* touch: the preview opens as a sheet the visitor can close */
#pv.pv-sheet { pointer-events: auto; }
#pv.pv-sheet .pv-close {
  display: flex; position: absolute; right: -6px; top: -6px; width: 30px; height: 30px; border-radius: 50%;
  align-items: center; justify-content: center; background: #fff; color: #111827; border: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.2); font-size: 18px; line-height: 1; z-index: 2;
}
#pv-scrim { position: fixed; inset: 0; z-index: 8999; background: rgba(15,23,42,.35); opacity: 0; pointer-events: none; transition: opacity .2s; }
#pv-scrim.pv-show { opacity: 1; pointer-events: auto; }

/* ── shared mini-UI primitives (app look: Tailwind greys, blue-500 #3b82f6) ── */
#pv .pv-stage * { box-sizing: border-box; margin: 0; padding: 0; }
#pv .a { position: absolute; }
#pv .btn { position: absolute; display: flex; align-items: center; justify-content: center; gap: 4px; height: 21px; padding: 0 8px; border-radius: 6px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
#pv .btn svg { width: 11px; height: 11px; }
/* the page's DaisyUI also styles .btn and .card; undo it inside the panel */
#pv .btn { min-height: 0; border-width: 0; line-height: 1; text-transform: none; animation: none; flex-wrap: nowrap; box-shadow: none; outline: none; }
#pv .bo { border-width: 1px; }
#pv .card { display: block; flex-direction: initial; border-radius: 10px; box-shadow: none; }
#pv .bp { background: #3b82f6; color: #fff; }
#pv .bs { background: #eff6ff; color: #2563eb; }
#pv .bo { background: #fff; color: #374151; border: 1px solid #d1d5db; }
#pv .card { position: absolute; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; }
#pv .chip { display: inline-flex; align-items: center; gap: 4px; height: 19px; padding: 0 8px; border-radius: 99px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
#pv .c-blue { background: #eff6ff; color: #2563eb; }
#pv .c-green { background: #f0fdf4; color: #15803d; }
#pv .c-amber { background: #fef3c7; color: #92400e; }
#pv .c-red { background: #fee2e2; color: #991b1b; }
#pv .c-purple { background: #f5f3ff; color: #6d28d9; }
#pv .c-grey { background: #f3f4f6; color: #4b5563; }
#pv .muted { color: #6b7280; }
#pv .lbl { font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #9ca3af; }
#pv .shim { background: linear-gradient(90deg,#9ca3af 0%,#9ca3af 38%,#111827 50%,#9ca3af 62%,#9ca3af 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
#pv .caret { display: inline-block; width: 1.5px; height: 1.05em; background: #2563eb; vertical-align: -2px; margin-left: 1px; }
#pv .pv-cursor { position: absolute; left: 0; top: 0; width: 20px; height: 20px; z-index: 50; pointer-events: none; }
#pv .pv-click { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(59,130,246,.25); border: 2px solid rgba(59,130,246,.6); opacity: 0; z-index: 49; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  #pv { transition: opacity .1s; }
}
