/* Hyper-i — customer-facing styles */
:root {
  --hi-navy: #1f2c8a;
  --hi-navy-deep: #14206b;
  --hi-navy-ink: #0a0f3d;
  --hi-red: #e8202a;
  --hi-red-soft: #ffe5e6;
  --hi-red-deep: #b51820;

  --hi-cream: #f7f5ef;
  --hi-bg: #fbfaf6;
  --hi-card: #ffffff;
  --hi-line: #e7e3d7;
  --hi-line-strong: #d3cebd;

  --hi-text: #15193a;
  --hi-text-soft: #5a6082;
  --hi-text-faint: #8a8fa9;

  --hi-ok: #128a4a;
  --hi-ok-soft: #e2f5ea;
  --hi-fail: #c4151f;
  --hi-fail-soft: #fde7e8;

  --hi-radius: 16px;
  --hi-radius-lg: 26px;
  --hi-radius-xl: 36px;
  --hi-shadow-card: 0 1px 2px rgba(20, 32, 107, 0.04), 0 12px 36px rgba(20, 32, 107, 0.08);
  --hi-shadow-lift: 0 2px 6px rgba(20, 32, 107, 0.06), 0 24px 60px rgba(20, 32, 107, 0.15);
  --hi-shadow-soft: 0 1px 0 rgba(20, 32, 107, 0.04), 0 10px 30px rgba(20, 32, 107, 0.06);

  --hi-font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hi-font-display: "Instrument Serif", "Plus Jakarta Sans", serif;
  --hi-font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; }
body {
  margin: 0;
  font-family: var(--hi-font-sans);
  background: var(--hi-bg);
  color: var(--hi-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; }

/* ──────────────────────── app shell ──────────────────────── */
.app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: clip;
}
.app::before {
  /* Soft brand glow behind everything */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(31, 44, 138, 0.10), transparent 70%),
    radial-gradient(700px 400px at 95% 5%,  rgba(232, 32, 42, 0.07), transparent 70%);
  z-index: 0;
}
.app > * { position: relative; z-index: 1; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  background: transparent;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-anchor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

/* System pill — small + de-emphasised */
.sys-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--hi-text-soft);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--hi-line);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.sys-btn:hover { color: var(--hi-text); border-color: var(--hi-line-strong); }
.sys-btn .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--hi-text-faint);
}
.sys-btn .dot.ok  { background: var(--hi-ok); }
.sys-btn .dot.bad { background: var(--hi-fail); }

.sys-panel {
  position: absolute;
  top: 64px;
  right: 28px;
  width: 360px;
  background: #fff;
  border: 1px solid var(--hi-line);
  border-radius: var(--hi-radius);
  padding: 18px;
  box-shadow: var(--hi-shadow-lift);
  z-index: 20;
}
.sys-panel h4 {
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hi-text-soft);
  font-weight: 600;
}
.sys-panel .field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}
.sys-panel .field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hi-text-faint);
  font-family: var(--hi-font-mono);
}
.sys-panel .field input {
  border: 1px solid var(--hi-line);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--hi-font-mono);
  font-size: 12px;
  color: var(--hi-text);
  background: var(--hi-bg);
  outline: none;
}
.sys-panel .field input:focus {
  border-color: var(--hi-navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 44, 138, 0.12);
}
.sys-panel .panel-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
}
.sys-panel .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--hi-line);
}
.sys-panel .row:last-child { border-bottom: none; }
.sys-panel .row .k { color: var(--hi-text-faint); font-family: var(--hi-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.sys-panel .row .v { color: var(--hi-text); font-family: var(--hi-font-mono); font-size: 12px; word-break: break-all; text-align: right; }
.sys-panel .hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--hi-text-soft);
  line-height: 1.45;
}
.sys-panel code {
  font-family: var(--hi-font-mono);
  background: var(--hi-bg);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}

.main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 24px 28px 80px;
}
.container {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ──────────────────────── logo ──────────────────────── */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  font-style: italic;
  font-size: 26px;
  color: var(--hi-navy);
  letter-spacing: -0.02em;
  position: relative;
  line-height: 1;
}
.logo .i-wrap {
  position: relative;
  display: inline-block;
}
.logo .eye {
  position: absolute;
  border-radius: 50%;
  background: var(--hi-red);
  left: 50%;
  transform: translateX(-50%);
}
.logo .eye::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: #fff;
}
.logo .eye::before {
  content: "";
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: var(--hi-navy-ink);
  z-index: 1;
}

/* ──────────────────────── hero ──────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 36px 8px 18px;
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 18px 4px; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hi-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hi-navy);
  background: rgba(31, 44, 138, 0.06);
  border: 1px solid rgba(31, 44, 138, 0.16);
  padding: 7px 12px;
  border-radius: 999px;
}
.eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--hi-red);
  box-shadow: 0 0 0 0 rgba(232, 32, 42, 0.5);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 32, 42, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(232, 32, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 32, 42, 0); }
}

.hero h1 {
  font-family: var(--hi-font-display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 18px 0 16px;
  color: var(--hi-navy-ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--hi-navy);
}
.hero p.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--hi-text-soft);
  margin: 0 0 28px;
  max-width: 540px;
}
.trust-row {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--hi-text);
}
.trust .tick {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--hi-ok-soft);
  color: var(--hi-ok);
  flex: 0 0 auto;
}

/* Hero visual — abstract face + ID composition */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  justify-self: end;
  width: 100%;
}
@media (max-width: 880px) {
  .hero-visual { justify-self: center; max-width: 340px; }
}
.hv-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--hi-line);
  border-radius: var(--hi-radius-lg);
  box-shadow: var(--hi-shadow-lift);
}
.hv-id {
  width: 64%;
  aspect-ratio: 1.586 / 1;
  left: 0;
  bottom: 8%;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: rotate(-7deg);
}
.hv-id .photo {
  width: 52px; height: 64px;
  border-radius: 6px;
  background: linear-gradient(160deg, #d4dafb, #adb5e3);
  position: relative;
  overflow: hidden;
}
.hv-id .photo::after {
  content: "";
  position: absolute;
  width: 60%; height: 60%;
  left: 20%; bottom: -20%;
  border-radius: 50% 50% 0 0;
  background: var(--hi-navy);
  opacity: 0.45;
}
.hv-id .photo::before {
  content: "";
  position: absolute;
  width: 24px; height: 24px;
  border-radius: 50%;
  left: 50%; top: 18%;
  transform: translateX(-50%);
  background: var(--hi-navy);
  opacity: 0.6;
}
.hv-id .lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hv-id .lines span {
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--hi-line) 0%, var(--hi-line) 60%, transparent 60%);
  border-radius: 3px;
}
.hv-id .lines span:nth-child(1) { width: 70%; background-color: var(--hi-line-strong); }
.hv-id .lines span:nth-child(2) { width: 50%; }
.hv-id .lines span:nth-child(3) { width: 60%; }
.hv-id .lines span:nth-child(4) { width: 40%; }

.hv-face {
  width: 56%;
  aspect-ratio: 1 / 1;
  right: 0;
  top: 0;
  padding: 14px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--hi-line);
  box-shadow: var(--hi-shadow-lift);
  transform: rotate(4deg);
}
.hv-face .inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 38%, #ffffff 0 8%, transparent 9%),
    radial-gradient(ellipse 8% 4% at 50% 64%, var(--hi-red-deep) 0 60%, transparent 65%),
    radial-gradient(ellipse 5% 6% at 38% 42%, var(--hi-navy-ink) 0 60%, transparent 65%),
    radial-gradient(ellipse 5% 6% at 62% 42%, var(--hi-navy-ink) 0 60%, transparent 65%),
    radial-gradient(ellipse 70% 75% at 50% 60%, #e8d3c2 0 80%, transparent 82%),
    linear-gradient(180deg, #f1e3d4, #e3c8af);
  position: relative;
  overflow: hidden;
}
.hv-face .inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 80% 30% at 50% -5%, var(--hi-navy-ink) 0 90%, transparent 95%);
  opacity: 0.85;
}

/* Liveness ring around face */
.hv-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(31, 44, 138, 0.35);
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hv-check {
  position: absolute;
  right: -8px; top: -8px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--hi-ok);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(18, 138, 74, 0.4);
}
.hv-dot {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--hi-red);
  box-shadow: 0 0 0 4px rgba(232, 32, 42, 0.18);
}
.hv-dot.a { left: 6%; top: 30%; }
.hv-dot.b { left: 38%; top: 6%; }
.hv-dot.c { right: 8%; bottom: 26%; }

/* ──────────────────────── methods (CNIC/Passport tiles) ──────────────────────── */
.methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 820px) {
  .methods { grid-template-columns: 1fr; }
}

.method {
  position: relative;
  background: var(--hi-card);
  border: 1px solid var(--hi-line);
  border-radius: var(--hi-radius-xl);
  padding: 30px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--hi-shadow-card);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.method::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(160deg, transparent 40%, rgba(31, 44, 138, 0.06) 100%);
}
.method:hover { transform: translateY(-3px); box-shadow: var(--hi-shadow-lift); }

.method-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.method-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(150deg, #eef0fb, #e2e6f9);
  display: flex; align-items: center; justify-content: center;
  color: var(--hi-navy);
  flex: 0 0 auto;
}
.method.passport .method-icon { background: linear-gradient(150deg, #ffe5e6, #fdd4d6); color: var(--hi-red-deep); }

.method h3 {
  margin: 4px 0 2px;
  font-size: 24px;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.method .sub {
  margin: 0;
  color: var(--hi-text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.option-toggle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  background: var(--hi-bg);
  border: 1px solid var(--hi-line);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.option-toggle-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.option-toggle button {
  background: transparent;
  border: none;
  padding: 10px 8px;
  font-size: 13px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--hi-text-soft);
  font-weight: 500;
  text-align: center;
  transition: background .15s ease, color .15s ease;
}
.option-toggle button.on {
  background: #fff;
  color: var(--hi-text);
  box-shadow: 0 1px 2px rgba(20,32,107,0.06), 0 4px 12px rgba(20,32,107,0.05);
  font-weight: 600;
}
.option-toggle button .meta {
  display: block;
  font-size: 11px;
  color: var(--hi-text-faint);
  font-weight: 400;
  margin-top: 2px;
  font-family: var(--hi-font-mono);
  letter-spacing: 0.02em;
}
.option-toggle button.on .meta { color: var(--hi-navy); }

.method-cta {
  margin-top: 4px;
}

/* ──────────────────────── buttons ──────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .1s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--hi-navy);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 8px 18px rgba(20, 32, 107, 0.25);
}
.btn-primary:hover { background: var(--hi-navy-deep); box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 10px 22px rgba(20, 32, 107, 0.35); }
.btn-primary:disabled {
  background: var(--hi-line-strong); color: #fff; cursor: not-allowed; box-shadow: none;
}
.btn-ghost {
  background: transparent;
  color: var(--hi-text-soft);
  border: 1px solid var(--hi-line);
}
.btn-ghost:hover { border-color: var(--hi-line-strong); color: var(--hi-text); background: rgba(255,255,255,0.6); }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .15s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  align-items: center;
  flex-wrap: wrap;
}

/* ──────────────────────── trust strip ──────────────────────── */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 22px 16px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--hi-line);
  border-radius: var(--hi-radius-lg);
  flex-wrap: wrap;
  backdrop-filter: blur(6px);
}
.trust-strip .item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--hi-text-soft);
}
.trust-strip .item strong {
  color: var(--hi-text);
  font-weight: 600;
}
.trust-strip .sep {
  width: 1px;
  height: 22px;
  background: var(--hi-line);
}
@media (max-width: 720px) {
  .trust-strip .sep { display: none; }
}

/* ──────────────────────── wizard pages ──────────────────────── */
.page {
  background: var(--hi-card);
  border: 1px solid var(--hi-line);
  border-radius: var(--hi-radius-xl);
  padding: 36px;
  box-shadow: var(--hi-shadow-card);
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.page-head h2 {
  margin: 0 0 6px;
  font-family: var(--hi-font-display);
  font-size: 36px;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--hi-navy-ink);
}
.page-head .sub {
  margin: 0;
  color: var(--hi-text-soft);
  font-size: 15px;
  max-width: 540px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.stepper .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--hi-text-faint);
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--hi-line);
  font-weight: 500;
}
.stepper .pill .num {
  font-family: var(--hi-font-mono);
  font-size: 10px;
  background: var(--hi-bg);
  border-radius: 999px;
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}
.stepper .pill.active {
  border-color: var(--hi-navy);
  color: var(--hi-navy);
  background: rgba(31, 44, 138, 0.06);
}
.stepper .pill.active .num { background: var(--hi-navy); color: #fff; }
.stepper .pill.done {
  border-color: var(--hi-ok);
  color: var(--hi-ok);
  background: var(--hi-ok-soft);
}
.stepper .pill.done .num { background: var(--hi-ok); color: #fff; }

/* ──────────────────────── camera stage ──────────────────────── */
.camera-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #0a0f3d;
  border-radius: var(--hi-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 54vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(10, 15, 61, 0.25);
}
.camera-wrap video,
.camera-wrap .still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.camera-wrap .still { background: #000; }
.cam-fallback {
  color: #b9c0e3;
  text-align: center;
  padding: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.overlay-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: rgba(10, 15, 61, 0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  font-weight: 500;
  white-space: nowrap;
}

.countdown.big {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--hi-font-display);
  font-size: clamp(120px, 18vw, 200px);
  font-weight: 400;
  color: #fff;
  text-shadow: 0 8px 60px rgba(0,0,0,0.6);
  line-height: 1;
  animation: count-pop 1s ease-out;
}
@keyframes count-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
  20%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
}

/* ──────────────────────── result ──────────────────────── */
.result-page {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}
@media (max-width: 880px) {
  .result-page { grid-template-columns: 1fr; }
}
.result-card {
  background: var(--hi-card);
  border: 1px solid var(--hi-line);
  border-radius: var(--hi-radius-xl);
  padding: 44px 40px;
  box-shadow: var(--hi-shadow-card);
}
.verdict {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: 24px 0 14px;
}
.verdict-ring {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hi-ok-soft);
  border: 2px solid var(--hi-ok);
  position: relative;
  animation: ring-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.verdict-ring::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--hi-ok);
  opacity: 0;
  animation: ring-pulse 2s ease-out infinite;
}
.verdict-ring.fail {
  background: var(--hi-fail-soft);
  border-color: var(--hi-fail);
}
.verdict-ring.fail::before { border-color: var(--hi-fail); }
.verdict-ring svg { width: 72px; height: 72px; }
@keyframes ring-pop {
  0%   { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
@keyframes ring-pulse {
  0%   { transform: scale(1);    opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0;   }
}

.verdict h2 {
  margin: 0;
  font-family: var(--hi-font-display);
  font-weight: 400;
  font-size: 48px;
  letter-spacing: -0.02em;
}
.verdict.pass h2 { color: var(--hi-ok); }
.verdict.fail h2 { color: var(--hi-fail); }
.verdict .summary {
  color: var(--hi-text-soft);
  font-size: 16px;
  max-width: 380px;
  margin: 0;
  line-height: 1.5;
}
.verdict-meta {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.verdict-meta .chip {
  background: var(--hi-bg);
  border: 1px solid var(--hi-line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--hi-text-soft);
}
.verdict-meta .chip strong {
  color: var(--hi-text);
  font-weight: 600;
}

.verdict-checks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: -4px;
}
.vcheck {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--hi-line);
  color: var(--hi-text);
}
.vcheck svg { flex: 0 0 auto; }
.vcheck.pass         { color: var(--hi-ok);   border-color: rgba(18, 138, 74, 0.3);  background: var(--hi-ok-soft); }
.vcheck.fail         { color: var(--hi-fail); border-color: rgba(196, 21, 31, 0.3);  background: var(--hi-fail-soft); }
.vcheck.undetermined { color: #8a6d12;        border-color: rgba(138, 109, 18, 0.3); background: #fff4d6; }

/* ──────────────────────── login screen ──────────────────────── */
.login-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 24px;
  position: relative;
  overflow: hidden;
}
.login-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 480px at 18% 12%, rgba(31, 44, 138, 0.13), transparent 70%),
    radial-gradient(560px 380px at 85% 88%, rgba(232, 32, 42, 0.10), transparent 70%);
  z-index: 0;
}
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--hi-card);
  border: 1px solid var(--hi-line);
  border-radius: 28px;
  padding: 38px 38px 30px;
  box-shadow: var(--hi-shadow-lift);
}
.login-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hi-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hi-text-soft);
  background: var(--hi-bg);
  border: 1px solid var(--hi-line);
  padding: 5px 10px;
  border-radius: 999px;
}
.login-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hi-ok);
  box-shadow: 0 0 0 0 rgba(18, 138, 74, 0.55);
  animation: pulse 2s ease-out infinite;
}
.login-card h1 {
  font-family: var(--hi-font-display);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: var(--hi-navy-ink);
  margin: 0 0 8px;
}
.login-sub {
  color: var(--hi-text-soft);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 26px;
}
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-field { display: flex; flex-direction: column; gap: 5px; }
.login-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hi-text-faint);
  font-family: var(--hi-font-mono);
}
.login-field input {
  border: 1px solid var(--hi-line);
  border-radius: 12px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--hi-text);
  background: var(--hi-bg);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.login-field input:focus {
  border-color: var(--hi-navy);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 44, 138, 0.12);
}
.login-err {
  background: var(--hi-fail-soft);
  color: var(--hi-fail);
  border: 1px solid #f6c6c9;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}
.login-submit { margin-top: 6px; padding: 14px 24px; }

.login-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--hi-line);
}
.login-link {
  background: none;
  border: none;
  color: var(--hi-text-soft);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--hi-line-strong);
}
.login-link:hover { color: var(--hi-navy); text-decoration-color: var(--hi-navy); }
.login-hint {
  margin-top: 10px;
  background: var(--hi-bg);
  border: 1px solid var(--hi-line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--hi-text-soft);
}
.login-hint code {
  font-family: var(--hi-font-mono);
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--hi-line);
  font-size: 11px;
  color: var(--hi-text);
}
.login-hint p { margin: 8px 0 0; font-size: 11px; color: var(--hi-text-faint); }
.login-hint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.login-hint-row .sep { color: var(--hi-text-faint); }

.role-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--hi-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.role-pill.admin {
  background: rgba(31, 44, 138, 0.08);
  color: var(--hi-navy);
  border: 1px solid rgba(31, 44, 138, 0.22);
}
.role-pill.user {
  background: var(--hi-bg);
  color: var(--hi-text-soft);
  border: 1px solid var(--hi-line);
}

.login-foot {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  font-size: 12px;
  color: var(--hi-text-faint);
  text-align: center;
}

/* ──────────────────────── user chip (topbar) ──────────────────────── */
.user-chip-wrap { position: relative; }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--hi-line);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(6px);
}
.user-chip:hover { border-color: var(--hi-line-strong); }
.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  background: var(--hi-text-faint);
  flex: 0 0 auto;
  font-family: var(--hi-font-mono);
  letter-spacing: 0.02em;
}
.user-avatar.admin { background: var(--hi-navy); }
.user-avatar.user  { background: linear-gradient(135deg, #5a6082, #8a8fa9); }
.user-avatar.lg    { width: 44px; height: 44px; font-size: 16px; }
.user-meta { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.user-name {
  font-size: 12px;
  color: var(--hi-text);
  font-weight: 600;
}
.user-role {
  font-family: var(--hi-font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hi-text-faint);
}
.user-role.admin { color: var(--hi-navy); }
.user-caret { font-size: 10px; color: var(--hi-text-faint); margin-left: 2px; }

.user-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #fff;
  border: 1px solid var(--hi-line);
  border-radius: var(--hi-radius);
  padding: 16px;
  box-shadow: var(--hi-shadow-lift);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.user-pop-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--hi-line);
}
.user-pop-name { font-size: 14px; font-weight: 600; color: var(--hi-text); }
.user-pop-user { font-size: 12px; color: var(--hi-text-faint); font-family: var(--hi-font-mono); margin-top: 2px; }
.user-pop-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--hi-text-faint);
}
.user-pop-meta .k {
  font-family: var(--hi-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

details.details-block {
  margin-top: 24px;
  border-top: 1px solid var(--hi-line);
  padding-top: 18px;
}
details.details-block summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--hi-text-soft);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
details.details-block summary::-webkit-details-marker { display: none; }
details.details-block summary::after {
  content: "›";
  margin-left: auto;
  transition: transform .15s ease;
  font-size: 18px;
}
details[open].details-block summary::after { transform: rotate(90deg); }
.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 14px;
  row-gap: 6px;
  margin-top: 14px;
  font-size: 13px;
}
.kv dt {
  color: var(--hi-text-faint);
  font-family: var(--hi-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  padding-top: 2px;
}
.kv dd { margin: 0; color: var(--hi-text); word-break: break-word; }
pre.raw {
  background: var(--hi-navy-ink);
  color: #c6cdf2;
  padding: 14px;
  border-radius: 10px;
  font-family: var(--hi-font-mono);
  font-size: 12px;
  overflow: auto;
  max-height: 280px;
  margin: 12px 0 0;
}

/* ──────────────────────── side panel cards ──────────────────────── */
.side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.side-card {
  background: var(--hi-card);
  border: 1px solid var(--hi-line);
  border-radius: var(--hi-radius-lg);
  padding: 24px;
  box-shadow: var(--hi-shadow-card);
}
.side-card h4 {
  margin: 0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hi-text-soft);
  font-weight: 600;
}
.thumb-row {
  display: flex;
  gap: 12px;
}
.thumb {
  flex: 1;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #0a0f3d center/cover no-repeat;
  border: 1px solid var(--hi-line);
  position: relative;
}
.thumb .lbl {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(10, 15, 61, 0.75);
  color: #fff;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--hi-font-mono);
  letter-spacing: 0.04em;
}

/* ──────────────────────── OCR review ──────────────────────── */
.ocr-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
}
@media (max-width: 760px) {
  .ocr-grid { grid-template-columns: 1fr; }
}
.ocr-photo {
  aspect-ratio: 1.586 / 1;
  background: #0a0f3d center/cover no-repeat;
  border-radius: var(--hi-radius);
  border: 1px solid var(--hi-line);
}
.ocr-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 26px;
}
.ocr-fields .f { display: flex; flex-direction: column; gap: 4px; }
.ocr-fields .f label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hi-text-faint);
  font-family: var(--hi-font-mono);
}
.ocr-fields .f .val {
  font-size: 16px;
  color: var(--hi-text);
  word-break: break-word;
  font-weight: 500;
}
.ocr-fields .f .val.empty {
  color: var(--hi-text-faint);
  font-style: italic;
  font-weight: 400;
}

/* ──────────────────────── banners ──────────────────────── */
.banner {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.banner.err {
  background: var(--hi-fail-soft);
  color: var(--hi-fail);
  border: 1px solid #f6c6c9;
}
.banner.info {
  background: #eef0fb;
  color: var(--hi-navy-deep);
  border: 1px solid #d6daf2;
}
.banner code {
  font-family: var(--hi-font-mono);
  background: rgba(0,0,0,0.04);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ──────────────────────── spinner / processing ──────────────────────── */
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
.spinner.dark {
  border-color: rgba(20, 32, 107, 0.15);
  border-top-color: var(--hi-navy);
}
.processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 20px;
  gap: 20px;
}
.processing p { margin: 0; color: var(--hi-text-soft); }
.processing .label {
  font-family: var(--hi-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hi-navy);
}

/* ──────────────────────── upload zone ──────────────────────── */
.dropzone {
  border: 2px dashed var(--hi-line-strong);
  border-radius: var(--hi-radius-lg);
  padding: 60px 30px;
  text-align: center;
  cursor: pointer;
  background: rgba(255,255,255,0.5);
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--hi-navy);
  background: #eef0fb;
}
.dropzone h4 {
  margin: 0 0 6px;
  font-size: 18px;
}
.dropzone p {
  margin: 0;
  color: var(--hi-text-soft);
  font-size: 14px;
}
.dropzone .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(150deg, #eef0fb, #e2e6f9);
  border: 1px solid var(--hi-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hi-navy);
}

/* ──────────────────────── back link ──────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--hi-text-soft);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  margin-bottom: 16px;
}
.back-link:hover { color: var(--hi-navy); }

/* ──────────────────────── footer ──────────────────────── */
.footer {
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--hi-line);
  background: transparent;
  font-size: 12px;
  color: var(--hi-text-faint);
  flex-wrap: wrap;
  gap: 12px;
}
.footer a {
  color: var(--hi-text-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--hi-line-strong);
}
.footer a:hover { color: var(--hi-navy); border-color: var(--hi-navy); }

/* ──────────────────────── verdict tags (pass/fail/undetermined) ──────────────────────── */
.vtag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--hi-font-mono);
  border: 1px solid transparent;
}
.vtag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.vtag-pass {
  color: var(--hi-ok);
  background: var(--hi-ok-soft);
  border-color: rgba(18, 138, 74, 0.25);
}
.vtag-fail {
  color: var(--hi-fail);
  background: var(--hi-fail-soft);
  border-color: rgba(196, 21, 31, 0.25);
}
.vtag-undetermined {
  color: #8a6d12;
  background: #fff4d6;
  border-color: rgba(138, 109, 18, 0.25);
}

/* ──────────────────────── topbar nav link ──────────────────────── */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--hi-text-soft);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--hi-line);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  font-family: inherit;
  font-weight: 500;
}
.nav-link:hover { color: var(--hi-text); border-color: var(--hi-line-strong); }
.nav-link.active {
  color: var(--hi-navy);
  border-color: rgba(31, 44, 138, 0.35);
  background: rgba(31, 44, 138, 0.06);
}
.nav-link svg { opacity: 0.85; }

/* ──────────────────────── result: blacklist warning ──────────────────────── */
.blacklist-warning {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(180deg, #fff1f2, #ffe2e3);
  border: 1px solid #f1b6ba;
  border-left: 4px solid var(--hi-fail);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 4px 0 18px;
  box-shadow: 0 1px 0 rgba(196, 21, 31, 0.05);
}
.blacklist-warning .bw-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--hi-fail);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(196, 21, 31, 0.25);
}
.blacklist-warning .bw-title {
  font-weight: 700;
  color: var(--hi-fail);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--hi-font-mono);
}
.blacklist-warning .bw-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--hi-text);
  font-size: 13px;
  margin-top: 4px;
}
.blacklist-warning .bw-meta strong { font-weight: 600; }

/* ──────────────────────── blacklist portal ──────────────────────── */
.bl-page {
  background: var(--hi-card);
  border: 1px solid var(--hi-line);
  border-radius: var(--hi-radius-xl);
  padding: 32px 36px 40px;
  box-shadow: var(--hi-shadow-card);
}

.bl-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 8px 4px 22px;
  border-bottom: 1px solid var(--hi-line);
  margin-bottom: 22px;
}
.bl-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hi-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hi-fail);
  background: var(--hi-fail-soft);
  border: 1px solid rgba(196, 21, 31, 0.18);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.bl-hero-eyebrow .bl-shield {
  width: 14px; height: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--hi-fail);
}
.bl-hero h2 {
  margin: 0 0 8px;
  font-family: var(--hi-font-display);
  font-size: 44px;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--hi-navy-ink);
}
.bl-hero p {
  margin: 0;
  color: var(--hi-text-soft);
  font-size: 15px;
  max-width: 680px;
  line-height: 1.55;
}

.bl-tabs {
  display: inline-flex;
  background: var(--hi-bg);
  border: 1px solid var(--hi-line);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 22px;
}
.bl-tabs button {
  background: transparent;
  border: none;
  padding: 9px 18px;
  font-size: 13px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--hi-text-soft);
  font-weight: 500;
  font-family: inherit;
}
.bl-tabs button.on {
  background: #fff;
  color: var(--hi-text);
  box-shadow: 0 1px 2px rgba(20,32,107,0.06), 0 4px 12px rgba(20,32,107,0.05);
  font-weight: 600;
}

.bl-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ── add ───────────────────────────────────────── */
.bl-add { display: flex; flex-direction: column; gap: 18px; }

.bl-add-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.bl-add-head h3, .bl-list-head h3, .bl-check-head h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--hi-navy-ink);
  letter-spacing: -0.01em;
}
.bl-add-head p, .bl-list-head p, .bl-check-head p {
  margin: 0;
  color: var(--hi-text-soft);
  font-size: 14px;
  max-width: 540px;
  line-height: 1.5;
}

.bl-counter {
  display: flex;
  gap: 10px;
}
.bl-counter > div {
  background: var(--hi-bg);
  border: 1px solid var(--hi-line);
  border-radius: 12px;
  padding: 8px 14px;
  text-align: center;
  min-width: 64px;
}
.bl-counter > div strong {
  display: block;
  font-size: 20px;
  font-family: var(--hi-font-display);
  font-weight: 400;
  color: var(--hi-text);
  line-height: 1;
}
.bl-counter > div span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hi-text-faint);
  font-family: var(--hi-font-mono);
  margin-top: 4px;
}
.bl-counter > div.ok strong { color: var(--hi-ok); }
.bl-counter > div.bad strong { color: var(--hi-fail); }

.bl-reason {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bl-reason label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hi-text-faint);
  font-family: var(--hi-font-mono);
}
.bl-reason input {
  border: 1px solid var(--hi-line);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--hi-text);
  background: var(--hi-bg);
  outline: none;
}
.bl-reason input:focus {
  border-color: var(--hi-navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 44, 138, 0.12);
}

.bl-drop {
  border: 2px dashed var(--hi-line-strong);
  border-radius: var(--hi-radius-lg);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  background: rgba(255,255,255,0.5);
  transition: border-color .15s ease, background .15s ease;
}
.bl-drop:hover, .bl-drop.drag {
  border-color: var(--hi-fail);
  background: var(--hi-fail-soft);
}
.bl-drop-icon {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: linear-gradient(150deg, #ffe5e6, #fdd4d6);
  border: 1px solid rgba(196, 21, 31, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hi-fail);
}
.bl-drop h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--hi-text); }
.bl-drop p  { margin: 0; color: var(--hi-text-soft); font-size: 13px; }

.bl-queue {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--hi-line);
  border-radius: 14px;
  padding: 8px;
  background: var(--hi-bg);
}
.bl-q-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--hi-line);
  border-radius: 10px;
  transition: border-color .15s ease, background .15s ease;
}
.bl-q-item.done    { border-color: rgba(18, 138, 74, 0.35); background: linear-gradient(0deg, var(--hi-ok-soft) 0%, #fff 60%); }
.bl-q-item.error   { border-color: rgba(196, 21, 31, 0.35); background: linear-gradient(0deg, var(--hi-fail-soft) 0%, #fff 60%); }
.bl-q-item.running { border-color: rgba(31, 44, 138, 0.35); }
.bl-q-thumb {
  width: 56px;
  height: 36px;
  border-radius: 6px;
  background: #0a0f3d center/cover no-repeat;
  flex: 0 0 auto;
  border: 1px solid var(--hi-line);
}
.bl-q-body { flex: 1; min-width: 0; }
.bl-q-name {
  font-size: 13px;
  color: var(--hi-text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bl-q-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--hi-text-soft);
  margin-top: 2px;
  font-family: var(--hi-font-mono);
  letter-spacing: 0.02em;
}
.bl-q-x {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--hi-line);
  background: #fff;
  color: var(--hi-text-soft);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.bl-q-x:hover { color: var(--hi-fail); border-color: rgba(196, 21, 31, 0.3); }

.bl-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--hi-text-faint);
}
.bl-dot.pending  { background: var(--hi-text-faint); }
.bl-dot.running  { background: var(--hi-navy); animation: pulse-dot 1.2s ease-in-out infinite; }
.bl-dot.done     { background: var(--hi-ok); }
.bl-dot.error    { background: var(--hi-fail); }
@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

.bl-add-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

/* ── list ──────────────────────────────────────── */
.bl-list { display: flex; flex-direction: column; gap: 16px; }
.bl-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
.bl-list-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bl-list-tools input {
  border: 1px solid var(--hi-line);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--hi-text);
  background: var(--hi-bg);
  outline: none;
  min-width: 240px;
}
.bl-list-tools input:focus {
  border-color: var(--hi-navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 44, 138, 0.12);
}

.bl-table {
  border: 1px solid var(--hi-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.bl-tr {
  display: grid;
  grid-template-columns: 70px 1.2fr 1.2fr 1.2fr 1fr 100px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hi-line);
  font-size: 13px;
}
.bl-tr:last-child { border-bottom: none; }
.bl-th {
  background: var(--hi-bg);
  color: var(--hi-text-faint);
  font-size: 11px;
  font-family: var(--hi-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 16px;
}
.bl-tr code {
  font-family: var(--hi-font-mono);
  font-size: 12px;
  color: var(--hi-text);
  background: var(--hi-bg);
  padding: 2px 6px;
  border-radius: 4px;
}
.bl-cnic-thumb {
  width: 60px;
  height: 38px;
  border-radius: 5px;
  background: #0a0f3d center/cover no-repeat;
  border: 1px solid var(--hi-line);
}
.bl-sub {
  font-size: 11px;
  color: var(--hi-text-faint);
  margin-top: 2px;
}
.bl-reason-pill {
  display: inline-block;
  padding: 3px 9px;
  background: var(--hi-fail-soft);
  color: var(--hi-fail);
  border: 1px solid rgba(196, 21, 31, 0.18);
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--hi-font-mono);
  letter-spacing: 0.02em;
}
.muted { color: var(--hi-text-faint); }
.bl-remove { border-color: rgba(196, 21, 31, 0.25); color: var(--hi-fail); }
.bl-remove:hover { background: var(--hi-fail-soft); border-color: var(--hi-fail); color: var(--hi-fail); }

.bl-td-actions { text-align: right; }

.bl-empty {
  padding: 18px;
  text-align: center;
  color: var(--hi-text-faint);
  font-size: 13px;
}
.bl-empty-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--hi-bg);
  border: 1px dashed var(--hi-line-strong);
  border-radius: 16px;
}
.bl-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--hi-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hi-text-soft);
}
.bl-empty-card h4 { margin: 0 0 6px; font-size: 16px; color: var(--hi-text); }
.bl-empty-card p  { margin: 0; color: var(--hi-text-soft); font-size: 13px; max-width: 420px; margin: 0 auto; line-height: 1.5; }

@media (max-width: 880px) {
  .bl-tr {
    grid-template-columns: 60px 1fr;
    grid-template-areas:
      "thumb cnic"
      "thumb name"
      "thumb reason"
      "thumb when"
      "actions actions";
    gap: 6px;
  }
  .bl-th { display: none; }
  .bl-td-thumb { grid-area: thumb; }
  .bl-td-cnic  { grid-area: cnic; }
  .bl-td-name  { grid-area: name; }
  .bl-td-reason{ grid-area: reason; }
  .bl-td-when  { grid-area: when; font-size: 11px; color: var(--hi-text-faint); }
  .bl-td-actions { grid-area: actions; text-align: left; }
}

/* ── standalone check ─────────────────────────── */
.bl-check { display: flex; flex-direction: column; gap: 18px; }
.bl-check-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--hi-bg);
  border: 1px solid var(--hi-line);
  border-radius: 16px;
  padding: 20px;
}
.bl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bl-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hi-text-faint);
  font-family: var(--hi-font-mono);
}
.bl-field input {
  border: 1px solid var(--hi-line);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--hi-font-mono);
  font-size: 13px;
  color: var(--hi-text);
  background: #fff;
  outline: none;
}
.bl-field input:focus {
  border-color: var(--hi-navy);
  box-shadow: 0 0 0 3px rgba(31, 44, 138, 0.12);
}

.bl-files {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bl-file-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: #fff;
  border: 1px solid var(--hi-line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--hi-text-soft);
}
.bl-file-thumb {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #0a0f3d center/cover no-repeat;
  border: 1px solid var(--hi-line);
}
.bl-file-name {
  font-family: var(--hi-font-mono);
  font-size: 12px;
  color: var(--hi-text);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bl-file-x {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--hi-bg);
  color: var(--hi-text-soft);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.bl-file-x:hover { color: var(--hi-fail); }
.bl-file-pick {
  background: #fff;
  border: 1px dashed var(--hi-line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--hi-text-soft);
  cursor: pointer;
}
.bl-file-pick:hover {
  color: var(--hi-navy);
  border-color: var(--hi-navy);
  background: rgba(31, 44, 138, 0.05);
}

.bl-check-actions { display: flex; }
.bl-check-result {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--hi-line);
  background: #fff;
}
.bl-check-result.hit {
  background: linear-gradient(180deg, #fff1f2, #ffe2e3);
  border-color: #f1b6ba;
  border-left: 4px solid var(--hi-fail);
}
.bl-check-result.clear {
  background: linear-gradient(180deg, #f1faf4, #e2f5ea);
  border-color: #b7e0c3;
  border-left: 4px solid var(--hi-ok);
}
.bl-cr-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex: 0 0 auto;
}
.bl-check-result.hit   .bl-cr-icon { background: var(--hi-fail); }
.bl-check-result.clear .bl-cr-icon { background: var(--hi-ok); }
.bl-cr-title {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--hi-font-mono);
}
.bl-check-result.hit   .bl-cr-title { color: var(--hi-fail); }
.bl-check-result.clear .bl-cr-title { color: var(--hi-ok); }
.bl-cr-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--hi-text);
  margin-top: 4px;
}
.bl-cr-meta strong { font-weight: 600; }
