/* Tài khoản khách, thẻ tích điểm, voucher, quà khi tạo bill, đại lý và poster. */

/* ---------- Khách ---------- */
.lgin { max-width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.landing .invite, .landing .loy { margin-top: 14px; }
.invite { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 18px; background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.invite:hover { background: rgba(255,255,255,.18); }
.invite .gi, .giftbar .gi, .vchip .gi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #E8A317; color: #3B2210; flex: none; }
.invite .gi svg.i, .giftbar .gi svg.i, .vchip .gi svg.i { width: 20px; height: 20px; }
.invite .t { flex: 1; min-width: 0; }
.invite b { display: block; font-size: 13.5px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invite small { display: block; font-size: 12px; font-weight: 700; opacity: .9; }
.invite .go { padding: 7px 14px; border-radius: 99px; background: #fff; color: #5B361A; font-weight: 900; font-size: 12.5px; flex: none; }
.loy { padding: 12px 14px; border-radius: 20px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.32); color: #fff; text-align: left; }
.loy .lrow { display: flex; align-items: center; gap: 8px; }
.loy .lrow b { flex: 1; min-width: 0; font-size: 14px; font-weight: 900; }
.loy .lrow small { font-size: 12px; font-weight: 800; opacity: .9; flex: none; }
.stamps { display: flex; gap: 8px; margin: 10px 0 6px; }
.stamps i { flex: 1; aspect-ratio: 1; max-width: 44px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 13px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); color: rgba(255,255,255,.65); }
.stamps i.on { background: #fff; color: #5B361A; box-shadow: none; }
.stamps i.gift { background: #E8A317; color: #3B2210; box-shadow: none; }
.stamps svg.i { width: 18px; height: 18px; }
.lbar { height: 12px; border-radius: 99px; margin: 10px 0 8px; background: rgba(255,255,255,.18); overflow: hidden; }
.lbar i { display: block; height: 100%; border-radius: 99px; background: #fff; }
.loy p { margin: 0; font-size: 12.5px; font-weight: 700; opacity: .92; }
.loy.ready { background: #fff; color: #5B361A; box-shadow: 0 14px 30px rgba(40,20,5,.28); }
.loy.ready p { color: #6B5D50; opacity: 1; margin-top: 4px; }
.loy .go { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 7px 12px; border-radius: 99px; background: #5B361A; color: #fff; font-weight: 900; font-size: 12.5px; }
.loy .go svg.i { width: 16px; height: 16px; }
.accthero .hero-in { padding-bottom: 18px; }
.accname { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: #fff; }
.accname .av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); flex: none; }
.accname .av svg.i { width: 24px; height: 24px; }
.accname b { display: block; font-size: 18px; font-weight: 900; }
.accname small { display: block; font-size: 13px; font-weight: 700; opacity: .85; }
.vlist { display: flex; flex-direction: column; gap: 8px; }
.vchip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: #fff; box-shadow: 0 2px 10px rgba(60,35,15,.08); }
.vchip .t { flex: 1; min-width: 0; }
.vchip b { display: block; font-size: 14px; font-weight: 900; color: var(--deep); }
.vchip b small { font-size: 12px; font-weight: 700; color: var(--mut); }
.vchip > .t > small { display: block; font-size: 12px; font-weight: 700; color: var(--mut); }
.vchip .btn { width: auto; flex: none; min-height: 40px; padding-inline: 16px; font-size: 13px; }
.vpick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.vpick .chip { display: inline-flex; align-items: center; gap: 6px; width: auto; flex: none; }
.vpick .chip svg.i { width: 16px; height: 16px; }
.demo-code { padding: 10px 12px; border-radius: 14px; background: var(--peach); color: var(--deep); font-weight: 800; font-size: 13px; }
.codein { letter-spacing: .4em; font-size: 22px; font-weight: 900; text-align: center; }
.cinvite .btn { margin-top: 8px; }

/* Nhóm dịch vụ ở bước chọn dịch vụ */
.sgrp { display: flex; align-items: center; gap: 8px; margin: 8px 2px 0; }
.scards > .sgrp:first-child { margin-top: 0; }
.sgrp b { font-size: 13px; font-weight: 900; color: var(--deep); white-space: nowrap; }
.sgrp small { font-size: 12px; font-weight: 700; color: var(--mut); white-space: nowrap; }
.sgrp::after { content: ""; flex: 1; height: 1.5px; background: #E7D3BC; }
.scard { flex-wrap: wrap; }
.scard .pr { flex: none; text-align: right; }
.scard .pr b { font-size: 17px; }
.scard .pr small { font-size: 12px; }
.scard .when { display: flex; align-items: center; gap: 4px; }
.scard .when svg.i { width: 14px; height: 14px; flex: none; }
.scard .sdesc { display: block; flex-basis: 100%; margin: 0 0 0 58px; padding-top: 6px; border-top: 1.5px dashed #E2C9AE; font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--deep); white-space: normal; }
.snote { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.snote svg.i { width: 15px; height: 15px; flex: none; }
.qgrp { display: block; font-size: 12px; font-weight: 700; color: var(--mut); }

/* Đăng nhập: 2 nút Đăng nhập / Tạo tài khoản, dòng Quên mật khẩu căn phải */
.authseg { display: flex; width: 100%; margin-bottom: 4px; }
.authseg button { flex: 1; }
.aforgot { align-self: flex-end; }
.chead .backb { margin-right: -8px; color: #fff; }

/* Trang đại lý */
.ltop .lgin.lagent { background: #fff; color: #5B361A; flex: none; }
.ltop .lgin.lagent:hover { background: #FFF4E8; }
.agmonth { display: flex; align-items: center; justify-content: center; gap: 14px; color: #fff; margin-top: 4px; }
.agmonth b { font-size: 15px; font-weight: 900; min-width: 120px; text-align: center; }
.agmonth button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; }
.agmonth button:disabled { opacity: .35; }
.agmonth svg.i { width: 20px; height: 20px; }
.agfee { margin-top: 12px; padding: 14px; border-radius: 20px; background: #fff; color: #5B361A; text-align: center; box-shadow: 0 14px 30px rgba(40,20,5,.28); }
.agfee b { display: block; font-size: 32px; font-weight: 900; line-height: 1.15; }
.agfee small { display: block; font-size: 12.5px; font-weight: 800; color: #8A6B50; }
.qagbox .qagphone { width: 150px; text-align: center; }

/* ---------- Nhân viên: quà khi tạo bill ---------- */
.giftbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: #FFF4DC; box-shadow: inset 0 0 0 1.5px #E8C878; }
.giftbar.on { background: #EEF6E8; box-shadow: inset 0 0 0 1.5px #A9CC8E; }
.giftbar .t { flex: 1; min-width: 0; }
.giftbar b { display: block; font-size: 14px; font-weight: 900; color: var(--deep); }
.giftbar small { display: block; font-size: 12px; font-weight: 700; color: var(--mut); }
.giftbar .btn { width: auto; flex: none; min-height: 40px; padding-inline: 16px; font-size: 13px; }

/* ---------- Chủ tiệm ---------- */
.qpromo { display: flex; flex-direction: column; gap: 4px; }
.qtags { padding: 0 6px; font-size: 12px; font-weight: 700; color: var(--mut); }
.qmonth { display: flex; align-items: center; justify-content: center; gap: 14px; }
.qmonth b { font-size: 16px; font-weight: 900; color: var(--deep); min-width: 130px; text-align: center; }
.qmonth .iconbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--peach); color: var(--brand); }
.qmonth .iconbtn:disabled { opacity: .35; }
.qmonth svg.i { width: 20px; height: 20px; }
.qagstat { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 8px; }
.qagstat > div { padding: 8px 6px; border-radius: 14px; background: var(--peach); text-align: center; min-width: 0; }
.qagstat b { display: block; font-size: 14px; font-weight: 900; color: var(--deep); white-space: nowrap; }
.qagstat small { display: block; font-size: 11.5px; font-weight: 700; color: var(--mut); }
.qagstat.total > div { background: var(--deep); }
.qagstat.total b, .qagstat.total small { color: #fff; }
.qagbox { display: flex; flex-direction: column; gap: 10px; }
.field.qagpct { display: flex; flex-direction: row; align-items: center; gap: 10px; margin: 0; }
.field.qagpct label { flex: 1; margin: 0; text-align: left; }
.pctin { display: flex; align-items: center; gap: 6px; }
.pctin .inp { width: 74px; text-align: center; }
.pctin i { font-style: normal; font-weight: 900; color: var(--mut); }
.qagloc { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.qagloc > span { flex: 1; display: inline-flex; align-items: center; gap: 4px; color: var(--deep); white-space: nowrap; }
.qagloc > span.muted { color: var(--mut); }
.qagloc svg.i { width: 16px; height: 16px; }
.qloyprev { font-size: 20px; font-weight: 900; color: var(--deep); margin: 4px 0; }

/* Poster đại lý, khổ A5 */
.pview { display: flex; justify-content: center; }
.pview .poster { width: 100%; max-width: 380px; aspect-ratio: 148 / 210; box-shadow: 0 10px 30px rgba(40,20,5,.2); border-radius: 10px; overflow: hidden; }
.poster { background: #A5682D; color: #fff; }
.poster .pin { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 7% 8%; text-align: center; background: radial-gradient(120% 70% at 50% 0%, #C07A3A 0%, #A5682D 55%, #7A4A20 100%); }
.pbrand { display: flex; align-items: center; gap: 10px; }
.pbrand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 6px; }
.pbrand b { display: block; font-size: 22px; font-weight: 900; letter-spacing: .05em; text-align: left; }
.pbrand small { display: block; font-size: 11px; font-weight: 700; opacity: .9; text-align: left; }
.poster h1 { font-size: 27px; font-weight: 900; line-height: 1.15; margin: 0; }
.poster .pen { font-size: 13px; font-weight: 700; opacity: .9; margin: -4px 0 0; }
.poster .pqr { width: 62%; aspect-ratio: 1; background: #fff; border-radius: 18px; padding: 3%; }
.poster .pqr svg { display: block; width: 100%; height: 100%; }
.poster .psub { font-size: 13px; font-weight: 800; margin: 0; }
.poster .pat { background: #fff; color: #5B361A; border-radius: 14px; padding: 8px 16px; min-width: 70%; }
.poster .pat small { display: block; font-size: 10.5px; font-weight: 800; color: #8A6B50; }
.poster .pat b { display: block; font-size: 16px; font-weight: 900; }
.poster .phot { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 900; }
.poster .phot svg.i { width: 18px; height: 18px; }
.poster .pref { font-size: 9.5px; opacity: .7; }
@page poster { size: 148mm 210mm; margin: 0; }
@media print {
  body.print-poster #print-area .poster { page: poster; width: 148mm; height: 210mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.print-poster #print-area .poster h1 { font-size: 34px; }
  body.print-poster #print-area .poster .pat b { font-size: 20px; }
}

/* Nút quay về trang nhân viên khi nhân viên xem trang khách */
.staffback { position: fixed; left: 12px; bottom: calc(108px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px 0 8px; border-radius: 99px; background: #3B2210; color: #fff; font-size: 13px; font-weight: 900; box-shadow: 0 8px 20px rgba(40,20,5,.3); }
.staffback svg.i { width: 18px; height: 18px; }
.qpieces { margin-top: 10px; }

/* Lời mời làm thành viên: 1 dòng nhỏ + bảng lợi ích */
.inv-b { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; }
.inv-b svg.i { width: 18px; height: 18px; color: #F5C46A; flex: none; }
.inv-more { color: #fff; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.invsheet ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.invsheet li { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; color: var(--ink); }
.invsheet li span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--peach); color: var(--brand); flex: none; }
.invsheet li svg.i { width: 18px; height: 18px; }
.invsheet .link { display: block; width: 100%; margin-top: 8px; text-align: center; }

/* Quản lý tiệm: 4 nhóm ô vuông */
.qgroups { display: flex; flex-direction: column; gap: 18px; max-width: 720px; width: 100%; margin-inline: auto; }
.qg h2 { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; font-size: 13px; font-weight: 900; color: var(--deep); }
.qg h2::after { content: ""; flex: 1; height: 1.5px; background: #E7D3BC; }
.qtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qtile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 20px; background: #fff; box-shadow: 0 2px 10px rgba(60,35,15,.07), inset 0 0 0 1.5px #F0E2D2; color: var(--deep); text-align: center; }
.qtile:hover { box-shadow: 0 4px 14px rgba(60,35,15,.12), inset 0 0 0 1.5px #E2C29E; }
.qtile .qi { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--peach); color: var(--brand); }
.qtile .qi svg.i { width: 24px; height: 24px; }
.qtile b { font-size: 13px; font-weight: 900; line-height: 1.2; white-space: nowrap; }
.qtile small { font-size: 11.5px; font-weight: 700; color: var(--mut); margin-top: -4px; white-space: nowrap; }
.qtile .dot { position: absolute; top: 8px; right: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #C0392B; color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
/* Thẻ chia phần trong trang (Bảng giá, Khách hàng) */
.qtabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 2px; }
.qtabs button, .qtabs a { text-align: center; padding: 10px 4px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1.5px #EAD8C4; font-size: 13px; font-weight: 900; color: var(--deep); white-space: nowrap; }
.qtabs .on { background: var(--deep); color: #fff; box-shadow: none; }

.qtabwrap { flex: none; min-height: 0; padding-top: 16px; padding-bottom: 0; max-width: 760px; }
.qtabwrap + main.wrap { padding-top: 12px; }

/* Mở như app trên iPhone: chừa chỗ thanh trạng thái phía trên */
.hero { padding-top: calc(18px + env(safe-area-inset-top)); }

/* Cài app JAMO trong Tài khoản */
.appbox .box-t { display: flex; align-items: center; gap: 6px; }
.appbox .box-t svg.i { width: 20px; height: 20px; color: #2E8B57; }
.appway { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.appway + .appway { margin-top: 10px; padding-top: 12px; border-top: 1.5px solid var(--line); }
.appway b { font-size: 14px; font-weight: 900; color: var(--deep); }
.appway small { font-size: 12.5px; font-weight: 700; color: var(--mut); }
.appcard { display: flex; flex-direction: column; gap: 12px; }
.appcard + .appway { margin-top: 4px; padding-top: 12px; border-top: 1.5px solid var(--line); }
.ac-head { display: flex; align-items: center; gap: 14px; }
.ac-logo { width: 64px; height: 64px; flex: none; border-radius: 18px; box-shadow: 0 6px 14px rgba(59, 31, 11, .25); }
.ac-txt { display: flex; flex-direction: column; min-width: 0; }
.ac-txt b { font-size: 19px; font-weight: 900; color: var(--deep); line-height: 1.15; }
.ac-txt small { font-size: 12.5px; font-weight: 700; color: var(--mut); }
.ac-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.ac-tags span { padding: 3px 9px; border-radius: 999px; background: var(--peach); color: var(--brand); font-size: 11.5px; font-weight: 800; }
.ac-dl { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 20px; background: var(--deep); color: #fff; font-size: 16px; font-weight: 900; text-decoration: none; box-shadow: 0 8px 18px rgba(91, 54, 26, .28); transition: background .12s, transform .08s; }
.ac-dl:hover { background: var(--deep-hover); }
.ac-dl:active { transform: scale(.985); }
.ac-dl svg.i { width: 22px; height: 22px; stroke-width: 2.4; }
.ac-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ac-steps div { padding: 10px 6px; border-radius: 14px; background: var(--bg); color: var(--mut); text-align: center; font-size: 12px; font-weight: 800; line-height: 1.25; }
.ac-steps b { display: grid; place-items: center; width: 24px; height: 24px; margin: 0 auto 5px; border-radius: 50%; background: var(--deep); color: #fff; font-size: 12.5px; }
.ac-hint { margin: 0; color: var(--mut); text-align: center; font-size: 12.5px; font-weight: 700; line-height: 1.45; }
.ac-warn { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--peach); }
.ac-warn svg.i { width: 22px; height: 22px; color: #B45309; margin-top: 1px; }
.ac-warn div { display: flex; flex-direction: column; gap: 2px; }
.ac-warn b { font-size: 14px; font-weight: 900; color: var(--deep); }
.ac-warn small { font-size: 12.5px; font-weight: 700; color: var(--mut); }
/* Ô tiền mặt khi thu ở quầy (mẫu B anh chốt 09/11). */
.cashtwo { display: grid; gap: 6px; }
.cashrow { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 16px; border-radius: 16px; font-weight: 800; white-space: nowrap; }
.cashrow span { font-size: 15px; }
.cashrow b { font-size: 25px; font-weight: 900; line-height: 1.15; }
.cashrow.given { background: var(--card); box-shadow: inset 0 0 0 2px #A5682D; color: var(--deep); }
.cashrow.back { background: var(--peach); }
.cashrow.back b { color: var(--green); }
.cashrow.back.short b { color: var(--red); }
.cashchips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cashchips .chip { min-height: 42px; padding: 4px; border-radius: 14px; text-align: center; }
.cashpad { gap: 6px; }
.cashpad button { height: 44px; border-radius: 13px; font-size: 20px; font-weight: 900; color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--line); }
.bar .cashbtn { min-height: 54px; border-radius: 20px; }
.page:has(.cashfit) .hero { padding-top: 10px; padding-bottom: 10px; }
.bar:has(.cashbtn) { padding-top: 10px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.bar:has(.cashbtn) .bar-in { gap: 8px; }
.bar:has(.cashbtn) .mini { min-height: 38px; }
.cashfit { padding-top: 8px; padding-bottom: 0 !important; display: flex; flex-direction: column; align-items: center; gap: 6px; overflow: hidden; }
.rcpfit { display: block; }
.rcpfit .receipt { box-shadow: var(--shadow); border-radius: 8px; }
.rcphint { flex: none; min-height: 44px; padding: 8px 18px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--brand); font-size: 13.5px; font-weight: 800; }
.rcpzoom { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: 16px; overflow-y: auto; background: rgba(40,25,15,.75); }
.loyhint { margin: 8px 0 0; font-size: 13px; font-weight: 800; }
.agbox { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; margin-bottom: 12px; }
