/* ==========================================================================
   VERIFY — member identity verification (/verify). Loaded by verify.html
   only, after billing.css, which supplies the shared sign-in panel. Built on
   the shared tokens: monochrome, and themed like every other page.
   ========================================================================== */

/* A message that outlives the view it came from ("Sent", "Deletion
   scheduled"): above everything, until the next one replaces it. */
.vflash {
  margin: 0 0 var(--sp-6);
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-active);
  font-size: var(--fs-sm);
  color: var(--text);
}

/* ---- stepper ------------------------------------------------------------ */
.vsteps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sp-2);
  margin: 0 0 var(--sp-5);
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.vsteps li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 2px solid var(--line-2);
  color: var(--text-3);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.vsteps__n {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
}
.vsteps__t { font-size: var(--fs-xs); font-weight: 500; }
.vsteps li.is-done { border-top-color: var(--text-3); color: var(--text-2); }
.vsteps li.is-current { border-top-color: var(--text); color: var(--text); }

@media (max-width: 620px) {
  /* Five labels don't fit a phone; the current one is enough. */
  .vsteps__t { display: none; }
  .vsteps li.is-current .vsteps__t { display: block; white-space: nowrap; }
}

/* ---- a step ------------------------------------------------------------- */
.vstep { display: flex; flex-direction: column; gap: var(--sp-5); }

.vstep__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}
/* Focused on each step change for screen readers; not a control, so no ring. */
.vstep__title:focus { outline: none; }

.vstep__lead {
  margin: -8px 0 0;
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  color: var(--text-2);
  max-width: 62ch;
}

.vdocs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.vdocs .choice__box { flex-wrap: wrap; }
.vdocs__sides {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  color: var(--text-3);
}

/* Guidance or a problem that needs reading, not just a hint line. */
.vnotice {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--text-2);
}
.vnotice.is-error { border-style: solid; border-color: var(--text); color: var(--text); font-weight: 500; }

.vnav { margin-top: var(--sp-6); }
.vnav__left { display: flex; gap: var(--sp-2); }

/* ---- ID photos ---------------------------------------------------------- */
.vshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--sp-5);
}
.vshot { display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; }

.vshot__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586;                 /* an ID-1 card: 85.60 × 53.98 mm */
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.vshot.has-image .vshot__frame { border-style: solid; border-color: var(--line-2); }

.vshot__img { width: 100%; height: 100%; object-fit: contain; background: var(--bg-sunk); }

.vshot__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-3);
}
.vshot__empty svg { width: 34px; height: 34px; }

/* ---- live photo --------------------------------------------------------- */
.vcam { display: flex; flex-direction: column; gap: var(--sp-4); }

.vcam__stage {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.vcam__video,
.vcam__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* A mirror, like every selfie camera: moving left moves left. The photo
   itself is saved unmirrored. */
.vcam__video { transform: scaleX(-1); }

.vcam__guide {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 44%;
  aspect-ratio: 3 / 4;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.vcam__prompt {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: rgba(20, 20, 20, 0.82);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
}

.vcam__idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 30ch;
  padding: var(--sp-5);
  text-align: center;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--text-3);
}
.vcam__idle svg { width: 38px; height: 38px; }

.vcam__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---- details + thumbnails ----------------------------------------------- */
.vdl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--line);
  overflow: hidden;
}
.vdl > div { padding: 12px 14px; background: var(--bg-elev); }
.vdl dt {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.vdl dd { margin: 0; font-size: var(--fs-sm); color: var(--text); overflow-wrap: anywhere; }

.vthumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--sp-3);
}
.vthumb { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.vthumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg-sunk);
}
.vthumb a { display: block; border-radius: var(--r-sm); }
.vthumb a:hover img { border-color: var(--line-strong); }
.vthumb figcaption {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.vconsent a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---- status ------------------------------------------------------------- */
#v-status { display: flex; flex-direction: column; gap: var(--sp-5); }

.vstatus,
.vcard,
.vdanger,
.vdeletion {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  padding: clamp(22px, 3.5vw, 36px);
}

.vstatus { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
.vstatus--approved { border-color: var(--line-strong); }

.vbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4em 0.9em;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-2);
}
.vbadge svg { width: 13px; height: 13px; }
.vbadge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.vstatus--pending .vbadge__dot { animation: dev-pulse 2.4s var(--ease-in-out) infinite; }
.vstatus--approved .vbadge { background: var(--text); border-color: var(--text); color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  .vstatus--pending .vbadge__dot { animation: none; }
}

.vstatus__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: var(--lh-heading);
  color: var(--text);
}
.vstatus__body { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--text-2); max-width: 62ch; }
.vstatus__body strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }

.vreason {
  margin: 0;
  width: 100%;
  padding: 14px 16px;
  border-left: 2px solid var(--text);
  background: var(--surface-hover);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  color: var(--text);
  white-space: pre-line;
}

/* The countdown: the one thing on the page that must not be missed. */
.vdeletion {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  border: 1px solid var(--text);
}
.vdeletion__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-2);
}
.vdeletion__clock {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.vdeletion__body { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--text-2); max-width: 62ch; }
.vdeletion__body strong { color: var(--text); }

.vcard { display: flex; flex-direction: column; gap: var(--sp-5); }
.vcard__title {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
}

.vdanger {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4) var(--sp-5);
  background: transparent;
  border-style: dashed;
  border-color: var(--line-strong);
}
.vdanger__text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.vdanger__text p { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--text-2); }

.vconfirm {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.vconfirm p { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--text-2); }
.vconfirm p strong { color: var(--text); }
.vconfirm__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

@media (max-width: 620px) {
  .vnav { flex-direction: column-reverse; align-items: stretch; }
  .vnav .btn--lg { justify-content: center; }
  .vnav__left { justify-content: space-between; }
  .vdanger > .btn,
  .vconfirm__actions .btn { width: 100%; justify-content: center; }
}
