.verify-wrap { max-width: 720px; }
.verify-form { background: #fff; border: 1px solid #E3EAE5; border-radius: 22px; padding: 24px; }
.verify-form label { display: block; font-weight: 700; margin-bottom: 8px; }
.verify-row { display: flex; gap: 10px; }
.verify-row input { flex: 1; min-width: 0; height: 52px; font-size: 1.2rem; letter-spacing: .14em; text-transform: uppercase; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; border-radius: 14px; }
.verify-row .btn { height: 52px; }
.verify-result { display: flex; gap: 16px; margin-top: 20px; padding: 22px 24px; border-radius: 22px; border: 1px solid; }
.verify-result h2 { margin: 0 0 6px; font-size: 1.3rem; }
.verify-result p { margin: 0 0 10px; }
.vr-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex: none; }
.is-ok { background: #F0FBF4; border-color: #BFE6CD; } .is-ok .vr-ico { background: #16A34A; color: #fff; } .is-ok h2 { color: #14532D; }
.is-bad { background: #FEF3F2; border-color: #F8C9C4; } .is-bad .vr-ico { background: #DC2626; color: #fff; } .is-bad h2 { color: #7F1D1D; }
.vr-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0 0; padding: 14px 16px; background: #fff; border-radius: 14px; border: 1px solid #E3EAE5; }
.vr-details dt { color: #64748B; } .vr-details dd { margin: 0; font-weight: 700; color: #0F172A; }
@media (max-width: 560px) { .verify-row { flex-direction: column; } .verify-result { flex-direction: column; } .vr-details { grid-template-columns: 1fr; gap: 0; } .vr-details dd { margin-bottom: 8px; } }

/* camera scanning */
.scan-box { display: grid; gap: 12px; }
.scan-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.scan-actions .btn { height: 52px; }
.scan-btn { flex: 1 1 220px; }
.scan-btn.on { background: #7F1D1D; border-color: #7F1D1D; }
.scan-file { position: relative; cursor: pointer; flex: 0 1 auto; }
.scan-view { position: relative; border-radius: 18px; overflow: hidden; background: #0b1410; aspect-ratio: 1 / 1; max-height: 420px; margin: 0 auto; width: 100%; max-width: 420px; }
.scan-view[hidden] { display: none; }
#scan-reader { width: 100%; height: 100%; border: 0 !important; }
#scan-reader video { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
#scan-reader img[alt="Info icon"], #scan-reader > div:not(:has(video)) { display: none !important; }
#scan-reader #qr-shaded-region { border-color: rgba(0, 0, 0, .45) !important; }
.scan-frame { position: absolute; inset: 15%; border-radius: 18px; pointer-events: none;
  background: linear-gradient(#F5A01A, #F5A01A) top left / 34px 4px no-repeat, linear-gradient(#F5A01A, #F5A01A) top left / 4px 34px no-repeat,
              linear-gradient(#F5A01A, #F5A01A) top right / 34px 4px no-repeat, linear-gradient(#F5A01A, #F5A01A) top right / 4px 34px no-repeat,
              linear-gradient(#F5A01A, #F5A01A) bottom left / 34px 4px no-repeat, linear-gradient(#F5A01A, #F5A01A) bottom left / 4px 34px no-repeat,
              linear-gradient(#F5A01A, #F5A01A) bottom right / 34px 4px no-repeat, linear-gradient(#F5A01A, #F5A01A) bottom right / 4px 34px no-repeat; }
.scan-frame::after { content: ""; position: absolute; left: 8%; right: 8%; top: 10%; height: 2px; background: rgba(245, 160, 26, .9); box-shadow: 0 0 12px #F5A01A; animation: scanline 2.2s ease-in-out infinite; }
@keyframes scanline { 50% { top: 88%; } }
@media (prefers-reduced-motion: reduce) { .scan-frame::after { animation: none; display: none; } }
.scan-tip { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; text-align: center; color: #fff; font-size: .9rem; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.scan-err { margin: 0; padding: 10px 14px; border-radius: 12px; background: #FEF3F2; color: #7F1D1D; font-weight: 600; font-size: .92rem; }
.scan-err[hidden], .scan-box[hidden] { display: none; }
.verify-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: #64748B; font-size: .9rem; }
.verify-or::before, .verify-or::after { content: ""; flex: 1; height: 1px; background: #E3EAE5; }
@media (max-width: 560px) { .scan-actions .btn { flex: 1 1 100%; } }
.verify-form .scan-file { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; font-weight: 600; }

/* certificate / membership card tabs */
.vt-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; margin: 0 0 18px; background: #F1F5F3; border-radius: 16px; }
.vt-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 12px; border: 0; border-radius: 12px; background: transparent; font: inherit; font-weight: 700; color: #475569; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.vt-tabs button[aria-selected="true"] { background: #fff; color: #14532D; box-shadow: 0 1px 3px rgba(15, 35, 22, .12); }
.vt-tabs button:focus-visible { outline: 3px solid #86EFAC; outline-offset: 2px; }
.vt-pane[hidden] { display: none; }
.verify-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.verify-two input { width: 100%; height: 52px; font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; border-radius: 14px; }
.verify-go { width: 100%; height: 52px; margin-top: 12px; }
.scan-note { margin: 0; color: #64748B; font-size: .88rem; }
.is-warn { background: #FFFBEB; border-color: #FDE68A; } .is-warn .vr-ico { background: #D97706; color: #fff; } .is-warn h2 { color: #78350F; }
.vr-member { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; }
.vr-member img, .vr-ini { width: 64px; height: 78px; border-radius: 12px; object-fit: cover; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #14532D, #16A34A); color: #fff; font-size: 1.4rem; font-weight: 800; }
.vr-member strong { display: block; font-size: 1.15rem; color: #0F172A; } .vr-member span { color: #64748B; }
.vr-note { margin: 12px 0 0; color: #64748B; font-size: .88rem; }
@media (max-width: 560px) { .verify-two { grid-template-columns: 1fr; } .vt-tabs button { font-size: .92rem; } }
.vr-member .vr-ini { color: #fff; }
