.scanner-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(7, 20, 38, 0.88);
}

.scanner-modal.open { display: grid; }

.scanner-card {
  width: min(440px, 100%);
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.scanner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 15px;
}

.scanner-head h3 { margin: 0; font-size: 17px; }
.scanner-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.scanner-close { display: block !important; color: var(--ink); cursor: pointer; }

.camera-view {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #08101c;
}

.camera-view video { width: 100%; height: 100%; object-fit: cover; }

.scan-frame {
  position: absolute;
  inset: 15%;
  border: 2px solid #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(7, 20, 38, 0.4);
}

.scan-frame::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8%;
  left: 8%;
  height: 2px;
  background: #d09a3e;
  box-shadow: 0 0 10px #d09a3e;
  animation: scanline 1.8s ease-in-out infinite;
}

.scanner-status { min-height: 16px; color: var(--muted); font-size: 11px; text-align: center; }

@keyframes scanline {
  0%, 100% { transform: translateY(-80px); }
  50% { transform: translateY(80px); }
}
