/**
 * MỤC ĐÍCH: Trang Hội viên — đầu trang + 2 tab, danh sách (bảng ⇒ thẻ trên mobile), trang chi tiết (thẻ hội viên đỏ, thông tin, khung nội bộ).
 * PHỤ THUỘC: site.css (token màu, font, .vbf-shell). Nạp ở inc/members.php chỉ trên trang hội viên.
 * ADMIN SỬA ĐƯỢC: không. MỞ RỘNG: không. GỠ AN TOÀN: xoá file ⇒ trang hội viên mất định dạng, nội dung còn.
 */
.vbf-mpage { --m-red: #d7141d; --m-ink: #111827; --m-mute: #6b7280; --m-line: #eceef2; background: #f6f5f3; padding: 22px 0 64px; }

/* ── đầu trang ── */
.vbf-mhero { position: relative; overflow: hidden; isolation: isolate; min-height: 300px; background: #08080a; color: #fff; }
.vbf-mhero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.vbf-mhero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 8, 10, .92) 0, rgba(8, 8, 10, .72) 34%, rgba(8, 8, 10, .2) 62%, rgba(8, 8, 10, .1) 100%); }
.vbf-mhero__in { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding-top: 34px; box-sizing: border-box; }
.vbf-mhero__crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 13px/1.3 var(--vbf-font); color: rgba(255, 255, 255, .78); }
.vbf-mhero__crumbs a { color: inherit; } .vbf-mhero__crumbs a:hover { color: #fff; }
.vbf-mhero__title { position: relative; margin: 14px 0 0; padding-bottom: 12px; font: 900 clamp(38px, 4.4vw, 58px)/1 var(--vbf-font-head, var(--vbf-font)); letter-spacing: -.01em; text-transform: uppercase; color: #fff; }
.vbf-mhero__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: #e01b24; }
.vbf-mhero__sub { margin: 12px 0 0; font: 500 clamp(14px, 1.3vw, 18px)/1.2 var(--vbf-font); letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .92); }
.vbf-mtabs { display: flex; margin-top: 28px; }
.vbf-mtabs a { display: inline-flex; align-items: center; gap: 12px; min-width: 230px; padding: 15px 26px; border-radius: 12px 12px 0 0; background: #fff; color: var(--vbf-ink, #111827); font: 700 15px/1 var(--vbf-font); box-sizing: border-box; justify-content: center; transition: background .2s ease, color .2s ease; }
.vbf-mtabs a .vbf-ico { font-size: 20px; color: #111827; }
.vbf-mtabs a.is-on { background: linear-gradient(180deg, #e01b24, #b80f17); color: #fff; }
.vbf-mtabs a.is-on .vbf-ico { color: #fff; }
.vbf-mtabs a:not(.is-on):hover { background: #f3f3f3; }

/* ── thẻ trắng chung ── */
.vbf-mcard { padding: 22px 24px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.vbf-mcard + .vbf-mcard { margin-top: 14px; }
.vbf-mhead { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--m-line); font: 800 17px/1.2 var(--vbf-font); text-transform: uppercase; color: var(--m-ink); }
.vbf-mhead .vbf-ico { font-size: 22px; color: var(--m-red); }

/* ── danh sách ── */
.vbf-mlist { margin-top: -2px; border-top-left-radius: 0; }
.vbf-mf { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto; gap: 12px 14px; align-items: end; }
.vbf-mf p { margin: 0; }
.vbf-mf__q { position: relative; }
.vbf-mf__q .vbf-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; color: #4b5563; }
.vbf-mf input[type=search], .vbf-mf select, .vbf-mpager select { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #e3e5ea; border-radius: 10px; background: #fff; font: 500 14px/1 var(--vbf-font); color: var(--m-ink); box-sizing: border-box; }
.vbf-mf input[type=search] { padding-left: 46px; }
.vbf-mf input:focus, .vbf-mf select:focus { outline: 0; border-color: var(--m-red); box-shadow: 0 0 0 3px rgba(215, 20, 29, .12); }
.vbf-mf__f label { display: block; margin-bottom: 7px; font: 500 12.5px/1 var(--vbf-font); color: var(--m-mute); }
.vbf-mf__sel { position: relative; display: block; }
.vbf-mf__sel .vbf-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 17px; color: #374151; pointer-events: none; }
.vbf-mf__sel select { padding-left: 40px; }
.vbf-mf__go { display: flex; align-items: center; gap: 18px; }
.vbf-mf__go button { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #e01b24, #b80f17); color: #fff; font: 700 14.5px/1 var(--vbf-font); cursor: pointer; white-space: nowrap; }
.vbf-mf__go button:hover { filter: brightness(1.06); }
.vbf-mf__go a { display: inline-flex; align-items: center; gap: 7px; font: 500 13.5px/1 var(--vbf-font); color: var(--m-ink); text-decoration: underline; white-space: nowrap; }
.vbf-mf__bar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.vbf-mf__count { font: 400 14px/1.4 var(--vbf-font); color: #374151; }
.vbf-mf__count strong { color: var(--m-ink); }
.vbf-mf__sort { display: flex; align-items: center; gap: 12px; font: 500 13.5px/1 var(--vbf-font); }
.vbf-mf__sort select { width: 150px; height: 40px; }

.vbf-mtable { margin-top: 14px; }
.vbf-mrow { display: grid; grid-template-columns: 1fr 1.4fr .7fr 1.3fr 1.7fr 1.2fr 1.1fr .9fr; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--m-line); font: 400 14px/1.35 var(--vbf-font); color: #1f2937; transition: background .15s ease; }
.vbf-mrow--org { grid-template-columns: 1.15fr 1.9fr 1.1fr 1.2fr .9fr 1.25fr 1.05fr .9fr; }
.vbf-mrow--head { border-radius: 10px; border-bottom: 0; background: #f3f4f6; font: 700 12px/1.3 var(--vbf-font); letter-spacing: .02em; text-transform: uppercase; color: #374151; }
a.vbf-mrow:hover { background: #fbf6f6; }
.vbf-mrow__code { display: flex; align-items: center; gap: 10px; }
.vbf-mrow__code strong { font-weight: 800; color: var(--m-ink); white-space: nowrap; }
.vbf-mrow__name { font-weight: 600; color: var(--m-ink); }
.vbf-mrow__prov { display: inline-flex; align-items: center; gap: 7px; }
.vbf-mrow__prov .vbf-ico { font-size: 16px; color: #374151; }
.vbf-mbadge { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fdecee; color: var(--m-red); font: 800 12px/1 var(--vbf-font); overflow: hidden; }
.vbf-mbadge--img { background: none; } .vbf-mbadge img { width: 100%; height: 100%; object-fit: contain; }
.vbf-mst { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.vbf-mst::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.vbf-mst--active { color: #0e9f6e; } .vbf-mst--paused { color: #d97706; } .vbf-mst--expired { color: #9ca3af; } .vbf-mst--none::before { display: none; }
.vbf-mempty { padding: 28px 0 8px; color: var(--m-mute); }

.vbf-mpager { position: relative; display: flex; align-items: center; justify-content: center; margin-top: 22px; min-height: 42px; }
.vbf-mpager__nav { display: flex; gap: 8px; }
.vbf-mpager__nav .page-numbers { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border: 1px solid #e3e5ea; border-radius: 9px; background: #fff; font: 600 14px/1 var(--vbf-font); color: var(--m-ink); box-sizing: border-box; }
.vbf-mpager__nav .page-numbers.current { border-color: var(--m-red); background: var(--m-red); color: #fff; }
.vbf-mpager__nav .prev, .vbf-mpager__nav .next { border-radius: 50%; }
.vbf-mpager__nav .dots { border: 0; background: none; }
.vbf-mpager__per { position: absolute; right: 0; display: flex; align-items: center; gap: 10px; font: 500 13.5px/1 var(--vbf-font); color: #374151; }
.vbf-mpager__per select { width: 74px; height: 40px; }

/* ── chi tiết ── */
.vbf-mdetail__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.vbf-mdetail.has-private .vbf-mdetail__grid { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); }
.vbf-mid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; max-width: 560px; margin: 4px auto 6px; padding: 26px 28px; border-radius: 18px; color: #fff; overflow: hidden; isolation: isolate;
	background: radial-gradient(120% 140% at 100% 0%, rgba(255, 70, 70, .35), transparent 55%), linear-gradient(135deg, #5c0a0e 0%, #9e1118 45%, #6d0b10 100%); box-shadow: 0 18px 40px rgba(120, 10, 16, .28); }
.vbf-mid::before { content: ""; position: absolute; right: -60px; bottom: -80px; z-index: -1; width: 320px; height: 320px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 46px rgba(255, 255, 255, .025); }
.vbf-mid::after { content: ""; position: absolute; left: 40%; top: -40%; z-index: -1; width: 2px; height: 180%; background: rgba(255, 255, 255, .08); transform: rotate(28deg); }
.vbf-mid__top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.vbf-mid__logo { width: 64px; height: 64px; border-radius: 50%; }
.vbf-mid__top strong { display: block; font: 800 15px/1.2 var(--vbf-font); text-transform: uppercase; }
.vbf-mid__top small { display: block; margin-top: 4px; font: 500 9.5px/1 var(--vbf-font); letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.vbf-mid__kind { margin: 0; font: 600 12px/1 var(--vbf-font); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.vbf-mid__name { margin: 8px 0 0; font: 900 clamp(22px, 2.3vw, 30px)/1.15 var(--vbf-font); text-transform: uppercase; }
.vbf-mid__meta { display: flex; gap: 22px; margin: 16px 0 0; }
.vbf-mid__meta div + div { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .25); }
.vbf-mid__meta dt { font: 500 12px/1 var(--vbf-font); color: rgba(255, 255, 255, .8); }
.vbf-mid__meta dd { margin: 7px 0 0; font: 800 19px/1 var(--vbf-font); letter-spacing: .01em; }
.vbf-mid__qr { align-self: end; display: grid; place-items: center; width: 104px; height: 104px; padding: 9px; border-radius: 12px; background: #fff; box-sizing: border-box; }
.vbf-mid__qr svg { width: 100% !important; height: auto !important; }
.vbf-mid__qr a { color: #111; font-size: 11px; text-align: center; }
.vbf-mid__share { grid-column: 1 / -1; display: flex; justify-content: flex-end; margin-top: -8px; }
.vbf-mid__share .vbf-qrshare { margin: 0; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); }
.vbf-mid__share .vbf-qrshare:hover { background: rgba(255, 255, 255, .24); }

.vbf-minfo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; margin: 0; }
.vbf-minfo--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.vbf-minfo div { display: grid; grid-template-columns: 26px minmax(110px, auto) minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 13px 0; border-bottom: 1px solid var(--m-line); }
.vbf-minfo--3 div { grid-template-columns: 26px minmax(0, 1fr); align-items: start; }
.vbf-minfo .vbf-ico { font-size: 20px; color: #374151; }
.vbf-minfo--3 .vbf-ico { grid-row: span 2; margin-top: 4px; }
.vbf-minfo dt { font: 400 13.5px/1.3 var(--vbf-font); color: var(--m-mute); }
.vbf-minfo dd { margin: 0; font: 500 15px/1.35 var(--vbf-font); color: var(--m-ink); }

.vbf-mpriv { position: sticky; top: calc(var(--vbf-head-h, 72px) + 16px); }
.vbf-mpriv details > summary { cursor: pointer; list-style: none; padding: 14px 16px; margin: -8px -10px 10px; border: 0; border-radius: 10px; background: #fdecee; color: #b3121a; }
.vbf-mpriv details > summary::-webkit-details-marker { display: none; }
.vbf-mpriv .vbf-mhead--priv .vbf-ico { color: #b3121a; }
.vbf-mpriv__chev { margin-left: auto; transition: transform .2s ease; }
.vbf-mpriv details:not([open]) .vbf-mpriv__chev { transform: rotate(-90deg); }
.vbf-mpriv__list { margin: 0; }
.vbf-mpriv__list div { display: grid; grid-template-columns: 22px minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--m-line); font: 400 13.5px/1.35 var(--vbf-font); }
.vbf-mpriv__list .vbf-ico { font-size: 17px; color: #374151; }
.vbf-mpriv__list dt { color: var(--m-mute); }
.vbf-mpriv__list dd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; color: var(--m-ink); font-weight: 500; overflow-wrap: anywhere; }
.vbf-mpriv__eye { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: #4b5563; cursor: pointer; }
.vbf-mpriv__eye:hover, .vbf-mpriv__eye[aria-pressed=true] { background: #f3f4f6; color: var(--m-red); }
.vbf-mpriv__edit { margin: 14px 0 0; }
.vbf-mpriv__edit a { display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px/1 var(--vbf-font); color: var(--m-red); }

/* ── màn hẹp ── */
@media (max-width: 1180px) {
	.vbf-mf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vbf-mf__q, .vbf-mf__go { grid-column: 1 / -1; }
	.vbf-mdetail.has-private .vbf-mdetail__grid { grid-template-columns: minmax(0, 1fr); }
	.vbf-mpriv { position: static; }
}
@media (max-width: 960px) {
	.vbf-mtable { display: grid; gap: 10px; }
	.vbf-mrow--head { display: none; }
	.vbf-mrow, .vbf-mrow--org { grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 14px; border: 1px solid var(--m-line); border-radius: 12px; font-size: 13px; }
	.vbf-mrow__code { grid-column: 1 / -1; justify-content: space-between; }
	.vbf-mrow__name { grid-column: 1 / -1; font-size: 15.5px; }
	.vbf-mrow__opt { display: none; }
	.vbf-minfo--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.vbf-mpage { padding-top: 0; }
	.vbf-mhero, .vbf-mhero__in { min-height: 230px; }
	.vbf-mhero__in { padding-top: calc(var(--vbf-head-h, 64px) + 14px); }
	.vbf-mhero__title { margin-top: 10px; font-size: 32px; }
	.vbf-mhero__sub { font-size: 12.5px; }
	.vbf-mtabs { margin-top: 18px; margin-left: calc(var(--vbf-gutter, 16px) * -1); margin-right: calc(var(--vbf-gutter, 16px) * -1); }
	.vbf-mtabs a { flex: 1 1 50%; min-width: 0; gap: 8px; padding: 13px 8px; font-size: 13px; border-radius: 0; }
	.vbf-mtabs a .vbf-ico { font-size: 16px; }
	.vbf-mpage > .vbf-shell { padding-left: 0; padding-right: 0; }
	.vbf-mcard { border-radius: 0; padding: 18px 16px; }
	.vbf-mf { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.vbf-mf__f label { margin-bottom: 5px; }
	.vbf-mf__go { justify-content: space-between; }
	.vbf-mf__go button { flex: 1; justify-content: center; }
	.vbf-mf__bar { flex-wrap: wrap; }
	.vbf-mf__count { font-size: 13px; }
	.vbf-mpager { flex-direction: column; gap: 14px; }
	.vbf-mpager__per { position: static; }
	.vbf-mid { grid-template-columns: minmax(0, 1fr) auto; padding: 20px 18px; gap: 14px 14px; border-radius: 16px; }
	.vbf-mid__logo { width: 48px; height: 48px; }
	.vbf-mid__top strong { font-size: 12.5px; }
	.vbf-mid__top small { font-size: 8.5px; }
	.vbf-mid__name { font-size: 20px; }
	.vbf-mid__meta { gap: 14px; }
	.vbf-mid__meta div + div { padding-left: 14px; }
	.vbf-mid__meta dd { font-size: 15px; }
	.vbf-mid__qr { width: 84px; height: 84px; padding: 7px; }
	.vbf-minfo, .vbf-minfo--3 { grid-template-columns: minmax(0, 1fr); }
	.vbf-minfo div { grid-template-columns: 24px minmax(110px, 40%) minmax(0, 1fr); }
	.vbf-minfo--3 div { grid-template-columns: 24px minmax(110px, 40%) minmax(0, 1fr); align-items: center; }
	.vbf-minfo--3 .vbf-ico { grid-row: auto; margin-top: 0; }
	.vbf-mdetail__grid { gap: 10px; }
	.vbf-mcard + .vbf-mcard { margin-top: 10px; }
}

/* Nút Chia sẻ QR (profile.js chèn) — bản riêng vì trang hội viên không nạp media.css. */
.vbf-mid .vbf-qrshare { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; color: #fff; font: 700 12px/1 var(--vbf-font); cursor: pointer; }
.vbf-mid .vbf-qrshare svg { flex: none; }
.vbf-minfo div { grid-template-columns: 26px 150px minmax(0, 1fr); }
@media (max-width: 760px) { .vbf-minfo div, .vbf-minfo--3 div { grid-template-columns: 24px 128px minmax(0, 1fr); } }
.vbf-minfo--3 div { grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; row-gap: 5px; }
.vbf-minfo--3 .vbf-ico { grid-row: 1 / span 2; }
.vbf-mdetail--org .vbf-mid__name, .vbf-mid__name--long { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.22; }
@media (max-width: 760px) {
	.vbf-minfo--3 div { grid-template-columns: 24px 128px minmax(0, 1fr); grid-template-rows: auto; align-items: center; }
	.vbf-minfo--3 .vbf-ico { grid-row: auto; }
	.vbf-mid__name--long { font-size: 16.5px; }
}
@media (max-width: 760px) { .vbf-mid__meta dd { font-size: 14px; white-space: nowrap; } .vbf-mid__name { font-size: 21px; } .vbf-mid__name--long { font-size: 16px; } }

/* 25/10/2026 (chủ site): bỏ nút Tìm kiếm, tiêu đề nằm trong ô, mã hội viên nhỏ lại, không icon. */
@media (min-width: 1181px) { .vbf-mf { grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(160px, 1fr)) auto; align-items: center; } }
.vbf-mf { align-items: center; }
.vbf-mf__sel select { color: #374151; }
.vbf-mrow__code strong { font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }
@media (max-width: 1180px) { .vbf-mf__go { grid-column: auto; justify-content: flex-end; } }
@media (max-width: 760px) { .vbf-mf__go { justify-content: flex-start; } }

/* 25/10/2026 (chủ site): tiêu đề cột một dòng, canh giữa theo chiều dọc; tab đang chọn phải rõ ràng. */
.vbf-mrow--head span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vbf-mrow--head { align-items: center; min-height: 44px; }
.vbf-mtabs { gap: 6px; }
.vbf-mtabs a { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .16); border-bottom: 0; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.vbf-mtabs a .vbf-ico { color: rgba(255, 255, 255, .72); }
.vbf-mtabs a:not(.is-on):hover { background: rgba(255, 255, 255, .18); color: #fff; }
.vbf-mtabs a:not(.is-on):hover .vbf-ico { color: #fff; }
/* tab đang chọn = trắng liền với thẻ nội dung bên dưới + vạch đỏ trên đầu */
.vbf-mtabs a.is-on { position: relative; background: #fff; color: var(--vbf-ink, #111827); border-color: #fff; box-shadow: inset 0 3px 0 #e01b24; }
.vbf-mtabs a.is-on .vbf-ico { color: #e01b24; }
@media (max-width: 760px) { .vbf-mtabs { gap: 0; } .vbf-mtabs a { border-left: 0; border-right: 0; } }

/* Bộ lọc gọn (25/10/2026, chủ site: "tinh gọn shape, compact, neat"): ô thấp 38 px, bo tròn hẳn, nền xám nhạt không viền, khoảng cách hẹp. */
.vbf-mf { gap: 8px; }
.vbf-mf input[type=search], .vbf-mf select, .vbf-mpager select { height: 38px; border: 1px solid transparent; border-radius: 999px; background-color: #f4f5f7; font-size: 13px; }
.vbf-mf input[type=search]:hover, .vbf-mf select:hover { background-color: #eef0f3; }
.vbf-mf input:focus, .vbf-mf select:focus { background-color: #fff; border-color: rgba(215, 20, 29, .45); box-shadow: 0 0 0 3px rgba(215, 20, 29, .08); }
.vbf-mf input[type=search] { padding-left: 40px; }
.vbf-mf__q .vbf-ico { left: 15px; font-size: 15px; color: #6b7280; }
.vbf-mf__sel .vbf-ico { left: 13px; font-size: 15px; color: #6b7280; }
.vbf-mf__sel select { padding-left: 36px; padding-right: 30px; text-overflow: ellipsis; }
.vbf-mf__go a { font-size: 12.5px; color: #6b7280; text-decoration: none; }
.vbf-mf__go a:hover { color: var(--m-red); }
.vbf-mf__bar { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--m-line); }
.vbf-mf__count { font-size: 13px; color: #6b7280; }
.vbf-mf__sort { gap: 8px; font-size: 12.5px; color: #6b7280; }
.vbf-mf__sort select { width: 132px; height: 34px; }
.vbf-mpager select { height: 34px; }
@media (max-width: 1180px) { .vbf-mf { grid-template-columns: repeat(3, minmax(0, 1fr)); } .vbf-mf__q { grid-column: 1 / -1; } .vbf-mf__go { grid-column: 1 / -1; justify-content: flex-end; } }
@media (max-width: 760px) { .vbf-mf { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vbf-mf__go { grid-column: auto; justify-content: center; } .vbf-mf__sel select { padding-right: 22px; font-size: 12.5px; } }

/* 25/10/2026: bộ lọc còn 2 ô (cá nhân) / 3 ô (tổ chức). */
@media (min-width: 1181px) { .vbf-mf { grid-template-columns: minmax(260px, 2fr) repeat(auto-fit, minmax(180px, 1fr)) auto; } .vbf-mf__q { grid-column: auto; } }
@media (max-width: 1180px) { .vbf-mf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .vbf-mf { grid-template-columns: minmax(0, 1fr) auto; } .vbf-mf__q { grid-column: 1 / -1; } }
@media (max-width: 760px) { .vbf-mf__go { justify-content: flex-end; } }

/* 25/10/2026 (chủ site): bộ lọc + số kết quả + sắp xếp chung MỘT hàng, gọn. */
.vbf-mf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vbf-mf > p { margin: 0; }
.vbf-mf__q { flex: 1 1 260px; max-width: 380px; }
.vbf-mf__f { flex: 0 1 210px; }
.vbf-mf__go { flex: none; }
.vbf-mf__go:empty, .vbf-mf__go:not(:has(a)) { display: none; }
.vbf-mf__count { flex: none; margin-left: auto !important; font: 400 13px/1 var(--vbf-font); color: #6b7280; white-space: nowrap; }
.vbf-mf__count strong { color: var(--m-ink); font-weight: 700; }
.vbf-mf__sort { flex: none; }
.vbf-mf__sort select { width: 128px; height: 38px; }
.vbf-mtable { margin-top: 16px; }

/* Hiển thị N / trang: một hàng, canh giữa theo chiều dọc */
.vbf-mpager__per { align-items: center; gap: 8px; font: 500 13px/1 var(--vbf-font); color: #6b7280; }
.vbf-mpager__per label, .vbf-mpager__per span { line-height: 1; }
.vbf-mpager__per select { width: 68px; height: 34px; padding: 0 22px 0 14px; line-height: 34px; }

@media (max-width: 960px) {
	.vbf-mf__q { flex: 1 1 100%; max-width: none; }
	.vbf-mf__f { flex: 1 1 160px; }
}
@media (max-width: 760px) {
	.vbf-mf { gap: 8px; }
	.vbf-mf__f { flex: 1 1 calc(50% - 4px); }
	.vbf-mf__count { order: 10; flex: 1 1 auto; margin-left: 0 !important; }
	.vbf-mf__sort { order: 11; }
	.vbf-mf__sort select { width: 118px; height: 34px; }
}
html body .vbf-mpager__per { display: flex; align-items: center; margin: 0; } html body .vbf-mpager__per label { display: inline-block; margin: 0; padding: 0; font: inherit; color: inherit; line-height: 34px; } html body .vbf-mpager__per span { line-height: 34px; }
/* Ô chọn rộng theo chữ dài nhất — không bao giờ cắt chữ giữa chừng (chủ site 25/10/2026). */
.vbf-mf__f { flex: 0 0 auto; }
.vbf-mf__sel select, .vbf-mf__sort select { width: auto; min-width: 150px; max-width: none; text-overflow: clip; }
.vbf-mf__sort select { min-width: 0; }
@media (max-width: 760px) {
	.vbf-mf__f { flex: 1 1 100%; }
	.vbf-mf__sel select { width: 100%; }
}
@media (max-width: 760px) { .vbf-mf__go { order: 12; flex: 1 1 100%; justify-content: flex-start; } .vbf-mf__count { flex: 1 1 0; } }

/* Bảng (25/10/2026, chủ site): DÒNG CHỮ ĐẦU mọi cột thẳng hàng (baseline, không canh giữa dọc), một cỡ chữ 13 px, gọn. */
@media (min-width: 961px) {
	.vbf-mrow:not(.vbf-mrow--head) { align-items: baseline; padding: 10px 14px; font-size: 13px; line-height: 1.4; }
	.vbf-mrow > span { font-size: 13px; line-height: 1.4; }
	.vbf-mrow__code strong { font-size: 12.5px; }
	.vbf-mrow__name { font-weight: 600; }
	.vbf-mrow__prov { align-items: baseline; }
	.vbf-mrow__prov .vbf-ico { font-size: 13px; transform: translateY(2px); }
	.vbf-mst { font-weight: 600; }
	.vbf-mst::before { width: 7px; height: 7px; align-self: center; }
	.vbf-mrow--head { padding: 0 14px; min-height: 38px; font-size: 11px; }
}
/* Tình trạng cùng baseline với các cột khác. */
@media (min-width: 961px) { .vbf-mst { display: inline; } .vbf-mst::before { display: inline-block; margin-right: 7px; vertical-align: 1px; } }
/* "Mới nhất" đứng ngay sau ô Tỉnh/Thành (và Phân loại); số kết quả ở cuối hàng (chủ site 25/10/2026). */
.vbf-mf__q { order: 1; } .vbf-mf__f { order: 2; } .vbf-mf__sort { order: 3; } .vbf-mf__go { order: 4; } .vbf-mf__count { order: 6; }
@media (max-width: 760px) { .vbf-mf__sort { order: 3; } .vbf-mf__count { order: 5; flex: 1 1 100%; } .vbf-mf__go { order: 6; } .vbf-mf__f { flex: 1 1 calc(50% - 4px); } .vbf-mf__sort select { width: 100%; } .vbf-mf__sort { flex: 1 1 calc(50% - 4px); } }

/* Hover dòng (25/10/2026, chủ site: "đẹp hơn, premium hơn"): vạch đỏ mảnh mọc từ giữa ở mép trái + nền ấm rất nhạt + tên chuyển đỏ + mũi tên mảnh hiện ở cuối dòng. Không nhảy, không đổ bóng dày. */
a.vbf-mrow { position: relative; transition: background-color .35s cubic-bezier(.22, 1, .36, 1); }
a.vbf-mrow::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: #d7141d; transform: scaleY(0); transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
a.vbf-mrow::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-top: 1.5px solid #d7141d; border-right: 1.5px solid #d7141d; transform: translate(-6px, -50%) rotate(45deg); opacity: 0; transition: opacity .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1); }
a.vbf-mrow:hover, a.vbf-mrow:focus-visible { background: linear-gradient(90deg, rgba(215, 20, 29, .045), rgba(215, 20, 29, .012) 60%, transparent); outline: 0; }
a.vbf-mrow:hover::before, a.vbf-mrow:focus-visible::before { transform: scaleY(1); }
a.vbf-mrow:hover::after, a.vbf-mrow:focus-visible::after { opacity: 1; transform: translate(0, -50%) rotate(45deg); }
a.vbf-mrow .vbf-mrow__name { transition: color .3s ease; }
a.vbf-mrow:hover .vbf-mrow__name, a.vbf-mrow:focus-visible .vbf-mrow__name { color: #b3121a; }
@media (max-width: 960px) {
	a.vbf-mrow { transition: border-color .3s ease, box-shadow .35s ease; }
	a.vbf-mrow::before { top: 14px; bottom: 14px; }
	a.vbf-mrow:hover, a.vbf-mrow:focus-visible { border-color: rgba(215, 20, 29, .28); box-shadow: 0 6px 18px rgba(17, 24, 39, .06); }
}
@media (prefers-reduced-motion: reduce) { a.vbf-mrow, a.vbf-mrow::before, a.vbf-mrow::after { transition: none; } }

/* Ảnh đầu trang Hội viên (25/10/2026): rổ giữa + cờ VBF bên phải ⇒ neo phải để cờ luôn thấy; chữ trái trên nền khán đài đã phủ tối. */
.vbf-mhero__bg { object-position: 100% 30%; }
@media (max-width: 760px) { .vbf-mhero__bg { object-position: 92% 42%; } }
/* Ảnh 16:9 trong khung ~5:1 ⇒ phóng quá lớn, cờ VBF bị cắt. Desktop: ảnh chỉ chiếm 72 % bên phải (thu nhỏ lại), vùng trái nền tối liền cho chữ. */
@media (min-width: 761px) {
	.vbf-mhero__bg { left: auto; right: 0; width: 72%; max-width: none; object-position: 100% 22%; }
	.vbf-mhero { background: #0a0a0c; }
	.vbf-mhero::before { background: linear-gradient(90deg, #0a0a0c 0, #0a0a0c 28%, rgba(10, 10, 12, .75) 38%, rgba(10, 10, 12, .15) 55%, rgba(10, 10, 12, 0) 70%); }
}

/* 25/10/2026: cột Tên trước, Mã sau (đồng bộ các trang Dữ liệu VBF). */
@media (min-width: 961px) {
	.vbf-mrow { grid-template-columns: 1.4fr 1fr .7fr 1.3fr 1.7fr 1.2fr 1.1fr .9fr; }
	.vbf-mrow--org { grid-template-columns: 1.9fr 1.15fr 1.1fr 1.2fr .9fr 1.25fr 1.05fr .9fr; }
}
@media (max-width: 960px) { .vbf-mrow__name { order: -1; } }

/* Thẻ hội viên trên điện thoại (25/10/2026): QR đè ngày gia nhập. Mobile: tên rộng hết thẻ; mã + ngày xếp DỌC bên trái; QR neo góc phải dưới,
   phần chữ bên trái luôn chừa đúng bề rộng QR ⇒ không bao giờ chồng. */
@media (max-width: 760px) {
	.vbf-mid { display: block; position: relative; padding: 18px 16px 16px; }
	.vbf-mid__top { margin-bottom: 14px; }
	.vbf-mid__body { min-width: 0; }
	.vbf-mid__meta { flex-direction: column; gap: 10px; margin-top: 14px; padding-right: 96px; min-height: 84px; }
	.vbf-mid__meta div + div { padding-left: 0; border-left: 0; }
	.vbf-mid__meta dt { font-size: 11px; }
	.vbf-mid__meta dd { margin-top: 4px; font-size: 15px; white-space: nowrap; }
	.vbf-mid__qr { position: absolute; right: 16px; bottom: 58px; width: 84px; height: 84px; }
	.vbf-mid__share { display: flex; justify-content: flex-end; margin-top: 12px; }
}

/* ══ 07/11/2026 — danh sách hội viên trên điện thoại/tablet = DÒNG KIỂU APP (khách: "nén lệch về trái, địa điểm không quan trọng lại nằm riêng một khoảng trống").
   Hàng 1: tên đậm | trạng thái (chấm + chữ) sát phải · Hàng 2: mã · nghề nghiệp/phân loại · tỉnh (chữ phụ nối bằng chấm giữa, cùng dòng)
   · Hàng 3: đơn vị / đại diện, một dòng, cắt "…". Giới tính, ngày gia nhập chỉ ở desktop (xem chi tiết mới đủ — Gout §8.1). ══ */
@media (max-width: 960px) {
	html body .vbf-mtable { display: flex; flex-direction: column; gap: 8px; }
	html body .vbf-mtable .vbf-mrow--head { display: none !important; }
	html body .vbf-mtable a.vbf-mrow { display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 3px 0; padding: 12px 14px !important; margin: 0 !important; border: 0 !important; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 41, .07); grid-template-columns: none !important; min-height: 0 !important; }
	html body .vbf-mtable a.vbf-mrow > span { display: inline !important; flex: none; width: auto !important; min-width: 0; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: 12.5px !important; line-height: 1.45 !important; color: #6b7280; text-align: left !important; white-space: nowrap; order: 3; }
	html body .vbf-mtable a.vbf-mrow > span::before { content: none !important; }
	html body .vbf-mtable a.vbf-mrow > .vbf-mrow__name { order: 1; flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 700 15px/1.35 var(--vbf-font) !important; color: #0f1729; }
	html body .vbf-mtable a.vbf-mrow > span[data-label="Tình trạng"] { order: 2; flex: none; padding-left: 10px !important; font-size: 11.5px !important; }
	html body .vbf-mtable a.vbf-mrow > span[data-label="Tình trạng"] + span, html body .vbf-mtable a.vbf-mrow > span[data-label="Giới tính"] { display: none !important; }
	html body .vbf-mtable a.vbf-mrow > .vbf-mrow__code { flex-basis: 100%; height: 0; overflow: hidden; } /* ngắt hàng sau tên */
	html body .vbf-mtable a.vbf-mrow > .vbf-mrow__code strong { display: none; }
	html body .vbf-mtable a.vbf-mrow > span[data-label="Nghề nghiệp"], html body .vbf-mtable a.vbf-mrow > span[data-label="Phân loại"] { order: 4; color: #0f1729; font-weight: 600 !important; }
	html body .vbf-mtable a.vbf-mrow > .vbf-mrow__prov { order: 5; display: inline-flex !important; align-items: center; gap: 3px; }
	html body .vbf-mtable a.vbf-mrow > .vbf-mrow__prov::before { content: "·" !important; margin: 0 6px; color: #c0c4cb; }
	html body .vbf-mtable a.vbf-mrow > .vbf-mrow__prov .vbf-ico { font-size: 12px; color: #9ca3af; }
	html body .vbf-mtable a.vbf-mrow > span[data-label="Đơn vị"], html body .vbf-mtable a.vbf-mrow > span[data-label="Đại diện"] { order: 6; flex: 1 1 100%; overflow: hidden; text-overflow: ellipsis; }
	html body .vbf-mtable a.vbf-mrow > span[data-label="Chức vụ"] { display: none !important; }
}
@media (max-width: 960px) { html body .vbf-mtable a.vbf-mrow { background: #f6f6f4 !important; box-shadow: none !important; } html body .vbf-mtable a.vbf-mrow:active { background: #eceae6 !important; } }
@media (max-width: 960px) { html body .vbf-mtable a.vbf-mrow > .vbf-mrow__name { white-space: normal !important; text-wrap: balance; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }
