/* ==========================================================================
   thedientu – Thẻ chạm thông minh cho cửa hàng
   Một file CSS duy nhất. Ưu tiên điện thoại, có chế độ tối.
   ========================================================================== */

/* 1. Màu sắc --------------------------------------------------------------- */
:root {
	--bg: #EDF0F3;
	--surface: #FFFFFF;
	--ink: #17202B;
	--muted: #56616E;
	--line: #D7DDE3;
	--tap: #2856E8;
	--tap-ink: #FFFFFF;
	--tap-soft: #E4EBFE;
	--star: #E8A21A;
	--star-edge: #B7790C;   /* viền sao: 3,65:1 trên trắng */
	--cta: #E8A21A;         /* nút chuyển đổi chính (đặt hàng): chữ mực 7,52:1 */
	--cta-hover: #F0B33C;
	--cta-ink: #17202B;
	--ok: #1E7A4C;
	--ok-soft: #E3F4EA;
	--err: #B33A2B;
	--err-soft: #FBE9E6;
	--dark-block: #17202B;
	--dark-block-ink: #FFFFFF;
	--shadow: 0 1px 2px rgba(15, 25, 35, .06), 0 8px 24px rgba(15, 25, 35, .06);

	--c-review: #B33A2B;
	--c-wifi: #235C8F;
	--c-menu: #3C6B3A;
	--c-message: #2856E8;
	--c-profile: #2B2F36;

	--radius: 16px;
	--radius-sm: 10px;
	--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1120px;
	--gutter: 16px;
	--header-h: 64px;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #12171D;
		--surface: #1B222A;
		--ink: #E8EDF2;
		--muted: #9CA8B4;
		--line: #2C3640;
		--tap: #6F92FF;
		--tap-ink: #0E1420;
		--tap-soft: #1F2C4D;
		--ok: #4CC488;
		--ok-soft: #173326;
		--err: #FF8A7A;
		--err-soft: #3A1F1B;
		--dark-block: #0B0F14;
		--dark-block-ink: #E8EDF2;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: #12171D;
	--surface: #1B222A;
	--ink: #E8EDF2;
	--muted: #9CA8B4;
	--line: #2C3640;
	--tap: #6F92FF;
	--tap-ink: #0E1420;
	--tap-soft: #1F2C4D;
	--ok: #4CC488;
	--ok-soft: #173326;
	--err: #FF8A7A;
	--err-soft: #3A1F1B;
	--dark-block: #0B0F14;
	--dark-block-ink: #E8EDF2;
	color-scheme: dark;
}

/* 2. Nền tảng -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.6;
	overflow-x: hidden;
}

[hidden] { display: none !important; }

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--tap); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }

p { margin: 0 0 1em; }
/* Ngắt dòng tự nhiên, tránh một chữ lẻ ở dòng cuối (trình duyệt hỗ trợ). */
p, li, dd, figcaption { text-wrap: pretty; }
::selection { background: color-mix(in srgb, var(--tap) 22%, transparent); }

:focus-visible { outline: 3px solid var(--star); outline-offset: 2px; border-radius: 4px; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: var(--surface);
	padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: max(var(--gutter), env(safe-area-inset-left));
	padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.container--narrow { max-width: 820px; }

.center { text-align: center; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }

/* 3. Nút ------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px;
	border: 2px solid transparent; border-radius: 999px;
	font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
	text-decoration: none; text-align: center; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: .92rem; }
.btn--lg { min-height: 52px; padding: 12px 24px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--tap); color: var(--tap-ink); }
/* Nút chuyển đổi chính: mỗi trang chỉ một nút dùng màu nhấn hổ phách (nguyên tắc tách biệt). */
.btn--cta { background: var(--cta); color: var(--cta-ink); box-shadow: 0 6px 18px rgba(232, 162, 26, .32); }
.btn--cta:hover { background: var(--cta-hover); box-shadow: 0 10px 24px rgba(232, 162, 26, .4); }
.btn--primary:hover { box-shadow: 0 6px 18px rgba(40, 86, 232, .3); }
.btn--dark { background: var(--ink); color: var(--surface); }
.btn--ghost { background: var(--tap-soft); color: var(--tap); }
.btn--ghost:hover { border-color: var(--tap); }
.btn--light { background: #FFFFFF; color: #17202B; }
.btn--outline-light { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .5); }
.btn--outline-light:hover { border-color: #FFFFFF; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row--center { justify-content: center; }
@media (max-width: 479px) {
	.btn-row > .btn:not(.btn--sm), .cta__actions > .btn { flex: 1 1 100%; }
}

.link-arrow {
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 700; text-decoration: none; min-height: 44px;
}
.link-arrow .icon { transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* 4. Đầu trang ------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
	color: var(--ink); text-decoration: none; min-width: 0;
}
.brand__mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 11px; flex: none;
	background: var(--ink); color: var(--surface);
}
.brand__mark .icon { width: 22px; height: 22px; }
.brand__img { max-height: 40px; width: auto; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.15; }
.brand__tld { color: var(--tap); }
.brand__tagline { font-size: .75rem; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; flex: none;
	border: 1px solid var(--line); border-radius: 12px;
	background: var(--surface); color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }

.site-nav {
	position: absolute; left: 0; right: 0; top: 100%;
	display: none; flex-direction: column; gap: 8px;
	padding: 8px var(--gutter) 16px;
	background: var(--bg); border-bottom: 1px solid var(--line);
	box-shadow: 0 12px 24px rgba(15, 25, 35, .08);
	max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.site-nav.is-open { display: flex; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; }
.site-nav .menu a {
	display: flex; align-items: center; min-height: 48px; padding: 0 4px;
	color: var(--ink); text-decoration: none; font-weight: 600;
	border-bottom: 1px solid var(--line);
}
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--tap); }
.site-nav__cta { margin-top: 8px; }

@media (min-width: 960px) {
	.nav-toggle { display: none; }
	.site-nav {
		position: static; display: flex; flex-direction: row; align-items: center; gap: 12px;
		padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible;
	}
	.site-nav .menu { display: flex; gap: 2px; }
	.site-nav .menu a {
		min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; font-size: .95rem;
	}
	.site-nav .menu a:hover { background: var(--surface); }
	.site-nav__cta { margin-top: 0; }
}

/* 5. Khối & tiêu đề -------------------------------------------------------- */
.section { padding: 48px 0; }
.section--tight { padding: 28px 0 48px; }
.section--surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) {
	.section { padding: 72px 0; }
	.section--tight { padding: 36px 0 72px; }
}

.section__head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.section__title { font-size: clamp(1.3rem, 4.6vw, 2.1rem); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.section__title--sm { font-size: clamp(1.2rem, 3.6vw, 1.6rem); margin-bottom: 14px; }
.section__lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }
.section__head .section__lead { margin-top: -4px; }

.eyebrow {
	display: inline-block; margin: 0 0 10px;
	color: var(--muted); font-weight: 700; font-size: .78rem;
	letter-spacing: .08em; text-transform: uppercase;
}

.page-hero { padding: 36px 0 8px; }
.page-hero__title { font-size: clamp(1.7rem, 6vw, 2.6rem); font-weight: 800; margin-bottom: 10px; }
.page-hero__lead { color: var(--muted); font-size: 1.08rem; max-width: 680px; }
.page-hero .eyebrow { margin-bottom: 6px; }

.hint {
	background: var(--tap-soft); color: var(--ink);
	border-radius: 12px; padding: 12px 14px; font-size: .95rem; margin: 0 0 16px;
}
.note { color: var(--muted); font-size: .92rem; margin-top: 16px; }
.callout {
	display: flex; gap: 10px; align-items: flex-start;
	background: var(--tap-soft); border-radius: 12px; padding: 14px 16px; margin: 24px 0 0;
}
.callout .icon { color: var(--tap); margin-top: 2px; }
.callout--center { justify-content: center; text-align: left; display: inline-flex; }

/* 6. Tấm thẻ vẽ bằng CSS --------------------------------------------------- */
.tcard {
	--card: var(--c-review);
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
	width: 100%; aspect-ratio: 1.586 / 1;
	padding: 16px; border-radius: 16px;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .16), transparent 55%),
		var(--card);
	color: #FFFFFF; text-align: left;
	box-shadow: 0 10px 24px rgba(15, 25, 35, .18);
}
.tcard__nfc { position: absolute; right: 12px; top: 12px; width: 24px; height: 24px; opacity: .85; }
.tcard__nfc .icon { width: 24px; height: 24px; }
.tcard__ico .icon { width: 34px; height: 34px; }
.tcard__text { display: flex; flex-direction: column; padding-right: 44px; }
.tcard__name { font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.tcard__sub { font-size: .8rem; opacity: .85; margin-top: 2px; }
.tcard__qr {
	position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 5px;
	background:
		linear-gradient(90deg, #FFFFFF 3px, transparent 3px) 0 0 / 7px 7px,
		linear-gradient(#FFFFFF 3px, transparent 3px) 0 0 / 7px 7px;
	opacity: .35;
}
.tcard--lg { padding: 24px; }
.tcard--lg .tcard__name { font-size: 1.35rem; }
.tcard--lg .tcard__ico .icon { width: 48px; height: 48px; }
.tcard--lg .tcard__qr { width: 48px; height: 48px; }

/* 7. Trang chủ: Hero ------------------------------------------------------- */
.hero { padding: 28px 0 40px; overflow: hidden; }
.hero__inner { display: grid; gap: 28px; align-items: center; }
.hero__title { font-size: clamp(2rem, 8.4vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.hero__lead { font-size: 1.08rem; color: var(--muted); max-width: 560px; }
.hero__points { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; }
.hero__points li { display: inline-flex; align-items: center; gap: 6px; }
.hero__points .icon { color: var(--ok); }
.hero__points .hero__price { color: var(--ink); font-weight: 700; }
.hero__points .hero__price small { font-weight: 500; color: var(--muted); }

/* Dải phí dịch vụ dưới khối combo (trang chủ) */
.fee-strip { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px; border-radius: var(--radius); background: var(--tap-soft); }
.fee-strip__text { flex: 1 1 360px; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; color: var(--muted); font-size: .95rem; }
.fee-strip__text b { width: 100%; color: var(--ink); font-size: 1.1rem; }
.fee-strip__text span + span::before { content: "·"; margin-right: 14px; }
@media (max-width: 600px) { .fee-strip__text span + span::before { display: none; } .fee-strip__text span { width: 100%; } }

.hero__visual { position: relative; height: 380px; max-width: 400px; width: 100%; margin: 0 auto; }
/* Điện thoại đặt phía trước (z-index cao hơn), hai tấm thẻ nằm sau và ló ra bên trái:
   khách nhìn thấy trọn màn hình đánh giá, thẻ vẫn tạo màu sắc và cảm giác "chạm". */
.hero__cards { position: absolute; z-index: 1; left: 0; top: 64px; width: 58%; }
.hero__card { position: absolute; width: 100%; }
.hero__card--back { transform: rotate(-9deg) translate(-2px, -18px); }
.hero__card--front { transform: rotate(5deg) translate(10px, 126px); }
@media (max-width: 899px) {
	.hero__card { padding: 12px; gap: 4px; }
	.hero__card .tcard__name { font-size: .88rem; }
	.hero__card .tcard__sub { font-size: .7rem; }
	.hero__card .tcard__ico .icon { width: 26px; height: 26px; }
	.hero__card .tcard__qr { width: 26px; height: 26px; }
}
/* Hai lớp (.phone.phone--hero) để thắng khung .phone khai báo phía sau. */
.phone.phone--hero {
	position: absolute; z-index: 2; right: 0; top: 0;
	width: 196px; height: 380px; border-radius: 32px; padding: 9px;
	box-shadow: 0 24px 48px rgba(15, 25, 35, .28), 0 0 0 1px rgba(255, 255, 255, .04);
}
.phone--hero .phone__screen { border-radius: 24px; }
.phone--hero .phone__scr { padding: 8px 14px; }
.phone--hero .s-stars { display: flex; gap: 2px; margin: 8px 0 10px; color: var(--star); }
.phone--hero .s-stars .icon { width: 24px; height: 24px; fill: currentColor; stroke: var(--star-edge); }
/* Sao để trống: khách tự chọn, không tô sẵn 5 sao. */
.phone--hero .s-stars--empty .icon { fill: none; stroke: #9AA5B1; }
.phone--hero .s-input { border: 1px solid #D7DDE3; border-radius: 10px; padding: 8px; font-size: .78rem; color: #56616E; background: #FFFFFF; min-height: 68px; }
.phone--hero .s-btn { display: block; text-align: center; margin-top: 10px; padding: 9px; font-size: .85rem; }
.hero__ripple {
	position: absolute; z-index: 3; left: 51%; top: 62%; width: 24px; height: 24px; margin: -12px;
	border-radius: 50%; border: 2px solid var(--tap); opacity: 0;
	animation: hero-ripple 2.4s ease-out infinite;
}
@keyframes hero-ripple {
	0% { transform: scale(1); opacity: .7; }
	100% { transform: scale(6); opacity: 0; }
}

@media (min-width: 900px) {
	.hero { padding: 56px 0 72px; }
	.hero__inner { grid-template-columns: 1.1fr .9fr; gap: 48px; }
	.hero__visual { height: 440px; max-width: 460px; }
	.hero__cards { top: 80px; width: 56%; }
	.hero__card--front { transform: rotate(5deg) translate(14px, 150px); }
	.phone.phone--hero { width: 220px; height: 440px; right: 8px; }
}

/* 8. Khung điện thoại & khối chạm thử -------------------------------------- */
.phone {
	width: 270px; height: 540px; border-radius: 38px; padding: 12px;
	background: #0E1217; box-shadow: 0 20px 40px rgba(15, 25, 35, .25);
}
.phone__screen {
	width: 100%; height: 100%; border-radius: 28px; overflow: hidden;
	background: #F7F8FA; color: #17202B; display: flex; flex-direction: column;
}
.phone__bar { height: 26px; flex: none; position: relative; }
.phone__bar::after { content: ""; position: absolute; left: 50%; top: 8px; width: 64px; height: 8px; margin-left: -32px; border-radius: 99px; background: #0E1217; }
.phone__scr { flex: 1; overflow-y: auto; padding: 6px 16px 16px; }

.s-title { font-weight: 700; font-size: 1.05rem; margin: 8px 0 2px; }
.s-sub { font-size: .82rem; color: #56616E; margin: 0 0 12px; }
.s-btn {
	display: block; width: 100%; min-height: 44px; margin-top: 12px; padding: 12px;
	border: 0; border-radius: 10px; background: #2856E8; color: #FFFFFF;
	font: inherit; font-weight: 700; cursor: pointer;
}
.s-btn--ghost { background: #E4EBFE; color: #2856E8; }
.s-done { background: #E3F4EA; color: #1E7A4C; border-radius: 10px; padding: 10px; font-weight: 600; font-size: .85rem; margin-top: 10px; }
.s-box { background: #FFFFFF; border: 1px solid #E1E6EB; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.s-label { font-size: .78rem; color: #56616E; }
.s-value { font-weight: 700; word-break: break-all; }

.tabs {
	display: flex; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto 18px;
	padding: 4px; overflow-x: auto;
	background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.tabs button {
	min-height: 44px; padding: 10px 16px; border: 0; border-radius: 999px;
	background: none; color: var(--muted); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--surface); }
/* Điện thoại: hai tab chia đôi bề ngang, chữ không bị cắt (đặt sau quy tắc gốc để được áp dụng). */
@media (max-width: 479px) {
	.tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
	.tabs button { padding: 10px 8px; white-space: normal; line-height: 1.2; }
}

.demo__panel[hidden] { display: none; }
.demo .hint { max-width: 860px; margin-left: auto; margin-right: auto; text-align: center; }
.demo__stage { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 56px; }
.demo__cards { flex: 1 1 340px; max-width: 520px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.demo__phone-col { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.demo__cap { font-size: .85rem; color: var(--muted); text-align: center; max-width: 270px; margin: 0; }

.tap-btn {
	position: relative; overflow: hidden;
	display: flex; flex-direction: row; align-items: center; gap: 16px;
	min-height: 84px; padding: 16px 56px 16px 18px;
	border: 0; border-radius: 16px; color: #FFFFFF;
	background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .16), transparent 60%), var(--card);
	box-shadow: 0 6px 16px rgba(15, 25, 35, .12);
	font: inherit; text-align: left; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
@media (hover: hover) { .tap-btn:hover { box-shadow: 0 10px 24px rgba(15, 25, 35, .18); } }
.tap-btn:active { transform: scale(.98); }
.tap-btn.is-on { outline: 3px solid var(--star); outline-offset: 3px; }
.tap-btn .tap-btn__ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .16); }
.tap-btn .tap-btn__ico .icon { width: 26px; height: 26px; }
.tap-btn .tap-btn__nfc { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); opacity: .8; }
.tap-btn .tap-btn__nfc .icon { width: 22px; height: 22px; }
.tap-btn__name { font-weight: 700; font-size: 1.04rem; line-height: 1.25; display: block; }
.tap-btn__sub { font-size: .82rem; opacity: .88; display: block; margin-top: 2px; }
/* Điện thoại nhỏ: thẻ thấp hơn một chút, khung điện thoại ngắn lại cho đỡ trống. */
@media (max-width: 559px) {
	.demo__cards { gap: 10px; }
	.tap-btn { min-height: 72px; padding: 12px 48px 12px 14px; gap: 14px; }
	.tap-btn .tap-btn__ico { width: 42px; height: 42px; border-radius: 12px; }
	.tap-btn .tap-btn__nfc { right: 16px; }
	.demo__phone-col .phone { height: 480px; }
}
.ripple {
	position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
	border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9);
	animation: rip .7s ease-out forwards; pointer-events: none;
}
@keyframes rip { to { transform: scale(12); opacity: 0; } }

.demo-idle { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 10px; text-align: center; color: #56616E; }
.demo-idle .icon { width: 54px; height: 54px; }
.demo-reading { height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #2856E8; }
.demo-stars { display: flex; gap: 4px; margin: 10px 0; }
.demo-stars button { min-width: 36px; min-height: 36px; padding: 2px; border: 0; background: none; color: #C5CCD3; cursor: pointer; }
.demo-stars button.is-on { color: #E8A21A; }
.demo-stars .icon { width: 30px; height: 30px; }
.demo-stars button.is-on .icon { fill: currentColor; stroke: #B7790C; }
.demo-input { min-height: 70px; padding: 10px; border: 1px solid #D7DDE3; border-radius: 10px; background: #FFFFFF; color: #8A949E; font-size: .85rem; }
.demo-menu-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #E6EAEE; font-size: .9rem; }
.demo-menu-item b { font-weight: 600; }
.tag-new { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: #FFF1D6; color: #8A5A00; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.demo-chat { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.demo-msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: .88rem; }
.demo-msg--them { align-self: flex-start; background: #FFFFFF; border: 1px solid #E1E6EB; }
.demo-msg--me { align-self: flex-end; background: #2856E8; color: #FFFFFF; }
.demo-avatar { width: 64px; height: 64px; margin: 10px auto 6px; border-radius: 50%; background: #2B2F36; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; }
.demo-row { display: flex; gap: 8px; }
.demo-row .s-btn { flex: 1; }

.demo__total {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
	margin-bottom: 14px; padding: 16px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.demo__big { font-size: 2rem; font-weight: 800; line-height: 1; }
.demo__total p { margin: 0; color: var(--muted); flex: 1 1 240px; }
.demo__owner { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.obox { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.obox__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.obox__dot { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.obox__count { margin-left: auto; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.obox__count strong { color: var(--ink); font-size: 1.15rem; }
.obox label { display: block; margin: 10px 0 5px; font-size: .85rem; font-weight: 600; }
.obox__saved { min-height: 1.2em; margin-top: 8px; color: var(--ok); font-size: .82rem; font-weight: 600; }
.obox__link { margin-top: 8px; color: var(--muted); font-size: .8rem; word-break: break-all; }

/* 9. Loại thẻ, điểm khác biệt, các bước ------------------------------------ */
.type-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.type {
	flex: 1 1 100%;
	padding: 18px; border-radius: var(--radius);
	background: var(--bg); border: 1px solid var(--line);
	border-top: 4px solid var(--card);
}
@media (max-width: 599px) {
	.type {
		display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start;
		padding: 14px 16px; border-top-width: 1px; border-left: 4px solid var(--card);
	}
	.type .type__ico { grid-row: span 2; margin: 0; }
	.type .type__name { margin: 2px 0 2px; }
}
@media (min-width: 600px) { .type { flex-basis: calc(50% - 6px); max-width: calc(50% - 6px); } }
@media (min-width: 900px) { .type { flex-basis: calc(33.333% - 8px); max-width: calc(33.333% - 8px); } }
@media (min-width: 1100px) { .type { flex-basis: calc(25% - 9px); max-width: calc(25% - 9px); } }
.type__ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px;
	background: var(--card); color: #FFFFFF;
}
.type__ico .icon { width: 24px; height: 24px; }
.type__name { font-size: 1.08rem; margin-bottom: 4px; }
.type__line { margin: 0; color: var(--muted); }

.compare { width: 100%; max-width: 920px; margin: 0 auto; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: .88rem; color: var(--muted); font-weight: 600; background: var(--bg); }
.compare tbody th { font-weight: 700; width: 24%; }
.compare td { color: var(--muted); }
.compare td.compare__us { color: var(--ink); font-weight: 500; }
.compare thead .compare__us { color: var(--tap); }
/* Điện thoại: mỗi hàng thành một khối, nhãn cột hiện ngay trước chữ. */
@media (max-width: 640px) {
	.compare thead { display: none; }
	.compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
	.compare tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
	.compare tbody tr:last-child { border-bottom: 0; }
	.compare th, .compare td { padding: 0; border: 0; }
	.compare tbody th { width: auto; margin-bottom: 6px; }
	.compare td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
	.compare td + td { margin-top: 4px; }
	.compare td.compare__us::before { color: var(--tap); }
}

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.step {
	counter-increment: step; position: relative;
	padding: 20px 18px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.step::before {
	content: counter(step);
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%;
	background: var(--ink); color: var(--surface); font-weight: 800; font-size: 1.1rem;
}
.step__title { font-size: 1.05rem; margin-bottom: 4px; }
.step__text { margin: 0; color: var(--muted); }
@media (max-width: 599px) {
	.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px; }
	.step::before { grid-row: span 2; margin: 0; }
	.step__title { margin-top: 8px; }
}

/* 10. Combo & bảng giá ----------------------------------------------------- */
.combo-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); align-items: stretch; }
.combo {
	position: relative; display: flex; flex-direction: column;
	padding: 22px 20px 20px; background: var(--surface);
	border: 1px solid var(--line); border-radius: var(--radius);
}
/* Chỉ combo nổi bật có bóng, các khối khác phẳng. */
.combo--featured { border: 2px solid var(--star); box-shadow: var(--shadow); }
.combo__badge {
	position: absolute; top: -13px; left: 20px; margin: 0;
	padding: 3px 12px; border-radius: 999px; background: var(--star); color: #17202B;
	font-size: .8rem; font-weight: 700;
}
.combo__dots { display: flex; gap: 6px; margin-bottom: 14px; }
.combo__dot {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 10px; background: var(--card); color: #FFFFFF;
}
.combo__dot .icon { width: 18px; height: 18px; }
.combo__name { font-size: 1.25rem; font-weight: 700; margin-bottom: 2px; }
.combo__for { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.combo__price { font-size: 1.7rem; font-weight: 800; color: var(--tap); margin-bottom: 14px; }
/* Chưa có giá: chữ "Liên hệ" cỡ thường, không to như một con số. */
.combo__price.is-ask, .product-detail__price.is-ask { font-size: 1.05rem; font-weight: 700; color: var(--muted); }
.price-row__price.is-ask, .product__price.is-ask { font-weight: 600; color: var(--muted); }
.combo .checklist { flex: 1; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.combo .checklist__gift { margin-top: auto; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--ok); margin-top: 2px; }
.checklist__gift { padding: 10px 12px; border-radius: 10px; background: var(--tap-soft); font-weight: 600; }
.checklist__gift .icon { color: var(--tap); }

.price-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.section--surface .price-table { background: var(--bg); }
.price-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row__dot {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 38px; height: 38px; border-radius: 10px; background: var(--card); color: #FFFFFF;
}
.price-row__dot .icon { width: 20px; height: 20px; }
.price-row__name { flex: 1; min-width: 0; font-weight: 700; }
.price-row__name a { color: var(--ink); text-decoration: none; }
.price-row__name a:hover { color: var(--tap); }
.price-row__name small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.price-row__name small a { color: var(--tap); text-decoration: underline; }
.price-row__price { font-weight: 800; color: var(--tap); white-space: nowrap; text-align: right; }
.price-row__price small { color: var(--muted); font-weight: 500; }

/* 11. Mẫu thẻ -------------------------------------------------------------- */
.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.product {
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	transition: border-color .15s ease;
}
@media (hover: hover) { .product:hover { border-color: var(--tap); } }
.product__media { display: block; padding: 22px; background: var(--bg); text-decoration: none; }
.section--surface .product__media { background: var(--surface); border-bottom: 1px solid var(--line); }
.product__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.product__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 12px; }
.product__title { font-size: 1.1rem; margin-bottom: 6px; }
.product__title a { color: var(--ink); text-decoration: none; }
.product__title a:hover { color: var(--tap); }
.product__desc { color: var(--muted); font-size: .95rem; flex: 1; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; }
.product__price { font-weight: 800; color: var(--tap); }
/* "Mẫu thẻ khác" trên điện thoại: mỗi mẫu một hàng gọn (ô màu + tên + giá), không chiếm cả màn hình. */
@media (max-width: 599px) {
	.product-grid--related { gap: 10px; }
	.product-grid--related .product { display: grid; grid-template-columns: 88px minmax(0, 1fr); }
	.product-grid--related .product__media,
	.section--surface .product-grid--related .product__media { display: flex; align-items: center; padding: 12px; border-bottom: 0; border-right: 1px solid var(--line); }
	.product-grid--related .tcard { aspect-ratio: 1; justify-content: center; align-items: center; padding: 0; border-radius: 12px; box-shadow: none; }
	.product-grid--related .tcard__text, .product-grid--related .tcard__qr, .product-grid--related .tcard__nfc { display: none; }
	.product-grid--related .tcard__ico .icon { width: 28px; height: 28px; }
	.product-grid--related .product__media img { aspect-ratio: 1; border-radius: 10px; }
	.product-grid--related .product__body { justify-content: center; padding: 12px 14px; }
	.product-grid--related .product__title { font-size: 1rem; margin-bottom: 4px; }
	.product-grid--related .product__desc { display: none; }
}

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-bottom: 14px; color: var(--muted); font-size: .9rem; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--tap); text-decoration: underline; }
.breadcrumb [aria-current] { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; }
.page-hero .breadcrumb { margin-bottom: 10px; }

.product-detail { display: grid; gap: 24px; }
.product-detail > * { min-width: 0; }
@media (min-width: 860px) { .product-detail { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.product-detail__visual { padding: 36px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.product-detail__img { width: 100%; border-radius: var(--radius); }
.product-detail__title { font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 800; }
.product-detail__lead { color: var(--muted); font-size: 1.08rem; }
.product-detail__price { font-size: 1.8rem; font-weight: 800; color: var(--tap); margin-bottom: 16px; }
.badge {
	display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
	padding: 4px 12px 4px 8px; border-radius: 999px;
	background: var(--card); color: #FFFFFF; font-size: .85rem; font-weight: 700;
}
.specs { margin: 0 0 20px; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.entry-content--product { max-width: 760px; margin-top: 32px; }

.img-placeholder {
	display: flex; align-items: center; justify-content: center; min-height: 120px; margin-top: 12px; padding: 16px;
	border: 2px dashed var(--line); border-radius: var(--radius);
	color: var(--muted); font-size: .9rem; font-weight: 600; text-align: center;
	background: repeating-linear-gradient(45deg, transparent 0 10px, color-mix(in srgb, var(--line) 30%, transparent) 10px 20px);
}
.img-placeholder--shot { min-height: 140px; margin: 0; width: 100%; }
@media (min-width: 640px) { .img-placeholder--shot { aspect-ratio: 9 / 12; max-width: 220px; } }

/* 12. Hỏi đáp, hướng dẫn --------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.section--surface .faq__item { background: var(--bg); }
.faq__q {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 56px; padding: 14px 18px; cursor: pointer; list-style: none;
	font-weight: 700; font-size: 1.02rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
	content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
	border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
	transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg) translateY(-3px); }
.faq__a { padding: 0 18px 16px; color: var(--muted); }
.faq__a p { margin: 0; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.toc a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
	color: var(--ink); font-weight: 600; text-decoration: none;
}
.toc a:hover { border-color: var(--tap); color: var(--tap); }

.guide { list-style: none; counter-reset: guide; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.guide__step {
	counter-increment: guide; display: grid; gap: 14px;
	padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
@media (min-width: 640px) { .guide__step { grid-template-columns: 1fr 200px; align-items: start; } .guide__step--text { grid-template-columns: 1fr; } }
.guide__text h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; }
.guide__text h3::before {
	content: counter(guide); flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 50%; background: var(--tap); color: var(--tap-ink); font-size: .95rem;
}
.guide__text p { margin: 0; color: var(--muted); }

/* 13. Liên hệ & form ------------------------------------------------------- */
.contact-layout { display: grid; gap: 20px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 340px 1fr; gap: 32px; align-items: start; } }
.contact-info { display: grid; gap: 12px; }
.info-card { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.info-card--zalo { border: 2px solid var(--tap); }
.info-card__title { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.info-card__title .icon { color: var(--tap); }
.info-card__value { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; word-break: break-word; }
.info-card__value--sm { font-size: 1rem; }
.info-card__value:last-child { margin-bottom: 0; }
.info-card__meta { display: flex; gap: 6px; align-items: center; margin: 4px 0 0; color: var(--muted); font-size: .9rem; }

.form-card { padding: 22px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 640px) { .form-card { padding: 28px; } }
.form-card__title { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.form-card__lead { color: var(--muted); margin-bottom: 18px; }
.form__row { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { margin: 0 0 14px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea,
.obox input, .obox select {
	width: 100%; min-height: 48px; padding: 10px 14px;
	border: 1px solid var(--line); border-radius: 12px;
	background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem;
}
.obox input, .obox select { min-height: 44px; border-radius: 10px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--tap); outline: 2px solid var(--tap-soft); outline-offset: 0; }
.field--trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { margin: 12px 0 0; color: var(--muted); font-size: .85rem; text-align: center; }
.form { position: relative; }
.field label small, .form__more summary small { color: var(--muted); font-weight: 500; }
.field__hint { display: block; margin: 6px 0 0; color: var(--muted); font-size: .86rem; }
.field input[type="file"] { min-height: 48px; padding: 8px; background: var(--surface); }
.field input[type="file"]::file-selector-button { min-height: 32px; margin-right: 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.field.is-invalid input { border-color: var(--err); }
.form__group { margin: 0 0 6px; padding: 0; border: 0; min-width: 0; }
.form__group legend, .form__more summary { margin-bottom: 12px; padding: 0; font-weight: 700; font-size: 1.02rem; }
.form__row--qty { grid-template-columns: minmax(0, 1fr) 96px; }
.form__more { margin: 0 0 16px; padding: 12px 14px 2px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.form__more summary { min-height: 44px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -12px -14px 0; padding: 10px 14px; cursor: pointer; }
.form__more[open] summary { margin-bottom: 8px; }
.form__more .field input { background: var(--surface); }
.form__more > .field__hint { margin: 0 0 14px; }
.choice-list { display: grid; gap: 8px; margin-bottom: 16px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--tap); flex: none; }
.choice:has(input:checked) { border-color: var(--tap); background: var(--tap-soft); }
.order-done { text-align: center; }
.order-done__ico { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; margin-bottom: 10px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.order-done__ico svg { width: 28px; height: 28px; }
.order-done__code { margin: 6px 0 10px; font-size: 1.05rem; }
.order-done__code b { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--tap-soft); color: var(--ink); font-size: 1.15rem; letter-spacing: .03em; white-space: nowrap; }
.order-done__pay { margin: 20px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); text-align: left; }
.order-done__pay h3 { margin: 0 0 6px; font-size: 1.05rem; }
.order-done__pay > p { color: var(--muted); font-size: .92rem; }
.img-placeholder--qr { width: 200px; height: 200px; margin: 12px auto; }
.order-done__note, .order-done__more { margin: 12px 0 0; }
.pay-qr { display: grid; gap: 14px; align-items: center; margin-top: 12px; }
@media (min-width: 520px) { .pay-qr { grid-template-columns: 180px 1fr; } }
.pay-qr__img { width: 180px; max-width: 100%; margin: 0 auto; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.pay-qr__img svg { display: block; width: 100%; height: auto; }
.pay-qr__info p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pay-qr__info p:last-child { border-bottom: 0; }
.pay-qr__info span { color: var(--muted); }
.pay-qr__info span { flex: 1 1 auto; min-width: 0; }
.pay-qr__info b { flex: none; max-width: 65%; text-align: right; overflow-wrap: break-word; }

.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.alert--ok { background: var(--ok-soft); color: var(--ok); }
.alert--error { background: var(--err-soft); color: var(--err); }

/* 14. Kêu gọi cuối --------------------------------------------------------- */
.cta {
	display: grid; gap: 20px; padding: 28px 22px;
	background: var(--dark-block); color: var(--dark-block-ink); border-radius: var(--radius);
}
.cta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); font-weight: 600; }
.cta-line .link-arrow { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 860px) { .cta { grid-template-columns: 1.4fr auto; align-items: center; padding: 44px 48px; } }
.cta__title { font-size: clamp(1.25rem, 4vw, 1.75rem); font-weight: 700; margin-bottom: 8px; text-wrap: balance; }
.cta__text p { margin: 0; opacity: .85; font-size: 1.05rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 15. Nội dung bài/trang --------------------------------------------------- */
.entry-content { font-size: 1.04rem; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 1.4rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.15rem; margin-top: 1.5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1em; }
.entry-content li { margin-bottom: .35em; }
.entry-content img { border-radius: 12px; height: auto; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 18px; border-left: 4px solid var(--tap); color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
.entry-content--intro { max-width: 760px; margin-bottom: 24px; color: var(--muted); font-size: 1.05rem; }
.entry-content--intro p:last-child { margin-bottom: 0; }
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; }
@media (min-width: 640px) { .entry { padding: 36px 40px; } }
.entry .entry-content > :first-child { margin-top: 0; }
.entry__media img { border-radius: 12px; margin-bottom: 20px; }
.alignwide, .alignfull { max-width: 100%; }
.wp-block-image figcaption, .wp-caption-text { color: var(--muted); font-size: .88rem; text-align: center; }

.post-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-card__body { padding: 16px 18px; }
.post-card__title { font-size: 1.12rem; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__meta { color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.pagination .nav-links, .post-navigation .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.page-numbers, .post-navigation a {
	display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 14px; justify-content: center;
	background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none;
}
.page-numbers.current { background: var(--ink); color: var(--surface); }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; }
.search-submit { min-height: 48px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--tap); color: var(--tap-ink); font: inherit; font-weight: 700; cursor: pointer; }
.comments { margin-top: 40px; }
.comment-list { padding-left: 1.2em; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; }
.comment-form .submit { min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--tap); color: var(--tap-ink); font: inherit; font-weight: 700; cursor: pointer; }

.notfound { padding-top: 56px; }
.notfound__visual { max-width: 300px; margin: 0 auto 28px; transform: rotate(-4deg); }
.notfound .page-hero__lead { margin: 0 auto 20px; }

/* 16. Chân trang ----------------------------------------------------------- */
.site-footer { margin-top: 0; padding: 44px 0 calc(90px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); font-size: .95rem; }
@media (min-width: 768px) { .site-footer { padding-bottom: 28px; } }
.site-footer__grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 40px; } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.3fr 1.2fr 1fr 1fr; } }
.brand--footer { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 12px; }
.site-footer__desc { color: var(--muted); }
.site-footer__title { font-size: 1rem; margin-bottom: 12px; }
.footer-menu + .site-footer__title { margin-top: 20px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { color: var(--tap); margin-top: 3px; }
.footer-menu { list-style: none; margin: 0 0 12px; padding: 0; }
.footer-menu a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; }
.footer-menu a:hover { color: var(--tap); }
.site-footer__eco { margin: 0; font-weight: 600; }
.site-footer__owner { margin: 0 0 12px; }
.site-footer__owner a {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
	border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.site-footer__owner a:hover { border-color: var(--tap); color: var(--tap); }
.site-footer__bottom { margin-top: 28px; color: var(--muted); font-size: .88rem; }
.site-footer__bottom p { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
/* Điện thoại: khẩu hiệu đã có cạnh tên ở đầu footer, dòng bản quyền chỉ giữ 1 dòng. */

/* Nút Zalo nổi (điện thoại) */
.float-zalo {
	position: fixed; z-index: 40;
	right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 52px; padding: 0 18px 0 16px; border-radius: 999px;
	background: var(--tap); color: var(--tap-ink); font-weight: 700; text-decoration: none;
	box-shadow: 0 10px 24px rgba(40, 86, 232, .35);
}
.float-zalo .icon { width: 22px; height: 22px; }
.float-zalo { transition: padding .2s ease, width .2s ease; }
.float-zalo.is-compact { width: 52px; padding: 0; justify-content: center; }
.float-zalo.is-compact span { display: none; }
@media (min-width: 960px) { .float-contact, .float-zalo { display: none; } }

/* 17. Trang theo ngành ----------------------------------------------------- */
.hero--industry { padding-bottom: 32px; }
.hero__title--md { font-size: clamp(1.7rem, 6vw, 2.6rem); max-width: 860px; }
.ind-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .ind-grid { grid-template-columns: 1fr 1.2fr; gap: 48px; } .ind-grid--combo { grid-template-columns: 1.2fr .9fr; align-items: start; } }
.pain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pain-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.pain-list .icon { color: var(--err); margin-top: 3px; }
.ind-cards { display: grid; gap: 10px; }
.ind-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--card); }
.ind-card .type__ico { margin: 0; flex: none; }
.ind-card p { margin: 2px 0 0; color: var(--muted); }
.ind-grid--combo .combo .link-arrow { margin-top: 8px; justify-content: center; }
.ind-links { display: flex; flex-wrap: wrap; gap: 10px; }
.ind-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.ind-links a:hover { border-color: var(--tap); color: var(--tap); }
.footer-menu--compact { margin-bottom: 18px; }
.footer-menu--compact a { min-height: 40px; }

/* 18. Công cụ miễn phí ----------------------------------------------------- */
.tool-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .tool-layout { grid-template-columns: 1fr 1fr; align-items: start; } }
.tool-check { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 8px; cursor: pointer; }
.tool-check input { width: 18px; height: 18px; accent-color: var(--tap); }
.tool-result { display: grid; gap: 16px; }
.tool-sign { padding: 28px 24px; border-radius: 22px; background: #fff; color: #17202B; text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tool-sign__title { margin: 0 0 14px; font-size: 1.6rem; font-weight: 800; }
.tool-sign__qr { width: 240px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: #F3F5F8; }
.tool-sign__qr svg { width: 100%; height: auto; display: block; }
.tool-sign__ph { color: #56616E; font-size: .9rem; padding: 0 20px; }
.tool-sign__ssid { margin: 14px 0 2px; font-weight: 700; font-size: 1.1rem; word-break: break-all; }
.tool-sign__pass { margin: 0 0 8px; color: #56616E; word-break: break-all; }
.tool-sign__hint { margin: 0; font-size: .85rem; color: #56616E; }
.tool-places { display: grid; gap: 10px; margin-top: 16px; }
.tool-place { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.tool-place__text b { display: block; }
.tool-place__text small { display: block; color: var(--muted); }
.tool-place__out { grid-column: 1 / -1; display: grid; gap: 14px; align-items: center; }
@media (min-width: 560px) { .tool-place__out { grid-template-columns: 140px 1fr; } }
.tool-place__qr { width: 140px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.tool-place__qr svg { display: block; width: 100%; height: auto; }
.tool-place__out code { display: block; margin-bottom: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg); word-break: break-all; font-size: .85rem; }
@media print {
	.site-header, .site-footer, .float-contact, .float-zalo, .page-hero, .tool-form, .tool-result .btn-row, .cta { display: none !important; }
	.tool-layout { display: block; }
	.tool-sign { box-shadow: none; border: 0; }
}

/* Phí dịch vụ (Bảng giá) ----------------------------------------------- */
.plans { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.plan-card--pro { border: 2px solid var(--tap); box-shadow: var(--shadow); }
.plan-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-card__head h3 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.plan-card__tag { padding: 4px 10px; border-radius: 99px; background: var(--tap-soft); color: var(--tap); font-size: .78rem; font-weight: 700; }
.plan-card__price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.plan-card__price b { font-size: clamp(1.9rem, 6vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
.plan-card--pro .plan-card__price b { color: var(--tap); }
.plan-card__price span, .plan-card__for { color: var(--muted); }
.plan-card__for { margin: 0; }
.plan-card .btn { margin-top: auto; }
.ticks { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
