/* Phần nhìn Bản 5 (Hoàn chốt 26/11): dải đầu trang chuyển màu, thẻ trắng nổi, logo nhà phát hành, mua 1 trang.
   Màu lấy từ tokens; dải đầu trang, màu nhà phát hành, chân trang theo mẫu Bản 5 của chat Design. */
[hidden] { display: none !important; }
/* Bấm nhanh liên tục không làm trang tự phóng to (chạm đúp để zoom). Vẫn dùng 2 ngón để phóng to được. */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
a, button, label, input, select, summary { touch-action: manipulation; }
.b5-hero { position: relative; color: var(--on-brand); background: linear-gradient(180deg, var(--brand-strong) 0%, var(--brand) 100%); }
.b5-hero--tall { padding-bottom: 150px; }
.b5-top { position: relative; max-width: 1200px; margin: 0 auto; height: 76px; padding: 0 24px; display: flex; align-items: center; gap: 24px; box-sizing: border-box; }
.b5-top__logo img { display: block; height: 40px; width: auto; }
.b5-top__nav { display: flex; gap: 22px; }
.b5-top a { color: var(--on-brand); text-decoration: none; font-weight: 800; font-size: 15px; }
.b5-top__spacer { flex: 1; }
.b5-top__hotline { color: var(--on-brand-strong-muted) !important; }
.b5-top__login { height: 38px; padding: 0 16px; border-radius: var(--radius-md); background: var(--surface); color: var(--brand-strong) !important; display: inline-flex; align-items: center; font-size: 14px !important; }
.b5-herotext { position: relative; max-width: 1200px; margin: 0 auto; padding: 12px 24px 0; display: flex; align-items: center; gap: 16px; box-sizing: border-box; }
.b5-herotext h1 { margin: 0; flex: 1; font: 900 30px/38px var(--font-sans); }
.b5-herotext p { margin: 4px 0 0; color: var(--on-brand-strong-muted); font-size: 13px; display: none; }
.b5-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--hero-ink-soft); white-space: nowrap; }
.b5-chip svg { flex: none; }
.b5-back { color: var(--brand-tint); font-weight: 800; text-decoration: none; }
.b5-pagehead { position: relative; max-width: 1000px; margin: 0 auto; padding: 10px 24px 0; box-sizing: border-box; }
.b5-pagehead h1 { margin: 6px 0 0; font: 900 32px/40px var(--font-sans); }

/* Thân trang */
.b5-wrap { position: relative; max-width: 1200px; margin: -120px auto 0; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; box-sizing: border-box; }
.b5-wrap--narrow { max-width: 1000px; grid-template-columns: minmax(0, 1fr) 360px; }
.b5-card { background: var(--surface); color: var(--ink); border-radius: 24px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 32px rgba(11,58,87,.10); }
.b5-main { padding: 26px; display: flex; flex-direction: column; gap: 26px; }
.b5-side { padding: 22px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
.b5-sec { display: flex; flex-direction: column; gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
.b5-sh { display: flex; align-items: center; gap: 10px; font: 900 16px/22px var(--font-sans); padding: 0; width: 100%; }
.b5-sh i { font-style: normal; width: 26px; height: 26px; border-radius: var(--radius-full); background: var(--brand); color: var(--on-brand); font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.b5-sh i.ok { background: var(--action); }
.b5-sh small { margin-left: auto; font-size: 13px; font-weight: 800; }
.b5-sh small a { color: var(--brand); text-decoration: none; }
.b5-seg { display: flex; padding: 4px; border-radius: 14px; background: var(--surface-muted); }
.b5-seg a { flex: 1; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: var(--ink-muted); text-decoration: none; }
.b5-seg a.is-on { background: var(--surface); color: var(--brand-strong); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.b5-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.b5-pt { position: relative; height: 64px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 10px; box-sizing: border-box; }
.b5-pt img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.b5-pt.is-on { border: 2px solid var(--brand); box-shadow: 0 0 0 4px rgba(7,95,145,.12); }
.b5-pt.is-on::after { content: ""; position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 99px; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 0 0 2px var(--surface); }
.b5-pt.is-off { opacity: .4; }
.b5-pt__off { position: absolute; bottom: -1px; left: 50%; transform: translate(-50%, 50%); font-size: 10px; font-weight: 900; color: var(--warning); background: var(--warning-soft); border-radius: 6px; padding: 0 6px; line-height: 16px; white-space: nowrap; }
.b5-pt__badge { position: absolute; top: -8px; left: 6px; font-size: 10px; font-weight: 900; color: var(--on-accent); background: var(--accent); border-radius: 6px; padding: 0 6px; line-height: 16px; white-space: nowrap; }
.b5-dt { position: relative; min-height: 56px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 900; font-size: 17px; cursor: pointer; font-variant-numeric: tabular-nums; box-sizing: border-box; }
.b5-dt input { position: absolute; opacity: 0; pointer-events: none; }
.b5-dt span { font-size: 11px; line-height: 14px; font-weight: 700; color: var(--ink-muted); }
/* Mệnh giá to ở trên, giá bán ở dưới qua đường chấm (Hoàn duyệt 27/11, theo napthengay). */
.b5-dt { padding: 10px 8px 8px; }
.b5-dt__face { font-size: inherit; font-weight: 900; line-height: 24px; }
.b5-dt__price { align-self: stretch; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 6px; margin-top: 6px; padding-top: 6px; border-top: 1.5px dotted var(--border-input); }
.b5-dt__price > span { font-size: 11px; font-weight: 700; color: var(--ink-muted); }
.b5-dt__price > b { font-size: 13px; font-weight: 900; color: var(--brand); }
.b5-dt:has(input:checked) .b5-dt__price { border-top-color: rgba(255,255,255,.45); }
.b5-dt:has(input:checked) .b5-dt__price > b { color: var(--on-brand); }
.b5-dt.is-off .b5-dt__price > b { color: var(--ink-disabled); }
/* Gói thẻ data: dung lượng · hạn dùng dưới mệnh giá. */
.b5-dt .b5-dt__pack { font-size: 12px; line-height: 16px; color: var(--ink-soft); text-align: center; }
.b5-dt:has(input:checked) .b5-dt__pack { color: var(--on-brand); }
.b5-dt:has(input:checked) { border-color: transparent; color: var(--on-brand); background: linear-gradient(140deg, var(--pub-a, var(--brand)), var(--pub-b, var(--brand-strong))); box-shadow: 0 8px 18px rgba(16,24,40,.18); }
.b5-dt:has(input:checked) span { color: rgba(255,255,255,.85); }
.b5-dt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.b5-dt.is-off { color: var(--ink-disabled); background: var(--surface-disabled); cursor: not-allowed; }
.b5-dt.is-off span { color: var(--warning); }
.pub-garena { --pub-a: var(--pub-garena-a); --pub-b: var(--pub-garena-b); }
.pub-zing { --pub-a: var(--pub-zing-a); --pub-b: var(--pub-zing-b); }
.pub-viettel { --pub-a: var(--pub-viettel-a); --pub-b: var(--pub-viettel-b); }
.b5-qtyrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.b5-qty { display: flex; align-items: center; gap: 6px; height: 48px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--border); box-sizing: border-box; }
.b5-qty input { width: 56px; height: 38px; border: 0; text-align: center; font: 900 18px var(--font-sans); color: var(--ink); background: transparent; -moz-appearance: textfield; }
.b5-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.b5-qty button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--surface-sunken); font: 900 20px var(--font-sans); color: var(--ink); cursor: pointer; }
.b5-qty button.p { background: var(--brand); color: var(--on-brand); }
/* Số lượng: tiêu đề và bộ −/+ cùng một dòng, nút chọn nhanh 5/10/20/50 bên dưới (Hoàn duyệt 28/11). */
.b5-qtyhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.b5-qtyhead .b5-sh { width: auto; }
.b5-qchips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; justify-content: flex-end; }
.b5-qchips button[aria-pressed=true] { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.b5-qchips button:disabled { opacity: .4; cursor: not-allowed; }
.b5-qchips button { min-width: 44px; height: 32px; padding: 0 10px; border: 0; border-radius: 9px; background: var(--surface-muted); font: 800 13px var(--font-sans); color: var(--ink); cursor: pointer; }
.b5-inp { height: 52px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--border-input); display: flex; align-items: center; padding: 0 14px; gap: 10px; box-sizing: border-box; }
.b5-inp:focus-within { border: 2px solid var(--brand); box-shadow: 0 0 0 4px rgba(7,95,145,.10); }
.b5-inp input { flex: 1; min-width: 0; border: 0; outline: 0; font: 400 16px var(--font-sans); color: var(--ink); background: transparent; height: 100%; }
/* Gợi ý sửa tên miền email: khung riêng, câu hỏi một dòng, hai nút ngang nhau. */
.b5-sug { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--brand-soft); border: 1.5px solid var(--brand-tint); font-size: 14px; color: var(--ink); }
.b5-sug p { margin: 0; }
.b5-sug b { color: var(--brand); word-break: break-all; }
.b5-sug__btns { display: flex; gap: 8px; }
.b5-sug button { flex: 1; height: 44px; padding: 0 12px; border: 1.5px solid var(--brand); border-radius: 12px; background: var(--surface); color: var(--brand); font: 800 14px var(--font-sans); cursor: pointer; }
.b5-sug button.p { background: var(--brand); color: var(--on-brand); }
.b5-mut { color: var(--ink-muted); font-size: 13px; }
.b5-mut a { color: var(--brand); font-weight: 800; text-decoration: none; }
.b5-ck { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 19px; color: var(--ink-soft); }
.b5-ck input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.b5-ck a { font-weight: 800; color: var(--brand); }
.b5-ck.is-err { padding: 10px; margin: -10px; border-radius: 12px; background: var(--danger-soft); }
.b5-ck.is-err input { outline: 2px solid var(--danger); outline-offset: 1px; }
.b5-ck__err { margin: 8px 0 0; color: var(--danger); font-size: 13px; font-weight: 700; }
/* Cảnh báo cạnh ô email (như napthengay, giọng nhẹ hơn). */
.b5-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--warning-soft); color: var(--warning-ink); font-size: 13px; line-height: 19px; font-weight: 700; }
.b5-warn svg { flex: none; margin-top: 2px; color: var(--warning); }
.b5-sumitem { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--border); }
.b5-logo { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 6px; box-sizing: border-box; flex: none; background: var(--surface); }
.b5-logo img { max-width: 100%; max-height: 100%; }
.b5-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.b5-row span:last-child { text-align: right; word-break: break-all; }
.b5-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--border); font-variant-numeric: tabular-nums; }
.b5-total span { font: 900 28px/34px var(--font-sans); }
.b5-btn { width: 100%; height: 56px; border: 0; border-radius: var(--radius-lg); background: var(--action); color: var(--on-action); font: 800 17px var(--font-sans); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; box-shadow: 0 8px 18px rgba(46,125,50,.28); cursor: pointer; text-decoration: none; }
.b5-btn:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.b5-btn.is-busy { opacity: .7; cursor: progress; pointer-events: none; }
.b5-btn2 { width: 100%; height: 48px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--border-input); color: var(--ink); font: 800 15px var(--font-sans); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.b5-limit { font-size: 12px; line-height: 16px; color: var(--ink-muted); margin: 0; }

.b5-side__title { font-size: 18px; }
.b5-side--desk .b5-sumitem { margin-top: 12px; }
.b5-sumname { font-size: 16px; }
.b5-side--desk .b5-total { margin-top: 6px; }
.b5-inp svg { color: var(--ink-muted); flex: none; }
.b5-news__title { font-size: 17px; line-height: 23px; }
.b5-news__sum { color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.b5-news__date { color: var(--ink-muted); font-size: 12px; }

/* Hình thức thanh toán */
.b5-pm { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; }
.b5-pm input { position: absolute; opacity: 0; pointer-events: none; }
.b5-pm__ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; flex: none; background: var(--brand-soft); color: var(--brand); }
.b5-pm__ic--atm { background: var(--action-soft); color: var(--action-ink); }
.b5-pm__ic--momo { background: var(--momo-soft); color: var(--momo); }
.b5-pm__ic--zalo { background: var(--zalo-soft); color: var(--zalo); }
.b5-pm__t { flex: 1; min-width: 0; }
.b5-pm__t b { display: block; font-size: 14px; line-height: 18px; }
.b5-pm__t span { display: block; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.b5-pm__rd { width: 20px; height: 20px; border-radius: 99px; border: 2px solid var(--border-input); flex: none; box-sizing: border-box; }
.b5-pm:has(input:checked) { border: 2px solid var(--brand); background: var(--brand-wash); }
.b5-pm:has(input:checked) .b5-pm__rd { border: 6px solid var(--brand); }
.b5-pm:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.b5-pm.is-off { opacity: .5; cursor: not-allowed; }

.b5-pms { gap: 10px; padding: 22px; border: 0; margin: 0; min-width: 0; }
.b5-wrap--narrow .b5-side { gap: 14px; }
.b5-sumtext { flex: 1; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.b5-sumtext .b5-mut { font-size: 13px; }
.b5-ink { color: var(--ink); }
.b5-edit { font-weight: 800; font-size: 14px; color: var(--brand); text-decoration: none; padding: 10px 0 10px 8px; }

/* Màn thanh toán */
.b5-pay .b5-main { gap: 18px; }
.b5-qr { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.b5-qr img { width: 240px; height: 240px; }
.b5-qr__save { width: auto; padding: 0 18px; }
.b5-gate { display: flex; flex-direction: column; gap: 10px; }
.b5-note { margin: 0; font-size: 13px; line-height: 19px; color: var(--ink); background: var(--warning-soft); border-radius: var(--radius-md); padding: 10px 12px; }
.b5-wait { margin: 0; }
.b5-link { border: 0; background: none; padding: 10px 0; width: 100%; color: var(--brand); font: 800 14px var(--font-sans); cursor: pointer; }

/* Trang đơn hàng: mã thẻ trên "vé" */
.b5-order .b5-main { gap: 16px; }
.b5-small { font-size: 12px; line-height: 17px; margin: 0; }
.b5-progress { display: flex; flex-direction: column; gap: 6px; }
.b5-progress__bar { height: 8px; border-radius: 99px; background: var(--surface-sunken); overflow: hidden; }
.b5-progress__bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--hero-glow)); }
.b5-w0{width:0}.b5-w5{width:5%}.b5-w10{width:10%}.b5-w15{width:15%}.b5-w20{width:20%}.b5-w25{width:25%}.b5-w30{width:30%}.b5-w35{width:35%}.b5-w40{width:40%}.b5-w45{width:45%}.b5-w50{width:50%}.b5-w55{width:55%}.b5-w60{width:60%}.b5-w65{width:65%}.b5-w70{width:70%}.b5-w75{width:75%}.b5-w80{width:80%}.b5-w85{width:85%}.b5-w90{width:90%}.b5-w95{width:95%}.b5-w100{width:100%}
.b5-locked { display: grid; gap: 6px; margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--border-input); border-radius: 14px; background: var(--surface-muted); }
.b5-locked .b5-btn2 { justify-self: start; margin-top: 4px; }
.b5-cards__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.b5-cards__acts { display: flex; gap: 8px; }
.b5-btn2--sm { width: auto; height: 40px; padding: 0 14px; font-size: 14px; }
.b5-tickets { display: flex; flex-direction: column; gap: 12px; }
.b5-ticket { position: relative; display: flex; border-radius: 20px; background: var(--surface); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 8px 22px rgba(11,58,87,.08); }
.b5-ticket__band { width: 64px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--on-brand); position: relative; background: linear-gradient(160deg, var(--pub-a, var(--brand)), var(--pub-b, var(--brand-strong))); }
.b5-ticket__band::after { content: ""; position: absolute; right: -6px; top: 0; bottom: 0; width: 12px; background: radial-gradient(circle at 6px 8px, var(--surface) 4px, transparent 4.5px) 0 0 / 12px 16px repeat-y; }
.b5-ticket__logo { width: 44px; height: 44px; border-radius: 12px; background: var(--logo-bg); display: flex; align-items: center; justify-content: center; padding: 5px; box-sizing: border-box; color: var(--ink); }
.b5-ticket__logo img { max-width: 100%; max-height: 100%; }
.b5-ticket__body { flex: 1; min-width: 0; padding: 12px 14px 12px 18px; display: flex; flex-direction: column; gap: 8px; }
.b5-ticket__top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.b5-codebox { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--cream); border: 1px dashed var(--cream-border); }
.b5-codebox .t365-code__v { flex: 1; min-width: 0; }
.b5-codebox__k { font-size: 11px; font-weight: 800; color: var(--ink-muted); letter-spacing: .04em; text-transform: uppercase; flex: none; }
.b5-ticket__serial { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.b5-ticket__serial .t365-mono { flex: 1; min-width: 0; word-break: break-all; }

/* Hộp hỏi lại email: máy tính giữa màn, điện thoại trượt từ đáy */
.b5-modal { position: fixed; inset: 0; z-index: 30; background: rgba(11,34,51,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.b5-modal__box { width: 100%; max-width: 440px; background: var(--surface); color: var(--ink); border-radius: 24px; padding: 22px; box-shadow: 0 30px 60px rgba(3,20,35,.35); display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; }
.b5-modal__box h2 { margin: 0; font: 900 20px/26px var(--font-sans); }
.b5-modal__email { padding: 14px; border-radius: 16px; background: var(--brand-soft); text-align: center; }
.b5-modal__email b { display: block; font-size: 20px; line-height: 28px; word-break: break-all; }
.b5-grip { display: none; align-self: center; width: 40px; height: 5px; border-radius: 9px; background: var(--grip); }

/* Ô mật khẩu có nút Hiện */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 64px; box-sizing: border-box; }
.pw-show { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-width: 52px; height: 40px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--brand); font: 800 13px var(--font-sans); cursor: pointer; }
.pw-ok { color: var(--action-ink); font-weight: 700; }

.t365-limit__fill.is-near { background: var(--warning); }
.t365-seg__btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* Thanh đáy trên điện thoại */
.b5-bar { display: none; }

/* Tin tức ở trang chủ */
.b5-news { max-width: 1200px; margin: 40px auto 0; padding: 0 24px; box-sizing: border-box; }
.b5-news__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.b5-news__head b { font-size: 22px; }
.b5-news__head a { color: var(--brand); font-weight: 800; text-decoration: none; }
.b5-news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.b5-news__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Trang Tin tức: tiêu đề, nút lọc theo loại thẻ, bài nổi bật, phân trang. */
.b5-news--page { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.b5-news__h1 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 900; color: var(--ink); }
.b5-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.b5-chips::-webkit-scrollbar { display: none; }
.b5-chips a { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--radius-full); border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.b5-chips a[aria-current] { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }
.b5-news__item.b5-news__lead { flex-direction: row; }
.b5-news__lead .b5-news__img { flex: 0 0 58%; aspect-ratio: 16 / 9; }
.b5-news__lead .b5-news__body { padding: 24px; justify-content: center; }
.b5-news__lead .b5-news__title { font-size: 24px; line-height: 31px; -webkit-line-clamp: 3; }
.b5-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.b5-pager a { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); font-weight: 800; text-decoration: none; }
.b5-pager > span { align-self: center; color: var(--ink-soft); }
.tv-orders .b5-pager { margin-top: 16px; gap: 6px; }
@media (max-width: 480px) { .tv-orders .b5-pager a { min-width: 40px; } .tv-orders .b5-pager a.is-near { display: none; } }
.b5-pager a[aria-current] { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }
@media (max-width: 1100px) { .b5-news__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.b5-news__item { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; border-radius: 20px; transition: transform .15s ease, box-shadow .15s ease; }
.b5-news__item:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 18px 40px rgba(11,58,87,.16); }
.b5-news__img { display: block; aspect-ratio: 16 / 9; background: var(--surface-muted); overflow: hidden; }
.b5-news__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b5-news__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.b5-news__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b5-news__sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.b5-news__date { margin-top: auto; }
.b5-news__tag { align-self: flex-start; display: inline-flex; height: 24px; align-items: center; padding: 0 10px; border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; }

/* Chân trang */
.b5-foot { margin-top: 56px; background: var(--foot-bg); color: var(--foot-ink); font-size: 13px; line-height: 20px; }
.b5-foot a { color: var(--on-brand-strong-muted); text-decoration: none; }
.b5-foot__top { max-width: 1200px; margin: 0 auto; padding: 28px 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-sizing: border-box; }
.b5-foot__top > img { height: 38px; width: auto; }
.b5-foot__bct img { display: block; height: 44px; width: auto; }
.b5-foot__grid { max-width: 1200px; margin: 0 auto; padding: 24px 24px 20px; display: grid; grid-template-columns: 1.5fr 1fr 1fr .8fr 1.3fr; gap: 32px; box-sizing: border-box; }
.b5-foot__co { display: flex; flex-direction: column; gap: 14px; }
.b5-foot__co p { margin: 0; }
.b5-foot__co b { color: var(--on-brand); }
.b5-foot__social { display: flex; gap: 8px; }
.b5-foot__social a { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.b5-foot__col summary { list-style: none; color: var(--on-brand); font-weight: 800; font-size: 14px; margin-bottom: 10px; pointer-events: none; }
.b5-foot__col summary::-webkit-details-marker { display: none; }
.b5-foot__col a { display: block; padding: 3px 0; }
.b5-foot__bottom { max-width: 1200px; margin: 0 auto; padding: 16px 24px 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 20px; box-sizing: border-box; }
.b5-foot__bottom span { flex: 1; }

/* Điện thoại */
@media (max-width: 899px) {
  .b5-top { height: 60px; padding: 0 16px; gap: 10px; }
  .b5-top__logo img { height: 32px; }
  .b5-top__nav, .b5-top__hotline { display: none; }
  .b5-top a { font-size: 14px; }
  .b5-hero--tall { padding-bottom: 70px; }
  .b5-herotext { padding: 2px 16px 0; display: block; }
  .b5-herotext h1 { font-size: 22px; line-height: 28px; }
  .b5-herotext p { display: block; }
  .b5-herotext .b5-chip { display: none; }
  .b5-pagehead { padding: 2px 16px 0; }
  .b5-pagehead h1 { font-size: 24px; line-height: 30px; }
  .b5-wrap, .b5-wrap--narrow { display: block; margin-top: -56px; padding: 0 10px; }
  .b5-main { padding: 16px; gap: 22px; }
  .b5-side { position: static; margin-top: 12px; }
  .b5-wrap--narrow { display: flex; flex-direction: column; margin-top: -48px; }
  .b5-wrap--narrow .b5-side { order: -1; margin: 0; padding: 14px 16px; gap: 10px; }
  .b5-wrap--narrow .b5-side .b5-sumitem { padding: 0; border: 0; }
  .b5-wrap--narrow .b5-side .b5-row, .b5-wrap--narrow .b5-side .b5-total { display: none; }
  .b5-wrap--narrow .b5-pms { background: transparent; box-shadow: none; padding: 16px 0 0; gap: 8px; }
  .b5-order.b5-wrap--narrow .b5-side { order: 0; margin-top: 12px; padding: 16px; }
  .b5-order.b5-wrap--narrow .b5-side .b5-row, .b5-order.b5-wrap--narrow .b5-side .b5-total { display: flex; }
  .b5-codebox__k { display: none; }
  .b5-pay.b5-wrap--narrow .b5-side { order: 0; margin-top: 12px; padding: 16px; }
  .b5-pay.b5-wrap--narrow .b5-side .b5-row, .b5-pay.b5-wrap--narrow .b5-side .b5-total { display: flex; }
  .b5-pay .b5-qr img { width: 220px; height: 220px; }
  .b5-wrap--buy .b5-main { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .b5-wrap--buy .b5-side { position: static; margin-top: -1px; padding: 0 16px 18px; border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: 0 14px 28px rgba(11,58,87,.10); }
  .b5-side--desk { display: none; }
  .b5-grid4.b5-dts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Thanh tổng tiền nổi trên điện thoại: nền đậm, bo tròn, tách khỏi nội dung (Hoàn góp ý 27/11). */
  .b5-bar { display: flex; position: fixed; z-index: 20; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 10px 10px 10px 16px; border-radius: 20px; background: var(--brand-strong); color: var(--on-brand); box-shadow: 0 14px 34px rgba(11,58,87,.38), 0 2px 6px rgba(11,58,87,.20); align-items: center; gap: 12px; }
  .b5-bar__t { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
  .b5-bar__t small { display: block; color: var(--hero-ink-muted); font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .b5-bar__t b { display: block; font-size: 23px; line-height: 28px; font-weight: 900; color: var(--on-brand); }
  .b5-bar .b5-btn { width: auto; height: 52px; padding: 0 20px; flex: none; }
  .kb-open .b5-bar { display: none; }
  .b5-bar .b5-btn:disabled { opacity: 1; background: rgba(255,255,255,.14); color: var(--hero-ink-muted); }
  .b5-page--bar { padding-bottom: 0; }
  /* Chừa chỗ cho thanh tổng tiền ở cuối trang (chân trang), không để khoảng trắng giữa nội dung. */
  body:has(.b5-page--bar) .b5-foot__bottom { padding-bottom: 112px; }
  /* Vùng bấm tối thiểu 44px trên điện thoại. */
  .b5-seg a { height: 44px; }
  .b5-qty { height: 54px; }
  .b5-qty button { width: 44px; height: 44px; }
  .b5-qty input { height: 44px; }
  .b5-qchips button { height: 44px; min-width: 48px; }
  .b5-modal { align-items: flex-end; padding: 0; }
  .b5-modal__box { max-width: none; border-radius: 24px 24px 0 0; padding: 14px 18px 22px; }
  .b5-grip { display: block; }
  .b5-news__grid, .b5-news__grid--4 { grid-template-columns: 1fr; gap: 12px; }
  .b5-news--page { margin-top: 16px; padding: 0 16px; gap: 14px; }
  .b5-news__h1 { font-size: 22px; line-height: 28px; }
  .b5-chips { margin: 0 -16px; padding: 0 16px 2px; }
  .b5-news__item.b5-news__lead { flex-direction: column; padding: 0; gap: 0; border-radius: 20px; align-items: stretch; }
  .b5-news__lead .b5-news__img { flex: none; width: 100%; border-radius: 0; }
  .b5-news__lead .b5-news__body { padding: 14px 16px 16px; }
  .b5-news__lead .b5-news__title { font-size: 18px; line-height: 24px; }
  .b5-news__lead .b5-news__sum { display: -webkit-box; }
  /* Điện thoại: ảnh nhỏ bên trái, chữ bên phải, gọn như danh sách tin. */
  .b5-news__item { flex-direction: row; align-items: center; border-radius: 16px; padding: 10px; gap: 12px; }
  .b5-news__img { flex: none; width: 128px; aspect-ratio: 16 / 9; border-radius: 10px; }
  .b5-news__body { padding: 0; gap: 4px; }
  .b5-news__title { font-size: 15px; line-height: 21px; -webkit-line-clamp: 3; }
  .b5-news__sum { display: none; }
  .b5-news__tag { height: 22px; font-size: 11px; }
  .b5-foot__grid { display: block; padding: 24px 16px 8px; }
  .b5-foot__col { border-bottom: 1px solid rgba(255,255,255,.08); }
  .b5-foot__col summary { pointer-events: auto; display: flex; justify-content: space-between; padding: 12px 0; margin: 0; }
  .b5-foot__col summary::after { content: "+"; }
  .b5-foot__col[open] summary::after { content: "−"; }
  .b5-foot__top { padding: 24px 16px 0; }
  .b5-foot__bottom { display: block; padding: 16px 16px 28px; }
  .b5-foot__bottom span { display: block; margin-top: 12px; font-size: 12px; }
}
@media (min-width: 900px) { .b5-side--mob { display: none; } }
/* Màn rất hẹp (360px): mệnh giá 7 chữ số vẫn nằm gọn trong ô. */
/* Điện thoại: "Giá bán" và số tiền trên một dòng (Hoàn góp ý 27/11). */
@media (max-width: 480px) {
  .b5-grid4.b5-dts { gap: 6px; }
  .b5-dt { padding: 10px 3px 8px; }
  .b5-dt__price { flex-wrap: nowrap; justify-content: center; gap: 3px; white-space: nowrap; }
  .b5-dt__price > span { font-size: 9.5px; font-weight: 600; }
  .b5-dt__price > b { font-size: 11.5px; letter-spacing: -.01em; }
  .b5-dt--long .b5-dt__price > b { font-size: 10.5px; }
}
@media (max-width: 380px) { .b5-dt { font-size: 15px; } .b5-dt--long .b5-dt__price > b { font-size: 9.5px; } }

/* ===== Trang thành viên (mẫu "Bản 5: trang thành viên", 26/11 khuya) ===== */
.tv { position: relative; width: 100%; max-width: 528px; margin: -120px auto 0; padding: 0 24px; box-sizing: border-box; }
.tv--auth { max-width: 1000px; margin-top: -150px; }
.tv--acc { max-width: 1100px; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.tv-card { padding: 28px 32px; display: flex; flex-direction: column; gap: 16px; }
.tv-card > p { margin: 0; }
.tv-head { max-width: 528px; }
.tv-head--acc { max-width: 1100px; }
.tv-mob { display: none; }
.tv-ic { align-self: center; width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--action-soft); color: var(--action-ink); }
.tv-ic--info { background: var(--brand-soft); color: var(--brand); }
.tv-ic--warn { background: var(--warning-soft); color: var(--warning); }
.tv-ic svg { width: 28px; height: 28px; }
.tv-center { text-align: center; }
.tv-title { margin: 0; font: 900 20px/28px var(--font-sans); text-align: center; }
.tv-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.tv-foot a, .tv-link { color: var(--brand); font-weight: 800; text-decoration: none; }
.tv-foot form { display: flex; align-items: center; gap: 6px; color: var(--ink-muted); }
.tv-linkbtn { border: 0; background: none; padding: 0; color: var(--brand); font: 800 14px var(--font-sans); cursor: pointer; }
.tv-linkbtn:disabled { color: var(--ink); cursor: default; }
.tv-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-strong); font-size: 14px; line-height: 21px; margin: 0; }
.tv-note::before { content: ""; flex: none; width: 20px; height: 20px; background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.tv-ok { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--action-soft); color: var(--success-ink); font-size: 14px; line-height: 21px; margin: 0; }
.tv-ok::before { content: ""; flex: none; width: 20px; height: 20px; background: var(--action-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.7 2.7L16 10'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.7 2.7L16 10'/%3E%3C/svg%3E") center / contain no-repeat; }
.tv .field { display: flex; flex-direction: column; gap: 6px; }
.tv .field > label { font-weight: 800; font-size: 14px; }
.tv .field input:not([type=checkbox]) { height: 52px; border-radius: 14px; border: 1.5px solid var(--border-input); padding: 0 14px 0 44px; font: 600 16px var(--font-sans); color: var(--ink); background: var(--surface) no-repeat 14px 50% / 20px 20px; box-sizing: border-box; width: 100%; }
.tv .field input:focus { outline: none; border: 2px solid var(--brand); box-shadow: 0 0 0 4px rgba(7,95,145,.10); }
.tv .field input.tv-plain { padding-left: 14px; }
.tv .pw-wrap input { padding-right: 64px; }
.tv .field input.tv-i-mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6680' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E"); }
.tv .field input.tv-i-lock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6680' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.tv .field input.tv-i-user { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6680' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E"); }
.tv .field input.tv-i-phone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6680' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='3' width='10' height='18' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.tv-otp { font: 700 26px var(--font-mono) !important; letter-spacing: .45em; text-align: center; padding: 0 0 0 .45em !important; height: 60px !important; }
.tv .t365-btn { height: 52px; border-radius: 14px; font-size: 16px; }
.tv .t365-btn--primary { box-shadow: 0 8px 18px rgba(46,125,50,.22); }
.tv-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.tv-row a { color: var(--brand); font-weight: 800; text-decoration: none; }
.tv-tabs { display: flex; border-bottom: 1.5px solid var(--border); }
.tv-tabs a { flex: 1; text-align: center; padding: 12px 0; font-weight: 800; color: var(--ink-muted); text-decoration: none; }
.tv-tabs a[aria-selected=true] { color: var(--brand-strong); box-shadow: inset 0 -3px 0 var(--brand); }
.tv-sub { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-muted); text-align: center; }
.tv-sub a { color: var(--brand); font-weight: 800; text-decoration: none; }
.tv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tv-opt { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--border); }
.tv-opt b { font-size: 16px; }
.tv-opt span { color: var(--ink-muted); font-size: 14px; line-height: 21px; }

/* Đăng nhập, đăng ký trên máy tính: thẻ 2 cột, cột trái giới thiệu trên nền xanh */
.tv-auth { display: grid; grid-template-columns: 420px minmax(0, 1fr); overflow: hidden; }
.tv-brand { position: relative; padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; color: var(--on-brand); }
.tv-brand h1 { position: relative; margin: 0; font: 900 28px/36px var(--font-sans); }
.tv-brand p { position: relative; margin: 0; font-size: 15px; line-height: 23px; color: var(--on-brand-strong-muted); }
.tv-art { position: relative; height: 300px; margin-top: auto; }
.tv-art span { position: absolute; border-radius: 14px; box-shadow: 0 14px 28px rgba(0,0,0,.25); padding: 12px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; color: var(--on-brand); font: 900 22px/1 var(--font-sans); }
.tv-art img { height: 18px; width: auto; align-self: flex-start; background: var(--logo-bg); padding: 3px 8px; border-radius: 8px; }
.tv-art .c1 { left: 180px; top: 10px; width: 170px; height: 106px; background: linear-gradient(135deg,var(--pub-zing-a),var(--pub-zing-b)); transform: rotate(12deg); }
.tv-art .c2 { left: 196px; top: 150px; width: 170px; height: 106px; background: linear-gradient(135deg,var(--pub-viettel-a),var(--pub-viettel-b)); transform: rotate(-6deg); }
.tv-art .c3 { left: 60px; top: 20px; width: 120px; height: 160px; transform: rotate(-8deg); background: var(--cream); border: 5px solid var(--brand); border-radius: 18px 44px 18px 18px; align-items: center; justify-content: center; color: var(--brand); font-size: 40px; }
.tv-art .c4 { left: 30px; top: 160px; width: 180px; height: 112px; background: linear-gradient(135deg,var(--pub-garena-a),var(--pub-garena-b)); transform: rotate(6deg); }
.tv-auth .tv-form { padding: 32px 40px; display: flex; flex-direction: column; gap: 18px; }

/* Tài khoản */
.tv-prof { padding: 24px; display: flex; flex-direction: column; gap: 0; }
.tv-who { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; }
.tv-ava { width: 52px; height: 52px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font: 900 20px/52px var(--font-sans); text-align: center; flex: none; }
.tv-who b { display: block; font-size: 19px; line-height: 26px; }
.tv-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--action-soft); color: var(--success-ink); }
.tv-badge--warn { background: var(--warning-soft); color: var(--warning-ink); }
.tv-badge--muted { background: var(--divider); color: var(--ink-muted); }
.tv-badge--info { background: var(--brand-soft); color: var(--brand-strong); }
.tv-kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid var(--divider); }
.tv-kv small { display: block; color: var(--ink-muted); font-size: 13px; }
.tv-kv b { font-size: 16px; }
.tv-chip { height: 32px; padding: 0 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; }
.tv-orders { padding: 22px 26px; }
.tv-orders h2 { margin: 0 0 4px; font: 900 20px/28px var(--font-sans); }
.tv-ord { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--divider); color: var(--ink); text-decoration: none; }
.tv-ord__lg { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--logo-bg); display: flex; align-items: center; justify-content: center; padding: 5px; box-sizing: border-box; flex: none; }
.tv-ord__lg img { max-width: 100%; max-height: 100%; }
.tv-ord__t { flex: 1; min-width: 0; }
.tv-ord__t b { display: block; font-size: 16px; }
.tv-ord__t small { display: block; color: var(--ink-muted); font-size: 12px; line-height: 18px; }
.tv-ord__r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tv-ord__r b { font-size: 16px; font-variant-numeric: tabular-nums; }

/* Đầu trang trên điện thoại: Tra cứu đơn + nút menu */
.b5-menu { display: none; position: relative; }
.b5-menu > summary { list-style: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.b5-menu > summary::-webkit-details-marker { display: none; }
.b5-menu nav { position: absolute; right: 0; top: 48px; z-index: 40; width: 240px; padding: 8px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; }
.b5-menu nav a { color: var(--ink) !important; padding: 12px 12px; border-radius: 10px; font-size: 15px !important; }
.b5-menu nav a.is-cta { background: var(--brand); color: var(--on-brand) !important; text-align: center; margin-top: 6px; }

@media (max-width: 899px) {
  .b5-top__login { display: none !important; }
  .b5-menu { display: block; }
  .tv, .tv--auth, .tv--acc { display: block; margin-top: -56px; padding: 0 10px; max-width: none; }
  .tv-head { max-width: none; }
  .tv-mob { display: block; }
  .tv-card { padding: 20px 16px; }
  .tv-auth { display: block; }
  .tv-brand { display: none; }
  .tv-auth .tv-form { padding: 20px 16px; }
  .tv-two { grid-template-columns: 1fr; }
  .tv-prof, .tv-orders { padding: 18px 16px; }
  .tv--acc .tv-orders { margin-top: 12px; }
}
@media (min-width: 900px) { .tv-desk-none { display: none; } }
.b5-pms > .b5-pm { width: 100%; box-sizing: border-box; }
.tv-orders .tv-sub { text-align: left; }

/* Trang mua theo loại thẻ /mua-the/{slug} (mẫu "Bản 5: trang mua theo loại thẻ", 27/11) */
.b5-lt { position: relative; max-width: 1200px; margin: 0 auto; padding: 12px 24px 0; box-sizing: border-box; display: flex; align-items: center; gap: 16px; }
.b5-lt__logo { width: 80px; height: 64px; border-radius: 14px; background: var(--logo-bg); display: flex; align-items: center; justify-content: center; padding: 6px; box-sizing: border-box; flex: none; color: var(--ink); }
.b5-lt__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.b5-lt__t { flex: 1; min-width: 0; }
.b5-lt h1 { margin: 2px 0 0; font: 900 36px/44px var(--font-sans); }
.b5-crumb { font-size: 13px; font-weight: 700; color: var(--brand-tint); }
.b5-crumb a { color: inherit; text-decoration: none; }
.b5-crumb a:hover { text-decoration: underline; }
.b5-guide { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: var(--on-brand); font-weight: 800; font-size: 14px; white-space: nowrap; text-decoration: none; }
.b5-guide:hover { background: rgba(255,255,255,.22); }
.b5-picked { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); }
.b5-picked > b { flex: 1; font-size: 16px; }
.b5-picked > a { color: var(--brand); font-weight: 800; font-size: 14px; text-decoration: none; }
.b5-lgb { width: 52px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--logo-bg); display: flex; align-items: center; justify-content: center; padding: 4px; box-sizing: border-box; flex: none; }
.b5-lgb img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.b5-ltc { max-width: 1200px; margin: 32px auto 0; padding: 0 24px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.b5-ltc__main { padding: 28px 32px; display: flex; flex-direction: column; gap: 22px; }
.b5-ltc__main h2 { margin: 0 0 8px; font: 900 24px/32px var(--font-sans); }
.b5-ltc__main p { margin: 0 0 8px; font-size: 16px; line-height: 26px; color: var(--ink-soft); }
.b5-ltc__side { padding: 22px; }
.b5-ltc__side h2 { margin: 0 0 6px; font: 900 18px/26px var(--font-sans); }
.b5-faq { border-bottom: 1px solid var(--divider); }
.b5-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 800; font-size: 16px; cursor: pointer; }
.b5-faq summary::-webkit-details-marker { display: none; }
.b5-faq summary::after { content: "+"; color: var(--brand); font-weight: 900; }
.b5-faq[open] summary::after { content: "−"; }
.b5-faq p { margin: 0 0 14px !important; font-size: 15px !important; line-height: 23px !important; }
.b5-ptab { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.b5-ptab th { font-size: 13px; color: var(--ink-muted); font-weight: 800; text-align: left; padding: 10px 12px; border-bottom: 1.5px solid var(--border); }
.b5-ptab td { padding: 12px; border-bottom: 1px solid var(--divider); }
.b5-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 99px; background: var(--warning-soft); color: var(--warning-ink); font-size: 12px; font-weight: 800; white-space: nowrap; }

/* Menu loại thẻ ở đầu trang */
.b5-dd { position: relative; }
.b5-dd > summary { list-style: none; cursor: pointer; color: var(--on-brand); font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.b5-dd > summary::-webkit-details-marker { display: none; }
.b5-dd > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .8; margin-left: 4px; }
.b5-dd > div { position: absolute; left: -12px; top: 36px; z-index: 40; width: 280px; padding: 10px; border-radius: 18px; background: var(--surface); box-shadow: 0 24px 48px rgba(3,20,35,.28); display: flex; flex-direction: column; }
.b5-dd > div small { padding: 4px 10px 6px; font: 800 12px var(--font-sans); letter-spacing: .04em; color: var(--ink-muted); text-transform: uppercase; }
.b5-dd > div a, .b5-menu .b5-mi { display: flex !important; align-items: center; gap: 12px; padding: 8px 10px !important; border-radius: 12px; color: var(--ink) !important; font-weight: 800; font-size: 15px !important; text-decoration: none; }
.b5-dd > div a[aria-current], .b5-menu .b5-mi[aria-current] { background: var(--brand-soft); }
.b5-dd .b5-lgb, .b5-menu .b5-lgb { width: 56px; height: 36px; border-radius: 9px; }
.b5-menu nav small { padding: 10px 10px 4px; font: 800 12px var(--font-sans); letter-spacing: .04em; color: var(--ink-muted); text-transform: uppercase; }
.b5-menu nav hr { border: 0; border-top: 1px solid var(--border); margin: 8px 0; width: 100%; }

@media (max-width: 899px) {
  .b5-lt { padding: 2px 16px 0; flex-wrap: wrap; gap: 12px; }
  .b5-lt__logo { width: 64px; height: 50px; border-radius: 12px; }
  .b5-lt h1 { font-size: 24px; line-height: 30px; }
  .b5-lt__t { flex: 1 1 calc(100% - 80px); }
  .b5-guide { order: 3; }
  .b5-ltc { display: flex; flex-direction: column; align-items: stretch; margin-top: 12px; padding: 0 10px; gap: 12px; }
  .b5-ltc__main { display: contents; }
  .b5-ltc__main > div { background: var(--surface); border-radius: 20px; padding: 18px 16px; box-shadow: 0 14px 28px rgba(11,58,87,.10); }
  .b5-ltc__main > div:first-child { order: 1; }
  .b5-ltc__side { order: 2; padding: 18px 16px; }
  .b5-ltc__main > div:nth-child(2) { order: 3; }
  .b5-ltc__main h2 { font-size: 20px; line-height: 28px; }
  .b5-menu nav { width: calc(100vw - 20px); right: -6px; max-height: calc(100vh - 80px); overflow: auto; }
}
.b5-ltc--only { grid-template-columns: minmax(0, 1fr); max-width: 640px; }

/* Viền khi đi bằng bàn phím: mọi nút, đường dẫn, ô nhập đều thấy đang ở đâu (rà soát 27/11). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
:where(label):has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 12px; }
:where(label):has(input[type=checkbox]:focus-visible) { outline: 0; }
.b5-hero :where(a, button):focus-visible, .b5-foot :where(a, button, summary):focus-visible { outline-color: var(--on-brand); }
.tv .field input.t365-mono { font-family: var(--font-mono); letter-spacing: .02em; }

/* Thẻ data (02/12): nhãn DATA trên logo nhà mạng, ô gói ghi dung lượng · hạn dùng, nhóm theo hạn dùng, dòng cách nạp. */
.b5-pt__tag { position: absolute; top: -8px; left: 6px; font-size: 9px; font-weight: 900; letter-spacing: .04em; line-height: 14px; padding: 0 5px; border-radius: 5px; color: var(--on-brand); background: var(--brand); }
.b5-dgh { margin: 0 0 -4px; font-size: 13px; font-weight: 800; color: var(--ink-muted); }
.b5-dt--pack .b5-dt__face { font-size: 19px; }
.b5-dt__price > s { font-size: 11px; font-weight: 700; color: var(--ink-muted); }
.b5-dt:has(input:checked) .b5-dt__price > s { color: rgba(255,255,255,.75); }
@media (max-width: 899px) {
  .b5-grid4.b5-dts.b5-dts--pack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .b5-seg a { font-size: 13px; }
  .b5-dt--pack { padding: 10px 6px 8px; }
  .b5-dt--pack .b5-dt__price > b { font-size: 13px; }
}
/* % giảm so với mệnh giá (Hoàn chốt 02/12): góc ô gói, đáy ô nhà mạng. */
.b5-dt .b5-dt__pct { position: absolute; top: -8px; right: 8px; font-size: 10.5px; line-height: 16px; font-weight: 900; padding: 0 5px; border-radius: 5px; color: var(--on-accent); background: var(--accent); }
.b5-dt:has(input:checked) .b5-dt__pct { color: var(--on-accent); }
.b5-pt__pct { position: absolute; bottom: -1px; left: 50%; transform: translate(-50%, 50%); font-size: 10px; font-weight: 900; line-height: 16px; padding: 0 6px; border-radius: 6px; white-space: nowrap; color: var(--on-accent); background: var(--accent); }
.b5-grid4.b5-dts.b5-dts--pack { row-gap: 16px; padding-top: 6px; }
/* Gói thẻ data theo EsimPackage: ô chọn là input radio thật (gửi form), trạng thái chọn lấy theo :checked. */
.b5-pkgs { display: flex; flex-direction: column; gap: 10px; }
.b5-pkg[hidden] { display: none; }
.b5-pkg:has(input:checked) { border: 2px solid var(--brand); background: var(--brand-soft); box-shadow: var(--shadow-selected); }
.b5-pkg:has(input:checked) .t365-pkg__dot { border: 6px solid var(--brand); }
.b5-pkg:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.b5-pkg.is-off { opacity: .5; cursor: not-allowed; }
.b5-pkg__off { font: 800 12px/16px var(--font-sans); color: var(--warning); }

/* Cách nạp dùng Alert info (Design 02/12); chỉ bỏ cột thứ 3 vì không có nút đóng. */
.b5-howto { grid-template-columns: 24px 1fr; margin: 0; }
.b5-sh__count { margin-left: auto; font: 800 13px/18px var(--font-sans); color: var(--brand); white-space: nowrap; }

/* ===== eSIM du lịch (03/12, theo mẫu Design 01/12: TCE, Esim, NB, CTG, Don, HT) ===== */
.b5-top__esim { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 4px; border-bottom: 3px solid transparent; }
.b5-top__esim.is-on { border-bottom-color: var(--chip-dot); }
.b5-new { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; border-radius: 5px; background: var(--success); color: var(--on-brand); font: 900 9px/16px var(--font-sans); letter-spacing: .04em; text-transform: uppercase; }
.b5-menu .b5-mi .b5-new { margin-left: 4px; }

/* Tab sản phẩm trang chủ */
.b5-ps { position: relative; max-width: 1200px; margin: -120px auto 0; padding: 0 24px; box-sizing: border-box; }
.b5-ps .t365-pswitch { max-width: calc(100% - 420px); }
.b5-wrap--tabbed { margin-top: 0; }
.b5-wrap--tabbed > .b5-main { border-top-left-radius: 0; }
.b5-etab__h { margin: 0; font: 900 20px/28px var(--font-sans); }
.b5-etab__side { gap: 14px; }

/* Một cột (trang /esim, cách cài) */
.b5-wrap--one { display: flex; flex-direction: column; gap: 20px; }
.b5-wrap--mid { max-width: 820px; }
.b5-ehero { position: relative; max-width: 1200px; margin: 0 auto; padding: 12px 24px 0; box-sizing: border-box; }
.b5-ehero h1 { margin: 6px 0 6px; font: 900 36px/44px var(--font-sans); max-width: 720px; }
.b5-ehero p { margin: 0; max-width: 560px; color: var(--hero-ink-soft); font-size: 16px; line-height: 24px; }
.b5-main h2 { margin: 0; font: 900 22px/30px var(--font-sans); }
.b5-esec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.b5-elist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 22px; }
.b5-eall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 16px; }
.b5-eall a { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.b5-eall a:hover { color: var(--brand); }

/* Chọn nơi đến */
.b5-epick { display: flex; flex-direction: column; gap: 16px; }
.b5-esearch { position: relative; }
.b5-esearch__box { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink-muted); }
.b5-esearch__box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.b5-esearch__box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 600 16px var(--font-sans); color: var(--ink); }
.b5-esearch__list { position: absolute; z-index: 25; left: 0; right: 0; top: 58px; margin: 0; padding: 6px; list-style: none; border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 24px 48px rgba(3,20,35,.22); }
.b5-esearch__list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.b5-esearch__list a b { flex: 1; font-size: 15px; }
.b5-esearch__list a > .b5-mut { font-size: 13px; white-space: nowrap; }
.b5-esearch__list [aria-selected="true"] a, .b5-esearch__list a:hover { background: var(--brand-soft); }
.b5-esearch__none { margin: 8px 0 0; }
.b5-dests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.b5-regions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.b5-etab .b5-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b5-dests .t365-dest, .b5-regions .t365-dest { min-width: 0; }
.t365-dest:hover { border-color: var(--brand); }
.t365-dest > span:last-child { min-width: 0; }
.t365-dest__name { overflow-wrap: anywhere; }
.b5-more { align-self: flex-start; color: var(--brand); font-weight: 800; font-size: 14px; text-decoration: none; }
.b5-esub { font: 900 16px/22px var(--font-sans); margin-top: 4px; }

/* 3 bước */
.b5-esteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.b5-esteps li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.b5-esteps i { width: 24px; height: 24px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font: 900 12px/24px var(--font-sans); text-align: center; font-style: normal; }
.b5-esteps b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.b5-ehow .b5-esteps { flex-direction: row; gap: 24px; }
.b5-ehow .b5-esteps li { flex: 1; }

/* Trang một nước / vùng */
.b5-lt--esim .t365-flag--xl { box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.b5-lt--esim .t365-flag--region { background: rgba(255,255,255,.95); }
.b5-lt--esim .t365-flag--cluster { box-shadow: none; background: rgba(255,255,255,.95); }
.b5-lt__meta { display: block; margin-top: 4px; color: var(--hero-ink-soft); font-size: 14px; font-weight: 600; }
.b5-sh--row { display: flex; justify-content: space-between; }
.b5-sh--row > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.b5-logo--flag { padding: 0; border: 0; background: transparent; }
.b5-ebuy .b5-pkgs { gap: 10px; }
.b5-ebuy .b5-dayq { display: block; margin: 4px 0 -4px; }
.b5-ebuy .t365-chips { flex-wrap: wrap; margin: 0 0 2px; }
.b5-ebuy .b5-ck a { white-space: nowrap; }

/* Hộp chi tiết gói */
.b5-dlg { padding: 0; border: 0; background: transparent; max-width: 560px; width: calc(100% - 32px); }
.b5-dlg::backdrop { background: rgba(11,34,51,.55); }
.b5-dlg__box { position: relative; background: var(--surface); color: var(--ink); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 64px); overflow: auto; box-sizing: border-box; }
.b5-dlg .b5-grip { display: none; }
.b5-dlg__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 99px; background: transparent; color: var(--ink-muted); font-size: 24px; cursor: pointer; }
.b5-dlg__btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.b5-edet { display: flex; flex-direction: column; gap: 14px; }
.b5-edet__k { font: 900 12px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.b5-edet__head { display: flex; align-items: center; gap: 12px; }
.b5-edet__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.b5-edet__t .b5-mut { font-size: 13px; }
.b5-edet__t b { font: 900 22px/28px var(--font-sans); }
.b5-edet__price { font: 900 22px/28px var(--font-sans); font-variant-numeric: tabular-nums; }
.b5-edet__rows { margin: 0; display: flex; flex-direction: column; }
.b5-edet__rows > div { display: grid; grid-template-columns: 45% 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--divider); font-size: 14px; line-height: 20px; }
.b5-edet__rows dt { color: var(--ink-muted); }
.b5-edet__rows dd { margin: 0; }
.b5-edet__cov { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.b5-edet__cov li { display: grid; grid-template-columns: 20px auto 1fr; gap: 8px; align-items: center; }
.b5-edet__cov li .b5-mut { text-align: right; }
.b5-edet .b5-link { margin-top: 6px; color: var(--brand); font-weight: 800; }

/* Trang đơn eSIM */
.b5-esims { display: flex; flex-direction: column; gap: 14px; }
.b5-eqr { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.b5-einfo { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.b5-btn--ios { background: var(--brand); }
.b5-btn--and { background: var(--brand-strong); }
.b5-eother { margin: -4px 0 0; }
.b5-emanual { grid-column: 1 / -1; border-top: 1px solid var(--divider); padding-top: 10px; }
.b5-emanual > summary { list-style: none; display: flex; justify-content: space-between; cursor: pointer; font-weight: 800; font-size: 14px; }
.b5-emanual > summary::-webkit-details-marker { display: none; }
.b5-emanual > summary::after { content: "+"; color: var(--brand); font-weight: 900; }
.b5-emanual[open] > summary::after { content: "−"; }
.b5-emanual .t365-esim__manual { margin-top: 10px; }
.b5-ocol { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.b5-ocol .b5-side { position: static; }
.b5-ocol .b5-eguide { padding: 22px; gap: 14px; }
.b5-ocol .b5-eguide h2 { font-size: 18px; line-height: 26px; }
.b5-guide2 { display: flex; flex-direction: column; gap: 14px; }
.b5-esteps--plain li { font-size: 14px; }

@media (max-width: 1100px) { .b5-dests { grid-template-columns: repeat(3, minmax(0, 1fr)); } .b5-eall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .b5-ps { margin-top: -56px; padding: 0 10px; }
  .b5-ps .t365-pswitch { max-width: none; }
  .b5-wrap--tabbed { margin-top: 0; }
  .b5-wrap--tabbed > .b5-main { border-top-right-radius: 0; }
  .b5-ehero { padding: 2px 16px 0; }
  .b5-ehero h1 { font-size: 26px; line-height: 32px; }
  .b5-ehero p { font-size: 14px; line-height: 21px; }
  .b5-wrap--one { gap: 12px; }
  .b5-wrap--one .b5-main { margin: 0; }
  .b5-main h2 { font-size: 20px; line-height: 28px; }
  .b5-dests { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .b5-regions, .b5-etab .b5-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .t365-dest { padding: 10px; gap: 10px; }
  .t365-dest .t365-flag--lg { width: 36px; height: 27px; }
  .t365-dest .t365-flag--region.t365-flag--lg { width: 36px; height: 36px; }
  .t365-dest .t365-flag--cluster.t365-flag--lg { width: 4.6em; height: 3.6em; font-size: 9px; }
  .b5-eall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b5-ehow .b5-esteps { flex-direction: column; gap: 14px; }
  .b5-etab__side { margin-top: 12px; }
  .b5-lt--esim .t365-flag--xl { width: 48px; height: 36px; }
  .b5-lt--esim .t365-flag--region.t365-flag--xl { width: 48px; height: 48px; }
  .b5-lt--esim .t365-flag--cluster.t365-flag--xl { width: 4.6em; height: 3.6em; font-size: 12px; }
  .b5-lt__meta { font-size: 13px; }
  .b5-dlg { max-width: none; width: 100%; margin: auto 0 0; }
  .b5-dlg__box { border-radius: 24px 24px 0 0; padding: 12px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 88vh; }
  .b5-dlg .b5-grip { display: block; align-self: center; }
  .b5-dlg__x { top: 10px; right: 8px; width: 44px; height: 44px; }
  .b5-dlg__btns { grid-template-columns: 1fr; }
  .b5-dlg__btns .b5-btn2 { display: none; }
  .b5-edet__t b, .b5-edet__price { font-size: 19px; line-height: 24px; }
  .b5-edet__rows > div { grid-template-columns: 42% 1fr; }
  .b5-edet__cov li { grid-template-columns: 20px 1fr; }
  .b5-edet__cov li .b5-mut { grid-column: 2; text-align: left; }
  .b5-ocol { gap: 12px; margin-top: 12px; }
  .b5-ocol .b5-side { margin-top: 0; }
  .b5-ebuy .t365-chips { flex-wrap: nowrap; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
}
.t365-esim__install .b5-btn { height: 46px; padding: 0 10px; font-size: 15px; white-space: nowrap; }
@media (max-width: 599px) {
  /* Điện thoại: nút Cài lên trước mã QR (khách thường mở trang trên chính máy cần cài), theo mẫu Design. */
  .b5-einfo { display: contents; }
  .t365-esim__body > .t365-esim__install, .b5-einfo > .t365-esim__install { order: -2; }
  .b5-eother { order: -1; text-align: center; margin: -8px 0 0; }
  .t365-esim__install .b5-btn { height: 50px; font-size: 16px; }
}

/* Báo thẻ lỗi, hồ sơ thẻ lỗi (03/12) */
.tv--mid { max-width: 640px; }
.b5-bl { border: 0; margin: 0; padding: 0; gap: 10px; }
.b5-bl__h { font: 800 16px/22px var(--font-sans); margin-bottom: 4px; padding: 0; }
.b5-bl__tag { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 6px; background: var(--warning-soft); color: var(--warning-ink); font-size: 11px; line-height: 18px; vertical-align: 1px; }
.b5-cases { display: flex; flex-direction: column; gap: 10px; }
.b5-case { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 20px; }
.b5-case__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.b5-case__top b { font-size: 15px; }
.b5-rep { margin-top: 6px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--brand-soft); display: flex; flex-direction: column; gap: 4px; }
.t365-usage__bar i.w0 { width: 0%; }
.t365-usage__bar i.w5 { width: 5%; }
.t365-usage__bar i.w10 { width: 10%; }
.t365-usage__bar i.w15 { width: 15%; }
.t365-usage__bar i.w20 { width: 20%; }
.t365-usage__bar i.w25 { width: 25%; }
.t365-usage__bar i.w30 { width: 30%; }
.t365-usage__bar i.w35 { width: 35%; }
.t365-usage__bar i.w40 { width: 40%; }
.t365-usage__bar i.w45 { width: 45%; }
.t365-usage__bar i.w50 { width: 50%; }
.t365-usage__bar i.w55 { width: 55%; }
.t365-usage__bar i.w60 { width: 60%; }
.t365-usage__bar i.w65 { width: 65%; }
.t365-usage__bar i.w70 { width: 70%; }
.t365-usage__bar i.w75 { width: 75%; }
.t365-usage__bar i.w80 { width: 80%; }
.t365-usage__bar i.w85 { width: 85%; }
.t365-usage__bar i.w90 { width: 90%; }
.t365-usage__bar i.w95 { width: 95%; }
.t365-usage__bar i.w100 { width: 100%; }
.b5-ticket--off { opacity: .72; }
.b5-ticket--off .t365-code__v { text-decoration: line-through; }
.b5-ticket__off { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--danger); }
.b5-ticket__off a { color: inherit; }
.b5-ticket--off .b5-codebox .t365-copy { display: none; }
/* Icon nét (Services/Icons.cs) */
.t365-i { flex: none; display: inline-block; vertical-align: -0.2em; }
.b5-btn .t365-i { margin-left: 6px; }
.b5-back, .tv-foot a { display: inline-flex; align-items: center; gap: 2px; }
.b5-pm__ic .t365-i { width: 22px; height: 22px; }
.t365-status__icon .t365-i { width: 24px; height: 24px; stroke-width: 2.4; }
/* Menu điện thoại gọn: nhóm thu lại, bấm mới mở danh sách loại thẻ (Hoàn 03/12) */
.b5-mnav { gap: 2px; }
.b5-mnav .b5-mrow { display: flex !important; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px !important; border-radius: 12px; color: var(--ink) !important; font: 800 15px var(--font-sans) !important; text-decoration: none; cursor: pointer; list-style: none; }
.b5-mnav .b5-mrow::-webkit-details-marker { display: none; }
.b5-mnav .b5-mrow > span:first-of-type { flex: 1; }
.b5-mnav .b5-mrow small { padding: 0; font: 700 12px var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
.b5-mnav .b5-mrow.is-cur, .b5-mnav .b5-mrow:hover { background: var(--surface-sunken); }
.b5-mrow__ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); box-sizing: border-box; }
.b5-mrow__chev { color: var(--ink-muted); transition: transform .15s; }
.b5-mgrp[open] > summary .b5-mrow__chev { transform: rotate(180deg); }
.b5-mgrp[open] > summary { background: var(--surface-sunken); }
.b5-mgrp__list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px 2px 8px; }
.b5-mnav .b5-mgrp__list .b5-mi { flex-direction: column; align-items: flex-start !important; gap: 6px !important; padding: 8px !important; font-size: 13px !important; border: 1px solid var(--border); }
.b5-mnav .b5-mgrp__list .b5-lgb { width: 48px; height: 30px; }
.b5-mnav a.is-cta { display: flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 48px; }
.b5-seg a { gap: 6px; }
@media (max-width: 400px) { .b5-seg a .t365-i { display: none; } }
textarea, input, select, button { font-family: inherit; }
/* Liên kết "Xem tất cả" có icon mũi tên nét (thay ký tự ›). */
.b5-news__head a, .b5-more, .b5-link { display: inline-flex; align-items: center; gap: 2px; }
.b5-link { justify-content: center; }
.b5-pager a { display: inline-flex; align-items: center; justify-content: center; }
/* Điện thoại rất hẹp (320–359px, như iPhone SE đời đầu, Android nhỏ): ô nước, vùng gọn hơn để tên không gãy chữ. */
@media (max-width: 359px) {
  .b5-dests, .b5-regions, .b5-etab .b5-regions { gap: 6px; }
  .t365-dest { padding: 8px; gap: 8px; }
  .t365-dest .t365-flag--lg { width: 28px; height: 21px; }
  .t365-dest .t365-flag--cluster.t365-flag--lg { font-size: 7px; }
  .t365-dest__name { font-size: 14px; line-height: 18px; overflow-wrap: normal; }
  .t365-dest__sub { white-space: nowrap; font-size: 12px; }
  .b5-sh { white-space: nowrap; }
}
/* Máy tính nhỏ, máy tính bảng ngang (900–1199px): đầu trang một dòng, ẩn số hotline (vẫn có ở chân trang, trang Liên hệ). */
.b5-top a, .b5-top summary, .b5-top__nav > * { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1199px) {
  .b5-top { gap: 16px; }
  .b5-top__nav { gap: 14px; }
  .b5-top a, .b5-top summary { font-size: 14px; }
  .b5-top__hotline { display: none; }
}
/* Form yêu cầu hỗ trợ: ô chọn file theo giao diện the365 (thay nút mặc định của trình duyệt), ô ngày giờ không tràn màn hẹp. */
[data-ho-tro] input, [data-ho-tro] select, [data-ho-tro] textarea { min-width: 0; max-width: 100%; }
[data-ho-tro] input[type="datetime-local"] { width: 100%; }
.ht-file { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px; border: 1.5px dashed var(--border-strong, #C9D3DE); border-radius: 12px; background: var(--surface); }
.ht-file__in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ht-file__btn { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; }
.ht-file__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted, #5B6475); font-size: 14px; }
.ht-file:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.tv [data-ho-tro] fieldset { min-width: 0; }
.tv [data-ho-tro] .field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]) { padding-left: 14px; }
