/**
 * Propzora — Verify document page (redesigned result states)
 */

.verify-page {
  --pz-muted: #475569;
  min-height: 100vh;
}

/* ---- Loading state ---- */
.vr-loading {
  text-align: center;
  padding: 32px 0;
  color: var(--pz-muted);
  font-size: 0.8125rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.vr-loading__spin {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 2px solid #c7d4f0;
  border-top-color: #1e3a8a;
  border-radius: 50%;
  animation: vrSpin 0.8s linear infinite;
}

@keyframes vrSpin {
  to { transform: rotate(360deg); }
}

/* ---- Result card ---- */
@keyframes vrFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.vr-card {
  margin-top: 20px;
  border-radius: 16px;
  border: 1px solid #e8e8e6;
  background: #ffffff;
  overflow: hidden;
  animation: vrFadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---- Card header ---- */
.vr-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid #f0f0ee;
}

.vr-logo-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
}

.vr-logo-text {
  font-size: 14px;
  font-weight: 600;
  color: #1e3a8a;
  letter-spacing: -0.02em;
}

.vr-id-tag {
  margin-left: auto;
  font-family: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace;
  font-size: 10.5px;
  color: #9a9ca8;
  background: #f4f4f2;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid #e8e8e6;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ---- Document preview ---- */
.vr-doc-preview {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #f0f0ed;
  border-bottom: 1px solid #f0f0ee;
}

.vr-doc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vr-doc-img--blur {
  filter: blur(1.5px);
  transform: scale(1.02);
}

.vr-doc-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px;
}

.vr-doc-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.88);
  color: #4a4c57;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
}

.vr-doc-stamp {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%) rotate(-18deg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  padding: 5px 14px;
  border-radius: 4px;
  border-width: 2px;
  border-style: solid;
}

.vr-doc-stamp--verified {
  color: #1e3a8a;
  border-color: #1e3a8a;
  background: rgba(255,255,255,0.7);
}

.vr-doc-stamp--flagged {
  color: #7a1f1f;
  border-color: #7a1f1f;
  background: rgba(255,255,255,0.7);
}

/* ---- Card body ---- */
.vr-body {
  padding: 20px 18px 18px;
}

/* ---- Status pill ---- */
.vr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid;
}

.vr-pill--verified {
  background: #eef2fb;
  color: #1e3a8a;
  border-color: #c7d4f0;
}

.vr-pill--flagged,
.vr-pill--rejected {
  background: #fdf0f0;
  color: #7a1f1f;
  border-color: #e8b4b4;
}

.vr-pill--pending {
  background: #fdf6ed;
  color: #7a4400;
  border-color: #e8c88a;
}

/* ---- Warning box (flagged/rejected) ---- */
.vr-warning {
  font-size: 13px;
  font-weight: 500;
  color: #7a1f1f;
  background: #fdf0f0;
  border: 1px solid #e8b4b4;
  border-radius: 7px;
  padding: 10px 12px;
  line-height: 1.55;
  margin-bottom: 16px;
}

/* ---- Metadata table ---- */
.vr-meta {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.vr-meta tr {
  border-top: 1px solid #f0f0ee;
}

.vr-meta tr:first-child {
  border-top: none;
}

.vr-meta td {
  padding: 9px 0;
  vertical-align: middle;
}

.vr-meta-k {
  color: #9a9ca8;
  font-weight: 400;
  white-space: nowrap;
  padding-right: 12px;
}

.vr-meta-v {
  text-align: right;
  font-weight: 500;
  color: #111318;
}

.vr-meta-v--notes {
  text-align: right;
  font-size: 12px;
  line-height: 1.55;
  color: #4a4c57;
}

.vr-meta-v--title-clean   { color: #065f46; }
.vr-meta-v--title-encumbered { color: #7a4400; }
.vr-meta-v--title-disputed  { color: #7a1f1f; }

/* ---- Buttons ---- */
.vr-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.vr-btn {
  flex: 1;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.12s ease;
  white-space: nowrap;
  text-decoration: none;
}

.vr-btn:active { transform: scale(0.98); }

.vr-btn--primary {
  background: #1e3a8a;
  color: #ffffff;
  border: 1px solid #0f2460;
}
.vr-btn--primary:hover { background: #0f2460; }

.vr-btn--secondary {
  background: #ffffff;
  color: #4a4c57;
  border: 1px solid #e8e8e6;
}
.vr-btn--secondary:hover { background: #f4f4f2; }

.vr-btn--danger {
  background: #fdf0f0;
  color: #7a1f1f;
  border: 1px solid #e8b4b4;
}
.vr-btn--danger:hover { background: #f9e5e5; }

/* ---- Notify row (pending) ---- */
.vr-notify-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.vr-notify-input {
  flex: 1;
  font-family: inherit;
  font-size: 13px;
  padding: 10px 12px;
  border: 1px solid #e8e8e6;
  border-radius: 10px;
  outline: none;
  color: #111318;
  background: #ffffff;
  min-width: 0;
  transition: border-color 0.15s;
}

.vr-notify-input:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.vr-btn--notify {
  flex: none;
  white-space: nowrap;
}

/* ---- Note box (verified / pending) ---- */
.vr-note {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.6;
  color: inherit;
}

.vr-note--verified {
  background: #eef2fb;
  color: #1e3a8a;
  border: 1px solid #c7d4f0;
}

.vr-note--pending {
  background: #fdf6ed;
  color: #7a4400;
  border: 1px solid #e8c88a;
}

/* ---- Center state (not found) ---- */
.vr-center-state {
  padding: 36px 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.vr-state-icon { margin-bottom: 16px; }

.vr-center-headline {
  font-size: 15px;
  font-weight: 600;
  color: #111318;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.vr-center-body {
  font-size: 13px;
  color: #4a4c57;
  line-height: 1.6;
  margin: 0 0 4px;
  max-width: 280px;
}

.vr-center-sub {
  font-size: 12px;
  color: #9a9ca8;
  margin: 0 0 20px;
}

/* ---- Ledger footer ---- */
.vr-foot {
  border-top: 1px solid #f0f0ee;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vr-foot-left {
  font-size: 10.5px;
  color: #9a9ca8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vr-foot-right {
  font-family: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace;
  font-size: 10px;
  color: #9a9ca8;
  opacity: 0.7;
}

.vr-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vr-dot--green { background: #22c55e; }
.vr-dot--red   { background: #e05252; }
.vr-dot--amber { background: #f59e0b; }
.vr-dot--gray  { background: #9a9ca8; }

/* ---- Existing input/button styles (keep unchanged) ---- */
.verify-input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  font-family: var(--pz-font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pz-ink);
  background: var(--pz-surface);
  border: 1.5px solid var(--pz-line);
  border-radius: var(--pz-radius-lg);
  outline: none;
  transition: border-color var(--pz-duration), box-shadow var(--pz-duration);
  box-sizing: border-box;
  margin-bottom: 14px;
}

.verify-input::placeholder {
  color: var(--pz-faint);
  letter-spacing: 0.06em;
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: none;
}

.verify-input:focus {
  border-color: var(--pz-blue);
  box-shadow: 0 0 0 3px var(--pz-blue-soft);
}