/*
  CSS của phần VIẾT TAY trong theme (không sinh từ bản Astro cnv.website) — tools/theme/export.mjs không ghi đè tệp này.
  theme.css là tệp sinh, xuất lại là mất luật thêm tay; luật cho section viết tay đặt ở đây. Nạp ngay sau theme.css
  (layout/theme.liquid) nên dùng thẳng token (--brand, --line, --radius-lg…) và lớp chung (.card, .ico, .checks, .faq,
  .mw…) của theme.css. Mốc màn hình theo theme.css: 980 / 920 / 800 / 640 / 560px.
*/

/* ── Header: nhóm «Mô hình hợp tác» trong menu Giải pháp (sections/header.liquid, block solution_feature) — cùng tinh thần
   khối CNV Remote ở menu Tài nguyên của cnvwork.com: nền hồng nhạt, cả thẻ là một link, nhãn «Mới». Đặt vào chỗ trống dưới cột
   «Theo ngành» chứ không làm dải ngang dưới đáy: menu Giải pháp vốn cao ~650px, thêm dải 127px thì laptop màn 768–900px không
   thấy thẻ. Bản này chỉ cao thêm ~47px. Mô tả giữ MỘT dòng (chỗ cho chữ ~250px, khoảng 40 ký tự). ── */
.mega-features { display: grid; gap: 6px; margin-top: 10px }
.mega-features .mega-h { margin: 0 10px 2px }
.mega-feature { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--pink-line); border-radius: 12px; background: var(--brand-soft); transition: background .15s, border-color .15s }
.mega-feature:hover { background: #ffe6ee; border-color: #ffc4d5 }
.mega-feature-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff; box-shadow: 0 6px 14px -6px rgba(207, 37, 80, .55) }
.mega-feature-ic svg { width: 18px; height: 18px }
.mega-feature-txt { flex: 1; min-width: 0 }
.mega-feature-txt strong { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .93rem; font-weight: 600; color: var(--ink); line-height: var(--lh-title) }
.mega-feature-desc { display: block; margin-top: 2px; font-size: .8rem; color: var(--muted); line-height: 1.45 }
.mega-feature-tag, .m-feature-tag { padding: 2px 7px; border-radius: 99px; background: var(--brand-strong); color: #fff; font-size: .66rem; font-weight: 700; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase }
.mega-feature-arr { flex: none; width: 16px; height: 16px; color: var(--brand-strong); transition: transform .15s }
.mega-feature:hover .mega-feature-arr { transform: translateX(3px) }
/* Menu di động: cùng các khối trên thành dòng nền hồng nhạt cuối danh sách Giải pháp */
.mobile-nav .m-links a.m-feature { display: flex; align-items: center; gap: 8px; background: var(--brand-soft); color: var(--ink); font-weight: 600 }
.mobile-nav .m-links a.m-feature:hover { background: #ffe6ee }
.mobile-nav .m-links a:not(.m-feature) + a.m-feature { margin-top: 6px }

/* ── Trang giới thiệu /white-label + /pay-for-results (sections/white-label-*, dùng chung) + hai section trang chủ home-white-label ── */
.wl-hero { padding-bottom: clamp(40px, 5vw, 64px) }
.wl-hero h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem) }
.wl-split { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) }
.wl-visual { min-width: 0 }
.wl-note { margin: 18px 0 0; font-size: .9rem; line-height: var(--lh-meta); color: var(--muted) }

/* Sơ đồ bốn tầng «ai đứng trước khách» (snippets/white-label-layers.liquid) */
.wl-layers { display: grid; gap: 22px; margin: 0; padding: clamp(16px, 2.2vw, 24px); background: linear-gradient(180deg, #fff, var(--bg-soft)) }
.wl-layer { --ic: var(--indigo); --ic-bg: var(--indigo-soft); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm) }
.wl-layer + .wl-layer::before { content: ""; position: absolute; left: 35px; top: -23px; height: 22px; border-left: 2px dashed var(--line-strong) }
.wl-layer--buyer { --ic: var(--zalo); --ic-bg: var(--zalo-soft) }
.wl-layer--client { --ic: var(--indigo); --ic-bg: var(--indigo-soft) }
.wl-layer--agency, .wl-layer--ops { --ic: var(--brand-strong); --ic-bg: var(--brand-soft); border-color: var(--pink-line); background: linear-gradient(180deg, var(--brand-soft), #fff 75%); box-shadow: 0 0 0 4px rgba(232, 54, 93, .08), var(--shadow) }
.wl-layer--cnv { --ic: var(--muted); --ic-bg: #eef0f5; border-style: dashed; border-color: var(--line-strong); background: #fbfbfd; box-shadow: none }
/* Trang /pay-for-results: dữ liệu → CNV vận hành (tô nổi) → kết quả → chia theo kết quả. Chữ xanh lục / vàng đậm hơn token để đủ tương phản. */
.wl-layer--data { --ic: var(--indigo); --ic-bg: var(--indigo-soft) }
.wl-layer--result { --ic: #0b7f5c; --ic-bg: var(--emerald-soft) }
.wl-layer--share { --ic: #9a5b00; --ic-bg: var(--amber-soft) }
.wl-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ic-bg); color: var(--ic) }
.wl-ic svg { width: 20px; height: 20px }
.wl-faces { position: relative; width: 40px; height: 40px }
.wl-faces img { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; box-shadow: var(--shadow-sm) }
.wl-faces img:nth-child(1) { left: 0; top: 9px }
.wl-faces img:nth-child(2) { left: 18px; top: 0 }
.wl-faces img:nth-child(3) { left: 18px; top: 18px }
.wl-k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ic) }
.wl-layer p { margin: 3px 0 0; font-size: 13.5px; line-height: var(--lh-meta); color: var(--text) }
.wl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px }
.wl-chips .ch { background: var(--ic-bg); color: var(--ic) }
.wl-layer--cnv .wl-chips .ch { background: #fff; border: 1px solid var(--line) }
.wl-badge { position: absolute; top: -11px; right: 14px; display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--brand-strong); color: #fff; font-size: 11px; font-weight: 650; white-space: nowrap }
.wl-layer--cnv .wl-badge { background: #fff; color: var(--muted); border: 1px dashed var(--line-strong) }
.wl-mock--compact .wl-layers { gap: 16px }
.wl-mock--compact .wl-layer { padding: 11px 14px }
.wl-mock--compact .wl-layer + .wl-layer::before { left: 33px; top: -17px; height: 16px }

/* Dải ba lợi ích (white-label-outcomes) — cùng dáng dải «Lợi ích chính» của trang phân hệ */
.wl-outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff }
.wl-outcomes > div { padding: 26px 28px }
.wl-outcomes > div + div { border-left: 1px solid var(--line) }
.wl-outcomes h3 { font-size: 1.08rem; margin-bottom: 6px }
.wl-outcomes p { margin: 0; color: var(--muted); font-size: .96rem }

/* Phân vai Agency / CNV (white-label-roles) */
.wl-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px }
.wl-role-top { display: flex; align-items: center; gap: 14px }
.wl-role-top .ico { margin: 0 }
.wl-role-top h3 { margin: 0 }
.wl-role-sub { margin: 2px 0 0; font-size: .92rem; color: var(--muted) }
.wl-role .checks { margin-top: 22px }
.wl-role--lead { border-color: var(--pink-line); background: linear-gradient(180deg, var(--brand-soft), #fff 55%) }

/* Bốn bước (white-label-steps) */
.wl-steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 18px }
.wl-steps li { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff }
.wl-step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800 }
.wl-steps h3 { margin-bottom: 6px }
.wl-steps p { margin: 0; color: var(--muted); font-size: .95rem }

/* Hộp nền chuyển màu: hai section trang chủ (home-white-label) và «Kèm CNV Work» (white-label-work) */
.wl-home-box, .wl-box { position: relative; padding: clamp(28px, 4.5vw, 64px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: radial-gradient(60% 80% at 0% 0%, var(--brand-soft), transparent 70%), radial-gradient(50% 70% at 100% 100%, var(--indigo-soft), transparent 70%), #fff; overflow: hidden }
.wl-home h2, .wl-work h2 { max-width: 560px }
.wl-home .lead, .wl-work .lead { margin: 16px 0 0; color: var(--muted) }
.wl-points { margin-top: 24px }
.wl-home .btn-row, .wl-work .btn-row { margin-top: 30px }
/* Trang chủ: hộp «Vận hành theo kết quả» (home-white-label với reverse + tone green) đứng ngay trên hộp White-label. Sơ đồ
   bên trái và nền xanh lục / vàng nhạt (đối xứng với hộp hồng / chàm bên dưới) để hai hộp không giống hệt. Hai section loại
   này đứng liền nhau thì khép khoảng cách còn ~30px thành một cặp, như nhóm «Mô hình hợp tác» trong menu Giải pháp.
   Điện thoại (≤920px, một cột) vẫn chữ trước, sơ đồ sau — thứ tự trong HTML không đổi. */
.wl-home--green .wl-home-box { background: radial-gradient(60% 80% at 100% 0%, var(--emerald-soft), transparent 70%), radial-gradient(50% 70% at 0% 100%, var(--amber-soft), transparent 70%), #fff }
.cnv-section--home-white-label:has(+ .cnv-section--home-white-label) > .wl-home { padding-bottom: clamp(10px, 1.5vw, 16px) }
.cnv-section--home-white-label + .cnv-section--home-white-label > .wl-home { padding-top: clamp(10px, 1.5vw, 16px) }
@media (min-width: 921px) {
  .wl-home--reverse .wl-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) }
  .wl-home--reverse .wl-visual { order: -1 }
}

/* «Kèm CNV Work» — bảng pipeline minh hoạ (white-label-work). Thẻ: tên + dòng phụ, khuôn mặt mẫu góc phải. */
.wl-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: clamp(14px, 2vw, 18px); background: linear-gradient(180deg, #fff, var(--bg-soft)) }
.wl-col { --c: var(--indigo); display: grid; align-content: start; gap: 8px; padding: 10px; border-radius: 12px; background: #f1f3f9 }
.wl-col--amber { --c: var(--amber) }
.wl-col--emerald { --c: var(--emerald) }
.wl-col--rose { --c: var(--brand-strong) }
.wl-col-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 0 0 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted) }
.wl-col-h span { display: inline-flex; align-items: center; gap: 6px; min-width: 0 }
.wl-col-h span::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c) }
.wl-col-h b { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--text); font-size: 11px; line-height: 20px; text-align: center }
.wl-deal { padding: 9px 10px; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 9px; background: #fff; box-shadow: var(--shadow-sm) }
.wl-deal strong { display: block; font-size: 12.5px; line-height: 1.3; color: var(--ink) }
.wl-deal-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 5px }
.wl-deal small { min-width: 0; font-size: 11px; line-height: 1.35; color: var(--muted) }
.wl-deal img { flex: none; width: 18px; height: 18px; border-radius: 50%; object-fit: cover }
.wl-board-foot { display: grid; gap: 12px; padding: 0 clamp(14px, 2vw, 18px) clamp(14px, 2vw, 18px); background: var(--bg-soft) }
.wl-ticket { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm) }
.wl-ticket-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong) }
.wl-ticket-ic svg { width: 16px; height: 16px }
.wl-ticket-tx { min-width: 0 }
.wl-ticket strong { display: block; font-size: 12.5px; line-height: 1.3; color: var(--ink) }
.wl-ticket small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted) }
.wl-sla { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--amber-soft); color: #9a5b00; font-size: 11px; font-weight: 650; white-space: nowrap }
.wl-sla svg { width: 13px; height: 13px }
.wl-mods { display: flex; flex-wrap: wrap; gap: 6px }
.wl-mods .ch { background: #fff; border: 1px solid var(--line) }

@media (max-width: 980px) {
  .wl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 920px) {
  .wl-split { grid-template-columns: 1fr }
}
@media (max-width: 800px) {
  .wl-outcomes { grid-template-columns: 1fr }
  .wl-outcomes > div + div { border-left: 0; border-top: 1px solid var(--line) }
  .wl-roles { grid-template-columns: 1fr }
}
@media (max-width: 560px) {
  .wl-steps { grid-template-columns: 1fr }
  .wl-badge { right: 10px }
  /* Ba cột pipeline quá hẹp trên điện thoại: xếp chồng, mỗi cột hai thẻ cạnh nhau; lề mỏng lại để tên khách không gãy */
  .wl-box { padding: 18px }
  .wl-board { grid-template-columns: 1fr; padding: 10px }
  .wl-col { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px }
  .wl-col-h { grid-column: 1 / -1 }
  .wl-deal { padding: 8px }
  .wl-board-foot { padding: 0 10px 10px }
  .wl-ticket { grid-template-columns: auto minmax(0, 1fr) }
  .wl-sla { grid-column: 2; justify-self: start }
}
