/* Home Lab: các thành phần dùng chung (header, footer, chat, thẻ, bài viết). */

/* ---------- Thanh tiến độ cuộn ---------- */
.hl-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 90;
	width: 100%;
	height: 3px;
	transform: scaleX(0);
	transform-origin: 0 50%;
	background: linear-gradient(90deg, var(--hl-color-green), var(--hl-color-green-light));
	pointer-events: none;
}

/* ---------- Header ---------- */
.hl-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 80;
	height: var(--hl-header-h);
}

/* Nền mờ đặt ở lớp giả: backdrop-filter trên chính header sẽ khiến menu mobile (position: fixed) chỉ cao bằng header. */
.hl-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(4, 40, 60, 0.92);
	backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
	opacity: 0;
	transition: opacity 0.5s;
}

.hl-header.is-solid::before,
.hl-page--inner .hl-header::before {
	opacity: 1;
}

.admin-bar .hl-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .hl-header {
		top: 46px;
	}
}

.hl-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--hl-space-4);
	height: 100%;
}

/* Logo màu hiện khi header trong suốt ở trang chủ (đặt trên nền trắng mờ cho dễ đọc); logo trắng dùng ở mọi trường hợp còn lại. */
.hl-logo--color {
	display: none;
}

.hl-page--home:not(.hl-nav-open) .hl-header:not(.is-solid) .hl-logo--white {
	display: none;
}

.hl-page--home:not(.hl-nav-open) .hl-header:not(.is-solid) .hl-logo--color {
	display: block;
}

.hl-header__logo {
	display: block;
}

.hl-header__logo {
	display: block;
}

.hl-header__logo img {
	height: 38px;
	width: auto;
}

.hl-nav {
	margin-left: auto;
}

.hl-menu {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
}

.hl-menu > li {
	position: relative;
}

.hl-menu a {
	display: block;
	padding: 10px 14px;
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.88);
	transition: color 0.3s;
}

.hl-menu > li > a {
	position: relative;
}

.hl-menu > li > a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 4px;
	height: 1px;
	background: #fff;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s var(--hl-ease);
}

.hl-menu > li:hover > a,
.hl-menu > li:focus-within > a,
.hl-menu > .current-menu-item > a,
.hl-menu > .current-menu-ancestor > a,
.hl-menu > .current_page_item > a {
	color: #fff;
}

.hl-menu > li:hover > a::after,
.hl-menu > li:focus-within > a::after,
.hl-menu > .current-menu-item > a::after,
.hl-menu > .current-menu-ancestor > a::after {
	transform: scaleX(1);
}

.hl-menu .menu-item-has-children > a {
	padding-right: 26px;
}

.hl-menu .menu-item-has-children > a::before {
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -5px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.hl-menu .sub-menu {
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 230px;
	padding: 8px;
	list-style: none;
	background: var(--hl-color-navy-dark);
	border-radius: var(--hl-radius-m);
	box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.35s var(--hl-ease), transform 0.35s var(--hl-ease), visibility 0.35s;
}

.hl-menu li:hover > .sub-menu,
.hl-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.hl-menu .sub-menu a {
	padding: 10px 14px;
	border-radius: var(--hl-radius-s);
}

.hl-menu .sub-menu a:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.hl-header__cta {
	min-height: 40px;
	padding: 9px 20px;
	font-size: 0.88rem;
}

.hl-nav__extra {
	display: none;
}

.hl-burger {
	display: none;
	width: 44px;
	height: 44px;
	margin-right: -8px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.hl-burger span,
.hl-burger span::before,
.hl-burger span::after {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.4s var(--hl-ease), opacity 0.3s, background 0.3s;
}

.hl-burger span {
	position: relative;
}

.hl-burger span::before,
.hl-burger span::after {
	content: "";
	position: absolute;
	left: 0;
}

.hl-burger span::before { top: -7px; }
.hl-burger span::after { top: 7px; }

.hl-nav-open .hl-burger span { background: transparent; }
.hl-nav-open .hl-burger span::before { top: 0; transform: rotate(45deg); }
.hl-nav-open .hl-burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
	.hl-header__logo img {
		height: 32px;
	}

	.hl-header__cta {
		display: none;
	}

	.hl-burger {
		display: inline-flex;
		margin-left: auto;
	}

	.hl-nav {
		position: fixed;
		inset: 0;
		z-index: -1;
		display: flex;
		flex-direction: column;
		padding: calc(var(--hl-header-h) + 20px) 24px 96px;
		overflow-y: auto;
		background: var(--hl-color-navy-darker);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-12px);
		pointer-events: none;
		transition: opacity 0.4s var(--hl-ease), transform 0.4s var(--hl-ease), visibility 0.4s;
	}

	.admin-bar .hl-nav {
		padding-top: calc(var(--hl-header-h) + 66px);
	}

	.hl-nav-open .hl-nav {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
	}

	.hl-nav-open .hl-header::before {
		opacity: 1;
		background: var(--hl-color-navy-darker);
	}

	.hl-nav-open {
		overflow: hidden;
	}

	.hl-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.hl-menu > li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.hl-menu a {
		padding: 16px 4px;
		font-size: 1.1rem;
		min-height: 44px;
	}

	.hl-menu > li > a::after,
	.hl-menu .menu-item-has-children > a::before {
		display: none;
	}

	.hl-menu .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 10px 14px;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: inherit;
		transform: none;
	}

	.hl-menu .sub-menu a {
		padding: 10px 4px;
		font-size: 0.98rem;
		color: rgba(255, 255, 255, 0.65);
	}

	.hl-nav__extra {
		display: grid;
		gap: 12px;
		margin-top: 28px;
	}
}

/* ---------- Đầu trang con (tiêu đề + breadcrumb) ---------- */
.hl-pagehead {
	position: relative;
	padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
	background:
		radial-gradient(900px 400px at 85% -20%, rgba(10, 154, 88, 0.22), transparent 70%),
		linear-gradient(160deg, var(--hl-color-navy) 0%, var(--hl-color-navy-darker) 100%);
	color: rgba(255, 255, 255, 0.82);
}

.hl-pagehead h1 {
	margin-bottom: 0.3em;
	color: #fff;
}

.hl-pagehead .hl-eyebrow {
	color: #7fe0ae;
}

.hl-pagehead__lead {
	max-width: 62ch;
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
}

.hl-breadcrumb {
	margin-bottom: var(--hl-space-3);
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.65);
}

.hl-breadcrumb a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.3);
	text-underline-offset: 3px;
}

.hl-breadcrumb a:hover {
	color: #fff;
}

.hl-breadcrumb .breadcrumb_last {
	color: #fff;
}

/* ---------- Thẻ nội dung (bài viết, dự án, sản phẩm) ---------- */
.hl-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--hl-radius-m);
	background: #fff;
	box-shadow: 0 1px 0 var(--hl-color-line);
	transition: transform 0.6s var(--hl-ease), box-shadow 0.6s var(--hl-ease);
}

.hl-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--hl-shadow);
}

.hl-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #d9d4c9;
}

.hl-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--hl-ease);
}

.hl-card:hover .hl-card__media img {
	transform: scale(1.05);
}

.hl-card__tag {
	position: absolute;
	left: 14px;
	top: 14px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--hl-color-navy);
	font-size: 0.72rem;
	font-weight: 500;
}

.hl-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px 24px;
}

.hl-card__title {
	margin: 0;
	font-size: 1.5rem;
}

.hl-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 0.82rem;
	color: var(--hl-color-muted);
}

.hl-card__excerpt {
	margin: 0;
	font-size: 0.93rem;
	color: var(--hl-color-muted);
}

.hl-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--hl-color-green);
}

.hl-card__more .hl-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.5s var(--hl-ease);
}

.hl-card:hover .hl-card__more .hl-icon {
	transform: translateX(4px);
}

/* Cả thẻ bấm được, chỉ một liên kết trong thẻ để tránh đọc lặp. */
.hl-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.hl-card {
	position: relative;
}

/* ---------- Nội dung bài viết / trang ---------- */
.hl-prose {
	max-width: 760px;
	font-size: 1.06rem;
}

.hl-prose > :first-child {
	margin-top: 0;
}

.hl-prose > * + * {
	margin-top: 1.1em;
}

.hl-prose h2 { margin-top: 1.8em; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.hl-prose h3 { margin-top: 1.5em; }

.hl-prose a {
	color: var(--hl-color-green);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hl-prose ul,
.hl-prose ol {
	padding-left: 1.4em;
}

.hl-prose li + li {
	margin-top: 0.4em;
}

.hl-prose img {
	border-radius: var(--hl-radius-m);
}

.hl-prose blockquote {
	margin-inline: 0;
	padding: 0.2em 0 0.2em 1.2em;
	border-left: 3px solid var(--hl-color-green);
	font-family: var(--hl-font-serif);
	font-size: 1.5rem;
	line-height: 1.35;
	color: var(--hl-color-navy);
}

.hl-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.hl-prose th,
.hl-prose td {
	padding: 10px 12px;
	border: 1px solid var(--hl-color-line);
	text-align: left;
}

.hl-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: var(--hl-space-3);
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.7);
}

.hl-article__cover {
	margin-top: calc(var(--hl-space-5) * -1);
	margin-bottom: var(--hl-space-5);
	position: relative;
	z-index: 1;
}

.hl-article__cover img {
	width: 100%;
	max-height: 560px;
	object-fit: cover;
	border-radius: var(--hl-radius-l);
	box-shadow: var(--hl-shadow);
}

/* ---------- Phân trang ---------- */
.navigation.pagination {
	margin-top: var(--hl-space-5);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.nav-links .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	background: #fff;
	font-size: 0.92rem;
	transition: background 0.3s, color 0.3s;
}

.nav-links a.page-numbers:hover {
	background: var(--hl-color-navy);
	color: #fff;
}

.nav-links .current {
	background: var(--hl-color-green);
	color: #fff;
}

/* ---------- Ô tìm kiếm ---------- */
.hl-search {
	display: flex;
	gap: 10px;
	max-width: 520px;
}

.hl-search input[type="search"] {
	flex: 1;
	min-height: 48px;
	padding: 0 20px;
	border: 1px solid var(--hl-color-line);
	border-radius: 999px;
	background: #fff;
	font: inherit;
}

/* ---------- Khối trống (không có kết quả, 404) ---------- */
.hl-empty {
	max-width: 560px;
	margin-inline: auto;
	padding-block: var(--hl-space-6);
	text-align: center;
}

.hl-empty .hl-search {
	margin: var(--hl-space-4) auto;
}

/* ---------- Footer ---------- */
.hl-footer {
	background: var(--hl-color-navy-darker);
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.92rem;
}

.hl-footer a {
	transition: color 0.3s;
}

.hl-footer a:hover {
	color: #fff;
}

.hl-footer__top {
	display: grid;
	gap: var(--hl-space-5);
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	padding-block: clamp(3rem, 6vw, 4.5rem) var(--hl-space-5);
}

.hl-footer__brand img {
	height: 46px;
	width: auto;
	margin-bottom: var(--hl-space-3);
}

.hl-footer__tagline {
	max-width: 34ch;
	margin-bottom: var(--hl-space-3);
}

.hl-footer__contact {
	display: grid;
	gap: 10px;
	margin: 0 0 var(--hl-space-3);
	padding: 0;
	list-style: none;
}

.hl-footer__contact li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.hl-footer__contact .hl-icon {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	color: #7fe0ae;
}

.hl-footer__hotline {
	font-size: 1.35rem;
	font-weight: 600;
	color: #fff;
}

.hl-footer__title {
	margin: 0 0 var(--hl-space-3);
	font-family: var(--hl-font-sans);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #fff;
}

.hl-footer__menu {
	display: grid;
	gap: 4px;
	list-style: none;
}

.hl-footer__menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.hl-social {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hl-social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	transition: background 0.3s, transform 0.4s var(--hl-ease);
}

.hl-social a:hover {
	background: var(--hl-color-green);
	transform: translateY(-2px);
}

.hl-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: var(--hl-space-4);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.82rem;
}

.hl-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}

@media (max-width: 1100px) {
	.hl-footer__top {
		grid-template-columns: 1fr 1fr;
	}

	.hl-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.hl-footer__top {
		grid-template-columns: 1fr;
	}

	.hl-footer {
		padding-bottom: 76px;
	}
}

/* ---------- Chat nổi (desktop) và thanh liên hệ dưới (mobile) ---------- */
.hl-chat {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 85;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	opacity: 0;
	transform: translateY(20px) scale(0.9);
	pointer-events: none;
	transition: opacity 0.9s var(--hl-ease), transform 0.9s var(--hl-ease);
}

.hl-chat.is-shown {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.hl-chat__fab {
	position: relative;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--hl-color-green);
	color: #fff;
	box-shadow: 0 14px 36px -8px rgba(5, 119, 67, 0.8);
	transition: transform 0.5s var(--hl-ease), background 0.4s;
}

.hl-chat__fab:hover {
	transform: scale(1.06);
	background: var(--hl-color-green-light);
}

.hl-chat__fab::before,
.hl-chat__fab::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--hl-color-green-light);
	opacity: 0;
	animation: hl-ring 2.8s var(--hl-ease) infinite;
}

.hl-chat__fab::after {
	animation-delay: 1.4s;
}

.hl-chat.is-open .hl-chat__fab::before,
.hl-chat.is-open .hl-chat__fab::after {
	animation: none;
}

@keyframes hl-ring {
	0% { transform: scale(1); opacity: 0.7; }
	100% { transform: scale(1.9); opacity: 0; }
}

.hl-chat__fab .hl-icon {
	width: 28px;
	height: 28px;
	transition: transform 0.5s var(--hl-ease);
}

.hl-chat.is-open .hl-chat__fab .hl-icon {
	transform: rotate(90deg) scale(0.9);
}

.hl-chat__tip {
	max-width: 230px;
	padding: 12px 16px;
	border-radius: 14px 14px 4px 14px;
	background: #fff;
	color: var(--hl-color-ink);
	font-size: 0.88rem;
	line-height: 1.45;
	box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.4);
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
	transition: opacity 0.7s var(--hl-ease), transform 0.7s var(--hl-ease);
}

.hl-chat__tip.is-on {
	opacity: 1;
	transform: none;
}

.hl-chat__tip b {
	display: block;
	font-weight: 600;
	color: var(--hl-color-navy);
}

.hl-chat__menu {
	position: absolute;
	right: 0;
	bottom: 76px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.5s var(--hl-ease), transform 0.5s var(--hl-ease), visibility 0.5s;
}

.hl-chat.is-open .hl-chat__menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.hl-chat__menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 6px 18px 6px 8px;
	border-radius: 999px;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 500;
	white-space: nowrap;
	box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.5);
}

.hl-chat__menu i {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	font-style: normal;
	font-size: 0.75rem;
	font-weight: 700;
}

.hl-chat__menu .hl-icon {
	width: 16px;
	height: 16px;
}

.hl-chat__zalo { background: var(--hl-color-zalo); }
.hl-chat__messenger { background: linear-gradient(135deg, #00b2ff, #006aff); }
.hl-chat__call { background: var(--hl-color-navy); }

.hl-bar {
	display: none;
}

@media (max-width: 860px) {
	.hl-chat {
		display: none;
	}

	.hl-bar {
		position: fixed;
		inset: auto 0 0 0;
		z-index: 85;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 1px;
		padding-bottom: env(safe-area-inset-bottom);
		background: rgba(255, 255, 255, 0.25);
		transform: translateY(100%);
		transition: transform 0.8s var(--hl-ease);
	}

	.hl-bar.is-shown {
		transform: none;
	}

	.hl-bar a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 1px;
		min-height: 56px;
		color: #fff;
		font-size: 0.72rem;
		font-weight: 500;
	}

	.hl-bar b {
		font-size: 0.95rem;
	}

	.hl-bar__zalo { background: var(--hl-color-zalo); }
	.hl-bar__messenger { background: var(--hl-color-messenger); }
	.hl-bar__call { background: var(--hl-color-green); }
}

/* ---------- Thanh kéo so sánh trước/sau (trang chủ và chi tiết dự án) ---------- */
.hl-ab__frame {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--hl-radius-l);
	background: #cfd2d0;
	box-shadow: var(--hl-shadow);
	touch-action: pan-y;
}

.hl-ab__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hl-ab__before {
	position: absolute;
	inset: 0;
	clip-path: inset(0 calc(100% - var(--x)) 0 0);
}

.hl-ab__before .hl-ab__img {
	filter: saturate(0.85);
}

.hl-ab__lab {
	position: absolute;
	top: 14px;
	z-index: 2;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(2, 27, 41, 0.7);
	font-size: 0.72rem;
	color: #fff;
	backdrop-filter: blur(6px);
}

.hl-ab__lab--a { left: 14px; }
.hl-ab__lab--b { right: 14px; }

.hl-ab__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--x);
	z-index: 2;
	width: 2px;
	background: #fff;
	transform: translateX(-1px);
	pointer-events: none;
}

.hl-ab__handle i {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
	transform: translate(-50%, -50%);
}

.hl-ab__handle i::before,
.hl-ab__handle i::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-bottom: 2px solid var(--hl-color-navy);
	border-left: 2px solid var(--hl-color-navy);
}

.hl-ab__handle i::before { left: 11px; transform: rotate(45deg); }
.hl-ab__handle i::after { right: 11px; transform: rotate(-135deg); }

.hl-ab__range {
	position: absolute;
	inset: 0;
	z-index: 3;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
}

.hl-ab__hint {
	margin: 12px 0 0;
	font-size: 0.82rem;
	text-align: center;
	color: var(--hl-color-muted);
}


/* ---------- Liên kết mũi tên ---------- */
.hl-link {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 22px;
	font-weight: 500;
	color: var(--hl-color-green);
}

.hl-link .hl-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.5s var(--hl-ease);
}

.hl-link:hover .hl-icon {
	transform: translateX(4px);
}

/* ---------- Nút lên đầu trang ---------- */
.hl-totop {
	position: fixed;
	right: 30px;
	bottom: 100px;
	z-index: 84;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: var(--hl-color-navy);
	color: #fff;
	box-shadow: 0 10px 24px -8px rgba(2, 27, 41, 0.55);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.4s var(--hl-ease), transform 0.4s var(--hl-ease), visibility 0.4s, background 0.3s;
}

.hl-totop.is-shown {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.hl-totop:hover {
	background: var(--hl-color-green);
	transform: translateY(-3px);
}

.hl-totop:focus-visible {
	outline: 3px solid var(--hl-color-green-light);
	outline-offset: 3px;
}

.hl-nav-open .hl-totop {
	display: none;
}

@media (max-width: 860px) {
	.hl-totop {
		right: 16px;
		bottom: calc(86px + env(safe-area-inset-bottom));
		width: 44px;
		height: 44px;
	}
}

/* Khung chat chỉ nhận bấm ở nút tròn và menu đang mở, không che nút lên đầu trang */
.hl-chat.is-shown {
	pointer-events: none;
}

.hl-chat.is-shown .hl-chat__fab,
.hl-chat.is-shown .hl-chat__menu a {
	pointer-events: auto;
}

.hl-totop {
	z-index: 86;
	bottom: 124px;
}

@media (max-width: 860px) {
	.hl-totop {
		bottom: calc(86px + env(safe-area-inset-bottom));
	}
}
