
    /* ==========================================
       VERIFY (verify.html) — ยืนยันตัวตน: ชื่อจริง → บัตรประชาชน → สแกนใบหน้า (หันซ้าย/ขวา พยักหน้า ยิ้ม) → ส่งให้แอดมิน
    ========================================== */
    #vf-screen {
        display: none; position: fixed; inset: 0; z-index: 1000040; background: #000; color: #fff;
        overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
    }
    #vf-screen.open { display: block; animation: vfIn 0.25s ease; }
    @keyframes vfIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
    .vf-wrap { max-width: 460px; margin: 0 auto; min-height: 100%; padding: calc(env(safe-area-inset-top) + 12px) 20px calc(env(safe-area-inset-bottom) + 28px); box-sizing: border-box; display: flex; flex-direction: column; }
    .vf-top { display: flex; align-items: center; gap: 12px; height: 48px; }
    .vf-back { width: 40px; height: 40px; border-radius: 50%; border: 0.5px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.08); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
    .vf-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
    .vf-steps { flex: 1; display: flex; justify-content: flex-end; gap: 6px; }
    .vf-steps i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.18); transition: background 0.25s; }
    .vf-steps i.on { background: #fff; }
    .vf-body { flex: 1; display: flex; flex-direction: column; }
    .vf-hero { margin: 26px 0 8px; font-size: 27px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; }
    .vf-sub { font-size: 14.5px; color: rgba(255,255,255,0.6); line-height: 1.55; }
    .vf-field { margin-top: 26px; }
    .vf-label { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
    .vf-input { width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; color: #fff; font-size: 17px; padding: 15px 16px; outline: none; font-family: inherit; }
    .vf-input:focus { border-color: rgba(255,255,255,0.4); }
    .vf-spacer { flex: 1; min-height: 24px; }
    .vf-btn { width: 100%; height: 54px; border-radius: 27px; border: none; background: #fff; color: #000; font-size: 16.5px; font-weight: 700; cursor: pointer; font-family: inherit; transition: transform 0.15s, opacity 0.15s; }
    .vf-btn:disabled { opacity: 0.3; cursor: default; }
    .vf-btn:active:not(:disabled) { transform: scale(0.97); }
    .vf-btn.ghost { background: rgba(255,255,255,0.1); color: #fff; margin-top: 10px; }
    .vf-feats { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
    .vf-feat { display: flex; gap: 14px; align-items: flex-start; }
    .vf-feat .ic { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0; }
    .vf-feat b { display: block; font-size: 15px; margin-bottom: 2px; }
    .vf-feat span { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.45; }
    /* บัตร */
    .vf-card-drop { margin-top: 22px; aspect-ratio: 1.586; border-radius: 20px; border: 1.5px dashed rgba(255,255,255,0.28); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(255,255,255,0.6); cursor: pointer; overflow: hidden; position: relative; background: rgba(255,255,255,0.03); }
    .vf-card-drop i { font-size: 34px; }
    .vf-card-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .vf-tip { margin-top: 14px; font-size: 12.5px; color: rgba(255,255,255,0.45); line-height: 1.5; }
    /* กล้องใบหน้า */
    .vf-cam { position: relative; width: min(78vw, 320px); aspect-ratio: 1; margin: 28px auto 0; }
    .vf-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transform: scaleX(-1); background: #111; }
    .vf-ring { position: absolute; inset: -10px; }
    .vf-ring circle { fill: none; stroke-width: 4; }
    .vf-ring .bg { stroke: rgba(255,255,255,0.12); }
    .vf-ring .fg { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset 0.4s ease; transform: rotate(-90deg); transform-origin: 50% 50%; }
    .vf-say { margin-top: 26px; text-align: center; font-size: 22px; font-weight: 800; min-height: 30px; }
    .vf-say-sub { text-align: center; font-size: 13.5px; color: rgba(255,255,255,0.55); margin-top: 6px; min-height: 20px; }
    .vf-chips { display: flex; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
    .vf-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 16px; background: rgba(255,255,255,0.08); font-size: 12.5px; color: rgba(255,255,255,0.6); }
    .vf-chip.ok { background: #fff; color: #000; }
    .vf-chip.cur { box-shadow: inset 0 0 0 1.5px #fff; color: #fff; }
    /* ทบทวน/สถานะ */
    .vf-review { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .vf-review img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: #111; }
    .vf-status { margin: auto 0; text-align: center; padding: 30px 0; }
    .vf-status .big { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; font-size: 46px; background: rgba(255,255,255,0.08); border: 0.5px solid rgba(255,255,255,0.16); }
    .vf-status .big.ok { background: #fff; color: #000; }
    .vf-status h2 { font-size: 24px; font-weight: 800; margin: 0 0 8px; }
    .vf-status p { font-size: 14.5px; color: rgba(255,255,255,0.6); line-height: 1.6; margin: 0; }
    .vf-err { color: #ff6b77; font-size: 13.5px; margin-top: 12px; min-height: 18px; text-align: center; }
    /* แผ่นแจ้งเกินโควตาวันนี้ */
    .vf-quota { display: none; position: fixed; inset: 0; z-index: 1000050; background: rgba(0,0,0,0.55); align-items: flex-end; justify-content: center; }
    .vf-quota.open { display: flex; animation: vfFade 0.2s ease; }
    @keyframes vfFade { from { opacity: 0; } to { opacity: 1; } }
    .vf-quota-card { width: 100%; max-width: 440px; background: #151515; border-radius: 26px 26px 0 0; padding: 26px 22px calc(env(safe-area-inset-bottom) + 20px); color: #fff; text-align: center; box-sizing: border-box;
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif; animation: vfUp 0.28s cubic-bezier(.2,.9,.3,1); }
    @media (min-width: 600px) { .vf-quota { align-items: center; } .vf-quota-card { border-radius: 26px; padding-bottom: 22px; } }
    @keyframes vfUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
    .vf-quota-card .ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-size: 32px; }
    .vf-quota-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
    .vf-quota-card p { margin: 0 0 20px; font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.55; }
