/* LỤM — giao diện dùng chung: trang chủ, danh sách, bài so sánh (/so-sanh/<slug>/), trang thông tin, admin, 404. */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --ink: #0f172a;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e6e8ec;
  --line-2: #d0d5dd;
  /* cam theo logo: nút/nền dùng --brand (chữ trắng 3,6:1), chữ màu cam cỡ nhỏ dùng --brand-text (5,2:1) */
  --brand: #ea580c;
  --brand-hover: #c2410c;
  --brand-soft: #fff3ea;
  --brand-ink: #ffffff;
  --brand-text: #c2410c;
  --accent: #1d2c3a; /* navy của quai túi trong logo */
  --price: #e0302a;
  --good: #067647;
  --good-soft: #ecfdf3;
  --bad: #b42318;
  --bad-soft: #fef3f2;
  --warn: #b54708;
  --warn-soft: #fffaeb;
  --star: #f5a524;
  --mall: #d0011b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 18px 40px -18px rgba(16, 24, 40, .22);
  --header-h: 64px;
  color-scheme: light;
}
/* nền tối chỉ bật khi người đọc chọn (nút ở đầu trang, xem site.js) */
:root[data-theme="dark"] {
  --bg: #0b0f17; --surface: #121823; --surface-2: #19212e; --ink: #eef1f6; --ink-2: #c9d0db; --muted: #8b95a7;
  --line: #222c3b; --line-2: #2f3b4f; --brand: #fb923c; --brand-hover: #fdba74; --brand-soft: #2a1709; --brand-ink: #1a0b02; --brand-text: #fdba74;
  --price: #ff7d70; --good: #5ed39a; --good-soft: #10261c; --bad: #ff8a80; --bad-soft: #2a1618; --warn: #f7b955;
  --warn-soft: #2a2111; --star: #f5b53f; --mall: #ff4d5e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 18px 40px -18px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.6 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
body > main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { color: color-mix(in srgb, var(--brand-text) 78%, var(--ink)); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sub { display: block; font-size: .8rem; color: var(--muted); }
.icon { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: var(--surface); /* nền đặc: blur trên thanh dính làm trình duyệt vẽ lại liên tục khi cuộn -> giật */
  border-bottom: 1px solid var(--line);
}
.site-header > .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; letter-spacing: -.03em; flex: none; }
.brand:hover { color: var(--ink); }
.brand-logo { display: block; height: 38px; width: auto; }
/* nền tối: bản logo có quai túi màu sáng (quai xanh đậm chìm vào nền) */
:root[data-theme="dark"] .brand-logo { content: url("/assets/images/logo-dark.png"); }
.site-footer .brand-logo { height: 34px; }
/* logo chữ cũ: còn trong các bài so sánh dựng trước khi có logo ảnh, cho tới khi được dựng lại */
.brand-mark {
  display: grid; place-items: center; height: 32px; padding: 0 11px 1px; border-radius: 9px;
  background: var(--brand); color: var(--brand-ink); font-size: 1.1rem; letter-spacing: .03em; line-height: 1;
}
.site-nav { display: flex; align-items: center; gap: 4px; font-size: .925rem; }
.site-nav a { color: var(--ink-2); font-weight: 500; white-space: nowrap; padding: 7px 12px; border-radius: 999px; }
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
.menu-btn { display: none; }

/* ---------- footer ---------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); background: var(--surface); font-size: .9rem; color: var(--muted); }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 36px; }
.footer-brand p { margin-top: 12px; max-width: 340px; }
.footer-col h4 { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--muted); padding: 4px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 28px; font-size: .8rem; }

/* ---------- nút, nhãn, thẻ ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 12px 18px; border-radius: 999px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn:disabled { opacity: .5; cursor: default; }
.btn .icon { width: 16px; height: 16px; }
.btn.sm { padding: 8px 14px; font-size: .85rem; }
.btn.lg { padding: 15px 24px; font-size: 1rem; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.btn.danger:hover { background: var(--bad-soft); color: var(--bad); }
.btn.light { background: #fff; color: #0f172a; }
.btn.light:hover { background: #e9edf5; color: #0f172a; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .925rem; white-space: nowrap; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.tag, .pill {
  display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; line-height: 1;
  padding: 5px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.tag-mall { background: var(--mall); color: #fff; border-radius: 5px; padding: 4px 7px; }
.tag-pref { background: var(--brand-soft); color: var(--brand-text); border-radius: 5px; padding: 4px 7px; }
.pill.new { background: var(--brand-soft); color: var(--brand-text); }
.pill.doing, .pill.draft { background: var(--warn-soft); color: var(--warn); }
.pill.done, .pill.published { background: var(--good-soft); color: var(--good); }
.pill.rejected, .pill.unpublished { background: var(--surface-2); color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--ink); font-size: .925rem; }
.notice.ok { background: var(--good-soft); }
.notice.warn { background: var(--warn-soft); }
.notice .icon { margin-top: 2px; color: var(--brand); }
.notice.ok .icon { color: var(--good); }
.notice.warn .icon { color: var(--warn); }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; max-width: calc(100vw - 32px);
  background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow-lg);
}

.stars { position: relative; display: inline-block; font-size: .9rem; letter-spacing: 1px; line-height: 1; color: var(--line-2); }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; inset: 0 auto 0 0; width: var(--p); overflow: hidden; color: var(--star); white-space: nowrap; }
.price { font-weight: 700; color: var(--price); }
.price-old { color: var(--muted); font-size: .85em; text-decoration: line-through; }
.discount { font-size: .75rem; font-weight: 700; color: var(--price); background: color-mix(in srgb, var(--price) 10%, transparent); padding: 3px 7px; border-radius: 999px; }

.section { margin-top: 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 700; }
.eyebrow { font-size: .85rem; font-weight: 600; color: var(--brand-text); }

/* ---------- trang chủ (landing) ---------- */
/* hero: khối màu đậm bo đáy, ô tìm kiếm là trung tâm; chữ và ô tìm giữ màu cố định ở cả nền sáng/tối */
.lp-hero {
  position: relative; overflow: hidden; color: #fff; text-align: center; padding: 84px 0 112px; border-radius: 0 0 40px 40px;
  background:
    radial-gradient(620px 320px at 10% 0%, rgba(255, 190, 110, .55), transparent 70%),
    radial-gradient(560px 320px at 94% 100%, rgba(154, 52, 18, .55), transparent 70%),
    linear-gradient(155deg, #fb7a1a 0%, #ea580c 45%, #c2410c 100%);
}
:root[data-theme="dark"] .lp-hero {
  background:
    radial-gradient(620px 320px at 10% 0%, rgba(251, 146, 60, .3), transparent 70%),
    radial-gradient(560px 320px at 94% 100%, rgba(29, 44, 58, .6), transparent 70%),
    linear-gradient(155deg, #9a3412 0%, #7c2d12 55%, #431407 100%);
}
.lp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 72%);
}
.lp-hero-inner { position: relative; z-index: 1; }
.lp-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; padding: 5px 14px 5px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: .85rem; font-weight: 500;
}
.lp-badge:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.lp-badge em { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 999px; }
.lp-badge .icon { width: 15px; height: 15px; opacity: .75; }
.lp-hero h1 { color: #fff; font-size: clamp(2.6rem, 7.2vw, 4.8rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.03; }
.lp-hero h1 span { color: var(--accent); }
:root[data-theme="dark"] .lp-hero h1 span { color: #fed7aa; }
.lp-lead { max-width: 640px; margin: 22px auto 0; font-size: clamp(1rem, 1.7vw, 1.15rem); font-weight: 500; color: rgba(255, 255, 255, .94); }
.lp-search {
  display: flex; align-items: center; max-width: 760px; margin: 36px auto 0; padding: 8px; border-radius: 999px;
  background: #fff; color: #0f172a; box-shadow: 0 24px 60px -20px rgba(4, 12, 48, .65); transition: box-shadow .15s;
}
.lp-search:focus-within { box-shadow: 0 0 0 5px rgba(255, 255, 255, .3), 0 24px 60px -20px rgba(4, 12, 48, .65); }
.lp-search > .icon { margin: 0 6px 0 18px; width: 22px; height: 22px; color: #667085; }
.lp-search input { flex: 1; min-width: 0; height: 56px; padding: 0 8px; border: 0; background: none; color: #0f172a; font-size: 1.1rem; outline: none; }
.lp-search input::placeholder { color: #98a2b3; }
.lp-search input::-webkit-search-cancel-button { display: none; }
/* ô tìm luôn nền trắng nên nút giữ màu cố định ở cả nền sáng/tối */
.lp-search .btn { height: 56px; padding: 0 34px; font-size: 1.05rem; background: #ea580c; color: #fff; }
.lp-search .btn:hover { background: #c2410c; color: #fff; }
.lp-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; font-size: .875rem; }
.lp-chips > span { color: rgba(255, 255, 255, .7); margin-right: 2px; }
.lp-chips button {
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff;
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.lp-chips button:hover { background: rgba(255, 255, 255, .18); }
.lp-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 34px; font-size: .9rem; color: rgba(255, 255, 255, .86); }
.lp-trust li { display: inline-flex; align-items: center; gap: 8px; }
.lp-trust .icon { width: 16px; height: 16px; color: #fff; }

/* ảnh sản phẩm thật (từ các bài mới) trôi hai bên hero, chỉ trên màn rộng */
.lp-float { position: absolute; inset: 0; pointer-events: none; display: none; }
.lp-float figure {
  position: absolute; margin: 0; width: 128px; padding: 8px; border-radius: 18px; background: #fff;
  box-shadow: 0 22px 44px -18px rgba(4, 12, 48, .75); transform: rotate(var(--r)); animation: lp-bob 7s ease-in-out infinite;
}
.lp-float img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.lp-float figcaption { margin-top: 6px; padding: 0 2px; font-size: .75rem; font-weight: 700; color: #e0302a; text-align: left; }
.lp-float figure:nth-child(1) { --r: -7deg; left: 4%; top: 16%; }
.lp-float figure:nth-child(2) { --r: 5deg; left: 9%; top: 56%; width: 108px; animation-delay: -2s; }
.lp-float figure:nth-child(3) { --r: 6deg; right: 4%; top: 13%; animation-delay: -4s; }
.lp-float figure:nth-child(4) { --r: -5deg; right: 9%; top: 54%; width: 112px; animation-delay: -1s; }
@keyframes lp-bob { 50% { transform: translateY(-12px) rotate(var(--r)); } }
@media (min-width: 1240px) { .lp-float { display: block; } }

/* khung kết quả tìm + thẻ tiến độ, nổi lên trên mép hero */
.lp-panel {
  position: relative; z-index: 2; display: grid; gap: 28px; max-width: 860px; margin: -60px auto 0; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg);
}
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.results-head b { color: var(--ink); font-weight: 600; }
.result-list { display: grid; gap: 10px; }
.result {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 12px 16px 12px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; transition: border-color .15s, box-shadow .15s;
}
.result:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); color: inherit; }
.result img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: #fff; }
.result h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.result .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; font-size: .85rem; color: var(--muted); }
.result > .icon { color: var(--muted); }
.ask {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px;
  background: var(--brand-soft); border: 1px dashed color-mix(in srgb, var(--brand) 40%, transparent);
}
.ask-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); }
.ask-ic .icon { width: 22px; height: 22px; }
.ask h3 { font-size: 1.05rem; font-weight: 700; }
.ask p { margin-top: 2px; font-size: .9rem; color: var(--muted); }
/* từ khoá bị sàng lọc (cảnh báo n/3) hoặc đang bị tạm khoá */
.ask.is-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.ask.is-warn .ask-ic { background: var(--warn); color: #fff; }
.ask.is-warn p { color: var(--ink-2); }

/* thẻ tiến độ phân tích: bước thật do máy nhà báo lên (xem api/src/service.ts progressFor) */
.jobs { display: grid; gap: 12px; }
.job { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; container-type: inline-size; }
.job.is-new { animation: job-in .45s ease-out; }
@keyframes job-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.job-top { display: flex; align-items: center; gap: 14px; }
.job-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.job-ic .icon { width: 20px; height: 20px; }
.job.is-done .job-ic { background: var(--good-soft); color: var(--good); }
.job.is-paused .job-ic { background: var(--warn-soft); color: var(--warn); }
.job.is-stopped .job-ic { background: var(--surface-2); color: var(--muted); }
.job-title { flex: 1; min-width: 0; }
.job-title h3 { font-size: 1rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-title p { margin-top: 1px; font-size: .875rem; color: var(--ink-2); }
.job-time { color: var(--muted); }
.job .x { flex: none; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; line-height: 0; border-radius: 8px; }
.job .x:hover { color: var(--ink); background: var(--surface-2); }
.spin {
  display: inline-block; width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 2.5px solid color-mix(in srgb, currentColor 22%, transparent); border-top-color: currentColor; animation: spin .9s linear infinite;
}
.spin.sm { width: 14px; height: 14px; border-width: 2px; }
.job.is-wait .spin { animation-duration: 1.8s; }
@keyframes spin { to { transform: rotate(360deg); } }
.job-bar { height: 6px; margin: 14px 0 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.job-bar i {
  display: block; height: 100%; border-radius: inherit; transition: width .6s ease;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent) 0 0 / 40% 100% no-repeat, var(--brand);
  animation: job-sheen 1.8s linear infinite;
}
@keyframes job-sheen { from { background-position: -60% 0, 0 0; } to { background-position: 160% 0, 0 0; } }
.job.is-paused .job-bar i { background: var(--warn); animation: none; }
.job-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; font-size: .78rem; color: var(--muted); }
.job-steps li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.job-steps li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.job-steps li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-steps li.done { color: var(--ink-2); }
.job-steps li.done::before { background: var(--brand); }
.job-steps li.now { color: var(--ink); font-weight: 600; }
.job-steps li.now::before { background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); animation: step-pulse 1.6s ease-in-out infinite; }
.job.is-paused .job-steps li.now::before { background: var(--warn); box-shadow: none; animation: none; }
@keyframes step-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 8%, transparent); } }
/* thẻ hẹp (điện thoại, khung minh hoạ): chỉ hiện nhãn bước hiện tại, các bước khác còn chấm */
@container (max-width: 560px) {
  .job-steps { display: flex; gap: 10px; }
  .job-steps li.now { flex: 1; }
  .job-steps li:not(.now) span { display: none; }
}

/* các section giới thiệu */
.lp-section { margin-top: 112px; }
.lp-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.lp-head h2, .lp-how h2 { margin-top: 10px; font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.lp-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-value { padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; transition: transform .2s, box-shadow .2s; }
.lp-value:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lp-value h3 { margin-top: 18px; font-size: 1.1rem; font-weight: 700; }
.lp-value p { margin-top: 8px; font-size: .925rem; color: var(--muted); }
.lp-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.lp-ic .icon { width: 24px; height: 24px; }
.lp-value.is-feature { background: linear-gradient(160deg, #f97316, #c2410c); border-color: transparent; }
.lp-value.is-feature h3 { color: #fff; }
.lp-value.is-feature p { color: rgba(255, 255, 255, .8); }
.lp-value.is-feature .lp-ic { background: rgba(255, 255, 255, .14); color: #fff; }

.lp-how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-steps { list-style: none; counter-reset: s; display: grid; gap: 20px; margin: 30px 0 32px; }
.lp-steps li { counter-increment: s; position: relative; padding-left: 56px; }
.lp-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700;
}
.lp-steps b { display: block; font-size: 1.05rem; }
.lp-steps span { display: block; margin-top: 2px; font-size: .95rem; color: var(--muted); }
.lp-demo {
  position: relative; display: grid; gap: 12px; padding: 44px 28px 28px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(420px 260px at 85% 0%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 70%), var(--surface-2);
}
.lp-demo-label { position: absolute; top: 16px; left: 28px; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lp-demo .job { box-shadow: var(--shadow-lg); }
.lp-demo .job + .job { margin-left: 40px; }

.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.lp-stats div { padding: 26px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.lp-stats b { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; color: var(--ink); }
.lp-stats span { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); }
.lp-cta {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px;
  padding: 48px 52px; border-radius: 28px; overflow: hidden; color: #fff;
  background: radial-gradient(440px 280px at 100% 0%, rgba(255, 210, 150, .4), transparent 70%), linear-gradient(120deg, #f97316, #c2410c);
}
.lp-cta h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; }
.lp-cta p { margin-top: 6px; font-size: 1.05rem; color: rgba(255, 255, 255, .86); }

@media (prefers-reduced-motion: reduce) {
  .lp-float figure, .job-bar i, .job-steps li.now::before { animation: none; }
  .spin { animation-duration: 2.4s; }
}

/* ---------- thẻ bài so sánh (trang chủ, danh sách) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.grid.dense { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.grid.dense .cmp h3 { font-size: 1.05rem; }
.cmp {
  display: flex; flex-direction: column; overflow: hidden; color: inherit; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cmp:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
/* Safari (iPhone) có lúc tính sai height:100% của ảnh trong lưới dựng từ aspect-ratio -> ảnh hiện theo cỡ gốc,
   tràn xuống che tiêu đề. minmax(0, …) để ô không nở theo cỡ ảnh, overflow: hidden để có tính sai cũng không đè. */
.cmp-media {
  position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 2px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line);
}
.cmp-media img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; background: #fff; }
.cmp-media img:first-child { grid-row: 1 / 3; }
.cmp-badge {
  position: absolute; top: 12px; left: 12px; background: rgba(15, 23, 42, .82); color: #fff;
  font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.cmp-more {
  position: absolute; right: 8px; bottom: 8px; background: rgba(15, 23, 42, .72); color: #fff;
  font-size: .75rem; font-weight: 600; padding: 3px 8px; border-radius: 999px;
}
.cmp-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cmp h3 { font-size: 1.15rem; font-weight: 700; }
.cmp-names { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--muted); }
.cmp-foot .price { font-size: 1rem; }
.cmp.skeleton { pointer-events: none; }
.cmp.skeleton .cmp-media, .cmp.skeleton .sk {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%) 0 0 / 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
.cmp.skeleton .sk { height: 14px; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- trang danh sách & trang thông tin ---------- */
.page-hero { padding: 64px 0 8px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.04em; }
.page-hero .lead { margin-top: 14px; font-size: 1.125rem; color: var(--muted); max-width: 640px; }
.page-hero.center { text-align: center; }
.page-hero.center .lead { margin-left: auto; margin-right: auto; }
.list-tools { display: flex; gap: 10px; margin: 32px 0 24px; }
.filter { position: relative; flex: 1; max-width: 420px; }
.filter .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filter input, .list-tools select { font-size: .95rem;
  width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); outline: none;
}
.filter input { padding: 0 16px 0 42px; }
.list-tools select { width: auto; padding: 0 14px; cursor: pointer; }
.filter input:focus, .list-tools select:focus { border-color: var(--brand); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 24px; position: relative; }
.step-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.step-icon .icon { width: 22px; height: 22px; }
.step::after {
  counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 22px; right: 22px;
  font-size: .8rem; font-weight: 700; color: var(--line-2);
}
.step h3 { font-size: 1.05rem; font-weight: 700; }
.step p { font-size: .9rem; color: var(--muted); margin-top: 6px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; }
.feature .step-icon { margin-bottom: 14px; }
.feature h3 { font-size: 1.05rem; font-weight: 700; }
.feature p { font-size: .9rem; color: var(--muted); margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.stat { padding: 22px 24px; }
.stat b { display: block; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1.1; }
.stat span { display: block; margin-top: 4px; font-size: .875rem; line-height: 1.4; color: var(--muted); }

.cta {
  margin-top: 72px; padding: 44px; border-radius: 24px; background: #0f172a; color: #c9d0db;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
:root[data-theme="dark"] .cta { background: var(--surface-2); }
.cta h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }
.cta p { margin-top: 8px; max-width: 520px; }

.policy { display: grid; grid-template-columns: 220px 1fr; gap: 56px; margin-top: 40px; align-items: start; }
.policy-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; font-size: .9rem; }
.policy-nav a { color: var(--muted); padding: 6px 12px; border-radius: 8px; }
.policy-nav a:hover { color: var(--ink); background: var(--surface-2); }
.prose { max-width: 720px; color: var(--ink-2); }
.prose section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose section:last-child { border-bottom: 0; }
.prose h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }

.faq-list { max-width: 760px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-list summary, .faq summary { display: flex; gap: 10px; cursor: pointer; list-style: none; font-weight: 600; }
.faq-list summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.faq-list summary .chev, .faq summary .chev { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--muted); transition: transform .15s; }
.faq-list details[open] summary .chev, .faq details[open] summary .chev { transform: rotate(90deg); }
.faq-list details p, .faq details p { margin-top: 8px; padding-left: 28px; color: var(--ink-2); font-size: .95rem; }

/* ---------- bài so sánh ---------- */
.article-head { padding: 44px 0 36px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--line-2); }
.article-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 800; letter-spacing: -.035em; max-width: 920px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.byline span { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.byline .icon { width: 15px; height: 15px; color: var(--muted); }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  font-size: .85rem; font-weight: 600; color: var(--brand-text); background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.share-btn:hover { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); }
.byline .share-btn .icon { color: currentColor; }
.article-head .lead { margin-top: 22px; font-size: 1.1rem; color: var(--ink-2); max-width: 800px; }

.toc { position: sticky; top: var(--header-h); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.toc .container {
  position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px;
  /* mờ dần ở mép phải để người đọc biết thanh còn cuộn được */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}
.toc .container::-webkit-scrollbar { display: none; }
.toc .container.at-end { -webkit-mask-image: none; mask-image: none; }
.toc a { flex: none; font-size: .85rem; font-weight: 500; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; }
.toc a:hover { background: var(--surface); color: var(--ink); }
.toc a.on { background: var(--ink); color: var(--bg); }

/* chọn nhanh: thẻ sản phẩm theo nhu cầu */
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.pick {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, border-color .2s;
}
.pick:hover { box-shadow: var(--shadow-lg); border-color: var(--line-2); }
/* subgrid: nhãn nhu cầu dài ngắn khác nhau nhưng ảnh, tên, giá, nút của các thẻ cùng hàng vẫn thẳng nhau */
@supports (grid-template-rows: subgrid) {
  .pick { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 8px; }
}
.pick-need { font-size: .825rem; font-weight: 600; line-height: 1.4; color: var(--brand-text); }
.pick-img { display: block; margin: 4px 0 6px; }
.pick-img img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #fff; }
.pick h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.pick h3 a { color: var(--ink); }
.pick h3 a:hover { color: var(--brand-text); }
.pick-meta { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-meta i { font-style: normal; color: var(--star); margin-right: 2px; }
.pick-meta b { color: var(--ink); }
.pick-why { font-size: .85rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pick-foot { margin-top: auto; padding-top: 8px; display: grid; gap: 10px; align-self: end; }
.pick-foot .price { font-size: 1.15rem; }
.pick-foot .btn { width: 100%; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.compare { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; font-size: .9rem; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--surface); padding-top: 18px; }
.compare thead a { display: grid; gap: 10px; color: var(--ink); font-weight: 600; font-size: .9rem; }
.compare thead a:hover { color: var(--brand-text); }
.compare thead img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.compare tbody th { font-weight: 500; color: var(--muted); white-space: nowrap; }
.compare th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); width: 170px; }
.compare tbody tr:nth-child(even) td, .compare tbody tr:nth-child(even) th { background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }

/* đánh giá chi tiết từng sản phẩm */
.products { display: grid; gap: 24px; }
.product { padding: 28px; scroll-margin-top: calc(var(--header-h) + 64px); }
.product-top { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.product-media img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.product-label { display: flex; align-items: center; gap: 10px; }
.rank {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: .85rem;
}
.product-info h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 800; letter-spacing: -.03em; margin-top: 12px; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; font-size: .9rem; color: var(--ink-2); }
.facts > span { white-space: nowrap; }
.facts b { color: var(--ink); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 18px 0 20px; }
.price-row .price { font-size: 1.75rem; letter-spacing: -.02em; }
.fit { margin-top: 16px; font-size: .925rem; color: var(--ink-2); }
.fit strong { color: var(--ink); }

.callout { display: flex; gap: 10px; margin-top: 24px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--ink); font-size: .9rem; }
.callout .icon { color: var(--warn); margin-top: 1px; }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.proscons > div { padding: 18px 20px; border-radius: 12px; background: var(--surface-2); }
.proscons h4, .verdict h4 { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.checklist { list-style: none; display: grid; gap: 9px; }
.checklist li { position: relative; padding-left: 26px; font-size: .925rem; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--good) no-repeat center / 10px;
}
.checklist.pros li::before { background-color: var(--good-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23067647' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.checklist.cons li::before { background-color: var(--bad-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b42318' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }

.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.verdict > div { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); }
.verdict h4 { margin-bottom: 6px; }
.verdict p { font-size: .925rem; color: var(--ink); }

.reviews { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.reviews summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 600; }
.reviews summary::-webkit-details-marker { display: none; }
.reviews summary .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.reviews[open] summary .chev { transform: rotate(90deg); }
.reviews summary .muted { font-weight: 400; font-size: .875rem; }
.insight { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.insight h5, .review-cols h5 { font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.insight ul { padding-left: 18px; font-size: .9rem; color: var(--ink-2); display: grid; gap: 4px; }
.dist { display: grid; gap: 5px; max-width: 420px; margin: 18px 0; font-size: .8rem; }
.dist-row { display: grid; grid-template-columns: 28px 1fr 64px; gap: 10px; align-items: center; color: var(--muted); }
.dist-row i { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--star) var(--w), var(--surface-2) var(--w)); }
.dist-row span:last-child { text-align: right; }
.review-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review { margin: 0 0 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.review .stars { font-size: .8rem; }
.review blockquote { margin: 8px 0 0; font-size: .9rem; color: var(--ink-2); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review figcaption { font-size: .75rem; color: var(--muted); margin-top: 8px; }
.review-img { display: flex; gap: 6px; margin-top: 10px; }
.review-img img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { padding: 26px 28px; }
.panel h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.panel ul { padding-left: 18px; display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:first-of-type { border-top: 0; padding-top: 0; }

/* ---------- 404 ---------- */
.notfound { max-width: 520px; margin: 0 auto; padding: 96px 0 0; text-align: center; }
.notfound .code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--line-2); }
.notfound h1 { font-size: 1.6rem; font-weight: 800; margin: 16px 0 8px; }
.notfound p { color: var(--muted); margin-bottom: 26px; }

/* ---------- màn hình vừa & nhỏ ---------- */
@media (max-width: 960px) {
  .steps, .stats { grid-template-columns: 1fr 1fr; }
  .lp-values { grid-template-columns: 1fr 1fr; }
  .lp-how-grid { gap: 36px; }
  .features { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .policy { grid-template-columns: 1fr; gap: 24px; }
  .policy-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .policy-nav a { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
  .product-top { grid-template-columns: 200px 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  :root { --header-h: 58px; }
  .container { padding: 0 16px; }
  /* menu gọn trong nút ☰ (chỉ header có nút menu; header admin giữ nguyên) */
  .site-header.has-menu .menu-btn { display: grid; }
  .site-header.has-menu .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0; padding: 8px 16px 16px;
    flex-direction: column; align-items: stretch; gap: 2px; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .site-header.has-menu.menu-open .site-nav { display: flex; }
  .site-header.has-menu .site-nav a { padding: 12px; font-size: 1rem; border-radius: 10px; }
  .site-header:not(.has-menu) .site-nav a { padding: 6px 8px; font-size: .875rem; }
  .site-header > .container { gap: 12px; }
  .lp-hero { padding: 52px 0 88px; border-radius: 0 0 28px 28px; }
  .lp-badge { margin-bottom: 20px; }
  .lp-search { margin-top: 28px; padding: 6px; }
  .lp-search > .icon { margin-left: 12px; }
  .lp-search input { height: 50px; font-size: 1rem; }
  .lp-search .btn { height: 50px; padding: 0 20px; }
  .lp-trust { flex-direction: column; align-items: center; gap: 8px; margin-top: 26px; }
  .lp-panel { margin-top: -48px; padding: 16px; border-radius: 20px; }
  .ask { grid-template-columns: auto 1fr; }
  .ask .btn { grid-column: 1 / -1; width: 100%; }
  .job { padding: 14px; }
  .job-top { gap: 12px; }
  /* 20 bài mới: 2 cột thẻ gọn để trang không quá dài */
  .grid.dense { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid.dense .cmp-body { padding: 10px 12px 12px; gap: 2px; }
  .grid.dense .cmp h3 { font-size: .95rem; }
  .grid.dense .cmp-names, .grid.dense .cmp-foot time, .grid.dense .cmp-more { display: none; }
  .grid.dense .cmp-foot { padding-top: 4px; font-size: .8rem; }
  .grid.dense .cmp-foot .price { font-size: .9rem; }
  .grid.dense .cmp-badge { top: 8px; left: 8px; padding: 3px 8px; font-size: .7rem; }
  .lp-section { margin-top: 80px; }
  .lp-values { grid-template-columns: 1fr; }
  .lp-how-grid { grid-template-columns: 1fr; }
  .lp-demo { padding: 40px 14px 16px; }
  .lp-demo .job + .job { margin-left: 0; }
  .lp-stats { grid-template-columns: 1fr 1fr; }
  .lp-cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .section { margin-top: 56px; }
  .grid { gap: 14px; }
  .steps, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .page-hero { padding-top: 44px; }
  .list-tools { flex-direction: column; }
  .filter { max-width: none; }
  .list-tools select { width: 100%; }
  .site-footer { margin-top: 72px; }

  .article-head { padding: 28px 0 28px; }
  /* chọn nhanh: vuốt ngang */
  .picks {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px;
  }
  .picks::-webkit-scrollbar { display: none; }
  .pick { scroll-snap-align: start; }
  .product { padding: 18px; }
  /* ảnh nhỏ bên trái, điểm + giá bên phải; nút Mua và "Phù hợp" trải hết chiều ngang */
  .product-top { grid-template-columns: 104px 1fr; gap: 12px 14px; }
  .product-info { display: contents; }
  .product-media { grid-row: 1 / 4; grid-column: 1; }
  .product-label, .product-info h3, .facts { grid-column: 2; }
  .product-info h3 { margin-top: 0; font-size: 1.25rem; }
  .facts { margin-top: 0; font-size: .85rem; }
  .price-row, .product-info .btn, .fit { grid-column: 1 / -1; }
  .price-row { margin: 6px 0 0; }
  .price-row .price { font-size: 1.45rem; }
  .product-info .btn { width: 100%; }
  .fit { margin-top: 0; }
  .compare { min-width: 640px; font-size: .85rem; }
  .compare th, .compare td { padding: 10px; }
  .compare th:first-child { width: 96px; }
  .compare tbody th { white-space: normal; font-size: .8rem; }
  .proscons, .verdict, .insight, .review-cols, .two-col { grid-template-columns: 1fr; }
  .panel { padding: 22px 20px; }
}
