:root {
  --vx-primary: #342f88;
  --vx-primary-dark: #242061;
  --vx-primary-soft: #f1efff;
  --vx-text: #252832;
  --vx-muted: #77808d;
  --vx-line: #e6e9ed;
  --vx-green: #20c878;
  --vx-green-dark: #119e5a;
  --vx-bg: #f4f6fa;
  --vx-white: #ffffff;
  --vx-shadow: 0 24px 70px rgba(36, 32, 97, .13);
}


.verification-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
}
.verification-card {
  width: min(100%, 880px);
  background: var(--vx-white);
  border: 1px solid rgba(40, 43, 53, .13);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--vx-shadow);
  position: relative;
  animation: cardIn .55s ease both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }

.verification-header {
  min-height: 185px;
  padding: 28px 24px 24px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #3b3693 0%, #282364 100%);
  position: relative;
  overflow: hidden;
}
.verification-header::before, .capture-header::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.07);
  top: -210px; right: -70px;
}
.verification-header::after, .capture-header::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.035);
  bottom: -180px; left: 8%;
}
.success-icon {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  border-radius: 15px;
  display: grid; place-items: center;
  color: var(--vx-green);
  background: rgba(71, 231, 148, .15);
  border: 1px solid rgba(103, 242, 171, .18);
  font-size: 25px;
  position: relative;
  z-index: 1;
  animation: successPop .65s .15s both;
}
@keyframes successPop { from { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.08); } to { transform: scale(1); opacity: 1; } }
.verification-header h1 { position: relative; z-index: 1; margin: 0; font: 800 18px/1.2 "Manrope", sans-serif; }
.verification-header p { position: relative; z-index: 1; margin: 7px 0 0; color: rgba(255,255,255,.72); font-size: 12px; }

.verification-body { padding: 25px 30px 19px; }
.identity-grid { display: grid; grid-template-columns: 155px 1fr; gap: 28px; align-items: center; }
.profile-column { text-align: center; }
.profile-photo-wrap {
  width: 116px; height: 116px; margin: 0 auto 10px; padding: 5px;
  border: 1px solid #dfe4e7; border-radius: 14px; background: #f5f7f7;
  position: relative;
}
.profile-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; filter: saturate(.92); }
.photo-check { position: absolute; right: -8px; bottom: -6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--vx-green); box-shadow: 0 4px 12px rgba(0,0,0,.12); font-size: 14px; }
.identity-pill { display: inline-flex; gap: 5px; align-items: center; color: #2bbd79; background: #e9fbf2; border: 1px solid #d6f5e6; border-radius: 4px; padding: 4px 7px; font: 700 9px/1 "DM Sans", sans-serif; }
.identity-details { min-width: 0; }
.detail-row { min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.detail-icon { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 7px; display: grid; place-items: center; color: #32ad82; background: #eefaf6; font-size: 13px; }
.detail-label { display: block; margin-bottom: 2px; color: #98a0a8; font: 700 8px/1.2 "DM Sans", sans-serif; letter-spacing: .06em; }
.detail-row strong { display: block; color: #34383e; font-size: 10px; font-weight: 600; line-height: 1.4; }
.detail-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.address-row { padding-top: 9px; border-top: 1px solid #f0f2f3; }

.continue-btn {
  width: 100%; margin-top: 18px; min-height: 40px; border: 0; border-radius: 10px;
  color: #fff; background: linear-gradient(135deg, #4039a0, #302b80);
  font-size: 12px; font-weight: 700; box-shadow: 0 8px 18px rgba(52,47,136,.18);
  display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.continue-btn i { font-size: 18px; transition: transform .2s ease; }
.continue-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(52,47,136,.25); }
.continue-btn:hover i { transform: translateX(3px); }
.continue-btn:active { transform: translateY(0); }

.credentials-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 19px; padding: 8px 2px 1px; margin-bottom: 20px; }
.note-icon { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; display: grid; place-items: center; background: #d9f9e9; color: var(--vx-green); font-size: 11px; }
.credentials-note h2 { margin: 0; font: 800 9px/1.3 "DM Sans", sans-serif; letter-spacing: .06em; }
.credentials-note p { margin: 2px 0 0; color: #a0a7ae; font-size: 7px; line-height: 1.45; }
.verification-footer { border-top: 1px solid #eef0f2; padding: 10px; text-align: center; color: #b0b5ba; font: 700 7px/1 "DM Sans", sans-serif; letter-spacing: .18em; }
.verification-footer span { padding: 0 5px; color: #c5c9cd; }

/* Page 2 */
.capture-card { width: min(100%, 980px); }
.capture-header {
  min-height: 72px; padding: 13px 22px; color: #fff; background: linear-gradient(135deg, #3b3693, #282364);
  display: flex; align-items: center; gap: 11px; position: relative; overflow: hidden;
}
.brand-mark { width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); font-size: 20px; position: relative; z-index: 1; }
.capture-header h1 { position: relative; z-index: 1; margin: 0; font: 800 16px/1.1 "Manrope", sans-serif; }
.capture-header p { position: relative; z-index: 1; margin: 4px 0 0; color: rgba(255,255,255,.65); font-size: 8px; letter-spacing: .08em; }
.header-status { margin-left: auto; color: rgba(255,255,255,.66); font-size: 8px; letter-spacing: .08em; display: flex; align-items: center; gap: 7px; position: relative; z-index: 1; }
.header-status span { width: 6px; height: 6px; border-radius: 50%; background: #41df93; box-shadow: 0 0 0 4px rgba(65,223,147,.11); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.capture-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; padding: 24px 30px 21px; }
.camera-panel { min-width: 0; }
.camera-frame { height: 360px; border-radius: 15px; overflow: hidden; background: #172020; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
#cameraVideo { width: 100%; height: 100%; display: block; object-fit: cover; transform: scaleX(-1); background: linear-gradient(135deg,#202625,#111716); }
.captured-preview { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: 2; }
.camera-overlay { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.camera-overlay::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 25%, rgba(0,0,0,.24) 72%, rgba(0,0,0,.48) 100%); }
.face-guide { position: absolute; width: 53%; aspect-ratio: .77; left: 50%; top: 49%; transform: translate(-50%,-50%); border: 1px dashed rgba(255,255,255,.7); border-radius: 50% 50% 46% 46%; box-shadow: 0 0 0 999px rgba(0,0,0,.08); }
.corner { position: absolute; width: 25px; height: 25px; border-color: #43e49a; border-style: solid; filter: drop-shadow(0 0 5px rgba(67,228,154,.5)); }
.corner.tl { left: -2px; top: -2px; border-width: 3px 0 0 3px; border-radius: 9px 0 0 0; }
.corner.tr { right: -2px; top: -2px; border-width: 3px 3px 0 0; border-radius: 0 9px 0 0; }
.corner.bl { left: -2px; bottom: -2px; border-width: 0 0 3px 3px; border-radius: 0 0 0 9px; }
.corner.br { right: -2px; bottom: -2px; border-width: 0 3px 3px 0; border-radius: 0 0 9px 0; }
.liveness-badge { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 6px 11px; border-radius: 999px; color: #b01e4c; background: rgba(255,245,249,.96); box-shadow: 0 5px 16px rgba(0,0,0,.16); font-size: 10px; font-weight: 800; display: flex; gap: 6px; align-items: center; }
.liveness-badge i { font-size: 9px; }
.liveness-badge.ready { color: #087c52; background: rgba(237,255,247,.96); }
.scan-line { position: absolute; left: 20%; right: 20%; height: 1px; top: 26%; background: linear-gradient(90deg,transparent,#4ee9a0,transparent); opacity: .8; animation: scan 3s ease-in-out infinite; }
@keyframes scan { 0%,100% { top: 26%; opacity: 0; } 20% { opacity: .8; } 50% { top: 72%; opacity: .8; } 80% { opacity: 0; } }
.camera-error { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; padding: 20px; text-align: center; color: #fff; background: rgba(15,17,20,.92); }
.camera-error i { font-size: 28px; color: #ff8ba7; }
.camera-error strong { font-size: 13px; }
.camera-error span { color: rgba(255,255,255,.65); font-size: 10px; max-width: 260px; }
.retry-btn { border: 0; border-radius: 8px; padding: 7px 13px; background: #fff; color: #302b80; font-size: 10px; font-weight: 700; margin-top: 4px; }
.camera-meta { display: flex; justify-content: space-between; align-items: center; margin: 8px 2px 0; color: #9ba3ab; font-size: 8px; }
.camera-meta div { display: flex; gap: 5px; align-items: center; }
.camera-meta i { color: #34bd85; }
.capture-actions { display: flex; justify-content: center; gap: 8px; margin-top: 12px; margin-bottom: 15px; }
.capture-btn, .retake-btn { border: 0; border-radius: 10px; min-height: 38px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; font-weight: 700; transition: .2s ease; }
.capture-btn { color: #fff; background: linear-gradient(135deg,#4039a0,#302b80); box-shadow: 0 8px 18px rgba(52,47,136,.18); }
.capture-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(52,47,136,.25); }
.capture-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.retake-btn { color: #34383e; background: #f2f3f5; border: 1px solid #e2e5e8; }

.instructions-panel { border: 1px solid #e7e9ec; border-radius: 15px; padding: 19px 18px; background: linear-gradient(180deg,#fff,#fbfcfc); }
.instructions-heading { display: flex; align-items: center; gap: 10px; }
.heading-icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; display: grid; place-items: center; color: #1ea776; background: #e9faf4; }
.instructions-heading h2 { margin: 0; font: 800 12px/1.2 "Manrope",sans-serif; }
.instructions-heading p { margin: 4px 0 0; color: #9aa1a9; font-size: 8px; }
.instruction-list { margin-top: 21px; }
.instruction-item { display: flex; gap: 10px; padding: 0 0 19px; position: relative; }
.instruction-item:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 27px; bottom: 1px; width: 1px; background: #dcefe8; }
.step-number { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; background: #14a57d; color: #fff; font-size: 10px; font-weight: 800; position: relative; z-index: 1; box-shadow: 0 4px 10px rgba(20,165,125,.16); }
.instruction-item h3 { margin: 2px 0 3px; font-size: 10px; font-weight: 800; }
.instruction-item p { margin: 0; color: #7f8790; font-size: 9px; line-height: 1.45; }
.privacy-box { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border-radius: 9px; background: #eaf9f5; color: #3aa184; }
.privacy-box i { font-size: 14px; }
.privacy-box p { margin: 0; color: #4e9f89; font-size: 8px; line-height: 1.45; }
.capture-progress { margin-top: 18px; }
.progress-label { display: flex; justify-content: space-between; color: #8a929a; font-size: 8px; }
.progress-label strong { color: #312d80; }
.progress-track { height: 5px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: #eceef1; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#342f88,#20c878); transition: width .5s ease; }
.capture-footer { padding: 10px 20px; border-top: 1px solid #eef0f2; display: flex; justify-content: space-between; gap: 12px; color: #aeb4ba; font: 700 7px/1.2 "DM Sans",sans-serif; letter-spacing: .1em; }
.capture-footer i { color: #20b979; margin-right: 3px; }
.capture-footer b { padding: 0 5px; color: #c6cbd0; }
.toast { background: #fff; color: #29302f; }
.toast i { color: var(--vx-green); }

@media (max-width: 767.98px) {
  .verification-page { padding: 14px; align-items: start; }
  .verification-card { border-radius: 15px; }
  .verification-header { min-height: 165px; padding-top: 22px; }
  .verification-body { padding: 20px 17px 15px; }
  .identity-grid { grid-template-columns: 1fr; gap: 15px; text-align: center; }
  .identity-details { text-align: left; }
  .detail-split { gap: 10px; }
  .capture-body { grid-template-columns: 1fr; gap: 16px; padding: 17px; }
  .capture-header { padding: 12px 15px; }
  .header-status { display: none; }
  .camera-frame { height: min(70vw, 390px); min-height: 280px; }
  .instructions-panel { padding: 16px; }
  .capture-footer { flex-direction: column; text-align: center; align-items: center; }
}
@media (max-width: 430px) {
  .verification-page { padding: 8px; }
  .verification-header { min-height: 153px; }
  .verification-header h1 { font-size: 16px; }
  .verification-header p { font-size: 10px; }
  .profile-photo-wrap { width: 105px; height: 105px; }
  .detail-split { grid-template-columns: 1fr; }
  .detail-split .detail-row + .detail-row { border-top: 1px solid #f0f2f3; }
  .camera-frame { min-height: 255px; }
  .face-guide { width: 57%; }
  .capture-btn { width: 100%; }
  .capture-actions { flex-direction: column; }
  .retake-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
