/* KieuLink 桥联 — kieulink.com
   Bộ nhận diện: hinh-anh/nhan-dien/README.md. Màu, phông chỉ sửa ở :root. */
:root {
  --kl-blue: #0E3A5B;
  --kl-blue-dark: #0A2C46;
  --kl-gold: #F2A20C;
  --kl-gold-dark: #B87700;
  --kl-text: #0F172A;
  --kl-muted: #475569;
  --kl-cream: #FEF3C7;
  --kl-line: #E2E8F0;
  --kl-paper: #F8FAFC;
  --kl-white: #FFFFFF;
  --kl-radius: 14px;
  --kl-max: 1120px;
  --kl-font: "Noto Sans", "Noto Sans Khmer", system-ui, -apple-system, "Segoe UI", sans-serif;
  --kl-lh: 1.65;
  --kl-bar-h: 64px;
}
html[lang="km"] { --kl-font: "Noto Sans Khmer", "Noto Sans", system-ui, sans-serif; --kl-lh: 1.85; }
/* Tiếng Trung: chữ Latin dùng Noto Sans (tự host), chữ Hán dùng phông có sẵn của máy (bộ chữ Hán web quá nặng, tải 8–10 giây). */
html[lang="zh-Hans"] { --kl-font: "Noto Sans", "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif; --kl-lh: 1.75; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--kl-white); color: var(--kl-text);
  font-family: var(--kl-font); font-size: 17px; line-height: var(--kl-lh);
}
html[lang="km"] body { font-size: 17.5px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--kl-blue); text-underline-offset: 3px; }
a:hover { color: var(--kl-gold-dark); }
h1, h2, h3 { color: var(--kl-blue); line-height: 1.3; margin: 0 0 .5em; }
html[lang="km"] h1, html[lang="km"] h2, html[lang="km"] h3 { line-height: 1.6; }
h1 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; }
h2 { font-size: clamp(23px, 4.4vw, 32px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
.wrap { max-width: var(--kl-max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--kl-gold); color: var(--kl-blue); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--kl-gold); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--kl-white); border-bottom: 1px solid var(--kl-line); }
.head-row { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--kl-blue); flex: 0 0 auto; }
.brand svg { width: 40px; height: 40px; flex: 0 0 auto; }
.brand-name { font-family: "Noto Sans", sans-serif; font-weight: 900; font-size: 20px; line-height: 1.1; letter-spacing: -.01em; }
.brand-name b { color: var(--kl-gold); font-family: "KieuLink SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; margin-left: 4px; }
.site-head .brand-name b { color: var(--kl-gold-dark); } /* nền trắng: vàng đậm để đủ tương phản */
.brand-sub { display: block; font-family: "Noto Sans Khmer", sans-serif; font-size: 12.5px; color: var(--kl-muted); font-weight: 400; line-height: 1.4; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.nav li { margin: 0; }
.nav a { display: block; padding: 8px 8px; border-radius: 8px; text-decoration: none; color: var(--kl-text); font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--kl-paper); color: var(--kl-blue); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--kl-gold); }
.head-tools { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.langs { display: flex; gap: 2px; font-size: 14px; }
.langs a { text-decoration: none; padding: 6px 5px; border-radius: 6px; color: var(--kl-muted); font-weight: 600; }
.langs a[aria-current="true"] { color: var(--kl-blue); background: var(--kl-paper); }
.langs a.km { font-family: "Noto Sans Khmer", sans-serif; }
.langs a.zh { font-family: "KieuLink SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.3; }
.btn-gold { background: var(--kl-gold); color: var(--kl-blue); }
.btn-gold:hover { background: #FFB52E; color: var(--kl-blue); }
.btn-blue { background: var(--kl-blue); color: var(--kl-white); }
.btn-blue:hover { background: var(--kl-blue-dark); color: var(--kl-white); }
.btn-line { background: transparent; color: var(--kl-blue); border-color: var(--kl-blue); }
.btn-line:hover { background: var(--kl-paper); color: var(--kl-blue); }
.btn-white { background: var(--kl-white); color: var(--kl-blue); }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-sm { min-height: 40px; padding: 7px 14px; font-size: 15px; }
.menu-btn { display: none; background: none; border: 0; width: 46px; height: 46px; border-radius: 10px; cursor: pointer; color: var(--kl-blue); padding: 0; }
.menu-btn svg { width: 28px; height: 28px; }

@media (max-width: 1140px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--kl-white); border-bottom: 1px solid var(--kl-line);
    box-shadow: 0 12px 24px rgba(15,23,42,.08); display: none; margin: 0; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 12px 10px; font-size: 17px; border-bottom: 1px solid var(--kl-line); border-radius: 0; }
  .head-tools { margin-left: auto; }
}
@media (max-width: 960px) {
  .head-tools .btn-quote { display: none; }  /* điện thoại: nút Hỏi giá nằm ở thanh chat dưới đáy */
}
@media (max-width: 400px) {
  .brand-name { font-size: 18px; }
  .brand svg { width: 36px; height: 36px; }
  .langs a { padding: 6px 4px; font-size: 13px; }
}

/* Menu thả xuống "Tiện ích" (Đổi tiền, Từ điển chợ). Máy tính: bấm hoặc rê chuột; điện thoại: hiện thẳng trong menu. */
.has-sub { position: relative; }
.sub-btn { display: flex; align-items: center; gap: 2px; padding: 8px 8px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px; color: var(--kl-text); white-space: nowrap; }
.sub-btn svg { width: 15px; height: 15px; transition: transform .15s; }
.sub-btn:hover, .has-sub.open > .sub-btn, .has-sub[data-current] > .sub-btn { background: var(--kl-paper); color: var(--kl-blue); }
.has-sub[data-current] > .sub-btn { box-shadow: inset 0 -3px 0 var(--kl-gold); }
.has-sub.open > .sub-btn svg { transform: rotate(180deg); }
.nav .sub { display: none; position: absolute; top: 100%; right: 0; z-index: 45; min-width: 200px; flex-direction: column; gap: 2px;
  margin-top: 6px; padding: 6px; background: var(--kl-white); border: 1px solid var(--kl-line); border-radius: 12px; box-shadow: 0 14px 30px rgba(15,23,42,.12); }
.has-sub.open > .sub { display: flex; }
@media (hover: hover) and (min-width: 1141px) {
  .has-sub:hover > .sub { display: flex; }
  .has-sub.shut > .sub { display: none; }
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
}
@media (max-width: 1140px) {
  .sub-btn { display: none; }
  .nav .sub, .has-sub.open > .sub { display: block; position: static; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
}
/* Bản tiếng Việt có 7 mục menu + "Tiện ích" (thêm "Sân thể thao", 18/10/2026): từ 1141 đến 1310 px thanh menu rộng hơn khung và làm trang cuộn ngang.
   Dải này dùng menu thu gọn (nút ba gạch) như dưới 1141 px, chỉ cho bản /vi/. Đổi một chỗ thì đổi cả hai: khối max-width 1140 ở trên và khối này. */
@media (min-width: 1141px) and (max-width: 1310px) {
  html[lang="vi"] .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  html[lang="vi"] .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--kl-white); border-bottom: 1px solid var(--kl-line);
    box-shadow: 0 12px 24px rgba(15,23,42,.08); display: none; margin: 0; }
  html[lang="vi"] .nav.open { display: block; }
  html[lang="vi"] .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  html[lang="vi"] .nav a { padding: 12px 10px; font-size: 17px; border-bottom: 1px solid var(--kl-line); border-radius: 0; }
  html[lang="vi"] .head-tools { margin-left: auto; }
  html[lang="vi"] .sub-btn { display: none; }
  html[lang="vi"] .nav .sub, html[lang="vi"] .has-sub.open > .sub { display: block; position: static; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
}

/* ---------- Khối chung ---------- */
main { display: block; }
.section { padding: 48px 0; }
.section.alt { background: var(--kl-paper); }
.section.blue { background: var(--kl-blue); color: var(--kl-white); }
.section.blue h2, .section.blue h3 { color: var(--kl-white); }
.section-head { max-width: 720px; margin-bottom: 26px; }
.section-head p { color: var(--kl-muted); }
.lead { font-size: 1.12em; color: var(--kl-muted); }
.page-head { background: linear-gradient(160deg, var(--kl-blue) 0%, var(--kl-blue-dark) 100%); color: var(--kl-white); padding: 40px 0 36px; position: relative; overflow: hidden; }
.page-head h1 { color: var(--kl-white); margin-bottom: .3em; }
.page-head p { color: #D6E2EC; max-width: 720px; margin: 0; font-size: 1.08em; }
.page-head .bridge-bg { position: absolute; right: -60px; top: 20px; width: 360px; height: 360px; opacity: .09; pointer-events: none; }
.crumbs { font-size: 14px; margin-bottom: 10px; color: #B9CBDA; }
.crumbs a { color: #E6EEF5; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--kl-white); border: 1px solid var(--kl-line); border-radius: var(--kl-radius); padding: 22px; }
.card h2, .card h3 { margin-bottom: .35em; }
.card h2 { font-size: 20px; font-weight: 700; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--kl-cream); color: var(--kl-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.card .ico svg { width: 28px; height: 28px; }
a.card { text-decoration: none; color: var(--kl-text); display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--kl-gold); transform: translateY(-2px); color: var(--kl-text); }
.card .more { color: var(--kl-blue); font-weight: 700; margin-top: 10px; display: inline-block; }

/* Hero trang chủ */
.hero { background: linear-gradient(160deg, var(--kl-blue) 0%, var(--kl-blue-dark) 100%); color: var(--kl-white); position: relative; overflow: hidden; }
.hero .wrap { position: relative; padding-top: 38px; padding-bottom: 42px; }
.hero h1 { color: var(--kl-white); font-size: clamp(29px, 7vw, 50px); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--kl-gold); }
.hero .sub { color: #D6E2EC; font-size: 1.1em; max-width: 640px; margin-bottom: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .bridge-bg { position: absolute; right: -80px; top: 90px; width: 520px; height: 520px; opacity: .1; pointer-events: none; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.hero-tags li { margin: 0; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #F1F5F9; padding: 4px 12px; border-radius: 999px; font-size: 14px; }

/* Điểm khác biệt */
.points3 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0; padding: 0; list-style: none; }
.points3 li { margin: 0; display: flex; gap: 12px; align-items: flex-start; background: var(--kl-white); border: 1px solid var(--kl-line); border-radius: var(--kl-radius); padding: 16px; }
.points3 .num { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--kl-gold); color: var(--kl-blue); font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: "Noto Sans", sans-serif; }
.points3 strong { display: block; color: var(--kl-blue); }

/* 2 lối vào */
.doors { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.door { border-radius: var(--kl-radius); padding: 24px; text-decoration: none; display: block; }
.door h2 { margin-bottom: .3em; font-size: 20px; font-weight: 700; }
.door.buyer { background: var(--kl-gold); color: var(--kl-blue); }
.door.buyer h2 { color: var(--kl-blue); }
.door.supplier { background: var(--kl-blue); color: var(--kl-white); }
.door.supplier h2 { color: var(--kl-white); }
.door .go { font-weight: 800; }
.door:hover { filter: brightness(1.05); }

/* Quy trình đánh số */
.steps { counter-reset: st; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps > li { counter-increment: st; position: relative; padding: 16px 16px 16px 66px; background: var(--kl-white); border: 1px solid var(--kl-line); border-radius: var(--kl-radius); margin: 0; }
.steps > li::before { content: counter(st); position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--kl-blue); color: var(--kl-white);
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: "Noto Sans", sans-serif; }
.steps strong { color: var(--kl-blue); display: block; }
@media (min-width: 900px) { .steps.row { grid-template-columns: repeat(5, 1fr); } .steps.row > li { padding: 62px 14px 16px; } }

/* Người sáng lập */
.founder { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
.founder img { border-radius: var(--kl-radius); width: 100%; max-width: 360px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; background: var(--kl-paper); }
@media (min-width: 760px) { .founder { grid-template-columns: 340px 1fr; } }
.founder blockquote { margin: 0 0 1em; padding: 14px 18px; border-left: 6px solid var(--kl-gold); background: var(--kl-cream); border-radius: 0 12px 12px 0; }
.langs-spoken { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.langs-spoken li { margin: 0; border: 1px solid var(--kl-line); border-radius: 999px; padding: 3px 12px; font-size: 15px; background: var(--kl-white); }

/* Nhóm hàng */
.group-card { border: 1px solid var(--kl-line); border-radius: var(--kl-radius); overflow: hidden; background: var(--kl-white); display: flex; flex-direction: column; }
.group-card .pic { aspect-ratio: 16 / 9; background: var(--kl-cream); display: flex; align-items: center; justify-content: center; color: var(--kl-blue); position: relative; }
.group-card .pic svg { width: 96px; height: 96px; opacity: .85; }
.group-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.group-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.group-card .body .btn { margin-top: auto; align-self: flex-start; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; }
.tags li { margin: 0; background: var(--kl-paper); border: 1px solid var(--kl-line); border-radius: 8px; padding: 2px 10px; font-size: 15px; }

/* Thẻ hàng (skill them-hang): điện thoại là dải thẻ vuốt ngang (trang không dài ra); từ 600px là lưới */
.hang { margin-top: 28px; }
.hang-tieu-de { font-size: 19px; }
.hang-luoi { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 12px -16px 0; padding: 2px 16px 10px; scroll-padding: 0 16px; }
.hang-the { position: relative; flex: 0 0 min(78%, 300px); scroll-snap-align: start; display: flex; flex-direction: column; background: var(--kl-white);
  border: 1px solid var(--kl-line); border-radius: var(--kl-radius); overflow: hidden; scroll-margin-top: calc(var(--kl-bar-h) + 12px); }
.hang-anh { aspect-ratio: 16 / 11; background: var(--kl-white); border-bottom: 1px solid var(--kl-line); display: flex; align-items: center; justify-content: center; color: var(--kl-blue); }
.hang-anh picture { display: contents; }
.hang-anh img { width: 100%; height: 100%; object-fit: contain; }
.hang-anh > svg { width: 48px; height: 48px; opacity: .6; }
.hang-chu { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; min-width: 0; }
.hang-chu h3 { font-size: 17px; margin: 0 0 .25em; }
.hang-chu p { margin: 0 0 .45em; font-size: 15.5px; }
.hang-chu ul { margin: 0 0 .7em; padding-left: 1.1em; font-size: 15px; }
.hang-chu li { margin: 0 0 .2em; }
.hang-chu .btn { align-self: flex-start; margin-top: auto; }
.hang-meta { color: var(--kl-muted); font-size: 14px !important; }
.hang-ma { color: var(--kl-muted); font-size: 12.5px !important; margin: 8px 0 0 !important; font-family: "Noto Sans", sans-serif; }
.hang-ghi { color: var(--kl-muted); font-size: 15px; margin: 10px 0 0; }
.hang-the[data-cho-duyet]::before { padding: 8px 14px 0; }
@media (min-width: 600px) {
  .hang-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; overflow: visible; margin: 12px 0 0; padding: 0; }
  .hang-anh { aspect-ratio: 1 / 1; }
}

/* Ô ghi chú, ô cần Kevin bổ sung */
.note { background: var(--kl-cream); border-left: 6px solid var(--kl-gold); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 0 0 1em; }
.note p:last-child { margin: 0; }
.todo { display: block; border: 2px dashed #D97706; background: #FFFBEB; color: #92400E; border-radius: 10px; padding: 10px 14px; margin: 0 0 1em; font-size: 15px; font-family: "Noto Sans", sans-serif; }
.todo::before { content: "Chờ bổ sung · "; font-weight: 800; }
.todo.duyet::before { content: "Chờ Kevin duyệt · "; }
/* câu mới cho khách, chờ Kevin duyệt chữ: chỉ hiện ở bản thử (build.py --that dừng khi còn) */
[data-cho-duyet] { outline: 2px dashed #D97706; outline-offset: 4px; border-radius: 4px; }
[data-cho-duyet]::before { content: "Chờ Kevin duyệt · "; font-weight: 800; color: #92400E; font-family: "Noto Sans", sans-serif; font-size: 14px; }
span.todo { display: inline; padding: 1px 6px; margin: 0; }
.src-list { font-size: 14.5px; color: var(--kl-muted); }
.src-list a { word-break: break-word; }

/* Câu hỏi thường gặp */
.faq { border: 1px solid var(--kl-line); border-radius: 12px; background: var(--kl-white); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 16px; font-weight: 700; color: var(--kl-blue); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 3px solid var(--kl-gold); border-bottom: 3px solid var(--kl-gold); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-a { padding: 0 16px 14px; }
.faq .faq-a p:last-child { margin: 0; }

/* Tuyến giao */
.route { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; }
.route li { margin: 0; flex: 1 1 140px; position: relative; padding: 14px 14px 14px 18px; background: var(--kl-white); border: 1px solid var(--kl-line); }
.route li:first-child { border-radius: 12px 0 0 12px; }
.route li:last-child { border-radius: 0 12px 12px 0; }
.route li strong { display: block; color: var(--kl-blue); }
.route li small { color: var(--kl-muted); font-size: 14px; }
.route li.gate { background: var(--kl-cream); }
@media (max-width: 640px) {
  .route { flex-direction: column; }
  .route li, .route li:first-child, .route li:last-child { border-radius: 0; flex: none; }
  .route li:first-child { border-radius: 12px 12px 0 0; }
  .route li:last-child { border-radius: 0 0 12px 12px; }
}

/* Kênh chat (khối to) */
.channels { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin: 0 0 1em; }
.ch { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; text-decoration: none; color: var(--kl-white); font-weight: 700; min-height: 60px; border: 0; font-family: inherit; font-size: 16px; cursor: pointer; text-align: left; width: 100%; }
.ch svg { width: 30px; height: 30px; flex: 0 0 auto; }
.ch small { display: block; font-weight: 400; font-size: 13.5px; }
.ch:hover { filter: brightness(1.08); color: var(--kl-white); }
/* màu kênh đậm hơn màu gốc một chút: chữ trắng đủ tương phản 4,5:1 */
.ch-tg { background: #1B7CAB; }
.ch-ms { background: #006FF0; }
.ch-zl { background: #0068FF; }
.ch-wc { background: #058643; }
.ch-mail { background: var(--kl-blue); }

/* Theo dõi kênh */
.follow { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.follow li { margin: 0; }
.follow a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--kl-line); text-decoration: none; color: var(--kl-text); font-weight: 600; background: var(--kl-white); }
.follow a:hover { border-color: var(--kl-gold); }
.follow svg { width: 20px; height: 20px; }

/* Dải kêu gọi cuối trang */
.cta-band { background: linear-gradient(160deg, var(--kl-blue) 0%, var(--kl-blue-dark) 100%); color: var(--kl-white); padding: 40px 0; }
.cta-band h2 { color: var(--kl-white); }
.cta-band p { color: #D6E2EC; max-width: 640px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cta-band .actions .ch { width: auto; min-height: 50px; padding: 10px 16px; }

/* Bài hướng dẫn */
.guide-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.guide-card .date { font-size: 14px; color: var(--kl-muted); }
.article { max-width: 760px; }
.article h2 { margin-top: 1.4em; font-size: clamp(22px, 4vw, 28px); }
.article h3 { margin-top: 1.2em; }
.article .meta { color: var(--kl-muted); font-size: 15px; margin-bottom: 1.2em; }
/* Tin tức (Y-018): danh sách theo tháng, trang tin (thân bài + ảnh thẻ), khối Tin mới ở Trang chủ */
.tin-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tin-thang { font-size: 20px; margin: 1.4em 0 .6em; }
.tin-thang:first-child { margin-top: 0; }
.tin-dong { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; font-size: 14px; color: var(--kl-muted); }
.chip { display: inline-block; background: var(--kl-cream); color: #7A4F00; border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 700; line-height: 1.6; }
.tin-card h2, .tin-card h3 { font-size: 18px; }
.tin-card p:not(.tin-dong) { color: var(--kl-muted); font-size: 15.5px; }
.section + .section.tin-moi { border-top: 1px solid var(--kl-line); }
.section.ke-duoi { border-bottom: 1px solid var(--kl-line); } /* 2 mục nền trắng liền nhau (Nguồn hàng: Đồ chơi) */
.tin-bai { display: grid; gap: 24px; align-items: start; }
.tin-bai .article { min-width: 0; }
.tin-bai .article h2 { font-size: 20px; margin-top: 1.2em; }
.tin-anh { margin: 0; max-width: 420px; }
.tin-anh img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--kl-line); }
.tin-nguon { margin-top: 1.4em; padding-top: 12px; border-top: 1px solid var(--kl-line); color: var(--kl-muted); font-size: 15px; }
.tin-nguon p { margin: 0 0 .4em; }
.tin-nguon ul { margin: 0; padding-left: 1.1em; }
.tin-ban-kia { margin-top: 1.4em; font-weight: 600; }
@media (min-width: 900px) { .tin-bai { grid-template-columns: minmax(0, 1fr) 340px; } .tin-anh { position: sticky; top: 90px; } }
.toc { background: var(--kl-paper); border: 1px solid var(--kl-line); border-radius: 12px; padding: 14px 18px; margin-bottom: 1.4em; }
.toc strong { color: var(--kl-blue); }
.toc ol { margin: 6px 0 0; }

/* Form */
.form { display: grid; gap: 16px; max-width: 640px; }
.field label, .field .label { display: block; font-weight: 700; color: var(--kl-blue); margin-bottom: 6px; }
.field .hint { display: block; font-size: 14px; color: var(--kl-muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 2px solid var(--kl-line); border-radius: 10px; background: var(--kl-white); color: var(--kl-text); min-height: 50px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--kl-gold); outline: none; }
.field-row { display: grid; gap: 10px; grid-template-columns: minmax(0, 150px) 1fr; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.form .privacy { font-size: 14.5px; color: var(--kl-muted); margin: 0; }
.form-msg { display: none; }
.form-msg.show { display: block; }

/* Trò chơi */
.game-box { background: var(--kl-white); border: 1px solid var(--kl-line); border-radius: var(--kl-radius); padding: 16px; }
.game-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

/* Bảng */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl th, .tbl td { border: 1px solid var(--kl-line); padding: 9px 10px; text-align: left; vertical-align: top; }
.tbl th { background: var(--kl-paper); color: var(--kl-blue); }

/* ---------- Chân trang ---------- */
.site-foot { background: var(--kl-blue-dark); color: #C8D6E2; padding: 40px 0 24px; font-size: 15.5px; }
.site-foot a { color: #F1F5F9; }
.site-foot .follow a { color: var(--kl-text); }
.site-foot a:hover { color: var(--kl-gold); }
.foot-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-foot h2 { color: var(--kl-white); font-size: 16px; margin-bottom: 10px; text-transform: none; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.foot-brand svg { width: 44px; height: 44px; }
.foot-brand .brand-name { color: var(--kl-white); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: 14px; }
.foot-bottom .langs a { color: #C8D6E2; }
.foot-bottom .langs a[aria-current="true"] { color: var(--kl-white); background: rgba(255,255,255,.1); }
.supplier-link { font-family: "Noto Sans", sans-serif; }
/* Dải "tin mỗi ngày có ở…" đầu chân trang (Chiến dịch 200): nhỏ, khiêm tốn, 4 kênh */
.theo-doi { background: var(--kl-blue); border-bottom: 1px solid rgba(255,255,255,.1); margin: -40px 0 32px; padding: 16px 0; }
.theo-doi .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.theo-doi p { margin: 0; color: #E6EEF5; font-weight: 600; font-size: 15.5px; }
.theo-doi-ds { display: flex; flex-wrap: wrap; gap: 8px; }
.site-foot .theo-doi-ds li { margin: 0; }
.theo-doi-ds a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--kl-white);
  color: var(--kl-text); text-decoration: none; font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.site-foot .theo-doi-ds a { color: var(--kl-text); }
.site-foot .theo-doi-ds a:hover { color: var(--kl-blue); box-shadow: 0 0 0 2px var(--kl-gold); }
.theo-doi-ds svg { width: 22px; height: 22px; flex: 0 0 auto; }
.theo-doi-ds small { display: block; font-weight: 400; font-size: 12.5px; color: var(--kl-muted); font-family: "Noto Sans", sans-serif; }

/* Khung xem trước kênh Telegram (dựng tĩnh từ t.me/s/kieulink lúc build, không script ngoài) */
.tg-ds { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.tg-bai { background: var(--kl-white); border: 1px solid var(--kl-line); border-left: 4px solid #229ED9; border-radius: 12px; padding: 14px 16px; margin: 0; display: flex; flex-direction: column; }
.tg-ngay { margin: 0 0 4px; font-size: 13.5px; color: var(--kl-muted); }
.tg-chu { margin: 0 0 10px; white-space: pre-line; overflow-wrap: anywhere; font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.tg-bai a { margin-top: auto; font-weight: 700; font-size: 15px; }
.tg-ghi { font-size: 13.5px; color: var(--kl-muted); margin: 0 0 12px; }
.tg-mo { width: auto; display: inline-flex; min-height: 50px; }

/* Khối "Gửi trang này" ở trang công cụ, quà tặng */
.chia-se-muc { padding: 28px 0; }
.chia-se { border: 1px solid var(--kl-line); border-radius: var(--kl-radius); padding: 18px 20px; background: var(--kl-paper); max-width: 760px; }
.chia-se h2 { font-size: 18px; margin-bottom: 6px; }
.chia-se-cau { margin: 0 0 12px; color: var(--kl-text); overflow-wrap: anywhere; }
.chia-se-link { color: var(--kl-muted); font-size: 14.5px; font-family: "Noto Sans", sans-serif; overflow-wrap: anywhere; }
.chia-se-nut { display: flex; flex-wrap: wrap; gap: 8px; }
.chia-se-nut svg { width: 20px; height: 20px; }
@media print { .theo-doi, .chia-se-muc, .tg-xem { display: none !important; } }

/* ---------- Thanh chat dưới đáy (điện thoại) ---------- */
.chatbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--kl-white); border-top: 1px solid var(--kl-line);
  box-shadow: 0 -6px 18px rgba(15,23,42,.08); display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--kl-bar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); }
.chatbar a, .chatbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--kl-text);
  font-size: 12px; font-weight: 600; background: none; border: 0; font-family: inherit; cursor: pointer; padding: 4px 2px; line-height: 1.3; min-width: 0; }
.chatbar svg { width: 26px; height: 26px; }
.chatbar .q { background: var(--kl-gold); color: var(--kl-blue); font-weight: 800; }
.chatbar .q svg { color: var(--kl-blue); }
.chatbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
body { padding-bottom: calc(var(--kl-bar-h) + env(safe-area-inset-bottom, 0px)); }
.chat-fab, .chat-panel { display: none; }

@media (min-width: 961px) {
  .chatbar { display: none; }
  body { padding-bottom: 0; }
  .chat-fab { display: inline-flex; position: fixed; right: 22px; bottom: 22px; z-index: 50; box-shadow: 0 10px 24px rgba(10,44,70,.3); }
  .chat-panel { position: fixed; right: 22px; bottom: 86px; z-index: 50; width: 320px; background: var(--kl-white); border: 1px solid var(--kl-line);
    border-radius: 16px; box-shadow: 0 18px 40px rgba(10,44,70,.25); padding: 16px; }
  .chat-panel.open { display: block; }
  .chat-panel h2 { font-size: 17px; margin-bottom: 4px; }
  .chat-panel p { font-size: 14px; color: var(--kl-muted); margin-bottom: 10px; }
  .chat-panel .channels { grid-template-columns: 1fr; gap: 8px; margin: 0; }
  .chat-panel .ch { min-height: 50px; padding: 8px 12px; }
}

/* Hộp WeChat */
dialog.kl-dialog { border: 0; border-radius: 16px; padding: 22px; max-width: min(92vw, 380px); box-shadow: 0 24px 60px rgba(10,44,70,.35); color: var(--kl-text); }
dialog.kl-dialog::backdrop { background: rgba(10,44,70,.55); }
dialog.kl-dialog h2 { font-size: 20px; }
.wc-id { display: flex; align-items: center; gap: 10px; background: var(--kl-paper); border: 1px solid var(--kl-line); border-radius: 10px; padding: 10px 12px; margin: 10px 0 14px; }
.wc-id code { font-size: 22px; font-weight: 800; color: var(--kl-blue); flex: 1; font-family: "Noto Sans", monospace; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* Tiện ích nhỏ */
.center { text-align: center; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.muted { color: var(--kl-muted); }
.small { font-size: 14.5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.points3 .num svg { width: 22px; height: 22px; }
.notfound-langs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ch-zl svg, .btn svg.zl { --zl-in: #0068FF; }
.article, .article li, .article p { overflow-wrap: anywhere; }
main { overflow-x: clip; }
.founder-mini { display: flex; gap: 16px; align-items: center; }
.founder-mini img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: center 18%; flex: 0 0 auto; }
.founder-mini h2 { font-size: 20px; margin-bottom: .2em; }
.founder-mini p { margin-bottom: .3em; }

/* Chuyển động (Y-014): video nền Trang chủ, ảnh trượt, hiện dần khi cuộn.
   Máy bật "giảm chuyển động": không tải video (chỉ ảnh chờ), ảnh không tự trượt, khối hiện ngay. */
.hero-nen { position: absolute; inset: 0; z-index: 0; background: var(--kl-blue-dark); }
.hero-nen picture, .hero-nen img, .hero-nen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Video thấp hơn ảnh chờ 2px (khuất dưới lớp xanh): video không bao giờ lớn hơn ảnh chờ nên không thành "phần tử lớn nhất" (LCP),
   điểm tốc độ tính theo ảnh chờ 25 KB, không chờ video tải. */
.hero-nen video { height: calc(100% - 2px); opacity: 0; transition: opacity .8s ease; }
.hero-nen.chay video { opacity: 1; }
.hero-nen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(14,58,91,.84) 0%, rgba(10,44,70,.9) 100%); }
.hero.co-nen .wrap { z-index: 1; padding-bottom: 60px; }
.hero-nen-bar { position: absolute; right: 12px; bottom: 10px; z-index: 2; display: flex; align-items: center; gap: 10px; }
.hero-ai { font-size: 12px; line-height: 1.4; color: #C9D6E2; }
.hero-nen-btn { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(10,44,70,.65);
  color: var(--kl-white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hero-nen-btn[hidden] { visibility: hidden; }  /* giữ chỗ: chữ AI không nhích khi nút hiện */
.hero-nen-btn:focus-visible, .truot-nut button:focus-visible { outline: 3px solid var(--kl-gold); outline-offset: 2px; }
.hero-nen-btn svg, .truot-nut svg { width: 16px; height: 16px; fill: currentColor; }
.i-chay, .dang-dung .i-dung { display: none; }
.dang-dung .i-chay { display: block; }

.hien-dan { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.hien-dan.da-hien { opacity: 1; transform: none; }

.truot { margin: 0 0 1em; }
.truot-ray { position: relative; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.truot-ray::-webkit-scrollbar { display: none; }
.truot-ray:focus-visible { outline: 3px solid var(--kl-gold); outline-offset: 3px; border-radius: var(--kl-radius); }
.truot-anh { flex: 0 0 86%; margin: 0; scroll-snap-align: center; border: 1px solid var(--kl-line); border-radius: var(--kl-radius); overflow: hidden; background: var(--kl-white); }
@media (min-width: 760px) { .truot-anh { flex-basis: calc(50% - 6px); } }
@media (min-width: 1000px) { .truot-anh { flex-basis: calc(33.333% - 8px); } }
.truot-anh picture { display: block; overflow: hidden; }
.truot-anh img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 6s ease-out; }
.truot-anh.dang-xem img { transform: scale(1.05); }
.truot-anh figcaption { padding: 8px 12px 10px; font-size: 15px; color: var(--kl-muted); }
.truot-nut { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.truot-nut button { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--kl-line); background: var(--kl-white);
  color: var(--kl-blue); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .hero-nen video, .hero-nen-btn, .truot-dung { display: none !important; }
  .hien-dan { opacity: 1; transform: none; }
  .truot-anh.dang-xem img { transform: none; }
}
@media print { .hien-dan { opacity: 1; transform: none; } .hero-nen-bar, .truot-nut { display: none; } }
/* Trang Dịch vụ sân thể thao (việc cloud 09): ảnh khung 4:3, lưới 2–3 cột từ 600 px, một cột trên điện thoại */
.san-anh { margin: 0; }
.san-anh picture { display: block; overflow: hidden; border-radius: var(--kl-radius); border: 1px solid var(--kl-line); background: var(--kl-cream); }
.san-anh img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.san-anh.san-dau img { aspect-ratio: 16 / 10; }
.san-luoi { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .san-luoi { grid-template-columns: repeat(2, 1fr); } .san-luoi.san-luoi-3 { grid-template-columns: repeat(3, 1fr); } }
.san-anh + .article { margin-top: 20px; }
.san-nut { align-items: center; }
.san-nut .channels { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.san-nut .ch { width: auto; min-height: 50px; padding: 10px 16px; }
