/* ==========================================================================
   MODULE VERIFICATION WIDGET
   Dark, Cell Line motif — matches the site's premium hero language.
   ========================================================================== */

.bp-verify-widget {
  position: relative; overflow: hidden; background: #080d0a;
  border-radius: 24px; padding: 56px 40px;
}
.bp-verify-lines-bg { position: absolute; inset: 0; opacity: 0.3; }
.bp-verify-inner { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; }

.bp-verify-label {
  display: block; color: #8fd6ab; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.bp-verify-row { display: flex; gap: 12px; flex-wrap: wrap; }
.bp-verify-input-wrap { position: relative; flex: 1 1 240px; overflow: hidden; border-radius: 10px; }
.bp-verify-row input[type="text"] {
  width: 100%; padding: 16px 18px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.04);
  color: #fff; font-size: 15px; outline: none;
  transition: border-color .25s ease, background .25s ease;
}
.bp-verify-row input[type="text"]::placeholder { color: #6b756f; }
.bp-verify-row input[type="text"]:focus { border-color: #3ee08a; background: rgba(255,255,255,0.07); }

/* ---------- Scanner sweep (Motion System §6) ----------
   Loops continuously while a lookup is in flight; JS only removes
   the class after the sweep completes a full pass AND the AJAX
   response has returned — never cut mid-sweep, never a fixed timer. */
.bp-verify-input-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(62,224,138,0.55), transparent);
  opacity: 0; pointer-events: none;
}
.bp-verify-input-wrap.is-scanning::after {
  opacity: 1;
  animation: bpScanSweep 0.7s linear infinite;
}
@keyframes bpScanSweep {
  from { transform: translateX(0); }
  to { transform: translateX(430%); }
}

.bp-verify-btn {
  position: relative;
  padding: 16px 30px; border-radius: 10px; border: none; cursor: pointer;
  background: #18A558; color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 24px -6px rgba(24,165,88,0.5);
  transition: transform .25s cubic-bezier(.25,.1,.25,1), background .25s ease;
}
.bp-verify-btn:hover { background: #1ec06a; transform: translateY(-2px); }
.bp-verify-btn:disabled { opacity: 0.75; cursor: default; transform: none; }
.bp-verify-btn:focus-visible { outline: 2px solid #3ee08a; outline-offset: 3px; }

.bp-verify-btn-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; margin-left: 8px; vertical-align: middle;
  animation: bpDotPulse 0.4s ease-in-out infinite alternate;
}
@keyframes bpDotPulse { from { opacity: 0.35; } to { opacity: 1; } }

.bp-verify-result { margin-top: 32px; }

@keyframes bpPanelArrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bpPanelFadeFlat {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Genuine result panel ----------
   Full motion weight: fade + rise, Medium, Arrival easing (Motion System §7). */
.bp-vr-genuine {
  border: 1px solid rgba(62,224,138,0.3); background: rgba(62,224,138,0.06);
  border-radius: 16px; padding: 28px 30px;
  animation: bpPanelArrive 0.4s cubic-bezier(.16,1,.3,1) both;
}
.bp-vr-status { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.bp-vr-status svg { color: #3ee08a; flex-shrink: 0; }
.bp-vr-status span { color: #3ee08a; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }

/* Checkmark draws itself in once — single stroke, no bounce/overshoot. */
.bp-vr-status svg .bp-checkmark-path {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: bpDrawCheck 0.4s cubic-bezier(.16,1,.3,1) 0.1s forwards;
}
@keyframes bpDrawCheck { to { stroke-dashoffset: 0; } }

.bp-vr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.bp-vr-field dt { color: #8fd6ab; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 4px; }
.bp-vr-field dd { color: #fff; font-size: 15px; font-weight: 600; margin: 0; }

/* ---------- Not-found panel ----------
   Deliberately calmer: flat fade only, Fast, Standard easing, no rise. */
.bp-vr-notfound {
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.03);
  border-radius: 16px; padding: 32px 30px; text-align: center;
  animation: bpPanelFadeFlat 0.22s cubic-bezier(.25,.1,.25,1) both;
}
.bp-vr-notfound svg { color: #f2a341; margin-bottom: 14px; }
.bp-vr-notfound h3 { color: #fff; font-size: 18px; margin: 0 0 10px; }
.bp-vr-notfound p { color: #a9b3ad; font-size: 14.5px; line-height: 1.65; margin: 0 0 20px; }
.bp-vr-notfound a {
  display: inline-block; padding: 13px 24px; border-radius: 10px;
  background: #18A558; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
}

.bp-vr-image { margin-bottom: 20px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,0.04); }
.bp-vr-image img { width: 100%; max-height: 220px; object-fit: cover; display: block; }

.bp-vr-downloads { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; gap: 12px; }
.bp-vr-downloads a {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 8px;
  background: rgba(62,224,138,0.1); border: 1px solid rgba(62,224,138,0.3); color: #3ee08a;
  text-decoration: none; font-size: 13.5px; font-weight: 600; transition: background .2s ease;
}
.bp-vr-downloads a:hover { background: rgba(62,224,138,0.18); }

.bp-vr-loading { color: #a9b3ad; font-size: 14.5px; text-align: center; padding: 20px 0; }
.bp-vr-error { color: #f2a341; font-size: 14.5px; text-align: center; padding: 14px 0; }

@media (max-width: 600px) {
  .bp-verify-widget { padding: 40px 22px; }
  .bp-verify-row { flex-direction: column; }
  .bp-vr-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion (Motion System §9 — mandatory, not optional) ---------- */
@media (prefers-reduced-motion: reduce) {
  .bp-verify-input-wrap.is-scanning::after { animation: none; opacity: 0; }
  .bp-verify-btn-dot { animation: none; opacity: 1; }
  .bp-vr-genuine, .bp-vr-notfound { animation: none; opacity: 1; transform: none; }
  .bp-vr-status svg .bp-checkmark-path { animation: none; stroke-dashoffset: 0; }
}
