/* ══ Full-screen scan overlay used from the homepage ═════════════════════════ */
html.wcx-busy { overflow: hidden; }
.wcx-scan {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(7, 13, 32, .86);
  backdrop-filter: blur(12px) saturate(120%);
  animation: wcxIn .22s ease-out both;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}
@keyframes wcxIn { from { opacity: 0 } to { opacity: 1 } }

.wcx-card {
  width: min(880px, 100%);
  background: linear-gradient(160deg, #0B1533 0%, #101E48 55%, #16275C 100%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 26px 28px 22px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08);
  position: relative; overflow: hidden;
}
.wcx-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg,#0B8B63,#1F5BFF 40%,#22D3EE 75%,#7C3AED);
}

.wcx-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 16px;
}
.wcx-title {
  display: flex; align-items: center; gap: 11px;
  font: 600 14.5px/1.35 Inter, sans-serif; color: #C6D4F5;
}
.wcx-title b { color: #fff; font-family: "JetBrains Mono", monospace; }
.wcx-spinner {
  width: 17px; height: 17px; border-radius: 50%; flex: 0 0 auto;
  border: 2.5px solid rgba(255,255,255,.18);
  border-top-color: #22D3EE;
  animation: wcxSpin .75s linear infinite;
}
@keyframes wcxSpin { to { transform: rotate(360deg) } }

.wcx-pill {
  display: inline-flex; align-items: baseline; gap: 3px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.3);
  color: #67E8F9; font-family: "JetBrains Mono", monospace;
}
.wcx-pill .wcx-score { font-size: 16px; font-weight: 800; }
.wcx-pill small { font-size: 10.5px; opacity: .8; }

.wcx-track {
  height: 5px; border-radius: 99px; background: rgba(255,255,255,.10);
  overflow: hidden; margin-bottom: 18px;
}
.wcx-fill {
  height: 100%; width: 4%; border-radius: 99px;
  background: linear-gradient(90deg,#0B8B63,#1F5BFF,#22D3EE);
  transition: width .38s cubic-bezier(.4,0,.2,1);
}

.wcx-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 9px;
}
.wcx-step {
  padding: 11px 10px; border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  opacity: .45; transition: all .28s ease;
}
.wcx-step-top {
  display: flex; align-items: center; justify-content: space-between;
  font: 700 8.5px/1 "JetBrains Mono", monospace;
  letter-spacing: .08em; color: #7E90B8; margin-bottom: 7px;
}
.wcx-step-top i { font-style: normal; opacity: 0; color: #10B981; font-size: 11px; }
.wcx-step b { display: block; font: 600 11.5px/1.3 Inter, sans-serif; color: #DCE6FA; margin-bottom: 3px; }
.wcx-step small { display: block; font: 400 10px/1.35 Inter, sans-serif; color: #8DA0C6; }

.wcx-step[data-st="running"] {
  opacity: 1; background: rgba(34,211,238,.10); border-color: rgba(34,211,238,.45);
  transform: translateY(-1px);
}
.wcx-step[data-st="running"] .wcx-step-top { color: #67E8F9; }
.wcx-step[data-st="done"] { opacity: 1; background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.3); }
.wcx-step[data-st="done"] .wcx-step-top i { opacity: 1; }
.wcx-step[data-st="done"] .wcx-step-top { color: #10B981; }

.wcx-foot {
  margin: 16px 0 0; font: 400 11.5px/1.5 Inter, sans-serif; color: #7E90B8; text-align: center;
}

@media (max-width: 820px) {
  .wcx-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .wcx-step b { font-size: 11px; }
}
@media (max-width: 480px) {
  .wcx-card { padding: 20px 16px 16px; border-radius: 18px; }
  .wcx-title { font-size: 12.5px; gap: 8px; }
  .wcx-grid { gap: 7px; }
  .wcx-step { padding: 9px 8px; }
  .wcx-step small { display: none; }
  .wcx-pill { padding: 6px 10px; }
  .wcx-pill .wcx-score { font-size: 14px; }
}
