/* ==========================================================================
   Bandishare v2
   Màu lấy từ logo: cam "bandi", xanh "share". Xanh lá = chỉ dành cho hành động tải.
   Mọi selector đều có tiền tố .bs- (hoặc body.bs-v2) để không đụng CSS cũ.
   ========================================================================== */

body.bs-v2 {
	--bs-ink: #172033;
	--bs-ink-2: #3a4558;
	--bs-muted: #667085;
	--bs-line: #e4e8ef;
	--bs-mist: #f3f5f9;
	--bs-paper: #ffffff;
	--bs-orange: #ff7f27;
	--bs-orange-ink: #b8510a;
	--bs-orange-soft: #fff1e6;
	--bs-blue: #1a85e8;
	--bs-blue-ink: #0f68c0;
	--bs-go: #0e9f4f;
	--bs-go-hover: #0b8743;
	--bs-go-soft: #e7f6ee;
	--bs-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bs-read: 780px;
	--bs-page: 1200px;

	font-family: var(--bs-font);
	color: var(--bs-ink);
	background: var(--bs-paper);
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

body.bs-v2 h1,
body.bs-v2 h2,
body.bs-v2 h3,
body.bs-v2 h4,
body.bs-v2 h5,
body.bs-v2 h6 {
	font-family: var(--bs-font);
	color: var(--bs-ink);
	letter-spacing: -0.01em;
}

/* Flatsome đặt html{background:#5b5b5b} → trang ngắn lộ nền xám dưới footer.
   Cho #wrapper cao tối thiểu bằng màn hình để footer luôn nằm sát đáy. */
html:has(> body.bs-v2) {
	background-color: #f3f5f9;
}

body.bs-v2 #wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--bs-paper);
}

body.bs-v2 #main {
	flex: 1 0 auto;
	background: var(--bs-paper);
}

body.bs-v2 #wrapper > * {
	min-width: 0;
}

/* Bỏ padding mặc định của Flatsome để hero sát header */
body.bs-v2 .bs-single.page-wrapper,
body.bs-v2 .blog-archive.page-wrapper {
	padding-top: 0;
	padding-bottom: 0;
}

.bs-container {
	width: 100%;
	max-width: var(--bs-page);
	margin: 0 auto;
	padding-left: 16px;
	padding-right: 16px;
}

.bs-container--read {
	max-width: calc(var(--bs-read) + 32px);
}

@media (min-width: 850px) {
	.bs-container {
		padding-left: 24px;
		padding-right: 24px;
	}
	.bs-container--read {
		max-width: calc(var(--bs-read) + 48px);
	}
}

.bs-icon {
	flex: none;
	display: inline-block;
	vertical-align: middle;
}

/* Ảnh icon app trong khung cố định */
.bs-app__icon img,
.bs-row-card__icon img,
.bs-feature-card__icon img,
.bs-hero__icon img,
.bs-dl-head__icon img,
.bs-version__icon img,
.bs-cta__icon img,
.bs-feature-card__media img,
.bs-news-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.bs-icon-fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-weight: 700;
	font-size: 1.6em;
	color: var(--bs-muted);
	background: var(--bs-mist);
}

/* Flatsome đặt dl{uppercase; opacity:.8} và dt,dd{inline-block} — trả về bình thường */
body.bs-v2 .bs-stats,
body.bs-v2 .bs-info {
	opacity: 1;
	text-transform: none;
	font-size: inherit;
}

body.bs-v2 .bs-stats dt,
body.bs-v2 .bs-stats dd,
body.bs-v2 .bs-info dt,
body.bs-v2 .bs-info dd {
	display: block;
}

body.bs-v2 a:focus-visible,
body.bs-v2 button:focus-visible,
body.bs-v2 summary:focus-visible {
	outline: 3px solid var(--bs-blue);
	outline-offset: 2px;
	border-radius: 8px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.bs-header {
	background: var(--bs-paper);
	border-bottom: 1px solid var(--bs-line);
	z-index: 50;
}

.bs-header__bar {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 64px;
}

.bs-logo {
	display: flex;
	align-items: center;
	flex: none;
}

.bs-logo img {
	display: block;
	height: 34px;
	width: auto;
}

.bs-nav ul {
	display: flex;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bs-nav li {
	margin: 0;
}

body.bs-v2 .bs-nav a {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	color: var(--bs-ink-2);
	font-weight: 500;
	font-size: 15px;
	white-space: nowrap;
}

body.bs-v2 .bs-nav a:hover {
	background: var(--bs-mist);
	color: var(--bs-ink);
}

body.bs-v2 .bs-nav a.is-current {
	background: var(--bs-orange-soft);
	color: var(--bs-orange-ink);
}

.bs-search {
	position: relative;
	margin: 0 0 0 auto;
	width: 300px;
	flex: none;
}

body.bs-v2 .bs-search input[type="search"] {
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 46px 0 18px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--bs-mist);
	box-shadow: none;
	font-family: var(--bs-font);
	font-size: 14.5px;
	color: var(--bs-ink);
}

body.bs-v2 .bs-search input[type="search"]::placeholder {
	color: var(--bs-muted);
}

body.bs-v2 .bs-search input[type="search"]:focus {
	background: var(--bs-paper);
	border-color: var(--bs-blue);
	box-shadow: 0 0 0 3px rgba(26, 133, 232, 0.15);
	outline: none;
}

body.bs-v2 .bs-search button,
body.bs-v2 .bs-search-toggle,
body.bs-v2 .bs-scroller-nav__btn {
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0;
	min-height: 0;
	line-height: 1;
	border: 0;
	background: transparent;
	color: var(--bs-ink-2);
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
}

body.bs-v2 .bs-search button {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

body.bs-v2 .bs-search button:hover {
	background: var(--bs-paper);
	color: var(--bs-blue-ink);
}

body.bs-v2 .bs-search-toggle {
	display: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

@media (min-width: 850px) {
	.bs-header {
		position: sticky;
		top: 0;
	}
	body.admin-bar .bs-header {
		top: 32px;
	}
}

/* Plugin Fixed TOC: khi ghim, JS đặt inline top:0 → bị header dính (64px) đè.
   Đẩy nút + khung mục lục xuống dưới header (chỉ trên PC, nơi header sticky). */
@media (min-width: 850px) {
	body.bs-v2 #ftwp-container.ftwp-fixed-to-post #ftwp-trigger {
		top: 76px !important;
	}
	body.bs-v2 #ftwp-container.ftwp-fixed-to-post #ftwp-contents {
		top: 65px !important;
		height: calc(100vh - 65px) !important;
	}
	body.bs-v2.admin-bar #ftwp-container.ftwp-fixed-to-post #ftwp-trigger {
		top: 108px !important;
	}
	body.bs-v2.admin-bar #ftwp-container.ftwp-fixed-to-post #ftwp-contents {
		top: 97px !important;
		height: calc(100vh - 97px) !important;
	}
}

@media (max-width: 1100px) and (min-width: 850px) {
	.bs-search {
		width: 220px;
	}
	body.bs-v2 .bs-nav a {
		padding: 0 10px;
	}
}

@media (max-width: 849px) {
	.bs-header__bar {
		flex-wrap: wrap;
		gap: 0 8px;
		min-height: 0;
		padding-top: 8px;
	}
	.bs-logo {
		order: 1;
		height: 44px;
	}
	.bs-logo img {
		height: 30px;
	}
	body.bs-v2 .bs-search-toggle {
		display: grid;
		order: 2;
		margin-left: auto;
	}
	.bs-search {
		order: 3;
		display: none;
		width: 100%;
		margin: 4px 0 8px;
	}
	.bs-header.is-searching .bs-search {
		display: block;
	}
	.bs-nav {
		order: 4;
		width: calc(100% + 32px);
		margin: 0 -16px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.bs-nav::-webkit-scrollbar {
		display: none;
	}
	.bs-nav ul {
		gap: 8px;
		padding: 4px 16px 12px;
	}
	body.bs-v2 .bs-nav a {
		height: 36px;
		padding: 0 14px;
		border-radius: 999px;
		background: var(--bs-mist);
		font-size: 14px;
	}
}

/* ==========================================================================
   Khu vực / tiêu đề khu vực
   ========================================================================== */

.bs-home {
	padding: 8px 0 32px;
}

.bs-section {
	padding: 18px 0;
}

@media (max-width: 849px) {
	.bs-hide-mobile {
		display: none;
	}
}

.bs-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

body.bs-v2 .bs-section__title {
	margin: 0;
	font-size: 21px;
	line-height: 1.3;
	font-weight: 700;
}

.bs-section__desc {
	margin: 4px 0 0;
	color: var(--bs-muted);
	font-size: 14px;
}

body.bs-v2 .bs-section__more {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	flex: none;
	color: var(--bs-blue-ink);
	font-weight: 600;
	font-size: 14px;
}

body.bs-v2 .bs-section__more:hover {
	color: var(--bs-blue);
}

/* ==========================================================================
   Dải "Nổi bật"
   ========================================================================== */

.bs-featured__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 32px) / 3);
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.bs-featured__track::-webkit-scrollbar {
	display: none;
}

body.bs-v2 .bs-feature-card {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	overflow: hidden;
	scroll-snap-align: start;
	background: var(--bs-ink);
	color: #fff;
}

.bs-feature-card__media {
	position: absolute;
	inset: 0;
}

.bs-feature-card__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 40px 14px 12px;
	background: linear-gradient(to top, rgba(12, 17, 28, 0.88) 0%, rgba(12, 17, 28, 0.55) 55%, rgba(12, 17, 28, 0) 100%);
}

.bs-feature-card__icon {
	flex: 0 0 44px;
	height: 44px;
	border-radius: 22%;
	overflow: hidden;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
	background: var(--bs-mist);
}

.bs-feature-card__text {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.bs-feature-card__name {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bs-feature-card__meta {
	font-size: 12.5px;
	opacity: 0.8;
}

.bs-scroller-nav {
	display: flex;
	gap: 8px;
}

body.bs-v2 .bs-scroller-nav__btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--bs-line);
	background: var(--bs-paper);
}

body.bs-v2 .bs-scroller-nav__btn:hover {
	background: var(--bs-mist);
	color: var(--bs-ink);
}

@media (max-width: 849px) {
	.bs-featured__track {
		grid-auto-columns: 78%;
		gap: 12px;
		margin: 0 -16px;
		padding: 0 16px;
		scroll-padding: 0 16px;
	}
	.bs-scroller-nav {
		display: none;
	}
}

/* ==========================================================================
   Lưới icon app
   ========================================================================== */

.bs-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px 12px;
}

body.bs-v2 .bs-app {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	padding: 12px 6px 10px;
	border-radius: 16px;
	text-align: center;
	color: var(--bs-ink);
}

body.bs-v2 .bs-app:hover {
	background: var(--bs-mist);
	color: var(--bs-ink);
}

.bs-app__icon {
	width: 88px;
	max-width: 100%;
	aspect-ratio: 1;
	border-radius: 22%;
	overflow: hidden;
	background: var(--bs-mist);
	box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.06), 0 4px 14px rgba(23, 32, 51, 0.08);
}

.bs-app__name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin-top: 10px;
	min-height: 2.7em;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.bs-app__meta {
	max-width: 100%;
	margin-top: 2px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 12.5px;
	color: var(--bs-muted);
}

@media (max-width: 1024px) {
	.bs-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 849px) {
	.bs-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 549px) {
	.bs-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 4px 6px;
	}
	.bs-app__icon {
		width: 72px;
	}
	.bs-app__name {
		font-size: 13px;
	}
}

/* ==========================================================================
   Danh sách dạng hàng (Mới cập nhật, danh mục, liên quan)
   ========================================================================== */

.bs-rows {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 28px;
}

.bs-rows--single {
	grid-template-columns: minmax(0, 1fr);
}

body.bs-v2 .bs-row-card {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--bs-line);
	color: var(--bs-ink);
}

body.bs-v2 .bs-row-card:hover {
	color: var(--bs-ink);
}

body.bs-v2 .bs-row-card:hover .bs-row-card__name {
	color: var(--bs-blue-ink);
}

.bs-row-card__icon {
	flex: 0 0 60px;
	height: 60px;
	border-radius: 22%;
	overflow: hidden;
	background: var(--bs-mist);
	box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.06);
}

.bs-row-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.bs-row-card__name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.bs-row-card__meta {
	display: flex;
	gap: 0 8px;
	min-width: 0;
	font-size: 13px;
	color: var(--bs-muted);
	white-space: nowrap;
}

.bs-row-card__meta span {
	flex: none;
}

.bs-row-card__meta span + span {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-left: 8px;
	border-left: 1px solid var(--bs-line);
}

.bs-row-card__go {
	flex: 0 0 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--bs-go-soft);
	color: var(--bs-go);
}

@media (max-width: 849px) {
	.bs-rows {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 20px;
	}
	.bs-rows--single {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 549px) {
	.bs-rows {
		grid-template-columns: minmax(0, 1fr);
	}
	.bs-row-card__icon {
		flex-basis: 56px;
		height: 56px;
	}
}

/* ==========================================================================
   Nhãn
   ========================================================================== */

.bs-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.bs-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 7px;
	border-radius: 6px;
	background: var(--bs-go-soft);
	color: #0b7a3e;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.bs-badge--mod,
.bs-badge--tv {
	background: var(--bs-orange-soft);
	color: var(--bs-orange-ink);
}

.bs-badge--beta {
	background: #fdecec;
	color: #b42318;
}

/* ==========================================================================
   Tin tức
   ========================================================================== */

.bs-news {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

body.bs-v2 .bs-news-card {
	display: flex;
	flex-direction: column;
	color: var(--bs-ink);
}

body.bs-v2 .bs-news-card:hover .bs-news-card__title {
	color: var(--bs-blue-ink);
}

.bs-news-card__media {
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	background: var(--bs-mist);
}

.bs-news-card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin-top: 10px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.bs-news-card__date {
	margin-top: 4px;
	font-size: 12.5px;
	color: var(--bs-muted);
}

@media (max-width: 849px) {
	.bs-news {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 12px;
	}
}

/* ==========================================================================
   Nút
   ========================================================================== */

body.bs-v2 .bs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-family: var(--bs-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.bs-v2 .bs-btn--lg {
	min-height: 54px;
	padding: 0 26px;
	border-radius: 14px;
	font-size: 16.5px;
}

body.bs-v2 .bs-btn--block {
	display: flex;
	width: 100%;
}

body.bs-v2 .bs-btn--go {
	background: var(--bs-go);
	color: #fff;
}

body.bs-v2 .bs-btn--go:hover {
	background: var(--bs-go-hover);
	color: #fff;
}

body.bs-v2 .bs-btn--blue {
	background: var(--bs-blue);
	color: #fff;
}

body.bs-v2 .bs-btn--blue:hover {
	background: var(--bs-blue-ink);
	color: #fff;
}

body.bs-v2 .bs-btn--outline {
	background: var(--bs-paper);
	border-color: var(--bs-go);
	color: var(--bs-go);
}

body.bs-v2 .bs-btn--outline:hover {
	background: var(--bs-go-soft);
	color: var(--bs-go-hover);
}

body.bs-v2 .bs-btn--youtube {
	background: #d9241b;
	color: #fff;
}

body.bs-v2 .bs-btn--youtube:hover {
	background: #b81d16;
	color: #fff;
}

body.bs-v2 .bs-btn--ghost {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.24);
	color: #fff;
}

body.bs-v2 .bs-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.bs-btn__stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.2;
	text-align: left;
}

.bs-btn__stack small {
	font-size: 12.5px;
	font-weight: 500;
	opacity: 0.85;
}

/* ==========================================================================
   Trang app — hero
   ========================================================================== */

.bs-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: #1b2436;
	color: #fff;
}

.bs-hero__bg {
	position: absolute;
	inset: -60px;
	z-index: -2;
	background-position: center;
	background-size: cover;
	filter: blur(40px) saturate(1.5);
	transform: scale(1.15);
}

.bs-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(14, 19, 31, 0.5) 0%, rgba(14, 19, 31, 0.78) 60%, rgba(14, 19, 31, 0.9) 100%);
}

.bs-hero__inner {
	padding-top: 18px;
	padding-bottom: 28px;
}

body.bs-v2 .bs-hero .rank-math-breadcrumb {
	margin-bottom: 18px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
}

body.bs-v2 .bs-hero .rank-math-breadcrumb p {
	margin: 0;
}

body.bs-v2 .bs-hero .rank-math-breadcrumb a {
	color: rgba(255, 255, 255, 0.88);
}

body.bs-v2 .bs-hero .rank-math-breadcrumb a:hover {
	color: #fff;
}

.bs-hero__head {
	display: flex;
	align-items: center;
	gap: 18px;
}

.bs-hero__icon {
	flex: 0 0 104px;
	height: 104px;
	border-radius: 22%;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.bs-hero__title {
	min-width: 0;
}

body.bs-v2 .bs-hero h1 {
	margin: 0 0 6px;
	color: #fff;
	font-size: 25px;
	line-height: 1.3;
	font-weight: 700;
}

.bs-hero__dev {
	margin: 0 0 8px;
	color: #a9d5ff;
	font-size: 14px;
	font-weight: 500;
}

body.bs-v2 .bs-hero .bs-badge {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

body.bs-v2 .bs-hero .bs-badge--mod {
	background: var(--bs-orange);
	color: #fff;
}

.bs-hero__mod {
	margin: 16px 0 0;
	color: #ffc8a1;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.5;
}

.bs-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 20px 0 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.bs-stats__item {
	min-width: 0;
	padding: 12px 10px;
	text-align: center;
}

.bs-stats__item + .bs-stats__item {
	border-left: 1px solid rgba(255, 255, 255, 0.16);
}

body.bs-v2 .bs-stats dt {
	margin: 0;
	font-size: 12.5px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.66);
}

body.bs-v2 .bs-stats dd {
	margin: 3px 0 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 15.5px;
	font-weight: 700;
	color: #fff;
}

.bs-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bs-hero__actions .bs-btn--go {
	min-width: 220px;
}

@media (max-width: 549px) {
	.bs-hero__inner {
		padding-bottom: 20px;
	}
	.bs-hero__head {
		align-items: flex-start;
		gap: 14px;
	}
	.bs-hero__icon {
		flex-basis: 78px;
		height: 78px;
	}
	body.bs-v2 .bs-hero h1 {
		font-size: 18px;
	}
	.bs-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.bs-stats__item:nth-child(3) {
		border-left: 0;
	}
	.bs-stats__item:nth-child(n + 3) {
		border-top: 1px solid rgba(255, 255, 255, 0.16);
	}
	.bs-hero__actions .bs-btn {
		flex: 1 1 calc(50% - 5px);
		padding: 0 10px;
		font-size: 14px;
	}
	.bs-hero__actions .bs-btn--go {
		flex-basis: 100%;
		font-size: 16.5px;
	}
}

/* ==========================================================================
   Trang app — nội dung
   ========================================================================== */

.bs-app-body {
	padding-top: 8px;
	padding-bottom: 24px;
}

.bs-slot {
	margin: 16px 0;
}

.bs-slot:empty {
	display: none;
}

/* AdSense không có quảng cáo để trả về → Google vẫn giữ khung trống (vd 280px).
   Ẩn khung khi unfilled (cách Google khuyến nghị); có quảng cáo thì hiện bình thường. */
ins.adsbygoogle[data-ad-status="unfilled"] {
	display: none !important;
}

.bs-block {
	margin: 28px 0;
}

body.bs-v2 .bs-block__title {
	margin: 0 0 10px;
	font-size: 19px;
	line-height: 1.35;
	font-weight: 700;
}

body.bs-v2 .bs-info {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 28px;
	margin: 0;
}

.bs-info__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid var(--bs-line);
	font-size: 14.5px;
	line-height: 1.45;
}

body.bs-v2 .bs-info dt {
	flex: none;
	margin: 0;
	color: var(--bs-muted);
	font-weight: 400;
}

body.bs-v2 .bs-info dd {
	min-width: 0;
	margin: 0;
	text-align: right;
	font-weight: 500;
	color: var(--bs-ink);
	overflow-wrap: anywhere;
}

body.bs-v2 .bs-info dd p,
body.bs-v2 .bs-info dt p {
	margin: 0;
}

body.bs-v2 .bs-info a {
	color: var(--bs-blue-ink);
}

@media (max-width: 549px) {
	body.bs-v2 .bs-info {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Nội dung bài viết */
body.bs-v2 .bs-content {
	font-size: 16.5px;
	line-height: 1.75;
	color: #2a3344;
}

body.bs-v2 .bs-content > *:first-child {
	margin-top: 0;
}

body.bs-v2 .bs-content h2 {
	margin: 1.8em 0 0.6em;
	font-size: 22px;
	line-height: 1.35;
}

body.bs-v2 .bs-content h3 {
	margin: 1.6em 0 0.5em;
	font-size: 18.5px;
	line-height: 1.4;
}

body.bs-v2 .bs-content h4 {
	margin: 1.4em 0 0.5em;
	font-size: 16.5px;
}

body.bs-v2 .bs-content p {
	margin: 0 0 1.1em;
}

body.bs-v2 .bs-content a {
	color: var(--bs-blue-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

body.bs-v2 .bs-content img {
	border-radius: 12px;
	height: auto;
}

body.bs-v2 .bs-content figure {
	margin: 1.4em 0;
}

body.bs-v2 .bs-content figcaption {
	margin-top: 6px;
	text-align: center;
	font-size: 13.5px;
	color: var(--bs-muted);
}

body.bs-v2 .bs-content ul,
body.bs-v2 .bs-content ol {
	margin: 0 0 1.2em 1.25em;
}

body.bs-v2 .bs-content li {
	margin-bottom: 0.4em;
}

body.bs-v2 .bs-content blockquote {
	margin: 1.4em 0;
	padding: 12px 16px;
	border-left: 3px solid var(--bs-orange);
	background: var(--bs-mist);
	border-radius: 0 12px 12px 0;
	color: var(--bs-ink-2);
}

body.bs-v2 .bs-content table {
	width: 100%;
	font-size: 15px;
}

body.bs-v2 .bs-content iframe {
	max-width: 100%;
	border-radius: 12px;
}

/* Khối tải cuối bài */
.bs-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 28px 0 14px;
	padding: 16px;
	border: 1px solid var(--bs-line);
	border-radius: 18px;
	background: var(--bs-mist);
	scroll-margin-top: 90px;
}

.bs-cta__app {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.bs-cta__app strong {
	display: block;
	font-size: 16px;
	line-height: 1.35;
}

.bs-cta__icon {
	flex: 0 0 52px;
	height: 52px;
	border-radius: 22%;
	overflow: hidden;
	background: var(--bs-paper);
}

.bs-cta__meta {
	display: block;
	font-size: 13px;
	color: var(--bs-muted);
}

@media (max-width: 549px) {
	.bs-cta {
		flex-direction: column;
		align-items: stretch;
	}
	.bs-cta .bs-btn {
		width: 100%;
	}
}

.bs-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--bs-ink-2);
}

.bs-trust li {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.bs-trust .bs-icon--shield {
	color: var(--bs-go);
}

.bs-trust .bs-icon--share {
	color: var(--bs-muted);
}

/* ==========================================================================
   Trang download (bước 2 & 3)
   ========================================================================== */

.bs-download {
	padding-top: 18px;
	padding-bottom: 24px;
}

.bs-dl-head {
	text-align: center;
	padding-bottom: 6px;
}

body.bs-v2 .bs-dl-head .rank-math-breadcrumb {
	margin-bottom: 18px;
	text-align: left;
	font-size: 13px;
	color: var(--bs-muted);
}

body.bs-v2 .bs-dl-head .rank-math-breadcrumb p {
	margin: 0;
}

body.bs-v2 .bs-dl-head .rank-math-breadcrumb a {
	color: var(--bs-ink-2);
}

.bs-dl-head__icon {
	width: 96px;
	height: 96px;
	margin: 0 auto 14px;
	border-radius: 22%;
	overflow: hidden;
	background: var(--bs-mist);
	box-shadow: 0 8px 24px rgba(23, 32, 51, 0.14);
}

body.bs-v2 .bs-dl-head__title {
	max-width: 36ch;
	margin: 0 auto 6px;
	font-size: 20px;
	line-height: 1.4;
	font-weight: 700;
}

.bs-dl-head__sub {
	margin: 0;
	color: var(--bs-go);
	font-weight: 600;
	font-size: 15px;
}

.bs-dl-head__meta {
	margin: 4px 0 0;
	font-size: 13.5px;
	color: var(--bs-muted);
}

body.bs-v2 .bs-lead {
	margin: 16px 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--bs-mist);
	color: var(--bs-ink-2);
	font-size: 14.5px;
	line-height: 1.6;
}

body.bs-v2 .bs-download > .bs-btn--block,
body.bs-v2 .bs-download .final-download > .bs-btn--block {
	margin: 12px 0;
}

body.bs-v2 .bs-notice {
	margin: 16px 0;
}

.bs-prose {
	margin: 16px 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--bs-ink-2);
}

.bs-prose > *:last-child {
	margin-bottom: 0;
}

.bs-dual {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 16px 0;
}

/* Danh sách phiên bản */
.bs-version-list {
	border: 1px solid var(--bs-line);
	border-radius: 16px;
	overflow: hidden;
	background: var(--bs-paper);
}

body.bs-v2 .bs-version {
	display: block;
	margin: 0;
	border-bottom: 1px solid var(--bs-line);
	color: var(--bs-ink);
}

body.bs-v2 .bs-version:last-child {
	border-bottom: 0;
}

body.bs-v2 .bs-version__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	color: var(--bs-ink);
	cursor: pointer;
	list-style: none;
}

body.bs-v2 a.bs-version__row:hover,
body.bs-v2 summary.bs-version__row:hover {
	background: var(--bs-mist);
	color: var(--bs-ink);
}

.bs-version summary::-webkit-details-marker {
	display: none;
}

body.bs-v2 .bs-version.is-current,
body.bs-v2 .bs-version.is-current > .bs-version__row {
	background: #f1faf5;
}

.bs-version__icon {
	flex: 0 0 44px;
	height: 44px;
	border-radius: 22%;
	overflow: hidden;
	background: var(--bs-mist);
}

.bs-version__body {
	flex: 1;
	min-width: 0;
}

.bs-version__name {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.bs-version__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 5px;
	font-size: 13px;
	color: var(--bs-muted);
}

.bs-version__desc p {
	display: inline;
	margin: 0;
}

.bs-version__go {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex: none;
	height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--bs-go);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
}

.bs-version__toggle {
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--bs-mist);
	color: var(--bs-ink-2);
	transition: transform 0.2s ease;
}

.bs-version[open] .bs-version__toggle {
	transform: rotate(180deg);
}

.bs-version__panel {
	padding: 0 16px 16px 72px;
}

body.bs-v2 .bs-version__note {
	margin: 0 0 12px;
	padding: 12px 14px;
	border: 1px solid #f4e2b4;
	border-radius: 12px;
	background: #fff8e6;
	color: #6f5210;
	font-size: 14.5px;
}

@media (max-width: 549px) {
	.bs-version__panel {
		padding-left: 16px;
	}
	.bs-version__panel .bs-btn {
		width: 100%;
	}
	body.bs-v2 .bs-version__row {
		padding: 12px;
	}
}

/* Mở khóa → tải */
body.bs-v2 .bs-unlock {
	margin: 16px 0;
	padding: 16px;
	border: 1px solid var(--bs-line);
	border-radius: 18px;
	background: var(--bs-paper);
}

body.bs-v2 .bs-unlock__steps {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.bs-v2 .bs-unlock__step {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
}

body.bs-v2 #unlock-container {
	margin-bottom: 0;
}

.bs-unlock__num {
	display: grid;
	place-items: center;
	flex: 0 0 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--bs-mist);
	color: var(--bs-ink-2);
	font-weight: 700;
	font-size: 14px;
}

body.bs-v2 .bs-unlock__step .bs-btn {
	flex: 1;
	justify-content: center;
}

/* Nút tải khi chưa mở khóa (class do JS cũ điều khiển) */
body.bs-v2 #download #download-button.cursor-not-allowed {
	margin-top: 0;
	opacity: 1;
	background: #c7cfdb !important;
	color: #fff;
	pointer-events: none;
}

body.bs-v2 #unlock-container[style*="none"] ~ .bs-unlock__step .bs-unlock__num {
	display: none;
}

body.bs-v2 .bs-unlock .progress-box {
	display: none;
	margin-bottom: 0;
}

.bs-progress {
	padding: 14px;
	border: 1px solid #bfe8cf;
	border-bottom: 0;
	border-radius: 14px 14px 0 0;
	background: #eef9f2;
	color: #0b6b37;
}

body.bs-v2 .bs-progress p {
	margin: 0;
}

.bs-progress__title {
	font-weight: 700;
}

body.bs-v2 .bs-progress__file {
	margin-top: 4px;
	font-size: 13.5px;
	overflow-wrap: anywhere;
}

body.bs-v2 .bs-progress__fallback {
	margin-top: 4px;
	font-size: 13.5px;
	color: var(--bs-ink-2);
}

body.bs-v2 .bs-progress__fallback a {
	color: var(--bs-blue-ink);
	font-weight: 600;
	text-decoration: underline;
}

.bs-follow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding: 10px 14px;
	border-radius: 0 0 14px 14px;
	background: var(--bs-go);
	color: #fff;
	font-size: 13.5px;
}

body.bs-v2 .bs-follow a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #fff;
	font-weight: 600;
}

body.bs-v2 .bs-follow a:hover {
	color: #fff;
	text-decoration: underline;
}

/* ==========================================================================
   Danh mục / tìm kiếm
   ========================================================================== */

.bs-archive {
	padding-top: 18px;
	padding-bottom: 32px;
}

body.bs-v2 .bs-archive .rank-math-breadcrumb {
	font-size: 13px;
	color: var(--bs-muted);
}

body.bs-v2 .bs-archive .rank-math-breadcrumb p {
	margin: 0 0 8px;
}

body.bs-v2 .bs-archive .rank-math-breadcrumb a {
	color: var(--bs-ink-2);
}

body.bs-v2 .bs-archive__title {
	margin: 0 0 8px;
	font-size: 26px;
	line-height: 1.3;
}

body.bs-v2 .bs-archive__desc {
	max-width: 75ch;
	margin: 0 0 8px;
}

.bs-archive__head {
	margin-bottom: 8px;
}

.bs-pagination {
	margin-top: 24px;
}

body.bs-v2 .bs-pagination ul.links li a,
body.bs-v2 .bs-pagination ul.links li span {
	width: 40px;
	height: 40px;
	line-height: 40px;
	border-radius: 12px;
	background: var(--bs-mist);
	color: var(--bs-ink);
	font-size: 15px;
	font-weight: 600;
}

body.bs-v2 .bs-pagination ul.links li .current {
	background: var(--bs-orange);
	color: #fff;
}

/* ==========================================================================
   Bình luận + footer
   ========================================================================== */

.bs-comments {
	padding-bottom: 32px;
}

body.bs-v2 .bs-comments .comments-title {
	text-transform: none;
	font-size: 19px;
	line-height: 1.4;
}

body.bs-v2 .bs-footer > ol:empty {
	display: none;
}

body.bs-v2 .bs-footer {
	margin-top: 16px;
	border-top: 1px solid var(--bs-line);
	background: var(--bs-mist);
	color: var(--bs-muted);
	font-size: 14px;
}

body.bs-v2 .bs-footer a {
	color: var(--bs-ink-2);
}

body.bs-v2 .bs-footer a:hover {
	color: var(--bs-blue-ink);
}

@media (prefers-reduced-motion: reduce) {
	.bs-version__toggle,
	body.bs-v2 .bs-btn {
		transition: none;
	}
	.bs-featured__track {
		scroll-behavior: auto;
	}
}
