/* =========================================================
   Nails Kim — CSS riêng của site (nailskim.sonnyweb.com)
   Mục lục: 1. Biến màu · 2. Khung chung · 3. Nút · 4. Hero
            5. Thẻ bảng giá · 6. Lý do chọn · 7. Các bước · 8. Trang dịch vụ
            9. Header / footer · 10. Form · 11. Responsive
   Màu lấy theo bảng giá in của tiệm: nâu cà phê + kem.
   ========================================================= */

/* 1. Biến màu */
:root {
  --nk-brown: #6B4A3E;
  --nk-brown-2: #4E342B;
  --nk-cream: #F6EEE6;
  --nk-beige: #E9DCCF;
  --nk-rose: #C98F86;
  --nk-ink: #3A2A24;
  --nk-muted: #7A655B;
  --nk-line: #E3D3C5;
  --nk-shadow: 0 12px 30px rgba(78, 52, 43, .10);
}

/* 2. Khung chung — bỏ đệm mặc định của khối HTML để khối tự canh */
.custom-html-block {
  padding: 0 !important;      /* khối CMS có đệm sẵn */
  background: none !important;
}
.nk-wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.nk-sec { padding: 72px 0; }
.nk-sec.alt { background: var(--nk-cream); }
.nk-head { text-align: center; max-width: 700px; margin: 0 auto 36px; }
.nk-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--nk-brown-2);
  margin: 0;
}
.nk-head p { color: var(--nk-muted); font-size: 1.04rem; line-height: 1.65; margin: 12px 0 0; }
.nk-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--nk-beige);
  color: var(--nk-brown-2);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* 3. Nút */
.nk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.nk-btn img { width: 20px; height: 20px; flex: 0 0 20px; }
.nk-btn:hover { transform: translateY(-1px); }
.nk-btn-zalo { background: var(--nk-brown); color: #fff !important; box-shadow: 0 8px 20px rgba(107, 74, 62, .30); }
.nk-btn-call { background: #fff; color: var(--nk-brown-2) !important; border: 2px solid var(--nk-brown); }

/* 4. Hero */
.nk-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(201, 143, 134, .22), transparent 42%),
    linear-gradient(160deg, #FBF6F1 0%, var(--nk-cream) 60%, var(--nk-beige) 100%);
  padding: 64px 0 76px;
}
.nk-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }
.nk-eyebrow { font-family: 'Playfair Display', serif; font-style: italic; color: var(--nk-rose); font-size: 1.25rem; margin: 0 0 6px; }
.nk-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.12; margin: 0 0 16px; color: var(--nk-brown-2); }
.nk-hero h1 span { color: var(--nk-rose); font-style: italic; }
.nk-hero .nk-lead { font-size: 1.1rem; line-height: 1.7; color: var(--nk-muted); margin: 0 0 26px; max-width: 56ch; }
.nk-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.nk-ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.nk-ticks li { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--nk-ink); }
.nk-ticks img { width: 18px; height: 18px; }
.nk-hero.small { padding: 48px 0 56px; }
.nk-crumb { font-size: .9rem; margin-bottom: 10px; color: var(--nk-muted); }
.nk-crumb a { color: var(--nk-brown) !important; text-decoration: underline; }

/* 5. Thẻ bảng giá — dòng chấm như bảng giá in của tiệm */
.nk-menu {
  background: #FFFDFB;
  border: 1px solid var(--nk-line);
  border-radius: 22px;
  box-shadow: var(--nk-shadow);
  padding: 26px 28px 22px;
  position: relative;
}
.nk-menu-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--nk-brown-2);
  margin: 0 0 4px;
}
.nk-menu-sub { text-align: center; color: var(--nk-muted); font-size: .9rem; margin: 0 0 14px; }
.nk-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nk-brown);
  color: #fff;
  border-radius: 999px;
  padding: 6px 16px 6px 8px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 14px 0 6px;
}
.nk-group img { width: 22px; height: 22px; background: rgba(255, 255, 255, .18); border-radius: 50%; padding: 3px; }
.nk-row { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 1.02rem; color: var(--nk-ink); }
.nk-row .nk-dots { flex: 1 1 auto; border-bottom: 2px dotted #C9B5A6; transform: translateY(-4px); min-width: 20px; }
.nk-row b { font-weight: 800; color: var(--nk-brown-2); white-space: nowrap; }
.nk-menu-foot {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--nk-brown);
  color: #fff;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-weight: 700;
  font-size: .95rem;
}
.nk-menu-foot a { color: #fff !important; text-decoration: none; }
.nk-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.nk-note { text-align: center; color: var(--nk-muted); font-size: .92rem; margin: 18px 0 0; }

/* 6. Lý do chọn */
.nk-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.nk-why > div { background: #fff; border-radius: 18px; padding: 24px; box-shadow: var(--nk-shadow); }
.nk-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--nk-beige); }
.nk-ico img { width: 24px; height: 24px; }
.nk-why h3 { font-size: 1.08rem; margin: 14px 0 6px; color: var(--nk-brown-2); }
.nk-why p { margin: 0; color: var(--nk-muted); line-height: 1.6; font-size: .95rem; }

/* 7. Các bước đặt lịch */
.nk-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; padding: 0; margin: 0; }
.nk-steps li { list-style: none; background: #fff; border-radius: 18px; padding: 22px 22px 22px 72px; position: relative; box-shadow: var(--nk-shadow); line-height: 1.6; color: var(--nk-muted); }
.nk-steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 20px; top: 20px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--nk-brown);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.nk-steps b { display: block; color: var(--nk-ink); font-size: 1.04rem; }

/* 8. Thẻ dịch vụ + trang dịch vụ */
.nk-svcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nk-svc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--nk-line);
  border-radius: 18px;
  padding: 22px;
  text-decoration: none;
  color: var(--nk-ink) !important;
  box-shadow: var(--nk-shadow);
  transition: transform .15s, border-color .15s;
}
.nk-svc:hover { transform: translateY(-3px); border-color: var(--nk-rose); }
.nk-svc b { font-size: 1.08rem; margin-top: 8px; color: var(--nk-brown-2); }
.nk-svc small { color: var(--nk-muted); line-height: 1.55; font-size: .93rem; }
.nk-svc em { font-style: normal; color: var(--nk-brown); font-weight: 700; font-size: .92rem; margin-top: auto; padding-top: 8px; }
.nk-page { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
.nk-prose h2 { font-size: 1.5rem; color: var(--nk-brown-2); margin: 28px 0 10px; line-height: 1.3; }
.nk-prose h2:first-child { margin-top: 0; }
.nk-prose p { color: var(--nk-ink); line-height: 1.8; margin: 0 0 12px; }
.nk-side { position: sticky; top: 110px; display: grid; gap: 16px; }
.nk-related { background: #fff; border: 1px solid var(--nk-line); border-radius: 18px; padding: 18px 20px; }
.nk-related h3 { margin: 0 0 8px; font-size: 1rem; color: var(--nk-brown-2); }
.nk-related a { display: block; padding: 12px 0; border-bottom: 1px solid var(--nk-line); color: var(--nk-ink) !important; text-decoration: none; font-weight: 600; }
.nk-related a:last-child { border-bottom: 0; }
.nk-related a:hover { color: var(--nk-brown) !important; }
.nk-tip { background: #FBF3EC; border-left: 4px solid var(--nk-rose); padding: 14px 16px; border-radius: 12px; color: var(--nk-brown-2); line-height: 1.6; margin: 16px 0; }
.nk-addr { display: grid; gap: 10px; margin: 8px 0 0; }
.nk-addr div { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--nk-ink); }
.nk-addr img { width: 22px; height: 22px; }
.nk-addr a { color: var(--nk-brown) !important; font-weight: 700; text-decoration: none; }

/* 9. Header / footer */
.site-header .header-cta, .header-actions > a.header-cta {
  background: var(--nk-brown) !important;    /* rule CMS đã dùng màu chính có !important */
  border-color: var(--nk-brown) !important;
  color: #fff !important;
  border-radius: 999px;
}
.site-footer { background: linear-gradient(180deg, #4E342B, #3A2620) !important; color: #E9DCCF !important; }
.site-footer a { color: #E9DCCF !important; }
.site-footer a:hover { color: #fff !important; }
.site-footer h4, .site-footer .footer-col-title, .site-footer .site-logo span { color: #fff !important; }
.site-footer .footer-slogan { color: #F2C9C1 !important; }
.site-footer .footer-desc { color: #E9DCCF !important; }   /* CMS mặc định #94A3B8 !important — mờ trên nền nâu */
/* Fanpage / Zalo ở chân trang (Henry 17:50): màu thương hiệu, 44px cho dễ bấm trên điện thoại */
.site-footer .footer-social { gap: 12px; }
.site-footer .footer-social a { width: 44px !important; height: 44px !important; color: #fff !important; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.site-footer .footer-social a[href*="facebook.com"] { background: #1877F2 !important; }
.site-footer .footer-social a[href*="zalo.me"] { background: #0068FF !important; }
.site-footer .footer-social a svg { width: 22px; height: 22px; }
.site-footer .footer-bottom, .site-footer .footer-bottom * { color: #C9B5A6 !important; }

/* Logo: CMS luôn vẽ icon mặc định trước tên site -> ẩn, thay bằng logo Nails Kim */
.site-logo svg { display: none; }
/* 26/11: bản CMS mới tự chèn <img class="site-logo-img"> từ logoUrl (logo ngang bị ép 36px, thành logo nhỏ thừa cạnh chữ) -> ẩn, giữ logo tròn bên dưới */
.site-logo .site-logo-img { display: none !important; }
/* Logo to hơn (Henry 23/11 16:35): biểu tượng 38 → 50px, chữ "Nails Kim" 1.7rem (điện thoại 44px / 1.45rem) */
.site-logo::before { content: ""; width: 50px; height: 50px; flex: 0 0 50px; margin-right: 10px; background: url('/uploads/site/favicon-nailskim.svg') center/contain no-repeat; }
.site-logo { display: inline-flex; align-items: center; }
.site-logo span { color: var(--nk-brown-2); font-family: 'Playfair Display', serif; font-weight: 700; font-style: italic; font-size: 1.7rem; line-height: 1.1; }
.site-footer .site-logo span { font-size: 1.5rem; }
@media (max-width: 560px) {
  .site-logo::before { width: 44px; height: 44px; flex-basis: 44px; }
  .site-logo span { font-size: 1.45rem; }
}

/* 10. Form đặt lịch + FAQ (khối có sẵn của CMS) — đổi nền xanh xám / chữ xám mặc định sang tông kem nâu */
body { background: #FFFCF9; }                       /* CMS mặc định #F8FAFC */
.block-title { color: var(--nk-brown-2); }
.block-contact { background: #fff; }
.block-contact .contact-container { background: var(--nk-cream); border-color: var(--nk-line); }
.block-contact .btn-primary { background: var(--nk-brown) !important; border-color: var(--nk-brown) !important; min-height: 50px; font-weight: 700; border-radius: 999px; }
.nx-faq-item { border-color: var(--nk-line); }
.nx-faq-question { color: var(--nk-brown-2); }
/* Tin tức & Blog: tiêu đề bài / thẻ tin theo màu nâu của tiệm (CMS mặc định xám xanh) */
.blog-title-link, .post-header h1, .post-body h2, .post-body h3 { color: var(--nk-brown-2) !important; }   /* rule CMS có !important */
.blog-category-badge { background: var(--nk-beige) !important; color: var(--nk-brown-2) !important; }

/* 10b. Ảnh (23/11 16:22 Henry: "ko có hình ảnh gì") — ảnh minh hoạ Unsplash + ảnh từ bảng giá của tiệm */
.nk-hero-pic { position: relative; }
.nk-hero-pic img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 60%;
  border-radius: 200px 200px 24px 24px;     /* khung vòm, mềm mại hợp tiệm nail */
  box-shadow: var(--nk-shadow);
}
.nk-badge {
  position: absolute;
  left: -18px;
  top: 64px;                 /* tren: phan duoi anh co watermark logo + SDT */
  background: #fff;
  border-radius: 18px;
  padding: 12px 18px;
  box-shadow: 0 12px 28px rgba(78, 52, 43, .18);
  display: grid;
  line-height: 1.2;
}
.nk-badge small { color: var(--nk-muted); font-size: .85rem; }
.nk-badge b { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--nk-brown-2); }
.nk-photo { position: relative; }
.nk-photo img { display: block; width: 100%; height: 100%; max-height: 640px; object-fit: cover; border-radius: 22px; box-shadow: var(--nk-shadow); }
.nk-cap { position: absolute; left: 14px; top: 14px; background: rgba(255, 255, 255, .9); color: var(--nk-brown-2); font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.nk-svc { overflow: hidden; }
/* Mỗi dịch vụ 2 ảnh (Henry 16:30): thẻ dịch vụ trang chủ = 2 ảnh cạnh nhau sát mép trên; trang dịch vụ = 2 ảnh trên cột giá */
.nk-svc-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: calc(100% + 44px); margin: -22px -22px 6px; }
.nk-svc-pics img { display: block; width: 100%; height: 200px; object-fit: cover; }
.nk-svc .nk-ico { margin-top: -34px; position: relative; border: 3px solid #fff; }
.nk-side-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nk-side-pics img { display: block; width: 100%; height: 220px; object-fit: cover; border-radius: 16px; box-shadow: var(--nk-shadow); }
.nk-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nk-gal-item { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--nk-shadow); }
.nk-gal-item img { display: block; width: 100%; height: 360px; object-fit: cover; transition: transform .4s; }
.nk-gal-item:hover img { transform: scale(1.04); }
.nk-gal-item span { position: absolute; left: 12px; top: 12px;   /* tren: duoi co watermark */ background: rgba(255, 255, 255, .9); color: var(--nk-brown-2); font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }

/* 10c. Nút nổi "Nhắn tin" Messenger (Henry 17:58) — ngay trên nút Zalo / Gọi nổi của CMS (máy tính),
   ngay trên thanh Gọi / Zalo đáy màn (điện thoại). Màu gradient Messenger, nhịp sáng nhẹ để khách chú ý. */
.nk-float-fb {
  position: fixed;
  right: 20px;
  bottom: 148px;              /* nút nổi CMS: đáy 20px, cao 116px */
  z-index: 96;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00B2FF 0%, #006AFF 55%, #A033FF 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(0, 106, 255, .40);
  animation: nkFbRing 2.2s ease-out infinite;
}
.nk-float-fb img { width: 24px; height: 24px; flex: 0 0 24px; }
.nk-float-fb span { color: #fff; }
@keyframes nkFbRing {
  0% { box-shadow: 0 8px 22px rgba(0, 106, 255, .40), 0 0 0 0 rgba(0, 140, 255, .55); }
  70% { box-shadow: 0 8px 22px rgba(0, 106, 255, .40), 0 0 0 12px rgba(0, 140, 255, 0); }
  100% { box-shadow: 0 8px 22px rgba(0, 106, 255, .40), 0 0 0 0 rgba(0, 140, 255, 0); }
}
@media (prefers-reduced-motion: reduce) { .nk-float-fb { animation: none; } }
/* Dưới 1024px CMS ẩn nút nổi, hiện thanh Gọi / Zalo đáy màn cao 66px -> đặt nút ngay trên thanh đó */
@media (max-width: 1023.98px) {
  .nk-float-fb { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); height: 48px; padding: 0 16px 0 12px; font-size: .95rem; }
}

/* 10d. Chân trang (Henry 17:59): cột "Sản phẩm Sonnytech" nổi bật nhẹ để quảng cáo FWD, Nexus Office, thiết kế web.
   26/11: bản CMS mới trên server đã đọc footerDescription của site -> bỏ dòng ẩn .footer-desc (23/11) để hiện mô tả của tiệm. */
.site-footer .footer-links:has(a[href*="sonnytech.vn"]) {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(242, 201, 193, .35);
  border-radius: 16px;
  padding: 16px 18px;
}
.site-footer .footer-links:has(a[href*="sonnytech.vn"]) h4 { color: #F2C9C1 !important; }
.site-footer .footer-links:has(a[href*="sonnytech.vn"]) a { display: inline-block; padding: 6px 0; }
.site-footer .footer-links:has(a[href*="sonnytech.vn"]) li:first-child a { color: #FFD640 !important; font-weight: 700; }

/* 11. Responsive */
@media (max-width: 1024px) {
  .nk-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nk-hero-grid, .nk-page, .nk-prices { grid-template-columns: 1fr; gap: 28px; }
  .nk-side { position: static; }
  .nk-steps, .nk-svcs { grid-template-columns: 1fr; }
  .nk-sec { padding: 52px 0; }
  .nk-hero-pic img { height: 380px; border-radius: 160px 160px 22px 22px; }
  .nk-badge { left: 12px; top: 56px; }
  .nk-photo img { max-height: 460px; }
  .nk-gal { grid-template-columns: 1fr 1fr; }
  .nk-gal-item img { height: 260px; }
}
@media (max-width: 560px) {
  .nk-wrap { padding: 0 16px; }
  .nk-why { grid-template-columns: 1fr; }
  .nk-hero { padding: 40px 0 52px; }
  .nk-actions .nk-btn { flex: 1 1 100%; }
  .nk-menu { padding: 22px 16px 18px; }
  .nk-hero-pic img { height: 320px; }
  .nk-gal { grid-template-columns: 1fr; }
  .nk-gal-item img { height: 300px; }
  .nk-row { font-size: .98rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nk-btn, .nk-svc { transition: none; }
}

/* 12. Giao diện Tối (Henry 24/11 05:30: "dark theme chưa được") — tông nâu espresso, chữ kem, điểm nhấn hồng đất.
   Biến đặt trên body (CMS đặt biến tối trên body.layout-dark-mode) nên mọi phần dùng biến tự đổi theo;
   phần có màu viết cứng (nền trắng / kem) đổi riêng bên dưới. Kiểm bằng deploy\cms-tools\dark_check.py. */
html[data-theme="dark"] body, body.layout-dark-mode {
  --primary: #E0AE9F;              /* CMS tối mặc định ép xanh ngọc #2BA5AB -> giữ tông của tiệm (bản CMS hiện tại tô chữ / link bằng biến này) */
  --primary-text: #E0AE9F;         /* BR-CMS-DARK-01 (bản CMS sau): chữ / link dùng biến này, nền nút dùng --primary */
  --primary-hover: #EEC4B7;
  --primary-light: rgba(224, 174, 159, .14);
  --bg-canvas: #17110F;
  --bg-card: #221915;
  --text-main: #F3E8E1;
  --text-muted: #C9B4A8;
  --border-color: #3B2C26;
  --nk-brown: #8E5F4D;             /* nền nút nâu: chữ trắng tương phản 5,1 */
  --nk-brown-2: #F2D8CB;           /* tiêu đề: kem hồng */
  --nk-cream: #1F1714;
  --nk-beige: #3A2B25;
  --nk-rose: #E3A79B;
  --nk-ink: #EBDDD4;
  --nk-muted: #C9B4A8;
  --nk-line: #3B2C26;
  --nk-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  background: var(--bg-canvas) !important;
  color: var(--text-main);
}
:is(html[data-theme="dark"], body.layout-dark-mode) .site-topbar { background: #3A2620 !important; }
:is(html[data-theme="dark"], body.layout-dark-mode) .site-header { background: color-mix(in srgb, #221915 94%, transparent) !important; border-bottom-color: #3B2C26 !important; }
:is(html[data-theme="dark"], body.layout-dark-mode) .skip-link { background: #3A2620 !important; color: #fff !important; }
:is(html[data-theme="dark"], body.layout-dark-mode) .nk-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(227, 167, 155, .16), transparent 42%),
    linear-gradient(160deg, #1B1411 0%, #221915 60%, #2C201B 100%);
}
:is(html[data-theme="dark"], body.layout-dark-mode) :is(.nk-menu, .nk-why > div, .nk-steps li, .nk-svc, .nk-related, .nk-badge, .block-contact) { background: var(--bg-card) !important; }
:is(html[data-theme="dark"], body.layout-dark-mode) .nk-btn-call { background: transparent; color: var(--nk-brown-2) !important; border-color: var(--nk-rose); }
:is(html[data-theme="dark"], body.layout-dark-mode) .nk-row .nk-dots { border-bottom-color: #5A463D; }
:is(html[data-theme="dark"], body.layout-dark-mode) .nk-tip { background: #2A1F1A; color: var(--nk-ink); }
:is(html[data-theme="dark"], body.layout-dark-mode) .nk-svc .nk-ico { border-color: var(--bg-card); }
:is(html[data-theme="dark"], body.layout-dark-mode) .nk-ico img[src*="-brown"] { filter: brightness(0) invert(.88) sepia(.3); }   /* icon nâu trên nền tối */
:is(html[data-theme="dark"], body.layout-dark-mode) :is(.nk-cap, .nk-gal-item span) { background: rgba(23, 17, 15, .82); color: #F3E8E1; }
:is(html[data-theme="dark"], body.layout-dark-mode) .post-reading-badge { background: #3A2B25 !important; color: #F2D8CB !important; }
/* Nút nền màu chính của CMS (nút chính, CTA đầu trang, thanh liên hệ đáy, nút gọi nổi): nền nâu, chữ trắng */
:is(html[data-theme="dark"], body.layout-dark-mode) :is(.btn-primary, .header-cta, .header-cta-mobile, .mcb-item.mcb-cta, .float-phone) {
  background-color: var(--nk-brown) !important; border-color: var(--nk-brown) !important; color: #fff !important;
}
:is(html[data-theme="dark"], body.layout-dark-mode) :is(.btn-primary, .header-cta, .header-cta-mobile, .mcb-item.mcb-cta) * { color: #fff !important; }
/* Chữ nhấn nâu trên nền tối -> hồng đất */
:is(html[data-theme="dark"], body.layout-dark-mode) :is(.nk-svc em, .nk-addr a, .nk-crumb a, .nk-related a:hover, .nk-prose a) { color: var(--nk-rose) !important; }
:is(html[data-theme="dark"], body.layout-dark-mode) :is(.form-control, .form-select, input, textarea, select) { background: #17110F !important; color: #F3E8E1 !important; border-color: #4A382F !important; }

/* 27/11 - nút Messenger xếp ngay trên cụm nút nổi CMS (lên đầu trang 44px + Zalo + Gọi), không đè nút Zalo.
   CMS nay hiện cụm nút nổi cả trên điện thoại (không còn thanh Gọi / Zalo đáy màn).
   Máy tính: giữ nút dài "Nhắn tin". Điện thoại / máy tính bảng: nút tròn 48px cùng cột với Zalo / Gọi. */
.nk-float-fb { bottom: 204px; }
@media (max-width: 1024px) {
  .nk-float-fb { right: 20px; bottom: 204px; width: 52px; height: 52px; padding: 0; justify-content: center; }
  .nk-float-fb span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 768px) {
  .nk-float-fb { right: 14px; bottom: calc(184px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; }
  body.has-float-contact .site-footer::after { content: ""; display: block; height: 236px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  body.has-float-contact .site-footer::after { content: ""; display: block; height: 256px; }
}
@media (min-width: 1025px) {
  body.has-float-contact .site-footer::after { content: ""; display: block; height: 96px; }
}
