@charset "UTF-8";
/* ==========================================================================
   Người Đồng Hành — trang module
   ==========================================================================

   Chuyên gia (danh sách + hồ sơ), dự án bất động sản (danh sách + chi tiết),
   cổ phiếu (danh sách + chi tiết), trang Công cụ. Nạp sau ndh.css, chỉ trên
   các trang này.
   -------------------------------------------------------------------------- */

.ndh-page { padding-bottom: clamp(48px, 6vw, 80px); }

/* ==========================================================================
   Đường dẫn
   ========================================================================== */
.ndh-crumbs {
	display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px;
	padding-block: 16px;
	font-size: 13.5px; color: var(--muted);
}
.ndh-crumbs .ico { width: 13px; height: 13px; opacity: .6; }
.ndh-crumbs a:hover { color: var(--c-brand-700); text-decoration: underline; }
.ndh-crumbs [aria-current] { color: var(--c-ink); font-weight: 600; }
.ndh-crumbs--light { color: rgba(255, 255, 255, .66); }
.ndh-crumbs--light a:hover { color: #fff; }
.ndh-crumbs--light [aria-current] { color: #fff; }

/* ==========================================================================
   Hero trang module
   ========================================================================== */
.ndh-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-bottom: clamp(30px, 4vw, 48px);
	margin-bottom: 30px;
	background: linear-gradient(115deg, var(--c-brand-900), var(--c-brand-700));
	color: #fff;
}
.ndh-hero::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.ndh-hero--stock { background: linear-gradient(115deg, #0B1B3F, #1E3A8A 60%, #1D4ED8); }
.ndh-hero--re { background: linear-gradient(115deg, #3A2208, #7A4A0C 55%, #A15C00); }
.ndh-hero--tools { background: linear-gradient(115deg, var(--c-night-900), var(--c-brand-700)); }
.ndh-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; align-items: end; }
.ndh-hero__kicker { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--c-warm-400); }
.ndh-hero__kicker .ico { width: 18px; height: 18px; }
.ndh-hero__title { margin-top: 10px; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; line-height: 1.15; color: #fff; max-width: 22ch; }
.ndh-hero__lead { margin-top: 12px; max-width: 64ch; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .8); }
.ndh-hero__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ndh-hero__stats li { display: flex; flex-direction: column; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.ndh-hero__stats strong { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ndh-hero__stats span { font-size: 13px; color: rgba(255, 255, 255, .7); }

/* ==========================================================================
   Danh sách chuyên gia
   ========================================================================== */
.ndh-experts .ndh-tabs { margin-bottom: 24px; }
.ndh-trust { margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--c-cream); border: 1px solid #F1E7D3; }
.ndh-trust__title { font-size: clamp(20px, 2vw, 26px); font-weight: 800; color: var(--c-ink); text-align: center; }
.ndh-trust__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; counter-reset: trust; }
.ndh-trust__list li { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; background: #fff; }
.ndh-trust__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--c-brand-50); color: var(--c-brand-700); }
.ndh-trust__icon .ico { width: 24px; height: 24px; }
.ndh-trust__list strong { font-size: 16.5px; color: var(--c-ink); }
.ndh-trust__list p { font-size: 14px; line-height: 1.6; color: var(--c-text); }

/* ==========================================================================
   Hồ sơ chuyên gia
   ========================================================================== */
.xpro__hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-bottom: 36px;
	background: linear-gradient(120deg, var(--c-brand-900), var(--c-brand-700) 70%);
	color: #fff;
}
.xpro.is-stock .xpro__hero { background: linear-gradient(120deg, #0B1B3F, #1E3A8A 70%); }
.xpro.is-re .xpro__hero { background: linear-gradient(120deg, #3A2208, #8A5300 75%); }
.xpro.is-bank .xpro__hero { background: linear-gradient(120deg, #1E0B4B, #5B21B6 75%); }
.xpro__hero::after {
	content: "";
	position: absolute; z-index: -1;
	right: -120px; top: -120px;
	width: 480px; aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(242, 177, 59, .3), rgba(242, 177, 59, 0) 65%);
}
.xpro__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 36px); align-items: center; margin-top: 8px; }
.xpro__photo { position: relative; width: clamp(128px, 14vw, 176px); aspect-ratio: 1; padding: 5px; border-radius: 50%; background: conic-gradient(from 200deg, var(--c-warm-400), rgba(255, 255, 255, .6), var(--c-warm-400)); }
.xpro__avatar { border: 4px solid rgba(6, 35, 31, .6); }
.xpro__verified {
	position: absolute; left: 50%; bottom: -8px; translate: -50% 0;
	display: inline-flex; align-items: center; gap: 5px;
	padding: 4px 12px 4px 8px;
	border-radius: var(--r-pill);
	background: var(--c-act-700);
	border: 2px solid rgba(6, 35, 31, .5);
	font-size: 12px; font-weight: 700; white-space: nowrap;
}
.xpro__verified .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.xpro__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.xpro__name { margin-top: 10px; font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; line-height: 1.1; color: #fff; }
.xpro__pos { margin-top: 8px; font-size: 17px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.xpro__pos span { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 400; color: rgba(255, 255, 255, .7); }
.xpro__rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.xpro__rating strong { color: #fff; font-size: 16px; }
.xpro__rating .ndh-stars .ico { width: 17px; height: 17px; }
.xpro__rating .ndh-stars__base { color: rgba(255, 255, 255, .25); }
.xpro__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.xpro__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 250px; }
.xpro__stats li { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.xpro__stats strong { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.xpro__stats span { margin-top: 3px; font-size: 12.5px; color: rgba(255, 255, 255, .72); }

.ndh-anchors {
	position: sticky; top: var(--sticky-top, 0px); z-index: 50;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--c-line);
}
.ndh-anchors .shell { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ndh-anchors .shell::-webkit-scrollbar { display: none; }
.ndh-anchors a {
	position: relative;
	flex: none;
	padding: 15px 14px;
	font-size: 14.5px; font-weight: 700; color: var(--muted);
	white-space: nowrap;
	transition: color .2s;
}
.ndh-anchors a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--c-brand-600); transform: scaleX(0); transition: transform .2s; }
.ndh-anchors a:hover, .ndh-anchors a.is-active { color: var(--c-ink); }
.ndh-anchors a.is-active::after { transform: scaleX(1); }

.xpro__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3vw, 40px); align-items: start; padding-top: 30px; }
.xpro__sec { scroll-margin-top: 170px; }
.xpro__sec + .xpro__sec { margin-top: 42px; padding-top: 40px; border-top: 1px solid var(--c-line); }
.xpro__h { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; color: var(--c-ink); }
.xpro__sec-head { margin-bottom: 20px; }
.xpro__sub { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.xpro__quote {
	position: relative;
	margin: 18px 0 20px;
	padding: 20px 22px 20px 60px;
	border-radius: 16px;
	background: var(--c-cream);
	border: 1px solid #F1E7D3;
	font-size: 17px; font-weight: 600; line-height: 1.6; color: var(--c-ink);
}
.xpro__quote .ico { position: absolute; left: 18px; top: 18px; width: 28px; height: 28px; color: var(--c-warm-600); }
.xpro__bio { margin-top: 14px; font-size: 16px; line-height: 1.75; color: var(--c-text); }
.xpro__bio p + p { margin-top: 14px; }
.xpro__skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.xpro__skills li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--c-brand-50); font-weight: 600; color: var(--c-ink); }
.xpro__skills .ico { width: 18px; height: 18px; flex: none; color: var(--c-act-700); stroke-width: 2.4; }
.xpro__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.xpro__box { padding: 20px; border: 1px solid var(--c-line); border-radius: 16px; }
.xpro__h3 { display: flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 800; color: var(--c-ink); margin-bottom: 14px; }
.xpro__h3 .ico { width: 21px; height: 21px; color: var(--c-warm-600); }
.xpro__creds { display: grid; gap: 10px; }
.xpro__creds li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.5; color: var(--c-text); }
.xpro__creds li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-warm-400); }
.xpro__timeline { position: relative; display: grid; gap: 16px; padding-left: 20px; }
.xpro__timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--c-line); }
.xpro__timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.xpro__timeline li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--c-brand-600); }
.xpro__when { font-size: 12.5px; font-weight: 700; color: var(--c-brand-600); }
.xpro__timeline strong { color: var(--c-ink); }
.xpro__org { color: var(--muted); }

.xpro__side { position: sticky; top: calc(var(--sticky-top, 0px) + 70px); display: grid; gap: 16px; }
.xpro__card { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--c-line); box-shadow: var(--sh-soft); }
.xpro__card-title { font-size: 18px; font-weight: 800; color: var(--c-ink); }
.xpro__card-lead { margin: 6px 0 16px; font-size: 14px; line-height: 1.6; color: var(--c-text); }
.xpro__contact { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-line-soft); font-size: 14px; }
.xpro__contact li { display: flex; align-items: center; gap: 10px; color: var(--c-text); }
.xpro__contact .ico { width: 18px; height: 18px; color: var(--c-brand-600); }
.xpro__contact a:hover { color: var(--c-brand-700); text-decoration: underline; }
.xpro__card-sub { margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.xpro__links { display: grid; gap: 6px; margin-top: 8px; }
.xpro__links a { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--c-brand-700); }
.xpro__links .ico { width: 17px; height: 17px; }
.xpro__note { display: flex; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--c-soft); font-size: 13px; line-height: 1.55; color: var(--c-text); }
.xpro__note .ico { width: 20px; height: 20px; flex: none; color: var(--c-act-700); }
.xpro__peers { margin-top: clamp(40px, 5vw, 64px); padding-block: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--c-line); }

/* ==========================================================================
   Danh sách dự án — thanh lọc kiểu sàn bất động sản
   ========================================================================== */
.pfilter {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)) auto;
	gap: 0;
	margin-top: 24px;
	padding: 8px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 50px -26px rgba(0, 0, 0, .6);
	color: var(--c-text);
}
.pfilter__field { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 14px; min-width: 0; }
.pfilter__field + .pfilter__field { border-left: 1px solid var(--c-line); }
.pfilter__label { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); }
.pfilter__label .ico { width: 14px; height: 14px; color: var(--c-pillar-re); }
.pfilter input, .pfilter select {
	width: 100%;
	height: 30px;
	border: 0; background: none;
	font-size: 15px; font-weight: 600; color: var(--c-ink);
	text-overflow: ellipsis;
}
.pfilter select { cursor: pointer; }
.pfilter input:focus, .pfilter select:focus { outline: none; }
.pfilter__field:focus-within { background: var(--c-soft); border-radius: 12px; }
.pfilter__go {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 0 22px;
	border-radius: 14px;
	background: var(--c-warm-400);
	color: var(--c-ink);
	font-weight: 800; font-size: 15px;
	white-space: nowrap;
}
.pfilter__go .ico { width: 19px; height: 19px; }
.pfilter__go:hover { background: #F5BF55; }

.presult { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 20px; }
.presult__count { font-size: 15px; color: var(--c-text); }
.presult__count strong { font-size: 18px; color: var(--c-ink); }
.presult__chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.presult__chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 13px; border-radius: var(--r-pill); background: #FDF1E4; color: #7A4A0C; font-size: 13.5px; font-weight: 700; }
.presult__chips a .ico { width: 14px; height: 14px; }
.presult__chips a:hover { background: #FBE2C4; }
.presult__chips .presult__clear { background: none; color: var(--muted); text-decoration: underline; padding-inline: 6px; }
.presult__sort { margin-left: auto; }
.presult__sort label { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; }
.presult__sort .ico { width: 17px; height: 17px; color: var(--muted); }
.presult__sort select { border: 0; background: none; font-weight: 700; color: var(--c-ink); cursor: pointer; }

.ndh-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; margin-top: clamp(36px, 5vw, 56px); }
.ndh-split__side { display: grid; gap: 12px; }
.ndh-split__title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--c-ink); }
.ndh-split__title .ico { width: 20px; height: 20px; color: var(--c-pillar-re); }

/* ==========================================================================
   Chi tiết dự án
   ========================================================================== */
.proj__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 4px 0 20px; }
.proj__tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.proj__tags .rcard__status { box-shadow: none; }
.proj__type { padding: 4px 11px; border-radius: var(--r-pill); background: #FDF1E4; color: var(--c-pillar-re); font-size: 12px; font-weight: 700; }
.proj__title { margin-top: 10px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; line-height: 1.15; color: var(--c-ink); }
.proj__addr { display: flex; gap: 7px; margin-top: 10px; color: var(--muted); font-size: 15px; }
.proj__addr .ico { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--c-pillar-re); }
.proj__price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.proj__price-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.proj__price strong { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; color: var(--c-down); font-variant-numeric: tabular-nums; line-height: 1.2; }
.proj__price span { font-size: 14px; color: var(--c-text); }


.proj .ndh-anchors { margin-top: 24px; }
.proj__layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 3vw, 40px); align-items: start; padding-top: 30px; }
.proj__sec { scroll-margin-top: 170px; }
.proj__sec + .proj__sec { margin-top: 42px; }
.proj__h { font-size: clamp(21px, 2.2vw, 27px); font-weight: 800; color: var(--c-ink); margin-bottom: 18px; }
.proj__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; background: var(--c-line); }
.proj__fact { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #fff; }
.proj__fact dt { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.proj__fact dt .ico { width: 16px; height: 16px; color: var(--c-pillar-re); }
.proj__fact dd { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--c-ink); }
.proj__high { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.proj__high li { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #FFF8F0; font-weight: 600; color: var(--c-ink); font-size: 14.5px; }
.proj__high .ico { width: 18px; height: 18px; flex: none; color: var(--c-warm-600); margin-top: 1px; }
.proj__content { margin-top: 22px; font-size: 16px; line-height: 1.75; color: var(--c-text); }
.proj__content h2 { font-size: 20px; font-weight: 800; color: var(--c-ink); margin: 26px 0 10px; }
.proj__content p + p { margin-top: 12px; }
.proj__map { position: relative; aspect-ratio: 16 / 7; border-radius: 16px; overflow: hidden; background: #E8EFEC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 60h120M60 0v120M0 20h120M0 100h120M20 0v120M100 0v120' stroke='%23d5e0dc' stroke-width='1' fill='none'/%3E%3Cpath d='M0 90 Q40 70 70 80 T120 40' stroke='%23c3d4ce' stroke-width='6' fill='none'/%3E%3C/svg%3E"); }
.proj__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.proj__map-load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; width: 100%; font-weight: 700; color: var(--c-brand-800); }
.proj__map-load .ico { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: #fff; box-shadow: var(--sh-soft); color: var(--c-pillar-re); }
.proj__map-load span { padding: 8px 16px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--sh-soft); }
.proj__near { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; margin-top: 16px; }
.proj__near li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--c-line); font-size: 14.5px; }
.proj__near li span { display: inline-flex; align-items: center; gap: 8px; color: var(--c-text); }
.proj__near .ico { width: 17px; height: 17px; color: var(--c-brand-500); }
.proj__near strong { color: var(--c-ink); white-space: nowrap; }
.proj__amen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.proj__amen li { display: flex; gap: 9px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 12px; font-size: 14px; color: var(--c-ink); }
.proj__amen .ico { width: 17px; height: 17px; flex: none; color: var(--c-act-700); stroke-width: 2.4; margin-top: 2px; }

.proj__review { padding: clamp(20px, 3vw, 30px); border-radius: var(--r-xl); background: linear-gradient(180deg, #FFFCF6, #fff 40%); border: 1px solid #F1E7D3; }
.proj__review-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.proj__review-head .proj__h { margin: 4px 0 0; }
.proj__kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--c-warm-600); }
.proj__kicker .ico { width: 15px; height: 15px; fill: currentColor; }
.proj__bars { display: grid; gap: 12px; }
.proj__bars li { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 12px; font-size: 14.5px; }
.proj__bar-label { font-weight: 600; color: var(--c-text); }
.proj__bar { height: 10px; border-radius: 10px; background: var(--c-line-soft); overflow: hidden; }
.proj__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c-act-500), var(--c-brand-600)); }
.proj__bars strong { text-align: right; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.proj__pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.proj__pc-col { padding: 18px; border-radius: 14px; }
.proj__pc-col.is-pro { background: var(--c-up-50); }
.proj__pc-col.is-con { background: var(--c-down-50); }
.proj__pc-col h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.proj__pc-col.is-pro h3 { color: var(--c-up); }
.proj__pc-col.is-con h3 { color: var(--c-down); }
.proj__pc-col h3 .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.proj__pc-col ul { display: grid; gap: 8px; }
.proj__pc-col li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.55; color: var(--c-ink); }
.proj__pc-col li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .45; }
.proj__verdict { display: flex; gap: 16px; margin-top: 20px; padding: 18px; border-radius: 16px; background: var(--c-brand-800); color: rgba(255, 255, 255, .88); line-height: 1.65; }
.proj__verdict-av { width: 54px; height: 54px; flex: none; border: 2px solid var(--c-warm-400); }
.proj__verdict-t { font-weight: 800; color: var(--c-warm-400); margin-bottom: 4px; }
.proj__verdict-by { margin-top: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.proj__verdict-by a { color: #fff; font-weight: 700; text-decoration: underline; }
.proj__fit { margin-top: 18px; }
.proj__fit-t { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--c-ink); margin-bottom: 10px; }
.proj__fit-t .ico { width: 18px; height: 18px; color: var(--c-brand-600); }
.proj__fit ul { display: flex; flex-wrap: wrap; gap: 8px; }
.proj__fit li { padding: 6px 12px; border-radius: var(--r-pill); background: var(--c-brand-50); font-size: 13.5px; font-weight: 600; color: var(--c-brand-800); }

.proj__side { position: sticky; top: calc(var(--sticky-top, 0px) + 70px); }
.proj__sticky { display: grid; gap: 16px; }
.proj__cta { display: grid; gap: 10px; padding: 22px; border-radius: 18px; background: linear-gradient(160deg, var(--c-brand-800), var(--c-night-900)); color: #fff; }
.proj__cta-t { font-size: 18px; font-weight: 800; }
.proj__cta-l { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .75); margin-bottom: 4px; }
.proj__cta .ndh-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.proj__cta .ndh-btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.proj__experts { display: grid; gap: 10px; }
.proj__experts-t { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--c-ink); }
.proj__experts-t .ico { width: 19px; height: 19px; color: var(--c-brand-600); }
.proj__related { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--c-line); }
.proj__disclaimer { display: flex; gap: 8px; margin-top: 30px; font-size: 13px; color: var(--muted); }
.proj__disclaimer .ico { flex: none; width: 17px; height: 17px; margin-top: 1px; }

/* ==========================================================================
   Danh sách cổ phiếu
   ========================================================================== */
.mkt-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mkt-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-variant-numeric: tabular-nums; }
.mkt-card__name { font-size: 12.5px; color: rgba(255, 255, 255, .7); font-weight: 600; }
.mkt-card__val { font-size: 22px; font-weight: 800; }
.mkt-card__chg { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; }
.mkt-card__chg .ico { width: 14px; height: 14px; stroke-width: 2.4; }
.mkt-card.is-up .mkt-card__chg { color: #4ADE80; }
.mkt-card.is-down .mkt-card__chg { color: #FCA5A5; }
.mkt-card.is-ref .mkt-card__chg { color: #FDE047; }
.mkt-cards__time { grid-column: 1 / -1; font-size: 12px; color: rgba(255, 255, 255, .6); text-align: right; }

.sfilter { display: grid; gap: 14px; margin-bottom: 20px; }
.ndh-tabs--compact .ndh-tab { min-height: 38px; padding: 0 14px; }
.sfilter__recs { display: flex; flex-wrap: wrap; gap: 8px; }
.sfilter__rec {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 14px;
	border-radius: var(--r-pill);
	border: 1px solid var(--c-line);
	background: #fff;
	font-size: 13.5px; font-weight: 700; color: var(--c-text);
}
.sfilter__rec em { font-style: normal; opacity: .7; }
.sfilter__rec.is-up { color: var(--c-up); }
.sfilter__rec.is-down { color: var(--c-down); }
.sfilter__rec.is-ref { color: var(--c-ref); }
.sfilter__rec.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.sfilter .ndh-quick { margin: 0; }

.sdist { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 18px; margin-bottom: 18px; padding: 14px 18px; border-radius: 14px; background: var(--c-soft); }
.sdist__t { font-size: 13px; font-weight: 700; color: var(--c-ink); }
.sdist__bar { display: flex; height: 10px; border-radius: 10px; overflow: hidden; gap: 2px; }
.sdist__legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--c-text); }
.sdist__legend li { display: inline-flex; align-items: center; gap: 6px; }
.sdist__legend li span { width: 10px; height: 10px; border-radius: 3px; }
.sdist__bar .is-mua { background: var(--c-up); }
.sdist__bar .is-kha-quan { background: #34A853; }
.sdist__bar .is-nam-giu { background: #E3A12A; }
.sdist__bar .is-kem-kha-quan { background: #E57373; }
.sdist__bar .is-ban { background: var(--c-down); }
.sdist__legend li.is-mua span { background: var(--c-up); }
.sdist__legend li.is-kha-quan span { background: #34A853; }
.sdist__legend li.is-nam-giu span { background: #E3A12A; }
.sdist__legend li.is-kem-kha-quan span { background: #E57373; }
.sdist__legend li.is-ban span { background: var(--c-down); }
.ndh-block { margin-top: clamp(40px, 5vw, 60px); }

/* ==========================================================================
   Chi tiết cổ phiếu
   ========================================================================== */
.stk__hero { padding-bottom: 30px; background: linear-gradient(115deg, #0B1B3F, #1E3A8A 60%, #1D4ED8); color: #fff; }
.stk__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.stk__id { display: flex; align-items: center; gap: 18px; }
.stk__logo { display: grid; place-items: center; width: 76px; height: 76px; flex: none; border-radius: 22px; background: #fff; color: var(--c-pillar-stock); font-size: 18px; font-weight: 800; letter-spacing: .5px; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .6); }
.stk__title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: #fff; line-height: 1.15; }
.stk__title span { color: var(--c-warm-400); }
.stk__company { margin-top: 4px; font-size: 15px; color: rgba(255, 255, 255, .8); }
.stk__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.stk__chips a { padding: 3px 11px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: 12.5px; font-weight: 700; }
.stk__chips a:hover { background: rgba(255, 255, 255, .22); }
.stk__quote { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
.stk__price { font-size: clamp(38px, 4.4vw, 54px); font-weight: 800; line-height: 1; }
.stk__price.is-up, .stk__chg.is-up { color: #4ADE80; }
.stk__price.is-down, .stk__chg.is-down { color: #FCA5A5; }
.stk__price.is-ref, .stk__chg.is-ref { color: #FDE047; }
.stk__chg { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 16px; font-weight: 700; }
.stk__chg .ico { width: 17px; height: 17px; stroke-width: 2.4; }
.stk__unit { margin-top: 4px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }

.stk__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(22px, 3vw, 36px); align-items: start; padding-top: 28px; }
.stk__main { display: grid; gap: 20px; }
.stk__card { padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--c-line); border-radius: var(--r-xl); background: #fff; }
.stk__card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.stk__h { font-size: 20px; font-weight: 800; color: var(--c-ink); margin-bottom: 14px; }
.stk__card-head .stk__h { margin: 0; }
.stk__muted { font-size: 13px; color: var(--muted); }
.stk__plot { position: relative; height: 230px; padding: 6px 0; background-image: linear-gradient(var(--c-line-soft) 1px, transparent 1px); background-size: 100% 25%; }
.stk__plot .spark { width: 100%; height: 100%; }
.stk__plot .spark__line { stroke-width: 2.6; }
.stk__target-line { position: absolute; left: 0; right: 0; top: var(--y); border-top: 2px dashed var(--c-warm-600); }
.stk__target-line em { position: absolute; right: 0; top: -26px; padding: 2px 8px; border-radius: 6px; background: var(--c-warm-50); color: var(--c-warm-700); font-style: normal; font-size: 12px; font-weight: 700; }
.stk__range { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.stk__range div, .stk__metrics div { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--c-soft); }
.stk__range dt, .stk__metrics dt { font-size: 12.5px; color: var(--muted); }
.stk__range dd, .stk__metrics dd { margin: 0; font-size: 16.5px; font-weight: 800; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.stk__range dd.is-up { color: var(--c-up); }
.stk__range dd.is-down { color: var(--c-down); }
.stk__metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stk__w52 { margin-top: 18px; font-size: 13px; color: var(--muted); }
.stk__w52-bar { position: relative; height: 8px; margin: 10px 0 6px; border-radius: 8px; background: linear-gradient(90deg, var(--c-down), var(--c-ref), var(--c-up)); opacity: .9; }
.stk__w52-bar i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--c-ink); translate: -50% -50%; }
.stk__w52-ends { display: flex; justify-content: space-between; font-weight: 700; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.stk__content { font-size: 16px; line-height: 1.75; color: var(--c-text); }
.stk__content h2 { font-size: 18px; font-weight: 800; color: var(--c-ink); margin: 22px 0 8px; }
.stk__content h2:first-child { margin-top: 0; }
.stk__side { position: sticky; top: calc(var(--sticky-top, 0px) + 20px); }
.stk__sticky { display: grid; gap: 16px; }
.stk__disclaimer { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.stk__disclaimer .ico { width: 17px; height: 17px; flex: none; }
.stk__peers { margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(30px, 4vw, 48px); border-top: 1px solid var(--c-line); }

.recbox { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--c-line); box-shadow: var(--sh-soft); border-top: 6px solid var(--c-ref); }
.recbox.is-up { border-top-color: var(--c-up); }
.recbox.is-down { border-top-color: var(--c-down); }
.recbox__label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.recbox__rec { margin-top: 2px; font-size: 34px; font-weight: 800; line-height: 1.15; }
.recbox.is-up .recbox__rec { color: var(--c-up); }
.recbox.is-down .recbox__rec { color: var(--c-down); }
.recbox.is-ref .recbox__rec { color: var(--c-ref); }
.recbox__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.recbox__grid div { padding: 10px 12px; border-radius: 12px; background: var(--c-soft); }
.recbox__grid dt { font-size: 12px; color: var(--muted); }
.recbox__grid dd { margin: 2px 0 0; font-size: 17px; font-weight: 800; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.recbox__grid dd.is-up { color: var(--c-up); }
.recbox__grid dd.is-down { color: var(--c-down); }
.recbox__scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 16px; }
.recbox__scale li { padding: 6px 2px; border-radius: 6px; background: var(--c-soft); font-size: 10.5px; font-weight: 700; text-align: center; color: var(--muted); line-height: 1.25; }
.recbox__scale li.is-on { background: var(--c-ink); color: #fff; }

/* ==========================================================================
   Trang Công cụ
   ========================================================================== */
.ndh-tools__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ndh-tools__nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-weight: 700; }
.ndh-tools__nav a:hover { background: rgba(255, 255, 255, .2); }
.ndh-tools__nav .ico { width: 18px; height: 18px; color: var(--c-warm-400); }
.ndh-tools__body { max-width: 1040px; }
.ndh-tools__intro { margin-bottom: 24px; }

/* ==========================================================================
   Đáp ứng màn hình
   ========================================================================== */
@media (max-width: 1100px) {
	.pfilter { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
	.pfilter__field--q { grid-column: 1 / -1; }
	.pfilter__field + .pfilter__field { border-left: 0; }
	.pfilter__field { background: var(--c-soft); border-radius: 12px; }
	.pfilter__go { min-height: 54px; justify-content: center; }
	.xpro__head { grid-template-columns: auto minmax(0, 1fr); }
	.xpro__stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
	.ndh-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.xpro__layout, .proj__layout, .stk__layout, .ndh-split { grid-template-columns: minmax(0, 1fr); }
	.xpro__side, .proj__side, .stk__side { position: static; }
	.proj__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.proj__amen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stk__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.ndh-hero__stats { grid-template-columns: 1fr 1fr; }
	.ndh-trust__list { grid-template-columns: minmax(0, 1fr); }
	.pfilter { grid-template-columns: 1fr 1fr; }
	.pfilter__go { grid-column: 1 / -1; }
	.presult__sort { margin-left: 0; width: 100%; }
	.presult__sort label { width: 100%; }
	.presult__sort select { flex: 1; }
	.xpro__head { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
	.xpro__chips, .xpro__rating, .xpro__acts { justify-content: center; }
	.xpro__stats { grid-template-columns: 1fr 1fr; width: 100%; min-width: 0; }
	.xpro__skills, .xpro__cols, .proj__high, .proj__pc, .proj__near, .proj__amen { grid-template-columns: minmax(0, 1fr); }
	.proj__price { align-items: flex-start; text-align: left; }
	.proj__bars li { grid-template-columns: 80px 1fr 34px; }
	.proj__review-head .ndh-ring--lg { width: 70px; height: 70px; }
	.proj__map { aspect-ratio: 4 / 3; }
	.stk__head { align-items: flex-start; }
	.stk__quote { align-items: flex-start; text-align: left; }
	.stk__logo { width: 60px; height: 60px; border-radius: 18px; font-size: 15px; }
	.stk__range { grid-template-columns: 1fr 1fr; }
	.stk__plot { height: 180px; }
	.sdist { grid-template-columns: minmax(0, 1fr); }
}

/* Cột chính trang chi tiết hẹp hơn trang chủ: lưới bài 2 cột, bảng mã bỏ cột phụ. */
.xpro__main .ndh-news--flat, .proj__main .ndh-news--flat, .stk__main .ndh-news--flat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xpro__main .stbl .is-opt { display: none; }
@media (max-width: 700px) {
	.xpro__main .ndh-news--flat, .proj__main .ndh-news--flat, .stk__main .ndh-news--flat { grid-template-columns: minmax(0, 1fr); }
}
.proj__facts { background: #fff; gap: 0; }
.proj__fact { box-shadow: inset -1px -1px 0 var(--c-line); }

/* Cột bên trang chuyên gia chứa form dài — không dính để không bị cắt. */
.xpro__side { position: static; }


/* ==========================================================================
   Gallery ảnh dự án
   ========================================================================== */
.proj__scorechip {
	display: inline-flex; align-items: center; gap: 6px;
	margin-top: 8px; padding: 5px 12px 5px 8px;
	border-radius: var(--r-pill);
	background: var(--c-ink); color: #fff;
	font-size: 12.5px;
	transition: transform .2s;
}
.proj__scorechip:hover { transform: translateY(-1px); }
.proj__scorechip .ico { width: 15px; height: 15px; fill: var(--c-warm-400); stroke: none; }
.proj__scorechip strong { font-size: 15px; color: var(--c-warm-400); }
.proj__scorechip span { color: rgba(255, 255, 255, .8); }

.pgal { position: relative; }
.pgal__grid {
	display: grid;
	gap: 8px;
	height: clamp(320px, 40vw, 540px);
	border-radius: var(--r-xl);
	overflow: hidden;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
}
.pgal--n1 .pgal__grid { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.pgal--n2 .pgal__grid { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.pgal--n3 .pgal__grid { grid-template-columns: 2fr 1fr; }
.pgal--n4 .pgal__item:nth-child(4) { grid-column: 2 / span 2; }
.pgal__item--main { grid-row: 1 / -1; }
.pgal--n2 .pgal__item--main { grid-row: auto; }
.pgal__item {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--c-soft);
	cursor: zoom-in;
	outline-offset: -3px;
}
.pgal__item[hidden] { display: none; }
.pgal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.pgal__item::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(6, 35, 31, 0) 55%, rgba(6, 35, 31, .45));
	opacity: 0;
	transition: opacity .3s;
	pointer-events: none;
}
.pgal__item:hover img, .pgal__item:focus-visible img { transform: scale(1.05); }
.pgal__item:hover::after, .pgal__item:focus-visible::after { opacity: 1; }
.pgal__item--main::after { opacity: 1; }
.pgal__more {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: rgba(6, 35, 31, .58);
	backdrop-filter: blur(2px);
	color: #fff;
	transition: background-color .3s;
}
.pgal__item:hover .pgal__more { background: rgba(6, 35, 31, .7); }
.pgal__more strong { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; line-height: 1; }
.pgal__more span { margin-top: 4px; font-size: 13px; font-weight: 600; opacity: .85; }
.pgal__cap {
	position: absolute; left: 16px; top: 16px; z-index: 1;
	max-width: calc(100% - 32px);
	padding: 6px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .92);
	color: var(--c-ink);
	font-size: 13px; font-weight: 600;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Góc trái: góc phải dưới là chỗ của nút nổi "Tư vấn ngay". */
.pgal__all {
	position: absolute; left: 16px; bottom: 16px; z-index: 2;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 16px;
	border-radius: var(--r-pill);
	background: #fff;
	color: var(--c-ink);
	font-size: 14px; font-weight: 700;
	box-shadow: 0 10px 24px -12px rgba(6, 35, 31, .6);
	transition: transform .2s, background-color .2s;
}
.pgal__all:hover { transform: translateY(-2px); background: var(--c-warm-50); }
.pgal__all .ico { width: 17px; height: 17px; }
.pgal__count { display: none; }
.pgal--n1 .pgal__all { display: none; }

.pgal--empty .pgal__art { position: relative; margin: 0; height: clamp(280px, 36vw, 460px); border-radius: var(--r-xl); overflow: hidden; background: var(--c-soft); }
.pgal--empty svg { width: 100%; height: 100%; object-fit: cover; }
.pgal--empty figcaption { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, .92); font-size: 12.5px; font-weight: 600; color: var(--c-text); }
.pgal--empty figcaption .ico { width: 16px; height: 16px; }

@media (max-width: 700px) {
	.pgal__grid {
		display: flex;
		height: 260px;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
		gap: 8px;
		border-radius: 0;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	.pgal__grid::-webkit-scrollbar { display: none; }
	.pgal__item { flex: 0 0 86%; border-radius: 16px; scroll-snap-align: center; }
	.pgal--n1 .pgal__item { flex-basis: 100%; }
	.pgal__cap { display: none; }
	.pgal__all { left: calc(var(--gutter) + 10px); bottom: 12px; padding: 8px 13px; font-size: 13px; }
	.pgal__count {
		position: absolute; top: 12px; right: calc(var(--gutter) + 10px);
		display: inline-flex; align-items: center; gap: 5px;
		padding: 4px 10px;
		border-radius: var(--r-pill);
		background: rgba(6, 35, 31, .7); color: #fff;
		font-size: 12px; font-weight: 700;
	}
	.pgal__count .ico { width: 14px; height: 14px; }
}

/* ==========================================================================
   Trang chủ đầu tư
   ========================================================================== */
.ndh-dev__sec { padding: clamp(28px, 3.4vw, 44px) 0 0; }
.ndh-dev__sec:last-child { padding-bottom: clamp(28px, 3.4vw, 44px); }
.ndh-dev .ndh-hero__stats { align-content: start; }
.ndh-dev .pseo { margin-top: clamp(28px, 3.4vw, 44px); }

/* ==========================================================================
   Trình xem ảnh toàn màn hình
   ========================================================================== */
html.lbx-open { overflow: hidden; }
.lbx {
	position: fixed; inset: 0; z-index: 600;
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr) 84px;
	grid-template-rows: auto minmax(0, 1fr) auto auto;
	color: #fff;
}
.lbx[hidden] { display: none; }
.lbx__bg { position: absolute; inset: 0; background: rgba(3, 14, 12, .95); backdrop-filter: blur(10px); }
.lbx__top {
	position: relative; z-index: 2;
	grid-column: 1 / -1;
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 20px;
}
.lbx__count { font-size: 14px; font-weight: 700; letter-spacing: .5px; font-variant-numeric: tabular-nums; opacity: .9; }
.lbx__tools { display: flex; gap: 8px; }
.lbx__btn, .lbx__nav {
	display: grid; place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .16);
	color: #fff;
	transition: background-color .2s, transform .2s;
}
.lbx__btn { width: 44px; height: 44px; }
.lbx__btn svg { width: 20px; height: 20px; }
.lbx__btn:hover, .lbx__nav:hover { background: rgba(255, 255, 255, .22); }
/* Khi phóng to, ảnh (có thể rất sáng) tràn dưới các nút — nền tối cho nút vẫn rõ. */
.lbx.is-zoom .lbx__btn:not([aria-pressed="true"]) { background: rgba(6, 20, 18, .62); border-color: rgba(255, 255, 255, .28); }
.lbx.is-zoom .lbx__count { padding: 3px 10px; border-radius: 999px; background: rgba(6, 20, 18, .62); }
.lbx__btn[aria-pressed="true"] { background: var(--c-warm-400); color: var(--c-ink); border-color: transparent; }
.lbx__nav { position: relative; z-index: 2; align-self: center; justify-self: center; width: 54px; height: 54px; grid-row: 2; }
.lbx__nav svg { width: 24px; height: 24px; }
.lbx__nav:hover { transform: scale(1.06); }
.lbx__nav[hidden] { display: none; }
.lbx__nav--prev { grid-column: 1; }
.lbx__nav--next { grid-column: 3; }
.lbx__stage {
	position: relative; z-index: 1;
	grid-column: 2; grid-row: 2;
	display: flex; align-items: center; justify-content: center;
	min-height: 0;
	touch-action: none;
}
.lbx__img {
	max-width: none;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
	cursor: zoom-in;
	user-select: none;
	-webkit-user-drag: none;
	transition: transform .4s cubic-bezier(.2, .8, .2, 1);
	will-change: transform;
}
.lbx.is-zoom .lbx__img { transform: scale(2.2); cursor: zoom-out; transition: transform .4s cubic-bezier(.2, .8, .2, 1), transform-origin .12s linear; }
.lbx.is-zoom .lbx__nav, .lbx.is-zoom .lbx__thumbs, .lbx.is-zoom .lbx__cap { opacity: 0; pointer-events: none; }
.lbx__spin {
	position: absolute; top: 50%; left: 50%;
	width: 34px; height: 34px; margin: -17px 0 0 -17px;
	border: 3px solid rgba(255, 255, 255, .25);
	border-top-color: var(--c-warm-400);
	border-radius: 50%;
	animation: lbx-spin .8s linear infinite;
	pointer-events: none;
}
.lbx__spin[hidden] { display: none; }
@keyframes lbx-spin { to { transform: rotate(360deg); } }
.lbx__cap {
	position: relative; z-index: 2;
	grid-column: 1 / -1;
	margin: 12px auto 0;
	max-width: 760px;
	padding: 0 20px;
	text-align: center;
	font-size: 15px; line-height: 1.5;
	color: rgba(255, 255, 255, .88);
	transition: opacity .2s;
}
.lbx__cap[hidden] { display: none; }
.lbx__thumbs {
	position: relative; z-index: 2;
	grid-column: 1 / -1;
	display: flex; gap: 8px;
	padding: 14px 20px 18px;
	overflow-x: auto;
	scrollbar-width: none;
	transition: opacity .2s;
}
.lbx__thumbs::-webkit-scrollbar { display: none; }
.lbx__thumbs[hidden] { display: none; }
.lbx__thumbs > :first-child { margin-left: auto; }
.lbx__thumbs > :last-child { margin-right: auto; }
.lbx__thumb {
	flex: none;
	width: 76px; height: 54px;
	padding: 0;
	border-radius: 10px;
	overflow: hidden;
	opacity: .45;
	outline: 2px solid transparent;
	outline-offset: 2px;
	transition: opacity .2s, outline-color .2s, transform .2s;
}
.lbx__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lbx__thumb:hover { opacity: .8; }
.lbx__thumb.is-on { opacity: 1; outline-color: var(--c-warm-400); transform: translateY(-2px); }

@media (max-width: 700px) {
	.lbx { grid-template-columns: 0 minmax(0, 1fr) 0; }
	.lbx__nav { position: absolute; top: 50%; width: 42px; height: 42px; margin-top: -21px; background: rgba(0, 0, 0, .35); }
	.lbx__nav--prev { left: 8px; }
	.lbx__nav--next { right: 8px; }
	.lbx__stage { padding: 0 4px; }
	.lbx__thumb { width: 58px; height: 42px; }
	.lbx__cap { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.pgal__item img, .lbx__img { transition: none; }
	.lbx__spin { animation-duration: 2s; }
}
