/* TravelQ ID v1.2 – giao diện mới: nền cực quang ngọc lam, kính mờ, thẻ ID kim loại ánh hologram.
   Chỉ áp dụng cho trang người dùng (body.tq). Trang quản trị và tài liệu giữ nguyên. */
body.tq{--aq:#3fe0ea;--aq2:#17b6c4;--deep:#031c24;--g-txt:#0b1f33;--glass:rgba(255,255,255,.9);
  background:var(--deep);color:var(--g-txt);min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body.tq::before,body.tq::after{display:none}
body.tq main{flex:1 0 auto;width:100%;padding:18px max(16px,env(safe-area-inset-left)) 28px max(16px,env(safe-area-inset-right))}

/* nền cực quang (cố định, chạy được trên iOS) */
.aurora{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;
  background:radial-gradient(140% 70% at 50% -10%,#0b6f7c 0,transparent 62%),linear-gradient(180deg,#05303a 0%,#03222b 45%,#021820 100%)}
.aurora i{position:absolute;border-radius:50%;opacity:.75;will-change:transform}
.aurora i:nth-child(1){width:110vmax;height:110vmax;left:-45vmax;top:-55vmax;background:radial-gradient(closest-side,#18c6d3aa,transparent 70%);animation:au1 22s ease-in-out infinite alternate}
.aurora i:nth-child(2){width:90vmax;height:90vmax;right:-50vmax;top:10vh;background:radial-gradient(closest-side,#0e8fa0bb,transparent 70%);animation:au2 26s ease-in-out infinite alternate}
.aurora i:nth-child(3){width:70vmax;height:70vmax;left:-20vmax;bottom:-40vmax;background:radial-gradient(closest-side,#f5b82e40,transparent 70%);animation:au1 30s ease-in-out -8s infinite alternate}
.aurora i:nth-child(4){width:60vmax;height:60vmax;right:-15vmax;bottom:-30vmax;background:radial-gradient(closest-side,#5fd6df55,transparent 70%);animation:au2 24s ease-in-out -5s infinite alternate}
.aurora b{position:absolute;inset:0;background-image:radial-gradient(#ffffff1c 1px,transparent 1.2px);background-size:22px 22px;-webkit-mask-image:linear-gradient(180deg,#000 0,transparent 70%);mask-image:linear-gradient(180deg,#000 0,transparent 70%)}
@keyframes au1{to{transform:translate(8vmax,6vmax) scale(1.08)}}
@keyframes au2{to{transform:translate(-7vmax,-5vmax) scale(1.1)}}

/* thanh trên */
body.tq .top{background:rgba(3,28,36,.55);backdrop-filter:blur(18px) saturate(160%);-webkit-backdrop-filter:blur(18px) saturate(160%);
  border-bottom:1px solid rgba(255,255,255,.09);box-shadow:none;padding-top:max(10px,env(safe-area-inset-top))}
body.tq .top .ttl{border-left-color:rgba(255,255,255,.22)}
body.tq .top .ttl b{color:var(--aq);font-weight:800}
body.tq .top button{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.22);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
body.tq .top button svg{width:15px;height:15px}
body.tq .demo{background:rgba(245,184,46,.12);color:#ffd889;border-bottom:1px solid rgba(245,184,46,.25);font-size:12px;font-weight:600;padding:6px 14px;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}

/* chân trang – chừa chỗ cho thanh công cụ Safari/Zalo */
body.tq footer.ft{color:#8fbcc3;padding:14px 16px calc(26px + env(safe-area-inset-bottom))}
body.tq footer.ft a{color:#bff4f7}
@media(max-width:899px){body.tq footer.ft{padding-bottom:calc(84px + env(safe-area-inset-bottom))}}
body.tq .toast{bottom:calc(84px + env(safe-area-inset-bottom));background:rgba(3,28,36,.92);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}

/* kính */
body.tq .glass{background:linear-gradient(165deg,rgba(255,255,255,.95),rgba(236,250,251,.88));border:1px solid rgba(255,255,255,.75);border-radius:26px;
  box-shadow:0 30px 70px -30px rgba(0,0,0,.65),0 0 0 1px rgba(63,224,234,.08),inset 0 1px 0 #fff;backdrop-filter:blur(24px) saturate(170%);-webkit-backdrop-filter:blur(24px) saturate(170%)}
.gd{background:linear-gradient(160deg,rgba(255,255,255,.14),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.18);border-radius:20px;color:#eafcfd;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 18px 40px -24px rgba(0,0,0,.7);backdrop-filter:blur(16px) saturate(150%);-webkit-backdrop-filter:blur(16px) saturate(150%)}

/* tiêu đề 2 màu */
body.tq .h2c em{background:linear-gradient(90deg,#0c7a87,#13aebb 60%,#1cc6d2);-webkit-background-clip:text;background-clip:text;color:transparent}
body.tq .on-dark .h2c{color:#fff;text-shadow:0 2px 24px rgba(0,0,0,.25)}
body.tq .on-dark .h2c em{background:linear-gradient(90deg,#4ff0f8,#2fd0dc 50%,#9df6ff);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;filter:drop-shadow(0 0 18px rgba(63,224,234,.35))}
body.tq .on-dark .lead{color:#c6e9ec}
body.tq .on-dark .lead b{color:#fff}
body.tq .on-dark .eyebrow,body.tq .eyebrow.dk{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#bff6f9;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.eyebrow.ok i{background:#2ee59d;box-shadow:0 0 0 3px rgba(46,229,157,.25),0 0 12px #2ee59d}
.eyebrow.lk i{background:#ff7a6b;box-shadow:0 0 0 3px rgba(255,122,107,.25)}

/* nút */
body.tq .btn{border-radius:16px;gap:9px}
body.tq .btn svg{width:19px;height:19px;flex:none}
body.tq .btn.p{background:linear-gradient(180deg,#22c3d0 0%,#0e93a1 50%,#0a7280 100%);box-shadow:0 14px 30px -12px rgba(16,180,195,.9),inset 0 1px 0 rgba(255,255,255,.45),inset 0 -2px 0 rgba(0,0,0,.12)}
body.tq .btn.g{color:var(--navy);background:#fff;border:1px solid #d5e9ec;box-shadow:0 8px 20px -12px rgba(9,60,70,.5)}
body.tq .btn.o{background:rgba(255,255,255,.7);border:1.5px solid rgba(12,122,135,.28)}
body.tq .on-dark .btn.o{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.28);color:#fff}
body.tq .btn.gold{color:#3a2700;background:linear-gradient(180deg,#ffe08f,#f5b82e);box-shadow:0 14px 28px -14px #c88d00,inset 0 1px 0 #fff8}

/* ô nhập */
body.tq .in{border-radius:14px;border:1.5px solid #cfe3e7;background:#fff;box-shadow:inset 0 1px 2px rgba(11,31,51,.04)}
body.tq .in:focus{border-color:#13aebb;box-shadow:0 0 0 4px rgba(19,174,187,.18)}
body.tq .tabs{background:rgba(12,122,135,.09);border-radius:16px;padding:5px}
body.tq .tabs button{border-radius:12px}
body.tq .tabs button[aria-selected=true]{background:linear-gradient(180deg,#22c3d0,#0c8794);color:#fff;box-shadow:0 8px 18px -8px rgba(12,135,148,.9)}
body.tq .chip-t span{border-color:#d3e6ea}

/* ===== đăng nhập ===== */
body.tq .hero{gap:18px}
.hero .intro{padding-top:4px}
.hero .intro .h2c{font-size:clamp(34px,10vw,58px);letter-spacing:-.005em}
body.tq .art{min-height:300px;margin:6px 0 2px}
body.tq .art .orb{width:min(78%,360px);background:radial-gradient(circle at 34% 28%,#e9feff 0,#9ff0f5 18%,#26b9c6 52%,#0a5f6c 82%,#063c44 100%);
  box-shadow:inset -26px -36px 70px rgba(3,40,48,.75),inset 18px 18px 50px rgba(255,255,255,.55),0 0 0 10px rgba(63,224,234,.08),0 0 80px 10px rgba(63,224,234,.25)}
.art .ring{position:absolute;width:min(96%,440px);aspect-ratio:1;border-radius:50%;border:1px dashed rgba(159,240,245,.35);animation:spin 60s linear infinite}
.art .ring::before{content:"";position:absolute;width:10px;height:10px;border-radius:50%;background:#ffd56b;top:12%;left:12%;box-shadow:0 0 12px #ffd56b}
@keyframes spin{to{transform:rotate(360deg)}}
.art .q3d{position:relative;width:min(70%,300px);filter:drop-shadow(0 30px 30px rgba(0,0,0,.55));animation:bob 5.5s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(-10px)}}
body.tq .art .chip{left:0;top:auto;bottom:0;padding:10px 14px;border-radius:16px}
body.tq .art .chip b{color:#fff;font-size:16px}
body.tq .art .chip span{color:#9ff0f5;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;font-weight:700}
.art .chip2{position:absolute;right:0;top:12%;display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:14px;font-size:12.5px;font-weight:700}
.art .chip2 svg{width:18px;height:18px;color:#2ee59d}
@media(prefers-reduced-motion:reduce){.aurora i,.art .q3d,.art .ring,.card-wrap,.idcard::after{animation:none!important}}
body.tq .steps-mini{gap:8px}
body.tq .steps-mini div{color:#a9d6db;border-radius:18px;padding:12px 10px}
body.tq .steps-mini b{color:#fff}
body.tq .steps-mini span{background:linear-gradient(180deg,#3fe0ea,#11a3b1);color:#03303a;box-shadow:0 0 14px rgba(63,224,234,.5)}
body.tq .note{background:rgba(12,122,135,.08);border:1px solid rgba(12,122,135,.16);border-left:4px solid #13aebb;border-radius:14px;color:#09636e;align-items:center}
body.tq .note svg{width:20px;height:20px;flex:none}
body.tq .on-dark .note{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16);border-left-color:var(--aq);color:#d9f9fb}
.auth-card{position:relative}
.auth-card .brand{display:flex;align-items:center;gap:10px;margin-bottom:14px}
@media(min-width:900px){body.tq .hero{grid-template-columns:1.05fr .95fr;gap:40px;align-items:start}.hero .auth-card{margin-top:30px}}

/* ===== bộ lập ID ===== */
body.tq .prog{background:linear-gradient(160deg,rgba(255,255,255,.14),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.18);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.2)}
body.tq .prog li{color:#9cc9cf}
body.tq .prog li .d{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.28);color:#cdeff2}
body.tq .prog li:not(:last-child)::after{background:rgba(255,255,255,.2)}
body.tq .prog li.done .d{background:linear-gradient(180deg,#3fe0ea,#11a3b1);border-color:transparent;color:#03303a}
body.tq .prog li.done:not(:last-child)::after{background:var(--aq)}
body.tq .prog li.cur{color:#fff}
body.tq .prog li.cur .d{background:#fff;border-color:#fff;color:#0a6f7c;box-shadow:0 0 0 5px rgba(63,224,234,.25),0 0 18px rgba(63,224,234,.6)}
body.tq .prog .bar{background:rgba(255,255,255,.12)}
body.tq .prog .bar i{background:linear-gradient(90deg,#3fe0ea,#ffd56b)}
.wz .stephead{position:relative;padding-right:96px;min-height:84px}
.wz .stephead .qmini{position:absolute;right:-8px;top:-34px;width:104px;filter:drop-shadow(0 14px 16px rgba(3,40,48,.35))}
@media(min-width:900px){.wz .stephead .qmini{display:none}.wz .stephead{padding-right:0;min-height:0}}
body.tq .review section{background:#fff;border:1px solid #e1eff1;box-shadow:0 8px 20px -16px rgba(9,60,70,.5)}
body.tq .consent{background:rgba(19,174,187,.07);border-color:rgba(19,174,187,.25)}

/* ===== thẻ ID kim loại ===== */
.card-stage{position:relative;width:100%;display:grid;justify-items:center;perspective:1100px}
.card-stage::before{content:"";position:absolute;left:8%;right:8%;bottom:-18px;height:60px;border-radius:50%;background:radial-gradient(closest-side,rgba(63,224,234,.55),transparent);filter:blur(14px);z-index:0}
.card-wrap{position:relative;z-index:1;container-type:inline-size;width:100%;max-width:440px;transform-style:preserve-3d;animation:cardf 7s ease-in-out infinite}
@keyframes cardf{0%,100%{transform:rotateX(4deg) rotateY(-5deg)}50%{transform:rotateX(1deg) rotateY(4deg) translateY(-6px)}}
body.tq .idcard{max-width:none;aspect-ratio:1.586;border-radius:22px;padding:18px 20px 18px;gap:4px 14px;isolation:isolate;
  grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto 1fr;
  background:
    url(/assets/rosette.svg) 112% -30%/78% auto no-repeat,
    url(/assets/guilloche.svg) 0 0/100% 100% no-repeat,
    radial-gradient(120% 90% at 100% 0%,rgba(79,240,248,.5) 0,transparent 52%),
    radial-gradient(80% 70% at 0% 110%,rgba(245,184,46,.22) 0,transparent 60%),
    linear-gradient(135deg,#11a0ad 0%,#0b6c7a 38%,#07404c 72%,#04252e 100%);
  box-shadow:0 40px 70px -28px rgba(0,0,0,.85),0 0 0 1px rgba(255,255,255,.16) inset,0 1px 0 rgba(255,255,255,.45) inset,0 -1px 0 rgba(0,0,0,.3) inset}
body.tq .idcard::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;mix-blend-mode:screen;opacity:.9;
  background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.0) 38%,rgba(130,248,255,.28) 45%,rgba(255,226,150,.26) 50%,rgba(255,150,230,.16) 55%,transparent 62%);
  background-size:260% 100%;animation:sheen 7s ease-in-out infinite}
@keyframes sheen{0%{background-position:120% 0}55%,100%{background-position:-60% 0}}
body.tq .idcard .lg{height:24px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.3))}
body.tq .idcard .dm{position:static;justify-self:end;align-self:center;font-size:10px;padding:3px 9px;background:linear-gradient(180deg,#ffe08f,#f5b82e);box-shadow:0 2px 8px rgba(0,0,0,.25)}
body.tq .idcard .lb{margin-top:12px;font-size:10.5px;letter-spacing:.2em;color:#9ff0f5}
body.tq .idcard .no{font-size:clamp(17px,8.4cqi,32px);letter-spacing:.055em;background:linear-gradient(180deg,#fff 0%,#e2fbfd 45%,#9ee8ee 100%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 1px rgba(0,0,0,.35))}
body.tq .idcard .who{grid-row:4;grid-column:1;align-self:end;display:grid;gap:2px}
body.tq .idcard .nm{margin-top:4px;font-size:15.5px;letter-spacing:.03em;text-shadow:0 1px 2px rgba(0,0,0,.35)}
body.tq .idcard .meta{font-size:11.5px;color:#cdeff2;opacity:1}
.idcard .emv{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.idcard .emv .ch{width:40px;height:30px;border-radius:7px;position:relative;overflow:hidden;
  background:linear-gradient(135deg,#fff1b8 0%,#e7b843 35%,#c48d16 60%,#f6d77a 100%);box-shadow:inset 0 0 0 1px rgba(120,80,0,.45),0 2px 4px rgba(0,0,0,.3)}
.idcard .emv .ch::before{content:"";position:absolute;inset:7px 11px;border:1px solid rgba(120,80,0,.5);border-radius:3px}
.idcard .emv .ch::after{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:rgba(120,80,0,.5);box-shadow:0 -7px 0 rgba(120,80,0,.35),0 7px 0 rgba(120,80,0,.35)}
.idcard .emv svg{width:20px;height:20px;color:rgba(255,255,255,.8)}
body.tq .idcard .qr{grid-row:3/5;grid-column:2;align-self:end;width:clamp(86px,25cqi,118px);padding:7px;border-radius:14px;background:#fff;box-shadow:0 12px 24px -10px rgba(0,0,0,.6),0 0 0 3px rgba(255,255,255,.18)}
body.tq .idcard .no{grid-row:3;grid-column:1/-1}
@media(max-width:520px){body.tq .idcard{aspect-ratio:auto;min-height:214px;padding:16px 16px 16px}}
.idcard.locked{filter:grayscale(.7)}

/* ===== màn hoàn tất ===== */
.ok-wrap{display:grid;gap:22px}
.ok-top{text-align:center;display:grid;justify-items:center}
.ok-top .tick{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;color:#03303a;margin-bottom:14px;
  background:radial-gradient(circle at 35% 30%,#d9fff0,#2ee59d 55%,#14a565);box-shadow:0 0 0 8px rgba(46,229,157,.14),0 0 0 18px rgba(46,229,157,.06),0 0 40px rgba(46,229,157,.55)}
.ok-top .tick svg{width:38px;height:38px;stroke-width:3}
.ok-top .h2c{font-size:clamp(28px,8vw,52px)}
.ok-stage{position:relative;padding:26px 0 8px}
.ok-stage .q3d{position:absolute;z-index:2;width:clamp(96px,30vw,170px);right:-6px;top:-62px;filter:drop-shadow(0 18px 18px rgba(0,0,0,.5));animation:bob 5.5s ease-in-out infinite}
body.tq .bigid{background:#fff;border:1.5px solid rgba(19,174,187,.3);box-shadow:0 10px 24px -16px rgba(9,60,70,.6);border-radius:18px;font-size:clamp(20px,6vw,30px);padding:10px 12px 10px 18px;margin:4px 0 14px}
.ok-panel{display:grid;gap:4px;justify-items:center;text-align:center}
.ok-panel .btns{justify-content:center;width:100%}
.ok-panel .btns .btn{flex:1 1 200px}
.ok-panel .lab{font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#4d6474}
@media(min-width:900px){.ok-wrap{grid-template-columns:1.05fr .95fr;align-items:center;gap:40px}.ok-top{grid-column:1/-1}}

/* ===== hồ sơ ===== */
body.tq .pf{gap:22px}
.pf-hero{display:grid;gap:18px}
.pf-head{position:relative;min-height:128px;padding-right:128px}
.pf-head .h2c{font-size:clamp(30px,9vw,46px);margin-bottom:4px}
.pf-head .hello{color:#c6e9ec;font-size:14.5px;margin:0}
.pf-head .hello b{color:#fff}
.pf-head .q3d{position:absolute;z-index:0;filter:drop-shadow(0 18px 20px rgba(0,0,0,.5));animation:bob 6s ease-in-out infinite}
.pf-hero .card-stage{z-index:1}
.acts{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:10px;margin-top:6px}
.act{display:grid;justify-items:center;gap:8px;padding:14px 8px 12px;border-radius:20px;cursor:pointer;font:inherit;font-weight:700;font-size:13px;text-decoration:none;color:#eafcfd;text-align:center}
.act .i{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(180deg,#3fe0ea,#0f9fae);color:#03303a;box-shadow:0 8px 18px -8px rgba(63,224,234,.9),inset 0 1px 0 rgba(255,255,255,.6)}
.act.gold .i{background:linear-gradient(180deg,#ffe08f,#f5b82e);box-shadow:0 8px 18px -8px rgba(245,184,46,.9),inset 0 1px 0 #fff9}
.act .i svg{width:22px;height:22px}
.act:active{transform:scale(.97)}
.pf-hero .note{margin:0}
@media(min-width:960px){body.tq .pf{grid-template-columns:minmax(0,1fr)}}

body.tq .item{background:#fff;border:1px solid #e1eff1;border-radius:18px;box-shadow:0 10px 24px -20px rgba(9,60,70,.6)}
body.tq .empty{background:rgba(12,122,135,.05);border:1.5px dashed rgba(12,122,135,.25);border-radius:18px}

/* trang đồng ý */
body.tq .az .app .ic{background:linear-gradient(180deg,#22c3d0,#0c8794);box-shadow:0 10px 20px -10px rgba(12,135,148,.9)}
body.tq .az .scopes label{background:#fff;border-color:#e1eff1;box-shadow:0 6px 16px -14px rgba(9,60,70,.6)}
body.tq .az .who{background:rgba(12,122,135,.07)}


/* tinh chỉnh sau khi chụp ảnh */
body.tq .on-dark .h2c em{display:block}
body.tq .methods .btn{font-size:14.5px;padding-left:12px;padding-right:12px}
@media(max-width:899px){body.tq .hero{grid-template-columns:minmax(0,1fr)}}
body.tq .art{min-height:0;padding:10px 0 4px}
.art .q3d{width:min(60%,290px)!important}
.pf-head{min-height:150px;padding-right:118px}
.pf-head .q3d{width:132px;right:-6px;bottom:-34px}
.q3d,.qmini{height:auto!important;max-width:none}
body.tq .h2c{text-wrap:balance}
body.tq .idcard .no{font-size:clamp(16px,7.3cqi,30px);letter-spacing:.04em;white-space:nowrap}
.ok-stage{padding-top:84px}
.ok-stage .q3d{z-index:0;top:0;right:4px;width:120px}
.ok-stage .card-stage{z-index:1}
body.tq .h2c em{white-space:normal}
body.tq .ok-top .h2c{font-size:clamp(25px,6.7vw,52px)}
.ok-wrap{gap:8px}
.ok-stage{padding-top:72px}
.ok-panel{margin-top:14px}
/* QR gọn (d3) */
body.tq .idcard .qr{grid-row:4;grid-column:2;align-self:end;justify-self:end;width:clamp(62px,19cqi,82px);padding:3px;border-radius:10px;box-shadow:0 8px 16px -8px rgba(0,0,0,.55),0 0 0 2px rgba(255,255,255,.16)}
body.tq .idcard .qr svg{border-radius:7px}
body.tq .idcard .who{min-width:0}
body.tq .idcard .nm{font-size:clamp(15px,5cqi,19px);overflow-wrap:anywhere}
body.tq #scan-vneid{white-space:nowrap;font-size:14.5px;gap:8px;padding-left:12px;padding-right:12px}
body.tq #scan-vneid .badge{font-size:10px;padding:3px 7px;flex:none}
/* ===== trang lời mời cập nhật (d4) ===== */
body.tq .start .en{color:#9fdfe5;font-size:13.5px;margin:-2px 0 0;font-style:italic}
body.tq .start-card .h3c{margin:0 0 12px}
body.tq .bens{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:10px}
body.tq .bens li{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:start;padding:12px;border-radius:16px;background:rgba(255,255,255,.62);border:1px solid rgba(19,174,187,.18);font-size:13.5px;color:#3d5a66;line-height:1.45}
body.tq .bens li b{display:block;color:#0b2b36;font-size:15px;margin-bottom:2px}
body.tq .bens .bi{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#1fc7d4,#0b7a88);box-shadow:0 6px 14px -6px rgba(11,122,136,.7)}
body.tq .bens .bi svg{width:20px;height:20px}
body.tq .resume{margin:0 0 14px;font-size:13.5px;font-weight:700;color:#0b6c7a;display:grid;gap:6px}
body.tq .resume .bar{height:6px;border-radius:6px;background:rgba(11,108,122,.15);overflow:hidden}
body.tq .resume .bar i{display:block;height:100%;background:linear-gradient(90deg,#13aebb,#5fd6df)}
body.tq .start-card .btns{display:grid;gap:10px}
body.tq .start-card .btn svg{width:18px;height:18px}
body.tq .art{overflow-x:clip}
/* d5: chọn loại khách + biểu mẫu 7 trường */
small.en,span.en{display:block;font-size:12px;font-weight:500;color:#5d7a84;letter-spacing:.01em}
span.en{display:inline}
.l>span>small.en{display:inline;margin-left:6px}
.l>span>small.en::before{content:"· "}
body.tq .in.locked{background:#eef6f7;color:#2c4752;font-weight:700;cursor:not-allowed;font-size:16px;height:50px}
.review .kd{font-size:14px;color:#0a6f7c}
.review header{gap:8px}
.review header .btn{flex:none;white-space:nowrap}
.wz5 .muted svg{width:14px;height:14px;vertical-align:-2px}
.consent small.en{margin-top:6px}

/* d6 – hồ sơ gọn: chỉ thẻ ID, 2 nút, ghi chú; căn giữa, không khoảng trống lớn */
body.tq .pf{width:100%;max-width:480px;margin:auto;grid-template-columns:minmax(0,1fr);align-content:center}
body.tq main:has(> .pf){display:flex;flex-direction:column;padding-bottom:max(20px,env(safe-area-inset-bottom))}
body.tq:has(.pf) footer.ft{padding-bottom:calc(18px + env(safe-area-inset-bottom))}
body.tq .pf .pf-hero{gap:16px}
body.tq .pf .acts{margin-top:2px}
/* d6 – nút chuyển Khách Việt Nam / Khách quốc tế */
.kseg{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:5px;margin:4px 0 14px;border-radius:18px;background:rgba(12,122,135,.08);border:1px solid rgba(12,122,135,.16)}
.kseg button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:58px;padding:8px 8px;border:0;border-radius:14px;background:transparent;font:inherit;color:#3f5966;cursor:pointer;text-align:left;transition:background .2s,color .2s}
.kseg button svg{width:22px;height:22px;flex:none}
.kseg button b{display:block;font-size:15px;line-height:1.2;font-weight:800}
.kseg button small.en{display:block;font-size:11.5px;color:inherit;opacity:.8;font-weight:600}
.kseg button.on{background:linear-gradient(180deg,#22c3d0,#0c8794);color:#fff;box-shadow:0 10px 20px -10px rgba(12,135,148,.95),inset 0 1px 0 rgba(255,255,255,.4)}
.kseg button:focus-visible{outline:3px solid rgba(23,182,196,.5);outline-offset:2px}
.actions.one .btn{flex:1 1 100%}
.kseg button b,.kseg button small.en{white-space:nowrap}
@media(max-width:439px){.kseg button{justify-content:center;text-align:center;gap:0;padding:8px 4px}.kseg button svg{display:none}.kseg button b{font-size:15.5px}}
/* d7: nút "Thoát demo" nhỏ; thẻ lời nhắc bổ sung thông tin */
body.tq .top button#logout{padding:5px 11px;font-size:12px;opacity:.85}
/* ===== trang vào d8: hero gốc, không thẻ trắng ===== */
body.tq .start #start-msg{font-size:clamp(17px,4.6vw,20px);line-height:1.45;color:#e6fbfc;font-weight:600;margin:12px 0 6px}
body.tq .start #start-msg b{color:#4ff0f8;font-weight:800}
body.tq .start-cta{display:grid;gap:12px;margin-top:6px}
body.tq .start-cta .btns{display:grid;gap:10px}
body.tq .start-cta .btn svg{width:18px;height:18px}
body.tq .start-cta .btn.p{box-shadow:0 16px 34px -14px rgba(63,224,234,.75),inset 0 1px 0 rgba(255,255,255,.35)}
body.tq .start-cta .err-box:empty{display:none}
@media(min-width:900px){body.tq .hero.start{grid-template-columns:minmax(0,1fr)}
  body.tq .hero.start .intro{display:grid;grid-template-columns:1.05fr .95fr;column-gap:48px;align-content:start}
  body.tq .hero.start .intro>*{grid-column:1}
  body.tq .hero.start .intro>.art{grid-column:2;grid-row:1/span 6;align-self:center;margin:0}
  body.tq .hero.start .start-cta{max-width:440px;margin-top:14px}}
body.tq .hero.start .art{pointer-events:none}
body.tq .start-cta{position:relative;z-index:2}
@media(min-width:900px){body.tq .hero.start .intro>.eyebrow{justify-self:start}}

/* d15: ảnh giấy tờ + nhận diện khuôn mặt */
.kyc{display:flex;flex-direction:column;gap:14px}
.consent.bio .ct{display:flex;align-items:center;gap:6px;color:#0a6f7c;margin-bottom:4px}
.consent.bio .ct svg{width:16px;height:16px}
.dslots{display:grid;gap:8px}
.dslot{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:16px;background:#fff;border:1px solid #e1eff1}
.dslot.cur{border-color:#17b6c4;box-shadow:0 0 0 3px rgba(23,182,196,.15)}
.dslot .th{width:64px;height:42px;border-radius:8px;flex:none;display:grid;place-items:center;overflow:hidden;background:#eef7f8;color:#6a9aa3}
.dslot.done .th{background:#e3f7ec;color:#14935a}
.dslot .th img{width:100%;height:100%;object-fit:cover;filter:blur(1.5px)}
.dslot .th svg{width:20px;height:20px}
.dslot .tx{flex:1;min-width:0;display:flex;flex-direction:column;text-align:left;align-items:flex-start}
.dslot .tx small{color:#5a7d86;display:flex;align-items:center;gap:4px}
.dslot.done .tx small{color:#14935a;font-weight:600}
.dslot .tx small svg{width:13px;height:13px}
.btn.s{padding:7px 12px;font-size:13px;min-height:0}
.campanel{display:flex;flex-direction:column;gap:10px}
.cam-hint{display:flex;gap:6px;align-items:flex-start;font-size:13px;color:#2e5a63;margin:0}
.cam-hint svg{width:16px;height:16px;flex:none;margin-top:1px}
.cam{position:relative;border-radius:20px;overflow:hidden;background:radial-gradient(120% 90% at 50% 20%,#0d4b57,#021820);aspect-ratio:4/3;isolation:isolate}
.cam.face{aspect-ratio:3/4;max-height:62vh;margin:0 auto;width:100%}
.cam video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .3s}
.cam.live video{opacity:1}
.cam.face video{transform:scaleX(-1)}
.cam .pv{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#021820}
.cam .guide{position:absolute;left:8%;right:8%;top:50%;aspect-ratio:85.6/54;transform:translateY(-50%);border-radius:14px;box-shadow:0 0 0 999px rgba(2,24,32,.45);border:2px dashed rgba(255,255,255,.55)}
.cam .guide.pp{aspect-ratio:125/88}
.cam .guide i{position:absolute;width:26px;height:26px;border:4px solid #3fe0ea}
.cam .guide i:nth-child(1){left:-4px;top:-4px;border-right:0;border-bottom:0;border-radius:14px 0 0 0}
.cam .guide i:nth-child(2){right:-4px;top:-4px;border-left:0;border-bottom:0;border-radius:0 14px 0 0}
.cam .guide i:nth-child(3){left:-4px;bottom:-4px;border-right:0;border-top:0;border-radius:0 0 0 14px}
.cam .guide i:nth-child(4){right:-4px;bottom:-4px;border-left:0;border-top:0;border-radius:0 0 14px 0}
.cam .guide span{position:absolute;left:50%;top:-30px;transform:translateX(-50%);white-space:nowrap;font-size:12px;font-weight:700;color:#eafcfd;background:rgba(2,24,32,.6);padding:3px 10px;border-radius:99px}
.cam-msg{position:absolute;left:12px;right:12px;bottom:12px;color:#eafcfd;font-size:13px;font-weight:600;text-align:center;display:flex;gap:6px;justify-content:center;align-items:center;text-shadow:0 1px 2px #000}
.cam-msg:empty{display:none}
.cam-msg svg{width:16px;height:16px}
.cam.off .guide{box-shadow:none;opacity:.55}
.cam.off .cam-msg{top:50%;bottom:auto;transform:translateY(80%);background:rgba(2,24,32,.7);padding:8px 12px;border-radius:12px}
.cam.face .oval{position:absolute;left:17%;right:17%;top:12%;aspect-ratio:3/4;border-radius:50%;box-shadow:0 0 0 999px rgba(2,24,32,.55);outline:4px solid rgba(255,255,255,.4);outline-offset:-4px}
.cam.face::after{content:"";position:absolute;left:17%;right:17%;top:12%;aspect-ratio:3/4;border-radius:50%;pointer-events:none;
  background:conic-gradient(from 0deg,#3fe0ea calc(var(--p,0)*360deg),transparent 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 6px),#000 calc(100% - 5px));mask:radial-gradient(farthest-side,transparent calc(100% - 6px),#000 calc(100% - 5px))}
.cam.face .prompt{position:absolute;left:10px;right:10px;bottom:14px;text-align:center;color:#fff;font-weight:800;font-size:17px;text-shadow:0 1px 3px #000}
.cam.face.run .prompt{font-size:19px;color:#bff4f7}
.cam.busy::before{content:"";position:absolute;inset:0;background:rgba(2,24,32,.35);z-index:1}
.cam-acts{display:flex;gap:8px;flex-wrap:wrap}
.cam-acts .btn{flex:1 1 140px}
.qline{display:flex;gap:8px;align-items:flex-start;font-size:13.5px;font-weight:600;padding:10px 12px;border-radius:12px}
.qline:empty{display:none}
.qline svg{width:17px;height:17px;flex:none;margin-top:1px}
.qline.good{background:#e3f7ec;color:#0f7a49}
.qline.bad{background:#fff1e6;color:#a4480d}
.att{font-size:13px;color:#5a7d86;text-align:center;margin:0}
.fres{text-align:center;padding:22px 16px;border-radius:20px;display:flex;flex-direction:column;align-items:center;gap:6px}
.fres h2{margin:6px 0 0;font-size:21px}
.fres p{margin:0;color:#2e5a63}
.fres .badge{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;color:#fff}
.fres .badge svg{width:30px;height:30px}
.fres.ok{background:linear-gradient(160deg,#e6faf0,#f3fdfd);border:1px solid #bfeccf}.fres.ok .badge{background:linear-gradient(135deg,#1fbf75,#14935a);box-shadow:0 10px 24px -10px #14935a}
.fres.bad{background:linear-gradient(160deg,#fff3ea,#fff9f4);border:1px solid #ffd7bd}.fres.bad .badge{background:linear-gradient(135deg,#ff9a52,#e0661c)}
.fres.warn{background:linear-gradient(160deg,#fff8e3,#fffcf2);border:1px solid #f5dc9a}.fres.warn .badge{background:linear-gradient(135deg,#f5b82e,#d18f07)}
.fres .att{font-weight:700;color:#a4480d;margin-top:4px}
.scores{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sc{background:#fff;border:1px solid #e1eff1;border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.sc span{font-size:12px;color:#5a7d86}
.sc b{font-size:22px}
.sc.ok b{color:#14935a}.sc.bad b{color:#c4520f}
.sc small{font-size:11.5px;color:#6a8a92}
.sc .bar{position:relative;display:block;height:6px;border-radius:9px;background:#e6f0f2;margin-top:4px}
.sc .bar i{display:block;height:100%;border-radius:9px;background:#14935a}
.sc.bad .bar i{background:#e0661c}
.sc .bar u{position:absolute;top:-3px;width:2px;height:12px;background:#0b1f33}
.fbtns{display:flex;flex-direction:column;gap:8px}
.kycrv{margin-top:10px}
.kycrv .kd{display:inline-flex;align-items:center;gap:6px}
.kycrv .kd svg{width:16px;height:16px;flex:none}
.kycrv dd svg{width:15px;height:15px;color:#14935a;vertical-align:-2px}
.kycrv dd.fs-face_verified{color:#14935a;font-weight:700}
.kycrv dd.fs-manual_review{color:#a46d07;font-weight:700}
.muted svg{width:14px;height:14px;vertical-align:-2px}

/* ---------- d16: quét CCCD / hộ chiếu để tự điền ---------- */
.scanfill{margin:-2px 0 14px}
.scanbtn{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:12px 16px;border:1.5px dashed rgba(12,135,148,.55);border-radius:18px;background:linear-gradient(135deg,rgba(255,255,255,.85),rgba(214,246,248,.85));color:#0b5f69;font:inherit;text-align:left;cursor:pointer;box-shadow:0 10px 24px -18px rgba(12,135,148,.9);transition:transform .15s,box-shadow .15s}
.scanbtn:hover{transform:translateY(-1px);box-shadow:0 14px 26px -16px rgba(12,135,148,.9)}
.scanbtn:focus-visible{outline:3px solid rgba(23,182,196,.5);outline-offset:2px}
.scanbtn>svg{width:34px;height:34px;flex:none;padding:7px;border-radius:12px;background:linear-gradient(180deg,#22c3d0,#0c8794);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.4)}
.scanbtn b{display:block;font-size:16px;font-weight:800;line-height:1.25}
.scanbtn small{display:block;font-size:12.5px;color:#3f6670;font-weight:600;margin-top:2px;line-height:1.35}
.scanbtn.again{min-height:44px;padding:8px 14px;margin-top:8px;border-style:solid;border-color:rgba(12,135,148,.25);background:rgba(255,255,255,.7)}
.scanbtn.again>svg{width:26px;height:26px;padding:5px;border-radius:9px}
.scanbtn.again b{font-size:14px}
.scanpanel .muted.s{font-size:12px;margin:0}
.scanpanel .qline:not(.good):not(.bad){background:rgba(12,122,135,.08);color:#21535c}
.cam.scan .guide .qrmark{position:absolute;right:5%;top:9%;width:26%;aspect-ratio:1;border:2px solid rgba(63,224,234,.85);border-radius:8px;text-decoration:none;animation:qrpulse 1.6s ease-in-out infinite}
.cam.scan .guide .mrzband{position:absolute;left:3%;right:3%;bottom:4%;height:17%;border:2px solid rgba(63,224,234,.85);border-radius:6px;text-decoration:none;background:repeating-linear-gradient(90deg,rgba(63,224,234,.18) 0 6px,transparent 6px 10px)}
@keyframes qrpulse{50%{box-shadow:0 0 0 6px rgba(63,224,234,.18)}}
@media(prefers-reduced-motion:reduce){.cam.scan .guide .qrmark{animation:none}}
.scanok{display:flex;gap:12px;align-items:flex-start;padding:12px;border-radius:16px;background:#e9f8ef;border:1px solid #bfe8cf;color:#155d3b}
.scanok .th{flex:none;width:86px;aspect-ratio:85.6/54;border-radius:10px;overflow:hidden;background:#021820}
.scanok .th img{width:100%;height:100%;object-fit:cover;display:block}
.scanok .tx b{display:flex;gap:6px;align-items:flex-start;font-size:14px;line-height:1.35}
.scanok .tx b svg{width:17px;height:17px;flex:none;margin-top:1px}
.scanok .tx small{display:block;font-size:12.5px;line-height:1.4;color:#2f6b4d;margin-top:4px}
label.l.af .in{background:#effbf6;border-color:#63c597}
.aftag{display:inline-flex;align-items:center;gap:3px;margin-left:6px;padding:1px 8px 1px 6px;border-radius:99px;background:#dcf5e7;color:#127347;font-size:11px;font-weight:800;font-style:normal;white-space:nowrap;vertical-align:1px}
.aftag svg{width:11px;height:11px}
.cam-hint.reuse{color:#127347;font-weight:700}
.cam.scan .scanx{position:absolute;top:8px;right:8px;z-index:3;width:36px;height:36px;border:0;border-radius:50%;background:rgba(2,24,32,.6);color:#fff;font-size:24px;line-height:1;cursor:pointer;display:grid;place-items:center}
.cam.scan .scanx:focus-visible{outline:3px solid rgba(63,224,234,.7)}
.scanpanel .cam-acts .btn{white-space:nowrap;padding-inline:12px;min-width:0}
/* d17: bước đã xong bấm được + chip tóm tắt */
.prog li .pgo{all:unset;box-sizing:border-box;display:flex;flex-direction:inherit;align-items:center;gap:inherit;cursor:pointer;border-radius:12px;padding:2px 4px;-webkit-tap-highlight-color:transparent}
.prog li .pgo .sl{text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.prog li .pgo:hover .d,.prog li .pgo:focus-visible .d{box-shadow:0 0 0 4px rgba(63,224,234,.35)}
.prog li .pgo:focus-visible{outline:2px solid rgba(63,224,234,.8);outline-offset:2px}
.prog li .pgo:active{transform:scale(.96)}
.sumchip{display:flex;align-items:center;gap:6px;width:100%;margin:2px 0 12px;padding:9px 12px;border-radius:999px;border:1px solid rgba(12,122,135,.28);background:rgba(12,122,135,.08);color:#0b4d57;font:inherit;font-size:13px;text-align:left;cursor:pointer;min-width:0}
.sumchip svg{width:15px;height:15px;flex:none;color:#11a3b1}
.sumchip .sv{display:flex;gap:6px;min-width:0;overflow:hidden;white-space:nowrap}
.sumchip .sn{overflow:hidden;text-overflow:ellipsis;min-width:0}
.sumchip .sd{flex:none;color:#2b6d76;font-variant-numeric:tabular-nums}
.sumchip i{font-style:normal;color:#7aa9b0;flex:none}
.sumchip .se{flex:none;margin-left:auto;font-weight:800;color:#0a6f7c;text-decoration:underline;text-underline-offset:2px}
.sumchip:hover{background:rgba(12,122,135,.14)}
.sumchip:focus-visible{outline:3px solid rgba(63,224,234,.7);outline-offset:2px}
/* d17: nút chụp tròn luôn hiện + đèn/zoom + khung "chưa đọc được" + ảnh đóng băng + ảnh giấy tờ ở trang hồ sơ */
.cam.scan .freeze{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#021820;z-index:2}
.cam.scan.failed .guide i{border-color:#ffb27a}
.cam.scan .camtool{position:absolute;top:8px;left:8px;z-index:3;width:40px;height:40px;border:0;border-radius:50%;background:rgba(2,24,32,.6);color:#fff;display:grid;place-items:center;cursor:pointer}
.cam.scan .camtool svg{width:20px;height:20px}
.cam.scan .camtool[aria-pressed=true]{background:#ffd34d;color:#2b2100}
.shutbar{position:relative;display:flex;justify-content:center;align-items:center;min-height:92px}
.shutter{display:flex;flex-direction:column;align-items:center;gap:4px;border:0;background:none;cursor:pointer;color:#0c4e57;font:inherit;font-weight:700;font-size:13.5px;padding:0}
.shutter i{display:block;width:72px;height:72px;border-radius:50%;background:#fff;border:6px solid #0c7a87;box-shadow:0 0 0 3px rgba(255,255,255,.9),0 6px 18px rgba(2,24,32,.25);transition:transform .12s}
.shutter:active i{transform:scale(.92)}
.shutter:disabled{opacity:.55;cursor:default}
.shutter.spinning{opacity:1}
.shutter.spinning i{border-color:rgba(12,122,135,.25);border-top-color:#0c7a87;animation:spin .8s linear infinite}
.shutter:focus-visible i{outline:3px solid rgba(63,224,234,.8);outline-offset:3px}
.shutter.hide{display:none}
.zoomw{position:absolute;left:0;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:6px;color:#21535c;max-width:calc(50% - 50px)}
.zoomw svg{width:18px;height:18px;flex:none}
.zoomw input{width:100%;min-width:60px;accent-color:#0c7a87}
.zoomw.hide{display:none}
.scanfail{padding:12px;border-radius:14px;background:#fff1e6;border:1px solid #ffd2b0;color:#8a3a08}
.scanfail.hide{display:none}
.scanfail p{display:flex;gap:8px;align-items:flex-start;margin:0 0 10px;font-weight:700;font-size:14px;line-height:1.4}
.scanfail p svg{width:18px;height:18px;flex:none;margin-top:1px}
.scanfail .fa{display:flex;gap:8px;flex-wrap:wrap}
.scanfail .fa .btn{flex:1 1 30%;min-width:0;white-space:nowrap;padding-inline:10px}
.scanok.kept{background:#eef6fb;border-color:#c9e1ee;color:#1d4a63}
.scanok.kept .tx small{color:#365f75}
.pfdoc{margin-top:16px}
.pfdoc h3{display:flex;gap:8px;align-items:center;margin:0 0 8px;font-size:17px}
.pfdoc h3 svg{width:19px;height:19px}
.pfdoc p{margin:0 0 8px;line-height:1.5}
.pfdoc p.ok{display:flex;gap:6px;align-items:center;color:#0f7a49;font-weight:600}
.pfdoc p.ok svg{width:17px;height:17px}
.btn.danger{color:#b4231a;border-color:rgba(180,35,26,.35)}
.btn.danger svg{width:17px;height:17px;vertical-align:-3px}
/* d18: một ảnh giấy tờ ở bước 1 (lưu mã hoá + điền sẵn thầm lặng) + nút Chụp lớn ở bước Giấy tờ */
.docshot{display:grid;gap:10px;margin:0 0 14px;padding:14px;border-radius:20px;background:linear-gradient(135deg,rgba(255,255,255,.88),rgba(214,246,248,.8));border:1.5px solid rgba(12,135,148,.28);box-shadow:0 10px 24px -18px rgba(12,135,148,.9)}
.dshead{display:grid;gap:2px}
.dshead b{display:flex;align-items:center;gap:7px;color:#0b5f69;font-size:15.5px}
.dshead b svg{width:19px;height:19px}
.dshead small{color:#2e5a63;font-size:13px;line-height:1.45}
.docshot .consent{margin:0}
.dsacts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dsacts .btn{display:flex;align-items:center;justify-content:center;gap:6px;min-height:52px}
.dsacts .btn svg{width:19px;height:19px}
.dsheld{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:16px;background:#fff;border:1px solid #cfeee0}
.dsheld .th{width:76px;height:50px;flex:none;border-radius:10px;overflow:hidden;background:#eef7f8;display:grid;place-items:center}
.dsheld .th img{width:100%;height:100%;object-fit:cover}
.dsheld .tx{flex:1;display:grid;gap:2px;min-width:0}
.dsheld .tx b{display:flex;align-items:center;gap:5px;color:#0f7a49;font-size:14px}
.dsheld .tx b svg{width:16px;height:16px}
.dsheld .tx small{color:#2e5a63;font-size:12.5px;line-height:1.4}
.cam.doc .camtool{position:absolute;top:8px;left:8px;z-index:3;width:40px;height:40px;border:0;border-radius:50%;background:rgba(2,24,32,.6);color:#fff;display:grid;place-items:center;cursor:pointer}
.cam.doc .camtool svg{width:20px;height:20px}
.cam.doc .camtool[aria-pressed=true]{background:#ffd34d;color:#2b2100}
.cam.doc .camtool.hide{display:none}
.qline.note{background:rgba(12,122,135,.08);color:#21535c}
.docpanel .shutbar,.docshot .shutbar{margin:4px 0}
@media (max-width:360px){.dsacts{grid-template-columns:1fr}}
/* d18: thẻ ảnh đã chụp – chữ đủ rộng, nút Chụp lại xuống dòng khi hẹp */
.dsheld{flex-wrap:wrap}
.dsheld .tx{flex:1 1 170px}
.dsheld .tx b{flex-wrap:wrap}
.dsheld #ds-retake{flex:0 0 auto;margin-left:auto}
@media (max-width:430px){.dsheld #ds-retake{flex:1 1 100%;margin-left:0}}

/* d19: CCCD 2 mặt ngay ở bước 1 – thẻ "1/2 Mặt trước", "2/2 Mặt sau" (mỗi mặt: ảnh nhỏ + Chụp lại) */
.dssides{display:grid;gap:8px}
.dsside{display:grid;gap:8px;padding:10px 12px;border-radius:16px;background:#fff;border:1px solid #cfe6ea}
.dsside.cur{border:1.5px solid rgba(12,135,148,.55);box-shadow:0 0 0 4px rgba(63,224,234,.14)}
.dsside.todo{background:rgba(255,255,255,.55);border-style:dashed;color:#5b7d84}
.dsside.dscam{background:rgba(255,255,255,.7)}
.dsside.dsheld{display:flex}
.dsl{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.dsl b{color:#0b5f69;font-size:14.5px}
.dsl small{flex:1 1 100%;color:#2e5a63;font-size:12.5px;line-height:1.4}
.dsside.todo .dsl b{color:#5b7d84}
.dsn{display:inline-grid;place-items:center;min-width:34px;height:22px;padding:0 7px;border-radius:999px;background:#0b7f8c;color:#fff;font:700 12px/1 system-ui,sans-serif;letter-spacing:.02em;flex:none}
.dsside.todo .dsn{background:#b9d3d7;color:#fff}
.dsside.done .dsn{background:#18a065}
.dsheld [id^="ds-retake"]{flex:0 0 auto;margin-left:auto}
@media (max-width:430px){.dsheld [id^="ds-retake"]{flex:1 1 100%;margin-left:0}}
.dsneed:empty{display:none}
.dsneed{font-weight:600}
.sumchip .sp{white-space:nowrap}
/* d19: chip tóm tắt xuống dòng theo từng phần thay vì đẩy trang rộng ra (EN: "1 document photo") */
.sumchip .sv{flex-wrap:wrap;white-space:normal;row-gap:2px}
.sumchip .sv>*{white-space:nowrap}
.sumchip .sn{max-width:100%}

/* d20: chữ ngắn – đồng ý tóm tắt + "Xem chi tiết"; thẻ Mặt trước / Mặt sau đặt cạnh nhau (CCCD) */
.consent.biobox{display:grid;gap:6px}
.consent.biobox{padding:10px 12px}
.docshot.two,.docshot{padding-left:12px;padding-right:12px}
.biobox .bioline{display:grid;grid-template-columns:auto 1fr;column-gap:10px;row-gap:4px;align-items:center;cursor:pointer}
.biobox .bioline>span{display:contents}
.biobox .bioline .ct{margin:0}
.biobox .bshort{display:block;grid-column:1/-1;line-height:1.45;font-size:13px}
.biomore{margin-left:0;font-size:12.5px;color:#2e5a63}
.biomore summary{cursor:pointer;color:#0a6f7c;font-weight:600;text-decoration:underline;text-underline-offset:2px;list-style:none;display:inline-flex;align-items:center;gap:4px;min-height:28px}
.biomore summary::-webkit-details-marker{display:none}
.biomore summary::after{content:"▾";font-size:11px;text-decoration:none}
.biomore[open] summary::after{content:"▴"}
.biomore p{margin:4px 0 0;line-height:1.5}
.biobox>.fe:empty{display:none}
.biobox>.fe{margin-left:0}
.docshot.two .dssides{grid-template-columns:1fr 1fr}
.docshot.two .dsside{align-content:start;min-width:0;padding:10px}
.docshot.two .dsside.dscam{grid-column:1/-1}
.docshot.two .dsacts{grid-template-columns:1fr}
.docshot.two .dsacts .btn{min-height:44px;padding-left:8px;padding-right:8px}
.dsside.dsheld{display:grid;gap:6px}
.dsheld .th{width:100%;height:auto;aspect-ratio:1.58}
.docshot:not(.two) .dsheld .th{max-width:180px}
.dsheld .dsok{color:#0f7a49;font-weight:600;font-size:13px}
.dsheld [id^="ds-retake"]{flex:none;margin-left:0;width:100%}
.dsl b{min-width:0;overflow-wrap:anywhere}
.dsside.todo .dsl small{color:#5b7d84}
@media (max-width:300px){.docshot.two .dssides{grid-template-columns:1fr}}
html .docshot .dsacts .btn{overflow-wrap:normal;word-break:normal;hyphens:manual}
.docshot .dsacts{grid-template-columns:1fr}
.docshot .dsacts .btn{min-height:48px}
/* d21: thẻ "Bảo mật dữ liệu" (trang vào, nền tối) + mục Hồ sơ + 2 ô đồng ý + ảnh khuôn mặt giữ trên máy */
body.tq .seccard{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.07);border-radius:14px;color:#dff3f6;font-size:12.5px}
body.tq .seccard summary{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center;padding:9px 12px;cursor:pointer;list-style:none}
body.tq .seccard summary::-webkit-details-marker{display:none}
body.tq .seccard .si{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:rgba(63,224,234,.16);color:#7ff0f7}
body.tq .seccard .si svg{width:17px;height:17px}
body.tq .seccard .st{display:grid;gap:1px;min-width:0}
body.tq .seccard .st b{font-size:13px;color:#fff}
body.tq .seccard .ss{line-height:1.4;color:#c7e3e8}
body.tq .seccard .more{color:#7ff0f7;font-weight:600;text-underline-offset:2px;justify-self:start}
body.tq .seccard .m2,body.tq .seccard[open] .m1{display:none}
body.tq .seccard[open] .m2{display:inline}
body.tq .seccard[open] .ss{display:none}
body.tq .seccard .sp{padding:0 12px 10px 52px}
body.tq .seccard .sp p{margin:0 0 6px;line-height:1.5}
.pfsec{margin-top:16px}
.pfsec h3{display:flex;gap:8px;align-items:center;margin:0 0 8px;font-size:17px}
.pfsec h3 svg{width:19px;height:19px}
.pfsec p{margin:0 0 8px;line-height:1.55}
.consent2{display:grid;gap:8px}
.consent2 .consent{margin:0}
.consent2 .optl{font-style:normal;color:#5b7d84}
.consent2 .biomore{padding-left:4px}
.fheld{display:grid;justify-items:center;gap:8px;padding:12px 0}
.fheld .th{width:150px;aspect-ratio:.8;border-radius:16px;overflow:hidden;background:#eef7f8}
.fheld .th img{width:100%;height:100%;object-fit:cover}
.fheld .dsok{color:#0f7a49;font-weight:600;display:flex;gap:4px;align-items:center}
.fheld .dsok svg{width:16px;height:16px}
.kyc .fbtns{display:flex;justify-content:center;gap:10px}
.pfdoc p#pf-facecheckin{display:flex;gap:6px;align-items:center;font-weight:600;color:#0f5f6b}
.pfdoc p#pf-facecheckin svg{width:17px;height:17px;flex:none}
/* d22: lấy lại tài khoản – lời nhắn trùng giấy tờ nhẹ nhàng (không đỏ), liên kết quên tài khoản, các bước khôi phục */
.forgot-wrap{text-align:center;margin:12px 0 0}
.forgot{background:none;border:0;padding:6px 4px;color:#0a6f7c;font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.on-dark .forgot{color:#d9f9fb}
.dup-note{display:grid;gap:10px;margin:10px 0 4px;padding:12px 14px;border-radius:16px;background:rgba(19,174,187,.09);border:1px solid rgba(19,174,187,.28);border-left:4px solid #13aebb;color:#09535c}
.dup-note .dn-t{display:flex;gap:10px;align-items:flex-start}
.dup-note .dn-t svg{width:22px;height:22px;flex:none;color:#0c7a87;margin-top:1px}
.dup-note p{margin:0;line-height:1.45}
.dup-note .btn{white-space:normal;line-height:1.25;min-height:48px}
.rc .lead{margin:6px 0 12px}
.rc .center{display:flex;justify-content:center;padding:28px 0}
.rc .ok-box{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border-radius:14px;background:rgba(26,160,110,.09);border:1px solid rgba(26,160,110,.25);color:#145c43;margin:0 0 10px;line-height:1.45}
.rc .ok-box svg{width:20px;height:20px;flex:none}
.rc .rc-chs{display:grid;gap:8px;margin:0 0 12px}
.rc .rc-ch{justify-content:center;gap:6px;white-space:normal}
.rc .rc-ch svg{width:18px;height:18px}
.rc .in.otp{font-size:24px;letter-spacing:.35em;text-align:center;font-variant-numeric:tabular-nums}
.rc #rc-test{font-family:ui-monospace,monospace;margin:0 0 8px}
.rc .forgot{display:block;margin:6px auto 0}
.rc .rc-upd{display:grid;gap:8px;margin-top:6px}
.rc .rc-upd h3,.rc .rc-sub{font-size:15px;margin:10px 0 2px}
.rc .rc-row{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.55);border:1px solid rgba(12,122,135,.14)}
.rc .rc-row input{margin-top:3px;width:18px;height:18px;flex:none}
.rc .rc-row b{display:block;font-size:13px;color:#0a6f7c}
.rc .rc-row s{color:#6b7c80}
.rc .rc-row em{font-style:normal;font-weight:600}
.rc .rc-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rc .rc-tile{display:grid;gap:6px;justify-items:center;padding:10px;border-radius:14px;background:rgba(255,255,255,.55);border:1px dashed rgba(12,122,135,.35);text-align:center;font-size:13px}
.rc .rc-tile.done{border-style:solid;border-color:rgba(26,160,110,.4)}
.rc .rc-tile img{width:100%;aspect-ratio:1.58;object-fit:cover;border-radius:10px}
.rc #rc-t-selfie img{aspect-ratio:1;max-width:120px;border-radius:50%}
.rc .rc-tile .ph{width:100%;aspect-ratio:1.58;display:grid;place-items:center;border-radius:10px;background:rgba(12,122,135,.06);color:#0c7a87}
.rc .rc-tile .ph svg{width:28px;height:28px}
.rc .rc-tile b{color:#1a8a5e}
.rc .btn.sm{padding:6px 12px;min-height:34px;font-size:13px}
.rc .consent{display:flex;gap:10px;align-items:flex-start;margin:10px 0}
.rc .btns{display:grid;gap:8px}
