/* Giao diện cho các modal/thông báo do js/tf-modals.js tạo (đăng tin, chi tiết tin, đề nghị, thông báo, hồ sơ).
   Dùng lại .tfx-overlay / .tfx-modal / .tfx-field / .tfx-btn-block / .tfx-msg (định nghĩa trong index.html).
   Biến màu (--card, --line...) được sao chép từ .page lúc mở modal (xem applyTheme trong tf-modals.js). */

.tfm-wide { max-width: 560px; }
.tfm-overlay { z-index: 1400; } /* trên thanh đăng nhập mobile (999) và popover mobile-tools (1250) */
.tfm-title { margin: 0 34px 6px 0; font-size: 20px; line-height: 1.3; }
.tfm-sub { color: var(--sub); font-size: 13px; margin: 0 0 14px; }
.tfm-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13px; color: var(--sub); margin: 8px 0; }
.tfm-price { font-size: 20px; font-weight: 800; color: var(--accent, #22d3ee); margin: 10px 0; }
.tfm-text { color: var(--text); font-size: 14px; line-height: 1.6; margin: 8px 0; white-space: pre-wrap; word-break: break-word; }
.tfm-sec { margin: 18px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sub); }
.tfm-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface2, rgba(255,255,255,.08)); color: var(--accent, #22d3ee); }
.tfm-badge.ok { background: rgba(51,224,138,.15); color: #33e08a; }
.tfm-badge.warn { background: rgba(245,185,66,.15); color: #f5b942; }
.tfm-badge.err { background: rgba(255,107,122,.15); color: #ff6b7a; }
.tfm-list { display: flex; flex-direction: column; }
.tfm-item { padding: 12px 0; border-top: 1px solid var(--line, rgba(255,255,255,.1)); }
.tfm-item:first-child { border-top: 0; }
.tfm-item.tfm-unread { background: var(--ad, rgba(34,211,238,.06)); margin: 0 -10px; padding: 12px 10px; border-radius: 10px; }
.tfm-item h4 { margin: 0 0 3px; font-size: 14px; }
.tfm-item .tfm-small { font-size: 12.5px; color: var(--sub); }
.tfm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tfm-btn { border: 1px solid var(--line2, rgba(255,255,255,.2)); background: var(--surface, transparent); color: var(--text); border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.tfm-btn:hover { border-color: var(--accent, #22d3ee); }
.tfm-btn.primary { border: 0; background: linear-gradient(135deg, var(--accent, #22d3ee), var(--a2, #3b82f6)); color: #05121a; }
.tfm-btn.ok { border-color: #33e08a; color: #33e08a; }
.tfm-btn.bad { border-color: #ff6b7a; color: #ff6b7a; }
.tfm-btn[disabled] { opacity: .5; cursor: default; }
.tfm-empty { text-align: center; color: var(--muted, var(--sub)); padding: 22px 8px; font-size: 14px; }
.tfm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .tfm-row2 { grid-template-columns: 1fr; } }
.tfm-note { border-left: 3px solid #f5b942; background: rgba(245,185,66,.08); padding: 8px 12px; border-radius: 0 8px 8px 0; font-size: 12.5px; color: var(--sub); margin: 10px 0; }

#tfmToast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 1500; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
#tfmToast div { pointer-events: auto; background: var(--card, #101b30); color: var(--text, #fff); border: 1px solid var(--line2, rgba(255,255,255,.2)); padding: 10px 18px; border-radius: 12px; font-size: 13.5px; max-width: 90vw; box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
#tfmToast .ok { border-color: #33e08a; }
#tfmToast .err { border-color: #ff6b7a; }

/* Ảnh tin đăng (đăng tin / chi tiết) */
.tfm-img { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; margin: 8px 0 12px; }
/* Bài viết tin tức & sự kiện (openArticle) */
.tfx-modal.tfm-article { max-width: 760px; } /* 2 class: .tfx-modal (index.html) nạp sau file này */
.tfm-article .tfm-title { font-size: 24px; margin-top: 4px; }
.tfm-art-cover { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; margin: 0 0 14px; }
.tfm-art-lead { color: var(--sub); font-size: 15.5px; line-height: 1.65; font-weight: 500; margin: 6px 0 18px; }
.tfm-art-h { font-size: 18px; margin: 22px 0 8px; color: var(--text); }
.tfm-art-p { font-size: 15px; line-height: 1.75; margin: 0 0 14px; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.tfm-art-fig { margin: 18px 0; }
.tfm-art-fig img { display: block; width: 100%; border-radius: 10px; }
.tfm-art-fig figcaption { font-size: 12.5px; color: var(--sub); text-align: center; margin-top: 6px; font-style: italic; }

/* ui-polish round 1 */
#heroSection::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(60% 50% at 70% 30%, var(--ag), transparent 70%);
  opacity: .6;
}
#heroSection > * {
  z-index: 1;
}
/* ui-polish round 2 */
#expertsRail {
  padding-top: 10px;
  padding-bottom: 30px !important;
  margin-top: -10px;
  margin-bottom: -24px;
}

.tf-value-grid > div {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.tf-news-grid img {
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}

@media (hover: hover) and (pointer: fine) {
  .tf-value-grid > div:hover {
    box-shadow: 0 12px 30px -10px var(--ag);
    border-color: var(--line2) !important;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .tf-value-grid > div:hover {
    transform: translateY(-3px);
  }
  
  .tf-news-grid > div:hover img {
    transform: scale(1.03);
  }
}

.tf-ticker-track:hover {
  animation-play-state: paused !important;
}

/* ui-polish round 3 — nút, focus, modal, input, toast */
:focus-visible {
  outline: 2px solid var(--accent, #22d3ee);
  outline-offset: 2px;
}

.tfx-btn-block, .tfm-btn.primary, .tfx-badge .tfx-btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform .12s ease, filter .2s ease, box-shadow .2s ease;
}
.tfx-btn-block::after, .tfm-btn.primary::after, .tfx-badge .tfx-btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.tfx-btn-block:active, .tfm-btn:active, .tf-more:active, .tfx-tab:active { transform: translateY(1px) scale(.99); }

.tfx-field input, .tfx-field select, .tfx-field textarea { transition: border-color .18s ease, box-shadow .18s ease; }
.tfx-field input:focus, .tfx-field select:focus, .tfx-field textarea:focus { box-shadow: 0 0 0 3px var(--ad, rgba(34,211,238,.15)); }
.tfm-btn, .tfx-tab { transition: border-color .18s ease, background .18s ease, transform .12s ease; }

.tfx-overlay.tfx-open { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes tfFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes tfPopIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes tfToastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tfShine { to { transform: translateX(120%); } }

@media (prefers-reduced-motion: no-preference) {
  .tfx-overlay.tfx-open { animation: tfFadeIn .18s ease; }
  .tfx-overlay.tfx-open .tfx-modal { animation: tfPopIn .26s cubic-bezier(.2,.7,.3,1); }
  #tfmToast div { animation: tfToastIn .22s ease; }
  @media (hover: hover) and (pointer: fine) {
    .tfx-btn-block:hover::after, .tfm-btn.primary:hover::after, .tfx-badge .tfx-btn-primary:hover::after { animation: tfShine .7s ease; }
    .tfx-btn-block:hover, .tfm-btn.primary:hover { filter: brightness(1.06); }
  }
}

/* ui-polish round 4 — tiến trình cuộn + lên đầu trang */
.tf-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 250;
  background: linear-gradient(90deg, var(--accent, #22d3ee), var(--a2, #3b82f6));
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}
.tf-totop {
  position: fixed; right: 28px; bottom: 100px; z-index: 79; width: 52px; height: 52px;
  border: 0; background: linear-gradient(135deg, var(--accent, #22d3ee), var(--a2, #3b82f6)); color: #05121a;
  font-size: 26px; font-weight: 800; line-height: 1; cursor: pointer;
  box-shadow: 0 14px 34px -10px var(--ag, rgba(34,211,238,.6));
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, filter .2s ease;
}
.tf-totop.tf-show { opacity: 1; transform: none; pointer-events: auto; }
.tf-totop:hover { filter: brightness(1.1); transform: translateY(-3px); }
@media (max-width: 860px) { .tf-totop { right: 16px; bottom: 150px; width: 48px; height: 48px; } }

/* desktop: chip tài khoản ở header đã có menu Đăng nhập/Đăng ký/Hồ sơ/Đăng xuất — ẩn thanh nổi đang đè lên nó */
@media (min-width: 861px) { .tfx-badge { display: none !important; } }

/* nút Đăng nhập / Đăng ký ở header (desktop; mobile dùng thanh dưới cùng) */
.tf-hd-btn {
  height: 44px; padding: 0 20px; cursor: pointer;
  border: 1px solid var(--line2); background: transparent; color: var(--text);
  font-family: 'Archivo', 'Be Vietnam Pro', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.tf-hd-btn:hover { border-color: var(--accent, #22d3ee); color: var(--accent, #22d3ee); }
.tf-hd-btn.primary { background: var(--accent, #22d3ee); border-color: var(--accent, #22d3ee); color: #05121a; }
.tf-hd-btn.primary:hover { filter: brightness(1.08); color: #05121a; }
.tf-hd-btn:active { transform: translateY(1px); }
@media (max-width: 860px) { #tfHdrGuest { display: none !important; } }

/* sidebar thu gọn: dải biểu tượng điều hướng (chỉ gợi ý — rê chuột vào thì sidebar mở rộng) */
.tf-rail-item { pointer-events: none; }
@media (max-height: 1000px) { .tf-rail-tag { display: none !important; } }

/* mobile: nút Box AI nằm trên thanh Đăng nhập/Đăng xuất ở đáy (trước bị che một nửa) */
@media (max-width: 860px) {
  div[style*="right: 28px"][style*="bottom: 28px"][style*="z-index: 80"] { bottom: 84px !important; right: 16px !important; }
}

/* sidebar: nội dung mở rộng giữ bề rộng cố định + không xuống dòng, để khung 76→248 px chỉ "hé" dần ra (không bị vỡ chữ) */
@media (min-width: 900px) {
  .page aside > *:not(.tf-sb-collapsed) { min-width: 216px; }
  .page aside span { white-space: nowrap; }
  .page aside { transition: width .28s cubic-bezier(.2,.7,.3,1), padding .28s ease !important; }
}

/* trợ năng */
.tf-skip { position: fixed; top: 8px; left: 8px; z-index: 2000; padding: 10px 16px; background: var(--accent, #22d3ee); color: #05121a; font-weight: 700; transform: translateY(-200%); }
.tf-skip:focus { transform: none; }
button, [role="button"], a, .tf-more { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) {
  .tf-ticker-track { animation: none !important; }
  .tf-progress { transition: none; }
}

/* gợi ý tìm kiếm trực tiếp */
.tf-ls { position: fixed; z-index: 260; background: var(--card); border: 1px solid var(--line2); box-shadow: 0 26px 64px -22px rgba(0,0,0,.65); max-height: 60vh; overflow-y: auto; }
.tf-ls[hidden] { display: none; }
.tf-ls-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 12px 16px; cursor: pointer; border-top: 1px solid var(--line); text-align: left; }
.tf-ls-row:first-child { border-top: 0; }
.tf-ls-row.on, .tf-ls-row:hover { background: var(--surface); }
.tf-ls-t { font-weight: 700; color: var(--text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-ls-m { grid-column: 1; color: var(--sub); font-size: 12.5px; }
.tf-ls-p { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--accent, #22d3ee); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.tf-ls-empty, .tf-ls-hint { padding: 12px 16px; color: var(--sub); font-size: 13px; text-align: left; }
.tf-ls-hint { border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* thanh cuộn ngang của "Mạng lưới chuyên gia": mảnh, màu accent thay vì thanh xám dày mặc định */
#expertsRail { scrollbar-width: thin; scrollbar-color: var(--accent, #22d3ee) transparent; }
#expertsRail::-webkit-scrollbar { height: 4px; }
#expertsRail::-webkit-scrollbar-thumb { background: var(--accent, #22d3ee); }
#expertsRail::-webkit-scrollbar-track { background: var(--line); }

/* ===== round 5 — "bản vẽ kỹ thuật": lưới giấy kẻ ly + dấu góc (crop-mark) như hình vẽ trong hồ sơ sáng chế ===== */
/* lưới nền mờ cho vùng nội dung (cuộn cùng nội dung) */
.page main {
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 38%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 38%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  background-attachment: local;
}
/* hero: lưới đậm hơn, tan dần ra mép */
#heroSection::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent, #22d3ee) 16%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent, #22d3ee) 16%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 80% at 50% 38%, #000 10%, transparent 78%);
  mask-image: radial-gradient(75% 80% at 50% 38%, #000 10%, transparent 78%);
}
/* dấu góc ở 4 góc thẻ */
.page main [style*="background: var(--card)"][style*="border: 1px solid"],
.tf-value-grid > div { position: relative; }
.page main [style*="background: var(--card)"][style*="border: 1px solid"]::before,
.tf-value-grid > div::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .75;
  --m: 10px; --c: var(--accent, #22d3ee);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--m) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 0 / 1px var(--m) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--m) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 1px var(--m) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / var(--m) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 1px var(--m) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--m) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 1px var(--m) no-repeat,
    radial-gradient(260px circle at var(--cx, -999px) var(--cy, -999px), color-mix(in srgb, var(--c) 11%, transparent), transparent 70%); /* vầng sáng trong thẻ theo con trỏ (round 7) */
  transition: opacity .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .page main [style*="background: var(--card)"][style*="border: 1px solid"]:hover::before,
  .tf-value-grid > div:hover::before { opacity: 1; }
}
.tf-value-grid > div::before { inset: -1px; } /* lưới giá trị: dấu góc ra tới đường viền để các góc kề nhau ghép thành chữ thập */
/* một khoảnh khắc chuyển động duy nhất: chuỗi xuất hiện của hero khi tải trang */
@keyframes tfHeroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes tfGridIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  #heroSection::after { animation: tfGridIn 1.6s ease both; }
  #heroSection > div:nth-child(2) > * { animation: tfHeroIn .75s cubic-bezier(.2,.7,.3,1) both; }
  #heroSection > div:nth-child(2) > :nth-child(2) { animation-delay: .08s; }
  #heroSection > div:nth-child(2) > :nth-child(3) { animation-delay: .16s; }
  #heroSection > div:nth-child(2) > :nth-child(4) { animation-delay: .24s; }
  #heroSection > div:nth-child(2) > :nth-child(5) { animation-delay: .32s; }
  #heroSection > div:nth-child(2) > :nth-child(6) { animation-delay: .4s; }
  #heroSection > div:nth-child(2) > :nth-child(7) { animation-delay: .48s; }
}

/* hero (desktop): bố cục hai cột căn trái, thay cho các quy tắc chồng chéo cũ trong index.html
   (nhiều quy tắc cũ dùng [style*="max-width:640px"] không khớp vì style bị chuẩn hoá thành "max-width: 640px") */
@media (min-width: 1025px) {
  .page #heroSection > div:not([aria-hidden]) { text-align: left !important; max-width: 640px !important; }
  .page #heroSection > div:not([aria-hidden]) > div { margin-left: 0 !important; margin-right: 0 !important; justify-content: flex-start !important; }
  .page #heroSection h1 { text-align: left !important; white-space: normal !important; line-height: 1.04 !important;
    font-size: clamp(26px, 2.7vw, 40px) !important; margin-bottom: 18px !important; }
  .page #heroSection h1 br { display: none !important; }
  .page #heroSection h1 span { display: block; margin-top: .06em; }
  .page #heroSection p { margin-left: 0 !important; margin-right: 0 !important; max-width: 520px; font-size: clamp(14px, 1.15vw, 17px) !important; }
  .page #heroSection div:has(> div > .count-num) { flex-wrap: nowrap !important; justify-content: flex-start !important; gap: clamp(24px, 3.2vw, 52px) !important; }
  .page #heroSection div:has(> div > .count-num) > div { text-align: left !important; }
  .page #heroSection .count-num { font-size: clamp(26px, 2.8vw, 40px) !important; }
}

/* ===== round 6 — chuyển động có chủ đích: trả lời hành động của người dùng hoặc làm rõ dữ liệu ===== */
@property --m  { syntax: '<length>'; inherits: false; initial-value: 10px; }
@property --mx { syntax: '<length-percentage>'; inherits: true; initial-value: 70%; }
@property --my { syntax: '<length-percentage>'; inherits: true; initial-value: 30%; }

/* chuyển màu mượt cho mọi phần tử bấm được (chip, hàng menu, thẻ) */
.page [role="button"] { transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
@media (hover: hover) and (pointer: fine) {
  main [role="button"][style*="border: 1px solid"]:hover { border-color: var(--accent, #22d3ee) !important; }
  aside [role="button"]:hover:not([style*="gradient"]) { background-color: color-mix(in srgb, var(--accent, #22d3ee) 9%, transparent); }
}

@media (prefers-reduced-motion: no-preference) {
  /* dấu góc nở ra khi rê vào thẻ */
  .page main [style*="background: var(--card)"][style*="border: 1px solid"]::before,
  .tf-value-grid > div::before { transition: opacity .25s ease, --m .3s cubic-bezier(.2,.7,.3,1); }
  @media (hover: hover) and (pointer: fine) {
    .page main [style*="background: var(--card)"][style*="border: 1px solid"]:hover::before,
    .tf-value-grid > div:hover::before { --m: 20px; }
    /* biểu tượng ở hàng menu nhích nhẹ */
    aside [role="button"] .ms { transition: transform .2s ease; }
    aside [role="button"]:hover .ms { transform: translateX(3px); }
  }

  /* biểu đồ & thanh tiến độ "mọc lên" khi trang hiện ra */
  @keyframes tfGrowY { from { transform: scaleY(0); } to { transform: none; } }
  @keyframes tfGrowX { from { transform: scaleX(0); } to { transform: none; } }
  main [style*="linear-gradient(180deg"][style*="width: 100%"] { transform-origin: 50% 100%; animation: tfGrowY .8s cubic-bezier(.2,.7,.3,1) both; }
  main [style*="linear-gradient(90deg"][style*="height: 100%"] { transform-origin: 0 50%; animation: tfGrowX .9s cubic-bezier(.2,.7,.3,1) .1s both; }
  main :nth-child(2) > [style*="linear-gradient(180deg"][style*="width: 100%"] { animation-delay: .06s; }
  main :nth-child(3) > [style*="linear-gradient(180deg"][style*="width: 100%"] { animation-delay: .12s; }
  main :nth-child(4) > [style*="linear-gradient(180deg"][style*="width: 100%"] { animation-delay: .18s; }
  main :nth-child(5) > [style*="linear-gradient(180deg"][style*="width: 100%"] { animation-delay: .24s; }
  main :nth-child(6) > [style*="linear-gradient(180deg"][style*="width: 100%"] { animation-delay: .3s; }

  /* hero: ánh sáng đi theo con trỏ (JS đặt --mx/--my), trễ nhẹ cho mượt */
  #heroSection { transition: --mx .35s ease-out, --my .35s ease-out; }
  #heroSection::before {
    background: radial-gradient(340px circle at var(--mx) var(--my), var(--ag), transparent 70%),
                radial-gradient(60% 50% at 70% 30%, var(--ag), transparent 70%);
  }
}

/* ===== round 7 — chữ kỹ thuật (JetBrains Mono) + viền sáng/vầng sáng thẻ theo con trỏ ===== */
:root { --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.page main { font-variant-numeric: tabular-nums; }

/* nhãn nhỏ, số liệu, mã → chữ đơn cách; tiêu đề/nội dung vẫn Archivo + Be Vietnam Pro */
.page .tf-eyebrow { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; }
.page .tf-eyebrow::before { content: "// "; opacity: .55; white-space: pre; }
#expertsRail .tf-eyebrow::before { content: none; } /* chức danh chuyên gia: không cần tiền tố */
.page #heroSection > div:nth-child(2) > div:first-child { font-family: var(--mono) !important; font-weight: 500 !important; letter-spacing: .08em !important; font-size: 12px !important; }
.page .count-num { font-family: var(--mono) !important; font-weight: 500 !important; letter-spacing: -.04em !important; }
.page .count-num + div { font-family: var(--mono); font-weight: 500 !important; font-size: 11.5px !important; letter-spacing: .08em !important; }
.tf-news-grid .tf-eyebrow + span { font-family: var(--mono); font-size: 11.5px !important; }
.page aside [style*="text-transform: uppercase"] { font-family: var(--mono); font-weight: 500 !important; letter-spacing: .06em !important; }
.tfm-sec, .tfm-badge, .tfm-price, .tf-ls-p, .tf-ls-m, .tf-ls-hint { font-family: var(--mono); }
.tfm-sec { font-weight: 500; letter-spacing: .06em; font-size: 12px; }
.tfm-badge { font-weight: 500; font-size: 11.5px; letter-spacing: .02em; }
.tf-ls-m, .tf-ls-hint { font-size: 11.5px; }

/* đánh số 01, 02… ở lưới giá trị (góc trên phải mỗi ô) */
.tf-value-grid { counter-reset: tfv; }
.tf-value-grid > div { counter-increment: tfv; }
.tf-value-grid > div > .ms::after {
  content: counter(tfv, decimal-leading-zero); position: absolute; top: 16px; right: 18px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; color: var(--muted);
}

/* viền sáng 1px đi theo con trỏ quanh thẻ (--cx/--cy do js/tf-scroll-ui.js đặt; ngoài thẻ thì nằm ngoài khung nên không thấy) */
.page main [style*="background: var(--card)"][style*="border: 1px solid"]::after,
.tf-value-grid > div::after {
  content: ""; position: absolute; inset: 0; padding: 1px; pointer-events: none; z-index: 2;
  background: radial-gradient(200px circle at var(--cx, -999px) var(--cy, -999px), var(--accent, #22d3ee), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.tf-value-grid > div::after { inset: -1px; }
