/* Fiskers Bank — transfer verification steps, CAPTCHA and processing. */

.secure-modal { max-width: 540px; }
.secure-modal .modal-body { padding: 0; }

.secure-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 14px 20px 0;
}
.secure-progress span { height: 5px; border-radius: 3px; background: var(--line); }
.secure-progress span.done { background: var(--green); }
.secure-progress span.active { background: var(--brand); }

.secure-body { padding: 18px 20px 20px; }
.secure-step { display: grid; gap: 10px; }
.secure-icon { display: none; }
.secure-title { font-size: 18px; }
.secure-sub { color: var(--text); }

.secure-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.sa-lbl { font-size: 13px; color: var(--muted); }
.sa-val { font-size: 18px; font-weight: 600; color: var(--ink); }

.secure-error {
  display: none;
  gap: 8px;
  align-items: flex-start;
  padding: 9px 12px;
  border: 1px solid #eab8b2;
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--red-2);
  color: var(--ink);
  font-size: 14px;
}
.secure-error.show { display: flex; }
.secure-error .icon { color: var(--red); margin-top: 2px; }

.attempt-note { font-size: 12px; color: var(--muted); }

.secure-note {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--amber-2);
  border: 1px solid #ecd29b;
  font-size: 13px;
  text-align: left;
}
.secure-note .icon { color: var(--amber); margin-top: 1px; }

/* ---------- CAPTCHA ---------- */

.captcha-shell { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.captcha-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.ct-main { font-size: 13px; font-weight: 600; color: var(--ink); }
.ct-sub { font-size: 11px; color: var(--muted); }
.captcha-refresh {
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: var(--radius);
  padding: 4px 6px;
  color: var(--link);
}
.captcha-canvas-wrap { background: #fff; padding: 8px; }
.captcha-canvas { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.captcha-input-row { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.captcha-input-row .input { font-family: var(--mono); letter-spacing: 0.15em; text-transform: uppercase; }

.captcha-instruction {
  padding: 10px 12px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
}
.captcha-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: #fff;
}
.captcha-tile {
  position: relative;
  aspect-ratio: 1.25;
  border: 3px solid transparent;
  background: #f3f3f3;
  padding: 0;
  overflow: hidden;
}
.captcha-tile:hover { border-color: #b9d4ea; }
.captcha-tile.selected { border-color: var(--link); }
.captcha-tile.selected::after {
  content: "✓";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--link);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.captcha-tile svg { width: 100%; height: 100%; }
.captcha-grid-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
}
.captcha-grid-actions .hint { font-size: 12px; color: var(--muted); }

/* ---------- Processing ---------- */

.processing { text-align: center; justify-items: center; padding: 10px 0; }
.processing h3 { font-size: 17px; }
.processing p { color: var(--muted); }
.processing-ring {
  width: 40px;
  height: 40px;
  border: 4px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.processing-log { display: grid; gap: 6px; margin-top: 8px; text-align: left; min-width: 260px; }
.pl-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.pl-row .icon { width: 14px; height: 14px; }
.pl-row .spinner { width: 14px; height: 14px; color: var(--brand); }
.pl-row.done { color: var(--ink); }
.pl-row.done .icon { color: var(--green); }

/* ---------- Result ---------- */

.result-mark {
  justify-self: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 4px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-2);
  color: var(--green);
}
.result-mark .icon { width: 24px; height: 24px; }
.result-mark.warn { background: var(--amber-2); color: var(--amber); }
.result-mark.fail { background: var(--red-2); color: var(--red); }
.secure-step .secure-title[style] { font-size: 20px !important; }

.status-ref {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  font-family: var(--mono);
  font-size: 13px;
}
