/* Giao diện mới Phong Thủy Trạch Cát
 * Header / footer / dải tư vấn: mọi trang (body.tc-ui). Nền giấy + trang chủ: body.tc-page.
 * Reset kiểu chữ chỉ áp trong các khối của giao diện mới (.tc-scope) để không đụng nội dung bài viết, công cụ. */
:root {
  --tc-red: #9b1c1c;
  --tc-red-2: #7c1414;
  --tc-red-dark: #5e0f12;
  --tc-gold: #b8862f;
  --tc-gold-soft: #e9d3a1;
  --tc-paper: #f6efe0;
  --tc-paper-2: #fbf7ee;
  --tc-card: #fffcf5;
  --tc-line: #e5d6b8;
  --tc-ink: #2b2118;
  --tc-text: #3d3027;
  --tc-muted: #6b5a49;
  --tc-serif: "Noto Serif", Georgia, serif;
  --tc-sans: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  --tc-hanzi: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  --tc-radius: 14px;
  --tc-shadow: 0 1px 2px rgba(60, 35, 10, .06), 0 6px 18px rgba(60, 35, 10, .07);
  --tc-top: var(--wp-admin--admin-bar--height, 0px);
}

body.tc-page {
  margin: 0;
  background: var(--tc-paper);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(255, 255, 255, .7), transparent 50%),
    radial-gradient(ellipse at 90% 30%, rgba(233, 211, 161, .25), transparent 55%);
  color: var(--tc-text);
  font-family: var(--tc-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.tc-scope { font-family: var(--tc-sans); font-size: 16px; line-height: 1.6; color: var(--tc-text); -webkit-font-smoothing: antialiased; }
.tc-scope, .tc-scope *, .tc-scope *::before, .tc-scope *::after { box-sizing: border-box; }
.tc-scope a { color: inherit; text-decoration: none; }
.tc-scope img { max-width: 100%; height: auto; display: block; }
.tc-scope h1, .tc-scope h2, .tc-scope h3 { font-family: var(--tc-serif); color: var(--tc-red-2); margin: 0; letter-spacing: 0; text-transform: none; }
.tc-scope p { margin: 0; }
.tc-scope ul { margin: 0; padding: 0; list-style: none; }
.tc-scope li { margin: 0; }
.tc-scope button { text-transform: none; letter-spacing: 0; margin: 0; box-shadow: none; }
.tc-scope :focus-visible { outline: 2px solid var(--tc-gold); outline-offset: 2px; border-radius: 4px; }
.tc-scope text { font-family: var(--tc-hanzi); }
.tc-ic { width: 1.25em; height: 1.25em; flex: none; }
/* icon thiết kế (64×64 có lề) — cỡ riêng từng chỗ, tiền tố .tc-scope để thắng các quy tắc .tc-ic phía dưới */
.tc-scope .tc-ic--d { width: 1.5em; height: 1.5em; }
.tc-scope .tc-sub__ic .tc-ic--d { width: 26px; height: 26px; }
.tc-scope .tc-tool__ic .tc-ic--d { width: 34px; height: 34px; }
.tc-scope .tc-trust .tc-ic--d { width: 46px; height: 46px; }
.tc-scope .tc-drawer__tools .tc-ic--d { width: 36px; height: 36px; }
.tc-scope .tc-today__ic .tc-ic--d { width: 28px; height: 28px; }
.tc-scope .tc-cta__btn .tc-ic--d { width: 34px; height: 34px; }
.tc-scope .tc-link .tc-ic--d { width: 24px; height: 24px; transform: none; }
.tc-scope .tc-btn .tc-ic--d { width: 24px; height: 24px; }

.tc-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tc-skip { position: absolute; left: -9999px; top: 0; }
.tc-skip:focus { left: 12px; top: 12px; z-index: 1000; background: #fff; padding: 8px 12px; }

/* ── Nút ── */
.tc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  font: 600 15px/1 var(--tc-sans); white-space: nowrap; cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.tc-btn--red { background: linear-gradient(180deg, #a92424, var(--tc-red-2)); color: #fff !important; box-shadow: 0 4px 12px rgba(124, 20, 20, .28); }
.tc-btn--red:hover { background: var(--tc-red-dark); transform: translateY(-1px); }
.tc-btn--line { border: 1.5px solid var(--tc-red); color: var(--tc-red) !important; background: rgba(255, 252, 245, .7); }
.tc-btn--line:hover { background: var(--tc-red); color: #fff !important; }
.tc-btn--block { width: 100%; }
.tc-link { display: inline-flex; align-items: center; gap: .4em; color: var(--tc-red) !important; font-weight: 600; font-size: 15px; white-space: nowrap; }
.tc-link .tc-ic { transition: transform .2s; }
.tc-link:hover .tc-ic { transform: translateX(3px); }

/* ── Header ── */
.tc-header {
  position: sticky; top: var(--tc-top); z-index: 50;
  background: rgba(251, 247, 238, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tc-line);
}
.tc-header__in { display: flex; align-items: center; gap: 24px; height: 76px; }
.tc-logo img { width: 170px; height: auto; }
.tc-nav { margin-left: auto; }
.tc-nav > ul { display: flex; gap: 4px; }
.tc-nav > ul > li { position: relative; }
.tc-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px; padding: 10px 12px;
  font-size: 15px; font-weight: 500; color: var(--tc-ink); border-radius: 8px; position: relative;
}
.tc-nav > ul > li > a .tc-ic { width: 16px; height: 16px; }
.tc-nav > ul > li > a:hover, .tc-nav > ul > li > a[aria-current] { color: var(--tc-red); }
.tc-nav > ul > li > a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--tc-red); border-radius: 2px; }
.tc-sub {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  width: 560px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: var(--tc-radius); box-shadow: 0 16px 40px rgba(60, 35, 10, .16);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.has-sub:hover .tc-sub, .has-sub:focus-within .tc-sub, .has-sub.is-open .tc-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.tc-sub a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14.5px; color: var(--tc-ink); }
.tc-sub a:hover { background: #f6ead2; color: var(--tc-red); }
.tc-sub__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f4e6c8; color: var(--tc-red); }
.tc-sub__ic .tc-ic { width: 18px; height: 18px; }
.tc-header__cta { min-height: 42px; padding: 0 16px; }
/* Bộ chọn ngôn ngữ + ẩn thanh công cụ của Google Translate */
.tc-lang { display: inline-flex; flex: none; gap: 2px; padding: 3px; border: 1px solid var(--tc-line); border-radius: 999px; background: var(--tc-card); }
.tc-scope .tc-lang button { min-width: 36px; min-height: 34px; margin: 0; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--tc-ink); font-size: 13px; font-weight: 600; line-height: 1; text-transform: none; cursor: pointer; }
.tc-scope .tc-lang button:hover { color: var(--tc-red); }
.tc-scope .tc-lang button[aria-pressed="true"] { background: var(--tc-red); color: #fff; }
.tc-drawer .tc-lang { display: flex; width: max-content; margin: 0 0 12px; }
.tc-logo { flex: none; }
/* Header có thêm bộ chọn ngôn ngữ: menu luôn một dòng; thiếu chỗ thì bỏ nút Lập lá số, rồi chuyển sang menu di động */
.tc-header__in { gap: 14px; }
.tc-nav > ul > li > a { padding: 10px 8px; white-space: nowrap; }
.tc-header__cta { flex: none; white-space: nowrap; }
@media (max-width: 1240px) { .tc-header__cta { display: none; } }
@media (max-width: 1060px) {
  .tc-nav { display: none; }
  .tc-header.tc-scope .tc-search-btn { margin-left: auto; }
  .tc-header.tc-scope .tc-burger { display: block; margin-left: 0; }
}
/* Bản dịch dài hơn tiếng Việt: thu gọn menu, bỏ nút Lập lá số để không chèn logo */
.translated-ltr .tc-header__cta { display: none; }
.translated-ltr .tc-nav > ul > li > a { padding: 10px 8px; font-size: 14px; white-space: nowrap; }
@media (max-width: 1160px) {
  .translated-ltr .tc-nav { display: none; }
  .translated-ltr .tc-scope .tc-search-btn { margin-left: auto; }
  .translated-ltr .tc-scope .tc-burger { display: block; margin-left: 0; }
}
body { top: 0 !important; }
.goog-te-banner-frame, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.tc-scope .tc-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; color: var(--tc-ink); border-radius: 10px; cursor: pointer; padding: 0; }
.tc-burger .tc-ic { width: 26px; height: 26px; margin: auto; }

/* Drawer (di động) */
.tc-drawer { position: fixed; inset: 0; z-index: 100000; background: rgba(30, 18, 8, .45); }
.tc-drawer[hidden] { display: none; }
.tc-drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 88vw); overflow-y: auto;
  background: var(--tc-paper-2); padding: 16px 18px 24px; display: flex; flex-direction: column; gap: 6px;
  animation: tc-slide .22s ease-out;
}
@keyframes tc-slide { from { transform: translateX(30px); opacity: 0; } }
.tc-drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tc-drawer__top img { width: 130px; }
.tc-drawer__close { width: 44px; height: 44px; border: 0; background: transparent; color: var(--tc-ink); cursor: pointer; }
.tc-drawer__close .tc-ic { width: 24px; height: 24px; }
.tc-drawer__link { display: block; padding: 12px 6px; font-weight: 600; border-bottom: 1px solid var(--tc-line); color: var(--tc-ink); }
.tc-drawer__label { margin: 16px 0 8px !important; font-size: 13px; font-weight: 700; color: var(--tc-muted); text-transform: uppercase; letter-spacing: .06em; }
.tc-drawer__tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.tc-drawer__tools a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 12px; background: var(--tc-card); border: 1px solid var(--tc-line); font-size: 12.5px; text-align: center; line-height: 1.25; color: var(--tc-ink); }
.tc-drawer__tools .tc-ic { width: 24px; height: 24px; color: var(--tc-red); }

/* ── Hero ── */
.tc-hero { position: relative; overflow: hidden; background: #f3e6cf; border-bottom: 1px solid var(--tc-line); }
.tc-hero__bg, .tc-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tc-hero__bg img { object-fit: cover; object-position: 70% 50%; }
/* lớp giấy mờ dần bên trái để chữ dễ đọc, bên phải để lộ la bàn + hoa mai trong ảnh */
.tc-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(251, 246, 234, .96) 0%, rgba(251, 246, 234, .9) 30%, rgba(251, 246, 234, .55) 48%, rgba(251, 246, 234, 0) 64%); }
.tc-hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 600px); align-items: center; min-height: clamp(520px, 44vw, 640px); padding-top: 56px; padding-bottom: 64px; }
.tc-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tc-gold); margin-bottom: 14px !important; }
.tc-hero h1 { font-size: clamp(42px, 5.6vw, 68px); line-height: 1.05; font-weight: 700; color: var(--tc-red-2); }
.tc-hero__sub { font-family: var(--tc-serif); font-size: clamp(19px, 2vw, 24px); color: var(--tc-ink); margin: 14px 0 16px !important; }
.tc-hero__lead { max-width: 540px; font-size: 16.5px; color: var(--tc-text); }
.tc-hero__btns { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; filter: drop-shadow(0 6px 10px rgba(90, 20, 10, .22)); }

/* Nút hero kiểu ấn triện: góc vát, viền ngoài đậm, chỉ vàng mảnh bên trong, chữ có chân */
.tc-hbtn {
  --cut: 9px; --edge: #4d0a0e; --fill: #8a1418; --line: rgba(236, 196, 118, .8); --ink: #fff;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 62px; padding: 0 26px 0 20px;
  font: 600 21px/1.1 var(--tc-serif); letter-spacing: .01em; color: var(--ink) !important; white-space: nowrap;
  background: var(--edge);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  transition: transform .2s;
}
.tc-hbtn::before, .tc-hbtn::after {
  content: ""; position: absolute; pointer-events: none;
  clip-path: polygon(var(--c2) 0, calc(100% - var(--c2)) 0, 100% var(--c2), 100% calc(100% - var(--c2)), calc(100% - var(--c2)) 100%, var(--c2) 100%, 0 calc(100% - var(--c2)), 0 var(--c2));
}
.tc-hbtn::before { --c2: 8px; inset: 2px; z-index: -1; background: var(--fill); transition: filter .2s; }
.tc-hbtn::after { --c2: 6px; inset: 6px; border: 1px solid var(--line); }
.tc-hbtn > span { position: relative; top: -1px; }
.tc-hbtn .tc-ic { width: 22px; height: 22px; transition: transform .2s; }
.tc-hbtn > .tc-ic:last-child { margin-left: 4px; }
.tc-hbtn:hover { transform: translateY(-1px); }
.tc-hbtn:hover::before { filter: brightness(1.08); }
.tc-hbtn:hover > .tc-ic:last-child { transform: translateX(4px); }
.tc-hbtn--red {
  --fill:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 50'%3E%3Cg fill='none' stroke='%23f2a77e' stroke-opacity='.32' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 46c2-9 12-12 18-6 2-9 15-11 21-3 5-5 15-3 15 5'/%3E%3Cpath d='M22 40a5 5 0 1 1 7-2M43 37a6 6 0 1 1 8 1'/%3E%3Cpath d='M60 48c3-6 11-7 15-2 3-6 12-6 14 1'/%3E%3C/g%3E%3C/svg%3E") left -6px bottom -8px / 150px auto no-repeat,
    radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, .16), transparent 60%),
    linear-gradient(180deg, #b3282c 0%, #8d161a 55%, #6c0f13 100%);
}
.tc-hbtn--red::before { opacity: 1; }
.tc-hbtn--red .tc-taiji { width: 32px; height: 32px; color: #8d161a; flex: none; }
.tc-hbtn--paper {
  --edge: #a9834a; --line: rgba(169, 131, 74, .75); --ink: #7c1414;
  --fill: linear-gradient(180deg, #fdf6e6 0%, #f3e4c4 100%);
}
.tc-hbtn--paper .tc-ic--d { width: 30px; height: 30px; }
.tc-today {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 10px 14px 10px 10px;
  background: rgba(255, 252, 245, .85); border: 1px solid var(--tc-line); border-radius: 12px; font-size: 14px; color: var(--tc-muted); line-height: 1.45;
  transition: border-color .2s, box-shadow .2s;
}
.tc-today:hover { border-color: var(--tc-gold); box-shadow: var(--tc-shadow); }
.tc-today b { display: block; color: var(--tc-ink); font-weight: 600; }
.tc-today__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--tc-red); color: #fff; flex: none; }
.tc-today > .tc-ic { color: var(--tc-red); width: 18px; height: 18px; }

/* Dải cam kết */
.tc-trust { background: var(--tc-card); border-bottom: 1px solid var(--tc-line); }
.tc-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.tc-trust__grid > div { display: flex; align-items: center; gap: 12px; padding: 18px 16px; }
.tc-trust__grid > div + div { border-left: 1px solid var(--tc-line); }
.tc-trust .tc-ic { width: 34px; height: 34px; color: var(--tc-red); }
.tc-trust p { font-size: 13.5px; color: var(--tc-muted); line-height: 1.4; }
.tc-trust b { display: block; font-size: 15px; color: var(--tc-ink); font-weight: 600; }

/* Section chung */
.tc-sec { padding: 64px 0; position: relative; }
.tc-sec--alt { background: linear-gradient(180deg, rgba(233, 211, 161, .18), rgba(233, 211, 161, .05)); border-top: 1px solid var(--tc-line); border-bottom: 1px solid var(--tc-line); }
.tc-head { text-align: center; margin-bottom: 32px; }
.tc-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.tc-head h2::after { content: ""; display: block; width: 64px; height: 10px; margin: 10px auto 0; background:
  radial-gradient(circle, var(--tc-gold) 3px, transparent 3.5px) center / 10px 10px no-repeat,
  linear-gradient(var(--tc-gold), var(--tc-gold)) left center / 26px 1px no-repeat,
  linear-gradient(var(--tc-gold), var(--tc-gold)) right center / 26px 1px no-repeat; }
.tc-head p { margin-top: 8px !important; color: var(--tc-muted); font-size: 16px; }
.tc-head--mt { margin-top: 64px; }
.tc-head--row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; gap: 16px; }
.tc-head--row h2::after { margin-left: 0; }

/* Công cụ nổi bật */
.tc-feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tc-feat__card { display: flex; flex-direction: column; background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: var(--tc-radius); overflow: hidden; box-shadow: var(--tc-shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
.tc-feat__card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(60, 35, 10, .16); border-color: var(--tc-gold-soft); }
.tc-feat__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #3d2414; }
.tc-feat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tc-feat__card:hover .tc-feat__img img { transform: scale(1.05); }
.tc-card-art { width: 100%; height: 100%; display: block; }
.tc-feat__body { position: relative; display: block; padding: 18px 18px 22px; flex: 1; }
.tc-feat h3 { font-size: 20px; line-height: 1.25; margin-bottom: 8px; padding-right: 36px; }
.tc-feat p { font-size: 14.5px; color: var(--tc-muted); line-height: 1.55; }
.tc-feat__go { position: absolute; right: 16px; top: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tc-red); color: #fff; transition: transform .2s; }
.tc-feat__go .tc-ic { width: 16px; height: 16px; }
.tc-feat__card:hover .tc-feat__go { transform: translateX(3px); }

/* Lưới 11 công cụ */
/* 11 công cụ: xếp hàng flex, hàng cuối thiếu ô thì căn giữa cho cân đối (số cột qua --tc-cols) */
.tc-tools { --tc-cols: 4; --tc-gap: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--tc-gap); }
.tc-tools > .tc-tool { flex: 0 0 calc((100% - (var(--tc-cols) - 1) * var(--tc-gap)) / var(--tc-cols)); min-width: 0; box-sizing: border-box; }
.tc-tool { display: flex; align-items: center; gap: 12px; padding: 14px 14px; min-height: 72px; background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 12px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tc-tool:hover { border-color: var(--tc-gold); box-shadow: var(--tc-shadow); transform: translateY(-2px); }
.tc-tool__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fbefd3, #efd9a8); color: var(--tc-red); border: 1px solid #e3c98e; }
.tc-tool__ic .tc-ic { width: 22px; height: 22px; }
.tc-tool__name { flex: 1; font-weight: 600; font-size: 15px; color: var(--tc-ink); line-height: 1.3; }
.tc-tool > .tc-ic { color: var(--tc-gold); width: 18px; height: 18px; }

/* Dịch vụ */
.tc-svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tc-svc__card { background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: var(--tc-radius); overflow: hidden; box-shadow: var(--tc-shadow); display: flex; flex-direction: column; }
.tc-svc__img { aspect-ratio: 16 / 8; overflow: hidden; border-bottom: 1px solid var(--tc-line); }
.tc-svc__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tc-svc h3 { font-size: 22px; margin-bottom: 12px; }
.tc-svc ul { display: grid; gap: 8px; margin-bottom: 18px; flex: 1; }
.tc-svc li { display: flex; gap: 8px; font-size: 15px; line-height: 1.45; }
.tc-svc li .tc-ic { color: var(--tc-red); width: 18px; height: 18px; margin-top: 2px; }

/* Bài viết */
.tc-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tc-post { background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: var(--tc-radius); overflow: hidden; box-shadow: var(--tc-shadow); display: flex; flex-direction: column; }
.tc-post__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #efe4cc; }
.tc-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tc-post:hover .tc-post__img img { transform: scale(1.04); }
.tc-post__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.tc-post h3 { font-size: 19px; line-height: 1.35; margin-bottom: 8px; }
.tc-post h3 a:hover { color: var(--tc-red); }
.tc-post p { font-size: 14.5px; color: var(--tc-muted); flex: 1; }
.tc-post__meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 13.5px; color: var(--tc-muted); }
.tc-post__meta span { display: inline-flex; align-items: center; gap: 6px; }
.tc-post__meta .tc-ic { width: 16px; height: 16px; }

/* CTA đỏ */
.tc-cta { background: radial-gradient(ellipse at 20% 0%, #a82222, transparent 60%), linear-gradient(135deg, var(--tc-red-2), var(--tc-red-dark)); color: #fbeedd; position: relative; overflow: hidden; }
/* Hoa văn: lưới bông vàng + đường hồi văn trên và dưới dải đỏ */
.tc-cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .17; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cg fill='%23f0d58c'%3E%3Cg id='a'%3E%3Cpath d='M36 32c-2.600-3-2.300-8 0-12 2.300 4 2.600 9 0 12z'/%3E%3Cpath transform='rotate(45 36 36)' d='M36 33c-1.500-2-1.300-5 0-7.500 1.300 2.500 1.500 5.500 0 7.500z'/%3E%3C/g%3E%3Cuse href='%23a' transform='rotate(90 36 36)'/%3E%3Cuse href='%23a' transform='rotate(180 36 36)'/%3E%3Cuse href='%23a' transform='rotate(270 36 36)'/%3E%3Ccircle cx='36' cy='36' r='2.200'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23f0d58c' stroke-width='1.200' d='M0 0l15 15M72 0L57 15M0 72l15-15M72 72L57 57'/%3E%3C/svg%3E") 0 0 / 72px 72px; }
.tc-cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .75; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 14'%3E%3Cpath fill='none' stroke='%23f0d58c' stroke-width='1.200' d='M0 12H7V2H21V9H12V6H17M7 12H28'/%3E%3C/svg%3E") left 0 top 5px / 28px 14px repeat-x,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 14'%3E%3Cpath fill='none' stroke='%23f0d58c' stroke-width='1.200' d='M0 2H7V12H21V5H12V8H17M7 2H28'/%3E%3C/svg%3E") left 0 bottom 5px / 28px 14px repeat-x; }
.tc-cta__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.tc-cta__title { color: #fff !important; font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px !important; }
.tc-cta p { color: #f3dcc4; }
.tc-cta__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.tc-cta__btn { display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 14px; min-height: 58px; border: 1.5px solid rgba(240, 213, 140, .7); border-radius: 12px; color: #fff !important; background: rgba(255, 255, 255, .06); transition: background .2s; }
.tc-cta__btn:hover { background: rgba(255, 255, 255, .14); }
.tc-cta__btn .tc-ic { width: 28px; height: 28px; color: #f0d58c; }
.tc-cta__btn b { display: block; font-size: 17px; line-height: 1.2; }
.tc-cta__btn small { font-size: 13px; color: #f3dcc4; }
.tc-zalo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #0068ff; color: #fff; font: 700 11px/1 var(--tc-sans); }
.tc-zalo--sm { width: 100%; height: 100%; border-radius: 50%; font-size: 9px; }

/* Footer */
/* nền giấy kem (đậm hơn nền trang), chữ mực, tiêu đề đỏ son, viền / điểm nhấn vàng đồng; thanh bản quyền đỏ như dải tư vấn */
.tc-footer { position: relative; font-size: 14.5px; color: var(--tc-text);
  background: radial-gradient(ellipse at 0% 0%, rgba(255, 255, 255, .55), transparent 45%), radial-gradient(ellipse at 100% 100%, rgba(184, 134, 47, .14), transparent 50%), #f1e5cc; }
.tc-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .13;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cg fill='%23a0752a'%3E%3Cg id='a'%3E%3Cpath d='M36 32c-2.600-3-2.300-8 0-12 2.300 4 2.600 9 0 12z'/%3E%3Cpath transform='rotate(45 36 36)' d='M36 33c-1.500-2-1.300-5 0-7.500 1.300 2.500 1.500 5.500 0 7.500z'/%3E%3C/g%3E%3Cuse href='%23a' transform='rotate(90 36 36)'/%3E%3Cuse href='%23a' transform='rotate(180 36 36)'/%3E%3Cuse href='%23a' transform='rotate(270 36 36)'/%3E%3Ccircle cx='36' cy='36' r='2.200'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23a0752a' stroke-width='1.200' d='M0 0l15 15M72 0L57 15M0 72l15-15M72 72L57 57'/%3E%3C/svg%3E") 0 0 / 72px 72px; }
.tc-footer__crest { position: relative; height: 2px; background: linear-gradient(90deg, transparent, var(--tc-gold) 18%, var(--tc-gold) 82%, transparent); }
.tc-footer__crest span { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--tc-card); border: 1.5px solid var(--tc-gold); box-shadow: 0 0 0 5px #f1e5cc, 0 4px 12px rgba(60, 35, 10, .18); color: var(--tc-red); }
.tc-scope .tc-footer__crest .tc-ic--d { width: 32px; height: 32px; }
.tc-footer__grid { position: relative; display: grid; grid-template-columns: 1.15fr .95fr 1.1fr 1.5fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.tc-footer__logo { display: inline-block; }
.tc-footer__logo img { display: block; width: 168px; }
.tc-footer__brand p { margin: 14px 0 0 !important; max-width: 300px; color: var(--tc-muted); line-height: 1.65; }
.tc-scope.tc-footer h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--tc-line); position: relative;
  font: 700 17px/1.3 var(--tc-serif); color: var(--tc-red-2); letter-spacing: 0; text-transform: none; }
.tc-scope.tc-footer h3::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 44px; height: 2px; background: var(--tc-gold); }
.tc-scope.tc-footer h3 .tc-ic--d { width: 28px; height: 28px; flex: none; }
.tc-footer a { color: var(--tc-ink); transition: color .2s; }
.tc-footer a:hover { color: var(--tc-red); }
.tc-footer__links li { margin-bottom: 2px; }
.tc-footer__links a { display: flex; align-items: center; gap: 10px; padding: 5px 0; line-height: 1.35; }
.tc-footer__ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e3c98e; background: radial-gradient(circle at 35% 30%, #fffaf0, #f4e3bd); transition: border-color .2s, box-shadow .2s; }
.tc-scope .tc-footer__ic .tc-ic--d { width: 22px; height: 22px; }
.tc-footer__links a:hover .tc-footer__ic { border-color: var(--tc-red); box-shadow: 0 0 0 3px rgba(155, 28, 28, .1); }
.tc-footer__contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; overflow-wrap: anywhere; }
.tc-footer__contact .tc-footer__ic { width: 38px; height: 38px; }
.tc-footer__contact small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--tc-gold); }
.tc-footer__contact li > span:last-child { min-width: 0; padding-top: 1px; }
.tc-footer__contact a[href^="mailto:"] { font-size: 13.5px; }
.tc-social { display: flex; gap: 10px; margin-top: 18px; }
.tc-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg, #a92424, var(--tc-red-2)); color: #fff !important; overflow: hidden; box-shadow: 0 4px 10px rgba(124, 20, 20, .22); transition: transform .2s, box-shadow .2s; }
.tc-social a:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(124, 20, 20, .3); }
.tc-social .tc-ic { width: 20px; height: 20px; }
.tc-footer__bottom { position: relative; background: linear-gradient(135deg, var(--tc-red-2), var(--tc-red-dark)); font-size: 13.5px; color: #f3dcc4; }
.tc-footer__bottom-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 16px; }
.tc-footer__bottom p { margin: 0 !important; }
.tc-footer__bottom a { color: #f0d58c; }
.tc-footer__bottom a:hover { color: #fff; }
.tc-footer__bottom nav { display: flex; gap: 22px; }


/* ═════════ Trang công cụ (tc-ui/page-tool.php) ═════════ */
body.tc-tool-page { background: var(--tc-paper); }
.tc-thero { position: relative; overflow: hidden; background: #f3e6cf; border-bottom: 1px solid var(--tc-line); }
.tc-thero__bg, .tc-thero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tc-thero__bg img { object-fit: cover; object-position: 80% 45%; }
.tc-thero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(251, 246, 234, .97) 0%, rgba(251, 246, 234, .92) 36%, rgba(251, 246, 234, .55) 56%, rgba(251, 246, 234, .05) 74%); }
.tc-thero__in { position: relative; z-index: 1; padding-top: 26px; padding-bottom: 40px; min-height: 330px; }
.tc-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--tc-muted); margin-bottom: 18px; }
.tc-crumb a { display: inline-flex; align-items: center; gap: 6px; }
.tc-crumb a:hover { color: var(--tc-red); }
.tc-crumb .tc-ic { width: 16px; height: 16px; }
.tc-crumb [aria-current] { color: var(--tc-red); font-weight: 600; }
.tc-thero h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; font-weight: 700; }
.tc-thero__lead { max-width: 560px; margin-top: 14px !important; font-size: 16.5px; color: var(--tc-text); }
.tc-scope .tc-thero__badges { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 24px; }
.tc-thero__badges li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--tc-muted); line-height: 1.35; }
.tc-thero__badges b { display: block; color: var(--tc-ink); font-size: 15px; font-weight: 600; }
.tc-scope .tc-thero__badges .tc-ic--d { width: 40px; height: 40px; }

.tc-toolpage__body { padding-top: 36px; padding-bottom: 64px; }
/* nội dung trang dựng bằng [section][row][col] của Flatsome: bỏ lề thừa */
.tc-toolpage__body .section { padding: 0 !important; min-height: 0 !important; }
.tc-toolpage__body .section-content > .row, .tc-toolpage__body .row { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.tc-toolpage__body .col { padding: 0 !important; }
.tc-toolpage__body .col-inner > p:empty { display: none; }
/* hộp liên hệ xanh của plugin: trang công cụ mới đã có dải tư vấn ở footer */
.tc-toolpage .ptc-contact-cta { display: none !important; }

/* Form công cụ */
.tc-scope .tc-form-wrap { max-width: 900px; margin: 0 auto; color: var(--tc-text); font-family: var(--tc-sans); }
.tc-card { background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 16px; box-shadow: var(--tc-shadow); overflow: hidden; }
.tc-scope .tc-tabs { display: flex; background: #f7eedb; border-bottom: 1px solid var(--tc-line); flex-wrap: nowrap; }
.tc-scope .tc-tabs > button {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 12px; min-height: 48px; border: 0; border-bottom: 3px solid transparent; border-radius: 0;
  background: transparent; color: var(--tc-muted); font: 600 15px/1.25 var(--tc-sans); cursor: pointer; transition: color .2s, background .2s, border-color .2s;
}
.tc-scope .tc-tabs > button:hover { background: #fbf4e4; color: var(--tc-red); }
.tc-scope .tc-tabs > button.active { background: var(--tc-card); color: var(--tc-red); border-bottom-color: var(--tc-red); }
.tc-scope .tc-tabs > button .tc-ic { width: 22px; height: 22px; }
.tc-form, .tc-pane { padding: 20px 26px 24px; }
.tc-scope .tc-form__title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 14px; }
.tc-scope .tc-form__title .tc-ic { width: 28px; height: 28px; color: var(--tc-red); }
.tc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 16px; }
.tc-col-3 { grid-column: span 3; } .tc-col-4 { grid-column: span 4; } .tc-col-6 { grid-column: span 6; } .tc-col-8 { grid-column: span 8; } .tc-col-9 { grid-column: span 9; } .tc-col-12 { grid-column: 1 / -1; }
/* hàng ngày giờ: Năm / Tháng / Ngày / Giờ / Phút trên 1 hàng */
.tc-dt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 1.25fr; gap: 14px 12px; }
.tc-field { min-width: 0; }
.tc-label { display: block; margin-bottom: 5px; font-size: 13.5px; font-weight: 600; color: var(--tc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* loại lịch nằm trong cột hẹp: ô chọn giãn đủ cột, tháng nhuận xuống dòng */
.tc-inline--lich { gap: 6px 12px; }
.tc-scope .tc-inline--lich .tc-seg { width: 100%; }
.tc-hint--side { align-self: end; margin: 0 0 12px !important; }
/* cột Loại lịch hẹp (máy tính bảng / laptop nhỏ / điện thoại): chữ nhỏ lại cho vừa "Dương lịch | Âm lịch" */
@media (max-width: 1100px) { .tc-scope .tc-inline--lich .tc-seg span { padding: 0 4px; font-size: 13px; } }
.tc-ctl { position: relative; display: block; }
.tc-ctl--ic > .tc-ic:first-child { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--tc-gold); pointer-events: none; }
.tc-scope .tc-input, .tc-scope .tc-select, .tc-scope .tc-tz__trigger {
  width: 100%; height: 44px; margin: 0; padding: 0 14px; border: 1px solid #dccaa6; border-radius: 10px;
  background-color: #fffdf8; color: var(--tc-ink); font: 500 15px/1.2 var(--tc-sans); box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.tc-scope .tc-ctl--ic .tc-input, .tc-scope .tc-ctl--ic .tc-select, .tc-scope .tc-tz__trigger { padding-left: 42px; }
.tc-scope .tc-select {
  -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c1414' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.tc-scope .tc-input::placeholder { color: #a8957c; }
.tc-scope .tc-input:focus, .tc-scope .tc-select:focus, .tc-scope .tc-tz__trigger:focus-visible { outline: 0; border-color: var(--tc-gold); box-shadow: 0 0 0 3px rgba(184, 134, 47, .2); }
.tc-hint { margin-top: -4px !important; font-size: 12.5px; color: var(--tc-muted); }
.tc-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.tc-nhuan:empty, .tc-nhuan:has(> [style*="display:none"], > [style*="display: none"]) { display: none; }

/* nút chọn dạng phân đoạn (radio) */
.tc-seg { display: inline-flex; width: 100%; padding: 3px; gap: 3px; border: 1px solid #dccaa6; border-radius: 10px; background: #fffdf8; }
.tc-inline .tc-seg { width: auto; }
.tc-seg label { flex: 1; margin: 0; cursor: pointer; }
.tc-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tc-seg span { display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 10px; border-radius: 7px; font-weight: 600; font-size: 14.5px; color: var(--tc-muted); white-space: nowrap; transition: background .2s, color .2s; }
.tc-seg label:hover span { color: var(--tc-red); }
.tc-seg input:checked + span { background: linear-gradient(180deg, #a92424, var(--tc-red-2)); color: #fff; box-shadow: 0 2px 6px rgba(124, 20, 20, .25); }
.tc-seg input:focus-visible + span { outline: 2px solid var(--tc-gold); outline-offset: 2px; }

/* ô tích + công tắc */
.tc-check { display: flex; align-items: flex-start; gap: 10px; margin: 0; cursor: pointer; font-size: 15px; color: var(--tc-ink); }
.tc-scope .tc-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--tc-red); flex: none; }
.tc-check b, .tc-switch b { display: block; font-weight: 600; color: var(--tc-ink); }
.tc-check small, .tc-switch small { display: block; font-size: 13px; color: var(--tc-muted); line-height: 1.4; }
.tc-switch { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 14px; border: 1px solid var(--tc-line); border-radius: 12px; background: #fffdf8; cursor: pointer; height: 100%; }
.tc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tc-switch__ui { position: relative; flex: none; width: 44px; height: 24px; border-radius: 24px; background: #d9cbb0; transition: background .2s; }
.tc-switch__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.tc-switch input:checked + .tc-switch__ui { background: var(--tc-red); }
.tc-switch input:checked + .tc-switch__ui::after { transform: translateX(20px); }
.tc-switch input:focus-visible + .tc-switch__ui { outline: 2px solid var(--tc-gold); outline-offset: 2px; }

.tc-note { display: flex; align-items: center; gap: 10px; margin-top: 16px !important; padding: 8px 14px; border-radius: 10px; background: #f4ecdc; border: 1px dashed #d6c09a; font-size: 13px; color: var(--tc-muted); }
.tc-note .tc-ic { color: var(--tc-red); width: 20px; height: 20px; }

/* nút form */
.tc-form__btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; margin-top: 16px; }
.tc-scope .tc-fbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; margin: 0; padding: 0 20px;
  border-radius: 10px; font: 700 17px/1 var(--tc-serif); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.tc-scope .tc-fbtn .tc-ic { width: 20px; height: 20px; }
.tc-scope .tc-fbtn--red { border: 1px solid var(--tc-red-dark); background: linear-gradient(180deg, #b3282c, #8d161a 55%, #6c0f13); color: #fff; box-shadow: 0 6px 14px rgba(110, 14, 18, .28), inset 0 0 0 3px rgba(236, 196, 118, .28); }
.tc-scope .tc-fbtn--red:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(110, 14, 18, .34), inset 0 0 0 3px rgba(236, 196, 118, .4); }
.tc-scope .tc-fbtn--red:disabled { opacity: .75; cursor: wait; transform: none; }
.tc-scope .tc-fbtn--red .tc-taiji { width: 26px; height: 26px; color: #8d161a; }
.tc-scope .tc-fbtn--line { border: 1.5px solid var(--tc-red); background: var(--tc-card); color: var(--tc-red); }
.tc-scope .tc-fbtn--line:hover { background: var(--tc-red); color: #fff; }
/* Tử Vi: Làm mới | Luận giải tự động | Lấy lá số */
.tc-form__btns--3 { grid-template-columns: .8fr 1.2fr 1.2fr; }
.tc-scope .tc-fbtn--gold { border: 1.5px solid var(--tc-gold, #c9a227); background: linear-gradient(180deg, #fffaf0, #fbefd2); color: var(--tc-red, #8B0000); box-shadow: 0 4px 10px rgba(150, 110, 30, .18); }
.tc-scope .tc-fbtn--gold:hover { transform: translateY(-1px); background: linear-gradient(180deg, #fff5dc, #f6e2b0); }
.tc-scope .tc-fbtn--sm { height: 40px; padding: 0 14px; font: 600 14px/1 var(--tc-sans); letter-spacing: 0; text-transform: none; }

/* bộ chọn múi giờ (markup + JS của plugin) */
.tc-tz { position: relative; }
.tc-scope .tc-tz__trigger { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; position: relative; }
.tc-tz__trigger .tuvi-tz-trigger-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-tz__trigger .tc-ic:last-child { width: 16px; height: 16px; color: var(--tc-red); transition: transform .2s; }
.tc-tz.is-open .tc-tz__trigger .tc-ic:last-child { transform: rotate(180deg); }
.tc-tz__drop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); padding: 10px; background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 12px; box-shadow: 0 16px 40px rgba(60, 35, 10, .18); }
.tc-tz__drop[hidden] { display: none; }
.tc-scope .tc-tz__drop .tc-input { height: 42px; margin-bottom: 8px; }
.tc-tz__list { max-height: 300px; overflow-y: auto; }
.tc-scope .tc-tz__list .tuvi-tz-option { display: flex; gap: 12px; width: 100%; margin: 0; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font: 500 14px/1.35 var(--tc-sans); color: var(--tc-ink); cursor: pointer; }
.tc-tz__list .tuvi-tz-option:hover { background: #f6ead2; }
.tc-tz__list .tuvi-tz-option.is-selected { background: var(--tc-red); color: #fff; }
.tc-tz__list .tuvi-tz-off { flex: none; min-width: 92px; font-weight: 600; }
.tc-tz__list .tuvi-tz-group-label, .tc-tz__list .tuvi-tz-empty { padding: 8px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tc-muted); }

/* tab tùy chọn / hướng dẫn */
.tc-opts { display: grid; gap: 14px; }
.tc-opts .tc-check { padding: 14px 16px; border: 1px solid var(--tc-line); border-radius: 12px; background: #fffdf8; }
.tc-steps { margin: 0 0 18px; padding-left: 22px; line-height: 1.75; }
.tc-steps li { margin-bottom: 6px; }
.tc-scope .tc-pane__h { font-size: 18px; margin: 4px 0 8px; }

/* icon bộ demo trong form (nét đỏ #8F1117) — cỡ + đổi sang trắng khi nằm trên nền đỏ */
.tc-seg span .tc-ic--d { width: 20px; height: 20px; margin-right: 6px; }
.tc-seg input:checked + span .tc-ic--d [stroke] { stroke: #fff; }
.tc-scope .tc-switch .tc-ic--d, .tc-scope .tc-opts .tc-check .tc-ic--d { width: 30px; height: 30px; flex: none; }
.tc-scope .tc-hint .tc-ic--d { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
.tc-scope .tc-note .tc-ic--d { width: 24px; height: 24px; }
.tc-scope .tc-fbtn--red .tc-ic--d { width: 30px; height: 30px; }
.tc-scope .tc-fbtn--line .tc-ic--d { width: 22px; height: 22px; }
.tc-scope .tc-fbtn--line:hover .tc-ic--d [stroke] { stroke: #fff; }
.tc-scope .tc-tz__trigger .tc-ic--d:first-child { width: 20px; height: 20px; }
.tc-scope .tc-tabs > button .tc-ic--d { width: 24px; height: 24px; }
.tc-scope .tc-form__title .tc-ic--d { width: 30px; height: 30px; }

/* kết quả: chỉ hiện sau khi lấy lá số */
/* lá số rộng 1200px → khu kết quả thoát khỏi khung 900px của form, rộng bằng khung trang */
.tc-result { position: relative; left: 50%; transform: translateX(-50%); width: min(1152px, calc(100vw - 48px)); margin-top: 32px; background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 16px; box-shadow: var(--tc-shadow); overflow: hidden; }
.tc-result[hidden] { display: none; }
.tc-result__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--tc-line); background: #fbf4e4; }
.tc-scope .tc-result__head h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.tc-scope .tc-result__head h2 .tc-ic--d { width: 30px; height: 30px; }
.tc-scope .tc-result__tools { display: flex; gap: 10px; margin: 0; }
.tc-result #tuvi-result-wrap { padding: 20px; }
/* Tử Vi: 2 nút Tình duyên | Bói Dịch dưới tiêu đề "Lá số Tử Vi của bạn" */
.tc-xem { display: flex; gap: 12px; max-width: 560px; margin: 16px auto 0; padding: 0 16px; }
.tc-scope .tc-xem__i { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 10px 8px; border: 1px solid; border-radius: 12px; text-align: center; text-decoration: none; transition: transform .2s, border-color .2s; }
.tc-scope .tc-xem__i:hover { transform: translateY(-1px); text-decoration: none; }
.tc-xem__i b { font-size: 15px; font-weight: 700; line-height: 1.3; }
.tc-xem__i small { font-size: 12.5px; font-weight: 500; opacity: .9; }
.tc-scope .tc-xem__i--duyen { background: linear-gradient(145deg, #fff7fb 0%, #fff 55%); border-color: #f9c4df; color: #be185d; }
.tc-scope .tc-xem__i--duyen:hover { border-color: #f472b6; color: #be185d; }
.tc-scope .tc-xem__i--dich { background: linear-gradient(145deg, #f7f3ff 0%, #fff 55%); border-color: #ddd6fe; color: #7c3aed; }
.tc-scope .tc-xem__i--dich:hover { border-color: #a78bfa; color: #7c3aed; }
@media (max-width: 600px) { .tc-xem { gap: 8px; } .tc-xem__i b { font-size: 13.5px; } .tc-xem__i small { font-size: 11.5px; } }
.tc-result .tuvi-chart-scroll { overflow-x: auto; }
.tc-result .tuvi-loading-snap { padding: 40px 10px; text-align: center; font-size: 16px; color: var(--tc-muted); }
.tc-result .tuvi-error, .tc-result .tuvi-capture-fail { padding: 14px 16px; border-radius: 10px; background: #fdecea; border: 1px solid #f1b8b2; color: #8d161a; font-size: 15px; }
.tc-result .tuvi-image-hint { color: var(--tc-muted); font-size: 14px; }
.tc-result .tuvi-image-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.tc-scope .tc-result .tuvi-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; margin: 0; padding: 0 18px; border: 1.5px solid var(--tc-red); border-radius: 10px; background: var(--tc-card); color: var(--tc-red); font: 600 15px/1 var(--tc-sans); }
.tc-scope .tc-result .tuvi-btn-primary { background: linear-gradient(180deg, #a92424, var(--tc-red-2)); color: #fff; border-color: var(--tc-red-dark); }
.tc-scope .tc-result .tuvi-btn:hover { filter: brightness(1.06); }

/* Tứ Trụ: gỡ nền tối / màu chữ của CSS plugin tutu-flatsome trong form mới */
.tc-scope .tutu-wrap.tc-form-wrap, .tc-scope .tutu-wrap .tutu-tab-content#tab-thongtin { background: transparent; color: var(--tc-text); }
.tc-scope .tutu-wrap .tc-ctl { width: 100%; }
.tc-scope .tutu-wrap .tc-ctl > .tc-input, .tc-scope .tutu-wrap .tc-ctl > .tc-select { display: block; width: 100%; min-width: 0; }
/* ═════════ Trang Giới thiệu ═════════ */
.tc-ahero .tc-thero__in { min-height: 440px; padding-bottom: 56px; }
.tc-ahero .tc-eyebrow { margin-bottom: 8px !important; }
.tc-ahero h1 { font-size: clamp(36px, 4.6vw, 58px); }
.tc-ahero .tc-hero__btns { margin-top: 26px; }
.tc-story { padding-bottom: 40px; }
.tc-story__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.tc-story__img { border-radius: 16px; overflow: hidden; box-shadow: 0 14px 34px rgba(60, 35, 10, .18); border: 1px solid var(--tc-line); }
.tc-story__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tc-scope .tc-story__text h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.tc-scope .tc-story__text h2::after { content: ""; display: block; width: 64px; height: 10px; margin-top: 10px; background:
  radial-gradient(circle, var(--tc-gold) 3px, transparent 3.5px) center / 10px 10px no-repeat,
  linear-gradient(var(--tc-gold), var(--tc-gold)) left center / 26px 1px no-repeat,
  linear-gradient(var(--tc-gold), var(--tc-gold)) right center / 26px 1px no-repeat; }
.tc-scope .tc-story__text p { margin-bottom: 14px; font-size: 16px; line-height: 1.75; }
.tc-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 16px; box-shadow: var(--tc-shadow); }
.tc-stats > div { display: flex; align-items: center; gap: 16px; padding: 22px 26px; }
.tc-stats > div + div { border-left: 1px solid var(--tc-line); }
.tc-stats img { width: 64px; height: 64px; flex: none; }
.tc-stats p { font-size: 14.5px; color: var(--tc-muted); line-height: 1.35; }
.tc-stats b { display: block; font: 700 34px/1.1 var(--tc-serif); color: var(--tc-red-2); }
.tc-scope .tc-head__kicker { margin: 0 0 4px !important; font-family: var(--tc-serif); font-size: 17px; color: var(--tc-gold); }
.tc-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tc-values article { padding: 30px 26px; text-align: center; background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 16px; box-shadow: var(--tc-shadow); }
.tc-values img { width: 96px; height: 96px; margin: 0 auto 12px; }
.tc-scope .tc-values h3 { font-size: 24px; margin-bottom: 10px; }
.tc-values p { color: var(--tc-muted); font-size: 15px; line-height: 1.65; }
.tc-about .tc-feat__img { aspect-ratio: 4 / 3; }
.tc-about__more { margin-top: 12px; font-size: 14.5px; }
.tc-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tc-why article { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 14px; box-shadow: var(--tc-shadow); }
.tc-why img { width: 60px; height: 60px; }
.tc-scope .tc-why h3 { font-size: 18px; margin-bottom: 6px; }
.tc-why p { color: var(--tc-muted); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 1100px) { .tc-why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .tc-story__in { grid-template-columns: 1fr; gap: 24px; }
  .tc-values { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .tc-ahero .tc-thero__in { min-height: 0; padding-bottom: 32px; }
}
@media (max-width: 600px) {
  .tc-stats { grid-template-columns: 1fr; }
  .tc-stats > div + div { border-left: 0; border-top: 1px solid var(--tc-line); }
  .tc-stats > div { padding: 14px 18px; }
  .tc-stats img { width: 52px; height: 52px; }
  .tc-stats b { font-size: 28px; }
  .tc-values article { display: grid; grid-template-columns: 64px 1fr; gap: 4px 14px; text-align: left; padding: 18px; }
  .tc-values img { width: 64px; height: 64px; margin: 0; grid-row: span 2; }
  .tc-scope .tc-values h3 { font-size: 20px; margin: 0; }
  .tc-why { grid-template-columns: 1fr; }
  .tc-why article { flex-direction: row; align-items: flex-start; padding: 16px; }
  .tc-why img { width: 52px; height: 52px; flex: none; }
}

/* ═════════ Trang Liên hệ ═════════ */
.tc-chero .tc-thero__bg img { object-position: 70% 50%; }
.tc-chero .tc-thero__in { min-height: 360px; }
.tc-cgrid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: stretch; }
.tc-ccard { position: relative; padding: 28px 30px; background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 16px; box-shadow: var(--tc-shadow); }
.tc-ccard::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(198, 138, 43, .28); border-radius: 12px; pointer-events: none; }
.tc-scope .tc-ccard h2, .tc-scope .tc-faq h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 26px; line-height: 1.2; margin-bottom: 10px; }
.tc-scope .tc-ccard h2 small { flex-basis: 100%; font-size: 19px; color: var(--tc-red-2); font-weight: 600; }
.tc-cmap h2 small { font-family: var(--tc-sans); font-size: 15px !important; color: var(--tc-ink) !important; }
.tc-scope .tc-ccard h2 .tc-ic--d, .tc-scope .tc-faq h2 .tc-ic--d { width: 30px; height: 30px; }
.tc-cinfo__lead { color: var(--tc-muted); font-size: 15px; margin-bottom: 18px !important; }
.tc-clist { display: grid; gap: 4px; }
.tc-clist > li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--tc-line); }
.tc-clist > li:last-child { border-bottom: 0; }
.tc-clist__ic { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fbefd3, #efd9a8); border: 1px solid #e3c98e; }
.tc-scope .tc-clist__ic .tc-ic--d { width: 30px; height: 30px; }
.tc-clist small { display: block; font-size: 13px; color: var(--tc-muted); }
.tc-clist b { display: block; font: 700 19px/1.3 var(--tc-serif); color: var(--tc-red-2); }
.tc-clist b.tc-clist__mail { font: 600 15.5px/1.4 var(--tc-sans); overflow-wrap: anywhere; }
.tc-clist em { display: block; font-style: normal; font-size: 13.5px; color: var(--tc-muted); }
.tc-clist a:hover b { text-decoration: underline; }
.tc-clist__zalo > a { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border: 1px solid var(--tc-line); border-radius: 12px; background: #fffdf8; }
.tc-clist__zalo .tc-zalo { width: 46px; height: 46px; border-radius: 12px; font-size: 12px; flex: none; }
.tc-clist__zalo > a > div { flex: 1; }
.tc-clist__zalo b { font-size: 17px; }
.tc-cform { display: grid; gap: 12px; align-content: start; }
.tc-cform .tc-cinfo__lead { margin-bottom: 4px !important; }
.tc-ctl--area > .tc-ic--d:first-child { top: 22px; }
.tc-scope .tc-cform textarea.tc-input { height: auto; min-height: 120px; padding-top: 12px; line-height: 1.5; resize: vertical; }
.tc-scope .tc-cform .is-invalid { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .15); }
.tc-cform__msg { padding: 10px 14px; border-radius: 10px; background: #edf7ee; color: #23662c; font-size: 14px; }
.tc-cform__msg.is-bad { background: #fdecea; color: #8d161a; }
.tc-cform__btns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-top: 4px; }
.tc-scope .tc-cform .tc-fbtn { font-size: 16px; letter-spacing: .02em; text-transform: none; }
.tc-scope .tc-cform .tc-fbtn--red .tc-ic--d { width: 24px; height: 24px; }
.tc-zalo--btn { width: 30px; height: 22px; border-radius: 6px; font-size: 9px; }
.tc-cfeat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 26px 0; }
.tc-cfeat a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 22px 16px; background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 14px; box-shadow: var(--tc-shadow); transition: transform .2s, border-color .2s; }
.tc-cfeat a:hover { transform: translateY(-3px); border-color: var(--tc-gold); }
.tc-cfeat span { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fbefd3, #efd9a8); border: 1px solid #e3c98e; }
.tc-scope .tc-cfeat span .tc-ic--d { width: 34px; height: 34px; }
.tc-cfeat b { font: 700 19px/1.3 var(--tc-serif); color: var(--tc-red-2); }
.tc-cfeat i { font-style: normal; font-weight: 600; color: var(--tc-ink); font-size: 14.5px; }
.tc-cfeat small { color: var(--tc-muted); font-size: 13.5px; line-height: 1.45; margin-top: 4px; }
.tc-cmap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 26px; align-items: center; }
.tc-cmap p { color: var(--tc-muted); margin-bottom: 16px !important; }
.tc-cmap__img { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--tc-line); }
.tc-cmap__img img { width: 100%; height: 240px; object-fit: cover; }
.tc-faq { margin-top: 30px; }
.tc-faq details { margin-bottom: 10px; background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 12px; overflow: hidden; }
.tc-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; font-weight: 600; color: var(--tc-ink); cursor: pointer; list-style: none; }
.tc-faq summary::-webkit-details-marker { display: none; }
.tc-faq summary::after { content: "+"; flex: none; font-size: 24px; line-height: 1; color: var(--tc-red); transition: transform .2s; }
.tc-faq details[open] summary::after { transform: rotate(45deg); }
.tc-faq details p { padding: 0 18px 16px; color: var(--tc-muted); line-height: 1.65; }
@media (max-width: 900px) {
  .tc-cgrid, .tc-cmap { grid-template-columns: 1fr; }
  .tc-cfeat { grid-template-columns: 1fr 1fr; }
  .tc-chero .tc-thero__in { min-height: 0; }
}
@media (max-width: 600px) {
  .tc-ccard { padding: 20px 16px; }
  .tc-scope .tc-ccard h2, .tc-scope .tc-faq h2 { font-size: 22px; }
  .tc-cform__btns { grid-template-columns: 1fr; }
  .tc-cfeat { gap: 10px; }
  .tc-cfeat a { padding: 16px 10px; }
  .tc-cfeat small { display: none; }
  .tc-cmap__img img { height: 180px; }
}

/* ═════════ Bố cục trang công cụ: nội dung + menu bar phải ═════════ */
.tc-toolpage__body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; align-items: start; }
.tc-toolpage__main { min-width: 0; }
.tc-scope .tc-toolpage__main .tc-form-wrap,
.tc-skin .tc-toolpage__main :is(.kymon-wrap, .ln-wrap, .mh-wrap, .lh-wrap, .sdt-wrap, #ptc-serial-wrap, .lk-wrap) { max-width: none; }
/* kết quả nằm gọn trong cột nội dung (không tràn sang menu) */
.tc-toolpage__main .tc-result { left: auto; transform: none; width: auto; }
.tc-side { position: sticky; top: calc(var(--tc-top) + 92px); display: grid; gap: 16px; }
.tc-side__box { background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 16px; box-shadow: var(--tc-shadow); overflow: hidden; }
.tc-scope .tc-side__title { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 18px; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--tc-red-2), var(--tc-red-dark)); }
.tc-scope .tc-side__title .tc-ic--d { width: 24px; height: 24px; color: #f0d58c; }
.tc-side nav { padding: 8px; }
.tc-side__link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--tc-ink); transition: background .2s, color .2s; }
.tc-side__link:hover { background: #f6ead2; color: var(--tc-red); }
.tc-side__link > span:nth-child(2) { flex: 1; line-height: 1.3; }
.tc-side__ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fbefd3, #efd9a8); border: 1px solid #e3c98e; }
.tc-scope .tc-side__ic .tc-ic--d { width: 22px; height: 22px; }
.tc-scope .tc-side__link > .tc-ic--d:last-child { width: 14px; height: 14px; opacity: .5; }
.tc-side__link.is-current { background: linear-gradient(180deg, #a92424, var(--tc-red-2)); color: #fff; font-weight: 600; }
.tc-side__link.is-current .tc-side__ic { background: #fff; border-color: #fff; }
.tc-side__link.is-current > .tc-ic--d:last-child [stroke] { stroke: #fff; }
.tc-side__cta { padding: 18px; border-radius: 16px; background: #f4ecdc; border: 1px dashed #d6c09a; text-align: center; font-size: 14px; color: var(--tc-muted); display: grid; gap: 8px; }
.tc-side__cta-t { font-family: var(--tc-serif); font-size: 18px; font-weight: 700; color: var(--tc-red-2); }
.tc-scope .tc-side__cta .tc-fbtn { width: 100%; }
.tc-scope .tc-side__cta .tc-fbtn--red .tc-ic--d { width: 22px; height: 22px; }
@media (max-width: 1100px) { .tc-toolpage__body { grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; } }
@media (max-width: 900px) {
  .tc-toolpage__body { grid-template-columns: 1fr; }
  .tc-side { position: static; }
  .tc-side nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
}
@media (max-width: 600px) { .tc-side nav { grid-template-columns: 1fr; } }
/* Kỳ Môn: khi có kết quả (bàn trái + luận giải phải) dùng hết bề ngang, menu công cụ xuống dưới */
.tc-toolpage--kymon .tc-toolpage__body:has(.kymon-split.is-split) { grid-template-columns: 1fr; }
.tc-toolpage--kymon .tc-toolpage__body:has(.kymon-split.is-split) .tc-side { position: static; }
.tc-toolpage--kymon .tc-toolpage__body:has(.kymon-split.is-split) .tc-side nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px; }

/* ô số (năm): bỏ nút tăng/giảm của trình duyệt cho gọn như ô chọn */
.tc-scope input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.tc-scope input[type="number"]::-webkit-inner-spin-button, .tc-scope input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* Tứ Trụ: ô tháng nhuận chỉ hiện khi chọn Âm lịch (value 2) */
.tc-only-am { display: none; }
.tc-form:has(input[name="loai_lich"][value="2"]:checked) .tc-only-am { display: flex; }

/* ═════════ Skin cho form plugin giữ nguyên markup (body .tc-skin) ═════════
 * Chỉ đổi phần form: tiêu đề, tab, nhãn, ô nhập, nút. Vùng kết quả / bàn (id chứa result|chart) giữ nguyên. */
/* khối tiêu đề riêng của plugin — hero trang đã có tên công cụ */
.tc-skin :is(.kymon-header, .ln-hero, .mh-hero, .lh-hero, .sdt-hero, .ptc-serial-title, .lk-header) { display: none !important; }
/* dòng thông tin kỹ thuật / nút kiểm tra dành cho dev */
.tc-skin :is(.sdt-data-status, .ptc-sr-data-status, .ptc-nn-data-status, .lh-dev) { display: none !important; }

.tc-skin :is(.kymon-wrap, .ln-wrap, .mh-wrap, .lh-wrap, .sdt-wrap, #ptc-serial-wrap, .lk-wrap) {
  max-width: 960px; margin: 0 auto; padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0;
}
/* thanh tab của plugin → kiểu tab giao diện mới, dính liền thẻ form bên dưới */
.tc-skin :is(.ptc-mh-tab-header, .ptc-lh-tab-header, .ptc-sdt-tab-header, .ptc-sr-tab-header, .ptc-nn-tab-header) {
  display: flex; gap: 0; margin: 0; padding: 0; background: #f7eedb; border: 1px solid var(--tc-line); border-bottom: 0; border-radius: 16px 16px 0 0; overflow: hidden;
}
.tc-skin :is(.ptc-mh-tab-header, .ptc-lh-tab-header, .ptc-sdt-tab-header, .ptc-sr-tab-header, .ptc-nn-tab-header) > button {
  flex: 1 1 0; min-height: 46px; margin: 0; padding: 10px 12px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; box-shadow: none;
  background: transparent; color: var(--tc-muted); font: 600 15px/1.25 var(--tc-sans); text-transform: none; letter-spacing: 0; cursor: pointer;
}
.tc-skin :is(.ptc-mh-tab-header, .ptc-lh-tab-header, .ptc-sdt-tab-header, .ptc-sr-tab-header, .ptc-nn-tab-header) > button:hover { background: #fbf4e4; color: var(--tc-red); }
.tc-skin :is(.ptc-mh-tab-header, .ptc-lh-tab-header, .ptc-sdt-tab-header, .ptc-sr-tab-header, .ptc-nn-tab-header) > button.active { background: var(--tc-card); color: var(--tc-red); border-bottom-color: var(--tc-red); }

/* thẻ form */
.tc-skin :is(.kymon-form, .ln-form, .lk-form-hvl, .nt-search-box, .ptc-mh-content, .ptc-lh-content, .ptc-sdt-content, .ptc-sr-content, .ptc-nn-content) {
  margin: 0; padding: 20px 24px 22px; background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 16px; box-shadow: var(--tc-shadow); color: var(--tc-text);
}
.tc-skin :is(.ptc-mh-content, .ptc-lh-content, .ptc-sdt-content, .ptc-sr-content, .ptc-nn-content) { border-radius: 0 0 16px 16px; }
.tc-skin :is(.kymon-form-card, .ln-form-card, .mh-form-card, .lh-form-card, .sdt-form-card, .kymon-form-submit, .ln-actions, .mh-actions, .lh-actions, .sdt-actions, .ptc-sr-actions, .ptc-nn-actions, .lk-actions) {
  background: transparent; border: 0; box-shadow: none; padding-left: 0; padding-right: 0;
}
.tc-skin :is(.kymon-form-submit, .ln-actions, .mh-actions, .lh-actions, .sdt-actions, .ptc-sr-actions, .ptc-nn-actions, .lk-actions) { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 16px; padding-bottom: 0; margin-top: 4px; border-top: 1px dashed var(--tc-line); }
.tc-skin .nt-search-title { font-family: var(--tc-serif); font-size: 20px; color: var(--tc-red-2); }

/* nhãn + chữ phụ */
.tc-skin :is(.kymon-label, .kymon-dt-lbl, .ln-field > label, .ln-field-label, .mh-field-label, .mh-field > label, .lh-field > label, .sdt-field-label, .sdt-field > label, .sdt-lbl-left, .ptc-sr-row > label, .ptc-nn-row > label, .lk-fs-lbl, .lk-fs > h3, .lk-fs > h4, .nt-search-row > label) {
  font: 600 13.5px/1.35 var(--tc-sans); color: var(--tc-ink); text-transform: none; letter-spacing: 0;
}
.tc-skin :is(.ptc-sr-note, .ptc-nn-note, .sdt-opt, .lk-fs-note, .lh-tab-note, .lk-huong-hint, .lk-disclaimer) { color: var(--tc-muted); font-size: 13px; }
.tc-skin :is(.ln-details) { border: 1px solid var(--tc-line); border-radius: 12px; background: #fffdf8; }

/* ô nhập / ô chọn (trừ vùng kết quả) */
.tc-skin :is(input[type="text"], input[type="number"], input[type="search"], input[type="tel"], input[type="date"], input:not([type]), select, textarea):not(:is([id*="result"], [id*="chart"]) *) {
  height: 42px; margin: 0; padding: 0 12px; max-width: 100%;
  border: 1px solid #dccaa6; border-radius: 10px; background-color: #fffdf8; box-shadow: none;
  color: var(--tc-ink); font: 500 15px/1.2 var(--tc-sans);
  transition: border-color .2s, box-shadow .2s;
}
.tc-skin textarea:not(:is([id*="result"], [id*="chart"]) *) { height: auto; min-height: 90px; padding: 10px 12px; line-height: 1.5; }
.tc-skin select:not(:is([id*="result"], [id*="chart"]) *) {
  -webkit-appearance: none; appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c1414' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 15px;
}
.tc-skin :is(input, select, textarea):not(:is([id*="result"], [id*="chart"]) *):focus { outline: 0; border-color: var(--tc-gold); box-shadow: 0 0 0 3px rgba(184, 134, 47, .2); }
.tc-skin :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--tc-red); }
/* ô ngày/giờ xếp hàng ngang (Serial): đủ rộng cho "2026" + mũi tên */
.tc-skin .ptc-sr-inline-boxes select { width: auto; min-width: 78px; }
.tc-skin :is(.ptc-sr-inline-boxes, .ptc-nn-date-group, .ptc-nn-time-group) select:is(#sr-nam, [id$="-nam"], [name$="nam"]) { min-width: 96px; }
/* Mai Hoa: ô Loại lịch đủ rộng cho "Dương lịch" + mũi tên */
.tc-skin #ptc-maihoa-wrap .mh-field-row select { min-width: 138px; }
/* bảng hào Lục Hào: ô chọn âm/dương gọn lề phải */
.tc-skin #ptc-luchao-wrap .lh-hao-table select { padding-right: 26px; padding-left: 8px; background-position: right 6px center; }

/* nút chính / phụ */
.tc-skin :is(.kymon-btn, .ln-btn-primary, #mh-submit-btn, .lh-btn-submit, #sdt-submit-btn, #sr-submit-btn, #nn-submit-btn, .lk-btn-primary, .ptc-nt-btn-primary) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 220px; height: 48px; margin: 0; padding: 0 28px;
  border: 1px solid var(--tc-red-dark); border-radius: 10px; background: linear-gradient(180deg, #b3282c, #8d161a 55%, #6c0f13); color: #fff;
  box-shadow: 0 6px 14px rgba(110, 14, 18, .28), inset 0 0 0 3px rgba(236, 196, 118, .28);
  font: 700 16.5px/1 var(--tc-serif); letter-spacing: .03em; text-transform: none; cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.tc-skin :is(.kymon-btn, .ln-btn-primary, #mh-submit-btn, .lh-btn-submit, #sdt-submit-btn, #sr-submit-btn, #nn-submit-btn, .lk-btn-primary, .ptc-nt-btn-primary):hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(110, 14, 18, .34), inset 0 0 0 3px rgba(236, 196, 118, .4); }
.tc-skin :is(#sdt-reset-btn, #sr-reset-btn, #nn-reset-btn) {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; margin: 0; padding: 0 22px;
  border: 1.5px solid var(--tc-red); border-radius: 10px; background: var(--tc-card); color: var(--tc-red); box-shadow: none;
  font: 600 15px/1 var(--tc-sans); text-transform: none; letter-spacing: 0; cursor: pointer;
}
.tc-skin :is(#sdt-reset-btn, #sr-reset-btn, #nn-reset-btn):hover { background: var(--tc-red); color: #fff; }
/* Lục Hào: chọn Nhập tay / Gieo 3 xu (giữ độ ưu tiên thấp để .active thắng) */
.tc-skin .lh-gieo-mode { display: flex; gap: 10px; }
.tc-skin .lh-gieo-mode .lh-gieo-mode-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; margin: 0; padding: 0 14px; white-space: nowrap;
  border: 1.5px solid var(--tc-red); border-radius: 10px; background: var(--tc-card); color: var(--tc-red); box-shadow: none;
  font: 600 15px/1 var(--tc-sans); text-transform: none; letter-spacing: 0; cursor: pointer;
}
.tc-skin .lh-gieo-mode .lh-gieo-mode-btn.active { background: linear-gradient(180deg, #a92424, var(--tc-red-2)); color: #fff; border-color: var(--tc-red-dark); }

/* nút trên thanh kết quả (tải ảnh / in) */
.tc-skin :is(.kymon-result-toolbar, .ln-result-toolbar, .mh-result-toolbar, .lh-result-toolbar, .sdt-result-actions, .ptc-sr-result-actions) { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 14px; padding: 0; background: transparent; border: 0; }
.tc-skin :is(.kymon-result-toolbar, .ln-result-toolbar, .mh-result-toolbar, .lh-result-toolbar, .sdt-result-actions, .ptc-sr-result-actions) button {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; margin: 0; padding: 0 18px;
  border: 1.5px solid var(--tc-red); border-radius: 10px; background: var(--tc-card); color: var(--tc-red); box-shadow: none;
  font: 600 14.5px/1 var(--tc-sans); text-transform: none; letter-spacing: 0; cursor: pointer;
}
.tc-skin :is(.kymon-result-toolbar, .ln-result-toolbar, .mh-result-toolbar, .lh-result-toolbar, .sdt-result-actions, .ptc-sr-result-actions) button:hover { background: var(--tc-red); color: #fff; }

/* ── Các trang khác (nội dung Flatsome / plugin giữ nguyên) ── */
/* template "Full Width" không có lề trên → chừa khoảng dưới header như các trang mặc định */
body.tc-ui:not(.tc-page).page-template-page-blank #main { padding-top: 30px; padding-bottom: 40px; }
/* hộp liên hệ phía dưới công cụ (plugin ptc-tonghop) trùng ngay với dải tư vấn của footer mới */
body.tc-ui .ptc-contact-cta--bottom { display: none; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .tc-nav > ul > li > a { padding: 10px 8px; font-size: 14.5px; }
  .tc-header__cta { display: none; }
  .tc-feat { grid-template-columns: repeat(2, 1fr); }
  .tc-tools { --tc-cols: 3; }
}
@media (max-width: 900px) {
  .tc-nav, .tc-header__cta { display: none; }
  .tc-scope .tc-burger { display: block; }
  .tc-header__in { height: 64px; }
  .tc-logo img { width: 136px; }
  /* điện thoại/máy tính bảng: ảnh thành băng trên đầu (giữ la bàn bên phải), chữ ở dưới trên nền giấy */
  .tc-hero { padding-top: 56%; background: var(--tc-paper-2); }
  .tc-hero__bg, .tc-hero__bg img { bottom: auto; height: auto; aspect-ratio: 16 / 9; }
  .tc-hero::after { display: none; }
  .tc-hero__bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, rgba(251, 246, 234, 0), var(--tc-paper-2)); }
  .tc-hero__in { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; padding-bottom: 40px; }
  .tc-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .tc-trust__grid > div:nth-child(3) { border-left: 0; }
  .tc-trust__grid > div:nth-child(n+3) { border-top: 1px solid var(--tc-line); }
  .tc-svc, .tc-posts { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .tc-cta__in { flex-direction: column; align-items: flex-start; }
  .tc-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .tc-footer__brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 24px; }
  .tc-footer__brand p { margin: 0 !important; max-width: none; }
  .tc-footer__brand .tc-social { grid-column: 2; margin-top: 4px; }
  .tc-footer__logo { grid-row: span 2; }
  .tc-thero__in { min-height: 0; padding-bottom: 28px; }
  .tc-thero::after { background: linear-gradient(180deg, rgba(251, 246, 234, .82), rgba(251, 246, 234, .95)); }
}
@media (max-width: 600px) {
  .tc-wrap { padding-left: 16px; padding-right: 16px; }
  .tc-sec { padding: 44px 0; }
  .tc-head { margin-bottom: 24px; }
  .tc-head--mt { margin-top: 44px; }
  .tc-hero h1 { font-size: 40px; }
  .tc-hero__btns { gap: 12px; }
  .tc-hbtn { flex: 1 1 100%; justify-content: center; min-height: 58px; font-size: 19px; }
  .tc-today { display: flex; width: 100%; }
  /* dải cam kết: băng vuốt ngang, thẻ nhỏ gọn */
  .tc-trust__grid { display: flex; gap: 10px; padding: 12px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tc-trust__grid::-webkit-scrollbar { display: none; }
  .tc-trust__grid > div, .tc-trust__grid > div + div, .tc-trust__grid > div:nth-child(n+3) { flex: 0 0 76%; scroll-snap-align: start; gap: 10px; padding: 10px 12px; border: 1px solid var(--tc-line); border-radius: 12px; background: var(--tc-paper); }
  .tc-scope .tc-trust .tc-ic--d { width: 32px; height: 32px; flex: none; }
  .tc-trust p { font-size: 12.5px; line-height: 1.35; }
  .tc-trust b { font-size: 14px; }
  .tc-feat { grid-template-columns: 1fr; }
  .tc-feat__card { flex-direction: row; }
  .tc-feat__img { position: relative; width: 112px; aspect-ratio: auto; flex: none; }
  .tc-feat__img img { position: absolute; inset: 0; }
  .tc-feat__card { min-height: 124px; }
  .tc-feat__body { padding: 14px 14px 14px 16px; }
  .tc-feat h3 { font-size: 17px; padding-right: 30px; margin-bottom: 4px; }
  .tc-feat p { font-size: 13.5px; }
  .tc-feat__go { top: 14px; right: 12px; width: 26px; height: 26px; }
  .tc-tools { --tc-cols: 3; --tc-gap: 10px; }
  .tc-tool { flex-direction: column; text-align: center; gap: 8px; padding: 14px 6px; min-height: 0; }
  .tc-tool__name { font-size: 13px; }
  .tc-tool > .tc-ic { display: none; }
  .tc-head--row { align-items: center; }
  .tc-cta__btns { width: 100%; }
  .tc-cta__btn { flex: 1 1 100%; }
  .tc-footer__grid { gap: 28px 14px; padding-top: 46px; }
  .tc-footer__grid > * { grid-column: 1 / -1; }
  .tc-footer__brand { display: block; text-align: center; }
  .tc-footer__brand p { margin: 16px auto 0 !important; }
  .tc-footer__brand .tc-social { justify-content: center; margin-top: 16px; }
  .tc-scope.tc-footer h3 { margin-bottom: 10px; }
  .tc-footer__links li { margin-bottom: 0; }
  .tc-scope.tc-footer h3 { font-size: 15px; gap: 8px; }
  .tc-scope.tc-footer h3 .tc-ic--d { width: 22px; height: 22px; }
  .tc-footer__links a { gap: 8px; font-size: 14px; }
  .tc-footer__ic { width: 28px; height: 28px; }
  .tc-footer__bottom-in { justify-content: center; text-align: center; }
  .tc-thero__in { padding-top: 16px; }
  .tc-crumb { font-size: 13px; margin-bottom: 12px; }
  .tc-thero h1 { font-size: 34px; }
  .tc-thero__lead { font-size: 15px; }
  .tc-scope .tc-thero__badges { gap: 10px; margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); }
  .tc-thero__badges li { flex-direction: column; text-align: center; gap: 4px; font-size: 11.5px; }
  .tc-thero__badges b { font-size: 12.5px; }
  .tc-scope .tc-thero__badges .tc-ic--d { width: 32px; height: 32px; }
  .tc-toolpage__body { padding-top: 20px; padding-bottom: 40px; }
  .tc-scope .tc-tabs > button { gap: 6px; min-height: 44px; padding: 8px 4px; font-size: 13px; text-align: center; white-space: nowrap; }
  .ptc-xd .tc-col-6 { grid-column: 1 / -1; }
  .tc-scope .tc-tabs > button .tc-ic { display: none; }
  .tc-form, .tc-pane { padding: 16px 14px 18px; }
  .tc-scope .tc-form__title { font-size: 18px; margin-bottom: 12px; }
  .tc-scope .tc-form__title .tc-ic--d { width: 24px; height: 24px; }
  .tc-grid { gap: 12px 10px; }
  .tc-col-8, .tc-col-9, .tc-m-full, .tc-col-6.tc-field:has(.tc-switch) { grid-column: 1 / -1; }
  .tc-col-3 { grid-column: span 6; }
  .tc-col-4:not(.tc-field:has(select)) { grid-column: 1 / -1; }
  /* ngày giờ: Năm / Tháng / Ngày trên 1 hàng, Giờ / Phút hàng dưới; bỏ icon cho đủ chỗ */
  .tc-dt { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 8px; }
  .tc-dt > .tc-field { grid-column: span 2; } /* Hàng 2: Ngày, Tháng, Năm */
  .tc-dt > .tc-field:nth-child(-n+2) { grid-column: span 3; } /* Hàng 1: Giờ, Phút */
  .tc-dt .tc-ctl--ic > .tc-ic:first-child { display: none; }
  .tc-scope .tc-dt .tc-ctl--ic :is(.tc-input, .tc-select) { padding-left: 10px; padding-right: 24px; background-position: right 6px center; }
  .tc-scope .tc-dt .tc-ctl--ic .tc-input { padding-right: 8px; }
  .tc-hint--side { margin: -4px 0 0 !important; }
  .tc-switch { padding: 7px 12px; }
  .tc-note { font-size: 12.5px; padding: 8px 12px; }
  .tc-scope .tc-ctl--ic .tc-select { padding-left: 34px; padding-right: 26px; background-position: right 8px center; }
  .tc-ctl--ic > .tc-ic:first-child { left: 10px; width: 17px; height: 17px; }
  /* nút Làm mới thu thành ô vuông chỉ có icon (chữ vẫn còn cho trình đọc màn hình) */
  .tc-form__btns { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; }
  .tc-scope .tc-form__btns .tc-fbtn--line { padding: 0; gap: 0; font-size: 0; letter-spacing: 0; }
  .tc-scope .tc-form__btns .tc-fbtn { height: 50px; }
  .tc-scope .tc-form__btns .tc-fbtn--red { font-size: 16px; padding: 0 12px; }
  .tc-form__btns--3 { grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .tc-scope .tc-form__btns--3 .tc-fbtn--red, .tc-scope .tc-form__btns--3 .tc-fbtn--gold { gap: 6px; padding: 0 8px; font-size: 14px; letter-spacing: 0; line-height: 1.15; text-align: center; }
  .tc-scope .tc-form__btns--3 .tc-fbtn .tc-ic, .tc-scope .tc-form__btns--3 .tc-fbtn--red .tc-taiji { flex: none; width: 18px; height: 18px; }
  .tc-result { width: calc(100vw - 32px); }
  .tc-result__head { padding: 14px 16px; }
  .tc-result #tuvi-result-wrap { padding: 12px; }
  .tc-footer__brand, .tc-footer__grid > div:last-child { grid-column: 1 / -1; }
  .tc-skin :is(.kymon-form, .ln-form, .lk-form-hvl, .nt-search-box, .ptc-mh-content, .ptc-lh-content, .ptc-sdt-content, .ptc-sr-content, .ptc-nn-content) { padding: 16px 14px 18px; }
  .tc-skin :is(.ptc-mh-tab-header, .ptc-lh-tab-header, .ptc-sdt-tab-header, .ptc-sr-tab-header, .ptc-nn-tab-header) > button { font-size: 14px; min-height: 44px; padding: 8px 6px; }
  .tc-skin :is(.kymon-btn, .ln-btn-primary, #mh-submit-btn, .lh-btn-submit, #sdt-submit-btn, #sr-submit-btn, #nn-submit-btn, .lk-btn-primary, .ptc-nt-btn-primary) { width: 100%; min-width: 0; }
  /* nút chính + Làm mới cùng 1 hàng */
  .tc-skin :is(.sdt-actions, .ptc-sr-actions, .ptc-nn-actions) { flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
  .tc-skin :is(#sdt-submit-btn, #sr-submit-btn, #nn-submit-btn) { flex: 1 1 auto; width: auto; min-width: 0; padding: 0 8px; font-size: 15px; letter-spacing: 0; white-space: nowrap; }
  .tc-skin :is(#sdt-reset-btn, #sr-reset-btn, #nn-reset-btn) { flex: 0 0 auto; width: auto; padding: 0 12px; white-space: nowrap; }
  /* lưới ngày giờ của plugin: 3 ô / hàng (lưới 6 cột; nếu đúng 5 ô thì 2 ô cuối chia đôi hàng dưới) */
  .tc-skin :is(.kymon-dt-grid--6, .ln-dt-grid-6, .ln-dt-grid-5, .mh-dt-grid-6, .sdt-dt-grid-5, .lh-dt-grid-5) { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 10px 8px; }
  .tc-skin :is(.kymon-dt-grid--6, .ln-dt-grid-6, .ln-dt-grid-5, .mh-dt-grid-6, .sdt-dt-grid-5, .lh-dt-grid-5) > * { grid-column: span 2; min-width: 0; }
  .tc-skin :is(.kymon-dt-grid--6, .ln-dt-grid-6, .ln-dt-grid-5, .mh-dt-grid-6, .sdt-dt-grid-5, .lh-dt-grid-5) > :is(:nth-child(1):nth-last-child(5), :nth-child(2):nth-last-child(4)) { grid-column: span 3; } /* 5 ô: Giờ, Phút / Ngày, Tháng, Năm */
  .tc-skin .ln-row-2:has([id*="gioi"], [name*="gioi"]) { grid-template-columns: minmax(0, 1fr) 96px; }
  .tc-skin :is(.kymon-dt-grid--6, .ln-dt-grid-6, .ln-dt-grid-5, .mh-dt-grid-6, .sdt-dt-grid-5, .lh-dt-grid-5) select { width: 100%; padding-left: 10px; padding-right: 24px; background-position: right 6px center; }
  .tc-skin #ptc-luchao-wrap .lh-hao-table select { font-size: 13.5px; padding-right: 22px; background-position: right 4px center; }
}

/* ═════════ Tìm kiếm (header + bảng tìm kiếm + ô dùng chung) ═════════ */
.tc-scope .tc-search-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--tc-line); border-radius: 50%; background: var(--tc-card); color: var(--tc-red-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tc-scope .tc-search-btn:hover, .tc-scope .tc-search-btn[aria-expanded="true"] { background: var(--tc-red); border-color: var(--tc-red); color: #fff; }
.tc-scope .tc-search-btn .tc-ic--d { width: 30px; height: 30px; }

.tc-search { position: fixed; inset: 0; z-index: 100001; background: rgba(30, 18, 8, .5); }
.tc-search[hidden] { display: none; }
.tc-search__panel { padding: calc(var(--tc-top) + 20px) 0 26px; background: var(--tc-paper-2); border-bottom: 1px solid var(--tc-line); box-shadow: 0 18px 40px rgba(40, 20, 5, .25); animation: tc-drop .2s ease-out; max-height: 100vh; overflow-y: auto; }
@keyframes tc-drop { from { transform: translateY(-16px); opacity: 0; } }
.tc-search__top { display: flex; align-items: center; gap: 12px; }
.tc-search__top .tc-sform { flex: 1; }
.tc-scope .tc-search__close { flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--tc-ink); cursor: pointer; }
.tc-search__close:hover { background: #efe3c9; }
.tc-search__close .tc-ic { width: 26px; height: 26px; margin: auto; }
.tc-search__label { margin: 20px 0 10px !important; font-size: 13px; font-weight: 700; color: var(--tc-muted); text-transform: uppercase; letter-spacing: .06em; }

.tc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--tc-line); border-radius: 999px; background: var(--tc-card); font-size: 14.5px; font-weight: 500; color: var(--tc-ink) !important; transition: background .2s, border-color .2s, color .2s; }
.tc-chip:hover { background: #f6ead2; border-color: var(--tc-gold); color: var(--tc-red) !important; }
.tc-chip--tool { padding-left: 8px; }
.tc-scope .tc-chip .tc-ic--d { width: 26px; height: 26px; }

.tc-sform { position: relative; display: flex; align-items: center; margin: 0; }
.tc-sform > .tc-ic--d:first-of-type { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; pointer-events: none; }
.tc-scope .tc-sform .tc-sform__input {
  flex: 1; min-width: 0; width: 100%; height: 52px; margin: 0; padding: 0 128px 0 46px;
  border: 1.5px solid var(--tc-line); border-radius: 999px; background: #fff; box-shadow: 0 2px 6px rgba(60, 35, 10, .05);
  font: 400 16px/1 var(--tc-sans); color: var(--tc-ink); -webkit-appearance: none; appearance: none;
}
.tc-scope .tc-sform .tc-sform__input::placeholder { color: #a8957c; }
.tc-scope .tc-sform .tc-sform__input:focus { outline: 0; border-color: var(--tc-gold); box-shadow: 0 0 0 4px rgba(184, 134, 47, .18); }
.tc-sform__input::-webkit-search-cancel-button { cursor: pointer; }
.tc-scope .tc-sform .tc-sform__btn {
  position: absolute; right: 5px; top: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 6px;
  margin: 0; padding: 0 20px; min-height: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #a92424, var(--tc-red-2)); color: #fff; font: 600 15px/1 var(--tc-sans); letter-spacing: 0; text-transform: none; box-shadow: none;
}
.tc-scope .tc-sform .tc-sform__btn:hover { background: var(--tc-red-dark); }
.tc-scope .tc-sform__btn .tc-ic--d { display: none; width: 30px; height: 30px; }
.tc-scope .tc-sform--lg .tc-sform__input, .tc-scope .tc-sform--hero .tc-sform__input { height: 58px; font-size: 17px; }
.tc-sform--drawer { margin-bottom: 6px; }
.tc-scope .tc-sform--drawer .tc-sform__input { height: 48px; padding-right: 56px; font-size: 15px; }
.tc-scope .tc-sform--drawer .tc-sform__btn { padding: 0 8px; }
.tc-scope .tc-sform--drawer .tc-sform__btn span { display: none; }
.tc-scope .tc-sform--drawer .tc-sform__btn .tc-ic--d { display: block; }

/* ô tìm kiếm (block widget) ở thanh bên bài viết — sửa chiều cao/lề của Flatsome làm ô bị lệch */
body.tc-ui #secondary .wp-block-search__inside-wrapper { display: flex; align-items: center; height: 46px; border-radius: 999px !important; border-color: var(--tc-line) !important; background: #fff !important; }
body.tc-ui #secondary .wp-block-search__input { flex: 1 1 auto; width: auto !important; min-width: 0; height: 100% !important; margin: 0 !important; padding: 0 16px !important; font-size: 15px !important; }
/* thanh bên hẹp → nút chỉ còn icon kính lúp (chữ "Tìm kiếm" vẫn có trong aria-label của block) */
body.tc-ui #secondary .wp-block-search__button { flex: none; width: 38px !important; height: 38px; margin: 3px 3px 3px 0 !important; min-height: 0; padding: 0 !important; border-radius: 50% !important; font-size: 0 !important; color: transparent !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20'/%3E%3C/svg%3E") center / 20px no-repeat, linear-gradient(180deg, #a92424, #7c1414) !important; }

/* ═════════ Trang tin tức / tìm kiếm (tc-ui/archive.php) ═════════ */
.tc-bhero { position: relative; overflow: hidden; border-bottom: 1px solid var(--tc-line);
  background: radial-gradient(ellipse at 85% 0%, rgba(233, 211, 161, .55), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(155, 28, 28, .07), transparent 50%), #f6ecd8; }
.tc-bhero::after { content: ""; position: absolute; right: -60px; top: 50%; width: 360px; height: 360px; transform: translateY(-50%); border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(184, 134, 47, .28); box-shadow: 0 0 0 26px rgba(184, 134, 47, .06), 0 0 0 27px rgba(184, 134, 47, .2), 0 0 0 70px rgba(184, 134, 47, .05), 0 0 0 71px rgba(184, 134, 47, .16); }
.tc-bhero__in { position: relative; z-index: 1; padding-top: 24px; padding-bottom: 36px; }
.tc-bhero h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.12; font-weight: 700; }
.tc-bhero__lead { max-width: 640px; margin: 10px 0 22px !important; font-size: 16.5px; color: var(--tc-text); }
.tc-bhero .tc-sform { max-width: 640px; }

.tc-catbar { position: sticky; top: calc(var(--tc-top) + 76px); z-index: 40; background: rgba(251, 247, 238, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--tc-line); }
.tc-catbar__scroll { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.tc-catbar__scroll::-webkit-scrollbar { display: none; }
.tc-catbar a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--tc-line); background: var(--tc-card); font-size: 14.5px; font-weight: 600; color: var(--tc-ink); scroll-snap-align: start; transition: background .2s, color .2s; }
.tc-catbar a:hover { color: var(--tc-red); border-color: var(--tc-gold); }
.tc-catbar a[aria-current] { background: linear-gradient(180deg, #a92424, var(--tc-red-2)); border-color: var(--tc-red-2); color: #fff; }
.tc-catbar small { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #f1e3c3; color: var(--tc-muted); font-size: 12px; font-weight: 600; }
.tc-catbar a[aria-current] small { background: rgba(255, 255, 255, .22); color: #fff; }

.tc-blog .tc-side { position: static; }
.tc-blog__main { display: grid; gap: 22px; align-content: start; min-width: 0; }
.tc-posts--2 { grid-template-columns: repeat(2, 1fr); }
.tc-post__img { position: relative; }
.tc-post__img--ph { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fbefd3, #ecd6a6); }
.tc-scope .tc-post__img--ph .tc-ic--d { width: 76px; height: 76px; }
.tc-post__tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(124, 20, 20, .92); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.tc-scope .tc-post__title { font-family: var(--tc-serif); font-size: 19px; line-height: 1.35; margin-bottom: 8px; }
.tc-post__title a:hover { color: var(--tc-red); }
.tc-scope .tc-post__meta .tc-ic--d { width: 18px; height: 18px; }
.tc-post--lead { display: grid; grid-template-columns: 1.1fr 1fr; }
.tc-post--lead .tc-post__img { aspect-ratio: auto; min-height: 300px; }
.tc-post--lead .tc-post__img img { position: absolute; inset: 0; }
.tc-post--lead .tc-post__body { padding: 26px 28px; justify-content: center; }
.tc-scope .tc-post--lead .tc-post__title { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; margin-bottom: 12px; }
.tc-post--lead p { flex: 0 1 auto; font-size: 15.5px; }
.tc-post--lead .tc-post__meta { align-items: center; }
.tc-post__more { margin-left: auto; }

.tc-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.tc-pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--tc-line); background: var(--tc-card); font-weight: 600; color: var(--tc-ink); }
.tc-pager a.page-numbers:hover { border-color: var(--tc-gold); color: var(--tc-red); }
.tc-pager .page-numbers.current { background: var(--tc-red); border-color: var(--tc-red); color: #fff; }
.tc-pager .page-numbers.dots { border: 0; background: none; }
.tc-pager .prev .tc-ic { transform: rotate(180deg); }
.tc-pager .tc-ic { width: 18px; height: 18px; }

.tc-empty { padding: 40px 24px; text-align: center; background: var(--tc-card); border: 1px dashed #d6c09a; border-radius: var(--tc-radius); }
.tc-scope .tc-empty > .tc-ic--d { width: 64px; height: 64px; margin: 0 auto 8px; }
.tc-empty h2 { font-size: 24px; margin-bottom: 6px !important; }
.tc-empty p { color: var(--tc-muted); margin-bottom: 18px !important; }
.tc-empty .tc-chips { justify-content: center; }

.tc-pop { margin: 0; padding: 6px 8px 8px; list-style: none; counter-reset: pop; }
.tc-pop li { counter-increment: pop; }
.tc-pop li + li { border-top: 1px dashed var(--tc-line); }
.tc-pop a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: var(--tc-ink); }
.tc-pop a:hover { background: #f6ead2; color: var(--tc-red); }
.tc-pop__img { position: relative; flex: none; width: 64px; height: 52px; border-radius: 8px; overflow: hidden; background: #efe4cc; }
.tc-pop__img img { width: 100%; height: 100%; object-fit: cover; }
.tc-pop__img::after { content: counter(pop); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 0 0 8px 0; background: var(--tc-red); color: #fff; font-size: 12px; font-weight: 700; }
.tc-pop b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.tc-pop small { color: var(--tc-muted); font-size: 12.5px; }

@media (max-width: 1100px) {
  .tc-post--lead { grid-template-columns: 1fr; }
  .tc-post--lead .tc-post__img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 900px) {
  .tc-header__in { gap: 10px; }
  .tc-header__in > .tc-lang { display: none; }
  .tc-scope .tc-search-btn { margin-left: auto; }
  .tc-scope .tc-burger { margin-left: 0; }
  .tc-catbar { top: calc(var(--tc-top) + 64px); }
  .tc-bhero::after { width: 240px; height: 240px; right: -90px; }
  .tc-posts.tc-posts--2 { grid-template-columns: repeat(2, 1fr); max-width: none; }
}
@media (max-width: 600px) {
  .tc-scope .tc-search-btn { width: 42px; height: 42px; }
  .tc-search__panel { padding-top: calc(var(--tc-top) + 12px); }
  .tc-search__top { gap: 6px; }
  .tc-scope .tc-search__close { width: 44px; height: 44px; }
  .tc-scope .tc-sform .tc-sform__input, .tc-scope .tc-sform--lg .tc-sform__input, .tc-scope .tc-sform--hero .tc-sform__input { height: 52px; padding-right: 58px; font-size: 16px; }
  .tc-scope .tc-sform .tc-sform__btn { padding: 0 8px; }
  .tc-scope .tc-sform .tc-sform__btn span { display: none; }
  .tc-scope .tc-sform .tc-sform__btn .tc-ic--d { display: block; }
  .tc-chip { min-height: 38px; padding: 0 13px; font-size: 14px; }
  .tc-bhero__in { padding-top: 14px; padding-bottom: 24px; }
  .tc-bhero h1 { font-size: 30px; }
  .tc-bhero__lead { font-size: 15px; margin-bottom: 16px !important; }
  .tc-posts.tc-posts--2 { grid-template-columns: 1fr; }
  .tc-post--lead .tc-post__body { padding: 18px 18px 20px; }
  .tc-post__more { margin-left: 0; }
  .tc-blog__main { gap: 16px; }
}

/* ═════════ Popup "Đặt lịch tư vấn" (trang chủ, form dat-lich của plugin PTC Liên hệ) ═════════ */
.tc-modal { position: fixed; inset: 0; z-index: 100001; display: grid; place-items: center; padding: 16px; background: rgba(30, 18, 8, .55); }
.tc-modal[hidden] { display: none; }
.tc-modal__panel { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 18px; background: var(--tc-card); border: 1px solid var(--tc-line); box-shadow: 0 24px 60px rgba(40, 20, 5, .35); animation: tc-pop .2s ease-out; }
@keyframes tc-pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.tc-modal__panel::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--tc-red-2), var(--tc-gold), var(--tc-red-2)); }
.tc-modal .tc-cform { padding: 22px 24px 24px; }
.tc-modal .tc-cform h2 { font-size: 26px; padding-right: 40px; }
.tc-scope .tc-modal__close { position: absolute; right: 10px; top: 16px; z-index: 1; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--tc-ink); cursor: pointer; }
.tc-modal__close:hover { background: #efe3c9; }
.tc-modal__close .tc-ic { width: 24px; height: 24px; margin: auto; }
.tc-scope .tc-modal .tc-cform textarea.tc-input { min-height: 130px; }
.tc-modal .tc-fbtn--red .tc-zalo { background: #fff; color: #0068ff; }
@media (max-width: 600px) {
  .tc-modal { place-items: end stretch; padding: 0; }
  .tc-modal__panel { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; border-bottom: 0; animation: tc-sheet .22s ease-out; }
  @keyframes tc-sheet { from { transform: translateY(40px); opacity: 0; } }
  .tc-modal .tc-cform { padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); }
  .tc-modal .tc-cform h2 { font-size: 23px; }
  .tc-scope .tc-modal__close { top: 12px; right: 6px; }
}

/* ═════════ Khối "Đặt lịch luận giải" trên lá số (tc_booking_bar) ═════════ */
.tc-book { padding: 22px 22px 6px; text-align: center; }
.tc-scope .tc-book__title { font-size: 24px; margin: 0 0 4px; }
.tc-book__lead { margin: 0 auto 16px !important; max-width: 640px; color: var(--tc-muted); font-size: 15px; }
/* 3 nút mỗi hàng; hàng cuối thiếu nút thì các nút giãn ra lấp đầy (5 nút → 3 + 2) */
.tc-book__grid { display: flex; flex-wrap: wrap; gap: 12px; max-width: 980px; margin: 0 auto; }
.tc-book__grid > .tc-book__btn { flex: 1 1 calc((100% - 36px) / 4); }
.tc-book__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 62px; padding: 10px 12px; border-radius: 12px; color: #fff !important; text-align: center; box-shadow: 0 6px 14px rgba(40, 20, 5, .14); transition: transform .2s, box-shadow .2s, filter .2s; }
.tc-book__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(40, 20, 5, .2); filter: brightness(1.05); }
.tc-book__btn b { font-size: 15.5px; font-weight: 700; line-height: 1.2; }
.tc-book__ic { display: grid; place-items: center; height: 22px; }
.tc-book__ic .tc-ic { width: 22px; height: 22px; }
.tc-zalo--chip { width: 30px; height: 20px; border-radius: 6px; background: #fff; color: #0068ff; font-size: 9.5px; }
.tc-book__btn--call  { background: linear-gradient(135deg, #e53e3e, #b91c1c); }
.tc-book__btn--zalo  { background: linear-gradient(135deg, #1a8cff, #0068ff); }
.tc-book__btn--tele  { background: linear-gradient(135deg, #37aee2, #1e96c8); }
.tc-book__btn--wa    { background: linear-gradient(135deg, #2bd66a, #17a34a); }
.tc-book__btn--msg   { background: linear-gradient(135deg, #9b3cf5, #2f7cf6); }
.tc-book__btn--group { background: linear-gradient(135deg, #e0912a, #b45309); }
.tc-book__btn--fb    { background: linear-gradient(135deg, #2f6bf2, #1d4ed8); }
@media (max-width: 600px) {
  .tc-book { padding: 16px 12px 4px; }
  .tc-scope .tc-book__title { font-size: 21px; }
  .tc-book__lead { font-size: 14px; }
  .tc-book__grid { gap: 10px; }
  .tc-book__grid > .tc-book__btn { flex-basis: calc((100% - 10px) / 2); }
  .tc-book__btn b { font-size: 14.5px; }
}
/* khối đặt lịch gắn vào trang công cụ dùng form plugin (tc-ui.js) — tự có nền thẻ */
.tc-book--tool { margin: 18px 0; padding: 20px 20px 18px; border: 1px solid var(--tc-line); border-radius: 16px; background: var(--tc-card); box-shadow: var(--tc-shadow); }
.tc-book--tool[hidden] { display: none; }
@media (max-width: 600px) { .tc-book--tool { padding: 16px 12px 14px; } }

/* ═════════ Hero trang chủ dạng slider (3 slide, tc-ui.js) ═════════ */
.tc-hero--slider::after { display: none; }
.tc-hero__slides { display: grid; }
.tc-slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.tc-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.tc-slide::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(251, 246, 234, .96) 0%, rgba(251, 246, 234, .9) 30%, rgba(251, 246, 234, .55) 48%, rgba(251, 246, 234, 0) 64%); }
.tc-hero--slider .tc-hero__in { padding-top: 40px; padding-bottom: 110px; }
.tc-slide .tc-hero__text { opacity: 0; transform: translateY(16px); transition: opacity .7s ease .25s, transform .7s ease .25s; }
.tc-slide.is-active .tc-hero__text { opacity: 1; transform: none; }
.tc-scope .tc-hero__h { margin: 0; font-family: var(--tc-serif); font-size: clamp(42px, 5.6vw, 68px); line-height: 1.05; font-weight: 700; color: var(--tc-red-2); }
/* dải "Hôm nay" chạy chữ phải → trái ở đầu hero (chung cho cả 3 slide) */
.tc-hero__topbar { position: relative; z-index: 3; display: block; background: rgba(255, 250, 240, .92); border-bottom: 1px solid var(--tc-line); box-shadow: 0 2px 8px rgba(60, 35, 10, .06); color: var(--tc-ink); font-size: 14.5px; }
.tc-hero__topin { display: flex; align-items: center; gap: 14px; height: 44px; }
.tc-hero__badge { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 28px; padding: 0 12px 0 8px; border-radius: 999px; background: linear-gradient(180deg, #a92424, var(--tc-red-2)); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.tc-scope .tc-hero__badge .tc-ic--d { width: 20px; height: 20px; }
.tc-hero__more { display: inline-flex; align-items: center; gap: 2px; flex: none; color: var(--tc-red); font-weight: 600; font-size: 13.5px; }
.tc-hero__more .tc-ic { width: 16px; height: 16px; }
.tc-hero__topbar:hover .tc-tick__run { animation-play-state: paused; }
/* chân hero: điều khiển slide */
.tc-hero__foot { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 3; display: flex; align-items: center; justify-content: flex-end; }
.tc-tick { flex: 1; min-width: 0; overflow: hidden; color: var(--tc-ink); font-weight: 500; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tc-tick__run { display: inline-flex; animation: tc-tick 24s linear infinite; }
.tc-tick__run > span { padding-right: 56px; }
@keyframes tc-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tc-hero__nav { display: flex; align-items: center; gap: 12px; }
.tc-scope .tc-hero__arrow { display: grid; place-items: center; width: 42px; height: 42px; margin: 0; padding: 0; border-radius: 50%; border: 1px solid var(--tc-line); background: rgba(255, 252, 245, .9); color: var(--tc-red-2); cursor: pointer; transition: background .2s, color .2s; }
.tc-scope .tc-hero__arrow:hover { background: var(--tc-red); border-color: var(--tc-red); color: #fff; }
.tc-hero__arrow[data-dir="-1"] .tc-ic { transform: rotate(180deg); }
.tc-hero__arrow .tc-ic { width: 18px; height: 18px; }
.tc-hero__dots { display: flex; gap: 8px; }
.tc-scope .tc-hero__dots button { width: 10px; height: 10px; margin: 0; padding: 0; min-height: 0; border: 0; border-radius: 10px; background: rgba(124, 20, 20, .25); cursor: pointer; transition: width .3s, background .3s; }
.tc-scope .tc-hero__dots button.is-active { width: 28px; background: var(--tc-red); }
/* ── Thanh điều hướng dưới màn hình (di động) ── */
.tc-tabbar { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  #cong-cu { scroll-margin-top: calc(var(--tc-top) + 76px); }
  .tc-scope.tc-tabbar { display: grid; grid-template-columns: 1fr 1.35fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; padding-bottom: env(safe-area-inset-bottom); background: #fffaf0; border-top: 1px solid var(--tc-line); box-shadow: 0 -3px 12px rgba(70, 40, 10, .1); }
  .tc-scope .tc-tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; margin: 0; padding: 6px 2px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #6f6456 !important; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-align: center; text-transform: none; cursor: pointer; }
  .tc-scope .tc-tabbar__item svg { display: block; width: 24px; height: 24px; }
  .tc-scope .tc-tabbar__item[aria-current] { color: var(--tc-red) !important; font-weight: 700; box-shadow: inset 0 2px 0 var(--tc-red); }
  /* Nút chat nổi: đẩy lên trên thanh */
  #fsdWrap { bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
  #fsdBubble { bottom: calc(146px + env(safe-area-inset-bottom)) !important; }
}
@media print { .tc-tabbar { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .tc-slide, .tc-slide .tc-hero__text { transition: none; }
  .tc-tick__run { animation: none; }
  .tc-tick__run > span + span { display: none; }
}
@media (max-width: 900px) {
  .tc-hero--slider { padding-top: 0; }
  .tc-slide { padding-top: 56%; }
  .tc-slide::after { display: none; }
  .tc-hero--slider .tc-hero__in { padding-bottom: 8px; }
  .tc-hero__foot { position: static; justify-content: center; padding-bottom: 28px; }
  .tc-hero__topin { height: 40px; gap: 10px; }
  .tc-hero__more { display: none; }
}

/* Ảnh lá số các công cụ (Tứ Trụ, Kỳ Môn, Mai Hoa, Lục Nhâm, Lục Hào, quẻ Số điện thoại, Serial tiền): thu vừa 1 màn hình, bấm để xem cỡ đầy đủ (Tử Vi có rule riêng trong plugin) */
#tutu-laso-img, #kymon-laso-img, #mh-laso-img, #ln-laso-img, #lh-laso-img, #sdt-result-img, #sr-result-img { width: auto !important; max-width: 100% !important; height: auto !important; max-height: calc(100vh - 112px); margin-left: auto; margin-right: auto; display: block; cursor: zoom-in; }
#tutu-laso-img.is-full, #kymon-laso-img.is-full, #mh-laso-img.is-full, #ln-laso-img.is-full, #lh-laso-img.is-full, #sdt-result-img.is-full, #sr-result-img.is-full, #nn-result-img.is-full { width: 100% !important; max-height: none; cursor: zoom-out; }
/* Mai Hoa: khi có kết quả (ảnh trái + lá số chữ phải) dùng hết bề ngang, menu công cụ xuống dưới */
.tc-toolpage--maihoa .tc-toolpage__body:has(.mh-split.is-split) { grid-template-columns: 1fr; }
.tc-toolpage--maihoa .tc-toolpage__body:has(.mh-split.is-split) .tc-side { position: static; }
.tc-toolpage--maihoa .tc-toolpage__body:has(.mh-split.is-split) .tc-side nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px; }
/* Quẻ có lá số chữ bên phải (Kỳ Môn, Mai Hoa, Lục Hào, Số điện thoại, Serial): ảnh quẻ cao kéo tới mép dưới màn hình,
   rộng theo đúng tỷ lệ ảnh (tối đa 66% bề ngang), cột chữ lấy phần còn lại */
@media (min-width: 900px) {
  .tc-toolpage :is(.kymon-split, .mh-split, .lh-split).is-split { grid-template-columns: fit-content(66%) minmax(0, 1fr) !important; }
  .tc-toolpage .kymon-split.is-split #kymon-laso-img,
  .tc-toolpage .mh-split.is-split #mh-laso-img,
  .tc-toolpage .lh-split.is-split :is(#lh-laso-img, #sdt-result-img, #sr-result-img) { height: calc(100vh - 100px) !important; width: auto !important; max-width: 100% !important; max-height: none !important; object-fit: contain; object-position: left top; }
}
/* Lục Hào, Số điện thoại, Serial: khi có kết quả (ảnh quẻ + lá số chữ) bỏ cột menu bên phải xuống dưới, quẻ dùng hết bề ngang */
:is(.tc-toolpage--luchao, .tc-toolpage--sdt, .tc-toolpage--serial) .tc-toolpage__body:has(.lh-split.is-split) { grid-template-columns: 1fr; }
:is(.tc-toolpage--luchao, .tc-toolpage--sdt, .tc-toolpage--serial) .tc-toolpage__body:has(.lh-split.is-split) .tc-side { position: static; }
:is(.tc-toolpage--luchao, .tc-toolpage--sdt, .tc-toolpage--serial) .tc-toolpage__body:has(.lh-split.is-split) .tc-side nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px; }
.tc-toolpage .tc-toolpage__body:has(.lh-split.is-split) :is(.lh-wrap, .sdt-wrap, #ptc-serial-wrap, #ptc-sdt-result-body, #ptc-serial-result-body) { max-width: none !important; }
/* Tứ Trụ: lá số 1 cột dọc, giữ menu công cụ bên phải; ảnh cao từ dưới menu trên tới mép dưới màn hình (giữ tỷ lệ), bấm để xem cỡ đầy đủ */
@media (min-width: 900px) {
  .tc-toolpage--tutru #tutu-laso-img:not(.is-full) { max-height: calc(100vh - 96px); }
}
/* Trang chủ: khối "Đặt lịch luận giải" dưới danh sách công cụ (cùng kiểu thẻ như trên trang công cụ) */
.tc-book-home > .tc-book { margin: 28px auto 0; max-width: 1100px; padding: 20px 20px 18px; border: 1px solid var(--tc-line); border-radius: 16px; background: var(--tc-card); box-shadow: var(--tc-shadow); }
@media (max-width: 600px) { .tc-book-home > .tc-book { padding: 16px 12px 14px; } }

/* ═════════ Trang dịch vụ tư vấn (tc-ui/page-service.php) ═════════ */
.tc-srv__body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; padding-top: 40px; padding-bottom: 64px; }
.tc-srv__main { min-width: 0; display: grid; gap: 32px; }
.tc-srv__side { position: sticky; top: calc(var(--tc-top) + 92px); display: grid; gap: 16px; min-width: 0; }
.tc-srv-prose { padding: 30px 34px; background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 16px; box-shadow: var(--tc-shadow); font-size: 16.5px; line-height: 1.75; color: var(--tc-text); }
.tc-scope .tc-srv-prose h2 { margin: 30px 0 12px; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.3; color: var(--tc-red-2); }
.tc-scope .tc-srv-prose h2:first-child { margin-top: 0; }
.tc-scope .tc-srv-prose h3 { margin: 22px 0 8px; font-size: 19px; line-height: 1.35; color: var(--tc-ink); }
.tc-scope .tc-srv-prose p { margin: 0 0 14px; }
.tc-scope .tc-srv-prose ul, .tc-scope .tc-srv-prose ol { margin: 0 0 16px; padding-left: 22px; }
.tc-scope .tc-srv-prose ul { list-style: disc; } .tc-scope .tc-srv-prose ol { list-style: decimal; }
.tc-srv-prose li { margin-bottom: 6px; }
.tc-srv-prose li::marker { color: var(--tc-red); }
.tc-srv-prose a { color: var(--tc-red); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(155, 28, 28, .35); }
.tc-srv-prose a:hover { text-decoration-color: currentColor; }
.tc-srv-prose strong { color: var(--tc-ink); }
.tc-srv-prose blockquote { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--tc-gold); border-radius: 0 10px 10px 0; background: #fbf4e4; font-size: 15.5px; }
.tc-srv-prose blockquote p:last-child { margin: 0; }

.tc-scope .tc-srv-faq h2 { margin-bottom: 14px; font-size: clamp(22px, 2.4vw, 27px); }
.tc-srv-faq details { margin-bottom: 10px; border: 1px solid var(--tc-line); border-radius: 12px; background: var(--tc-card); box-shadow: var(--tc-shadow); }
.tc-srv-faq summary { position: relative; padding: 15px 48px 15px 18px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; color: var(--tc-ink); }
.tc-srv-faq summary::-webkit-details-marker { display: none; }
.tc-srv-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--tc-red); }
.tc-srv-faq details[open] summary::after { content: "−"; }
.tc-srv-faq details p { margin: 0 !important; padding: 0 18px 16px; font-size: 15.5px; line-height: 1.7; color: var(--tc-text); }

.tc-srv-box { padding: 18px; background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 16px; box-shadow: var(--tc-shadow); }
.tc-srv-box--card { padding: 0; overflow: hidden; }
.tc-srv-box__art { aspect-ratio: 16 / 8; overflow: hidden; border-bottom: 1px solid var(--tc-line); }
.tc-srv-box__art svg { display: block; width: 100%; height: 100%; }
.tc-srv-box__in { display: grid; gap: 10px; padding: 18px; }
.tc-scope .tc-srv-box__in h2 { font-size: 21px; }
.tc-scope .tc-srv-check { display: grid; gap: 7px; margin: 0 0 6px; padding: 0; list-style: none; }
.tc-srv-check li { display: flex; gap: 8px; font-size: 15px; line-height: 1.45; }
.tc-srv-check .tc-ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--tc-red); }
.tc-scope .tc-srv-box__in .tc-fbtn { width: 100%; }
.tc-scope .tc-srv-box__h { margin-bottom: 10px; font-size: 18px; }
.tc-srv-links { display: grid; gap: 4px; }
.tc-srv-links a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 8px; border-radius: 10px; color: var(--tc-ink); transition: background .2s; }
.tc-srv-links a:hover { background: #f6ead2; }
.tc-srv-links__ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f4e6c8; }
.tc-scope .tc-srv-links__ic .tc-ic { width: 22px; height: 22px; }
.tc-srv-links b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.tc-srv-links small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--tc-muted); }

/* thẻ dịch vụ ở trang chủ: ảnh + tiêu đề dẫn tới trang dịch vụ */
.tc-svc__img a { display: block; height: 100%; }
.tc-scope .tc-svc h3 a { color: inherit; }
.tc-scope .tc-svc h3 a:hover { color: var(--tc-red); }
.tc-svc__acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: auto; }

@media (max-width: 1100px) { .tc-srv__body { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; } }
@media (max-width: 900px) {
  .tc-srv__body { grid-template-columns: minmax(0, 1fr); padding-top: 24px; padding-bottom: 40px; }
  .tc-srv__side { position: static; }
}
@media (max-width: 600px) {
  .tc-srv-prose { padding: 20px 18px; font-size: 16px; }
}
/* Bài viết SEO dưới mỗi công cụ (nội dung trang, khối .tc-tool-article) */
.tc-scope .tc-tool-article { margin-top: 36px; padding: 30px 34px; background: var(--tc-card); border: 1px solid var(--tc-line); border-radius: 16px; box-shadow: var(--tc-shadow); font: 400 16.5px/1.75 var(--tc-sans); color: var(--tc-text); text-align: left; }
.tc-scope .tc-tool-article h2 { margin: 30px 0 12px; font-family: var(--tc-serif); font-size: clamp(22px, 2.4vw, 27px); font-weight: 700; line-height: 1.3; color: var(--tc-red-2); text-transform: none; letter-spacing: 0; }
.tc-scope .tc-tool-article h2:first-child { margin-top: 0; }
.tc-scope .tc-tool-article h3 { margin: 22px 0 8px; font-family: var(--tc-serif); font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--tc-ink); text-transform: none; letter-spacing: 0; }
.tc-scope .tc-tool-article p { margin: 0 0 14px; font-size: inherit; line-height: inherit; color: inherit; }
.tc-scope .tc-tool-article ul, .tc-scope .tc-tool-article ol { margin: 0 0 16px; padding-left: 22px; }
.tc-scope .tc-tool-article ul { list-style: disc; } .tc-scope .tc-tool-article ol { list-style: decimal; }
.tc-scope .tc-tool-article li { margin: 0 0 6px; font-size: inherit; line-height: inherit; }
.tc-tool-article li::marker { color: var(--tc-red); }
.tc-scope .tc-tool-article a { color: var(--tc-red); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(155, 28, 28, .35); }
.tc-scope .tc-tool-article a:hover { text-decoration-color: currentColor; }
.tc-tool-article strong { color: var(--tc-ink); }
.tc-scope .tc-tool-article blockquote { margin: 18px 0; padding: 14px 18px; border: 0; border-left: 4px solid var(--tc-gold); border-radius: 0 10px 10px 0; background: #fbf4e4; font-size: 15.5px; font-style: normal; color: var(--tc-text); }
.tc-scope .tc-tool-article blockquote p:last-child { margin: 0; }
@media (max-width: 600px) { .tc-scope .tc-tool-article { margin-top: 24px; padding: 20px 18px; font-size: 16px; } }