/* =========================================================================
 * TestMBTI — giao diện riêng: header, logo, mega menu, trang chủ, hiệu ứng
 * ====================================================================== */

:root {
  --tm-purple: #88619a;
  --tm-purple-dark: #77518a;
  --tm-green:  #33a474;
  --tm-blue:   #4298b4;
  --tm-yellow: #d99a1f;

  --tm-purple-soft: #f1eaf5;
  --tm-green-soft:  #e4f3ec;
  --tm-blue-soft:   #e3f0f5;
  --tm-yellow-soft: #fbf1dc;

  --tm-ink:    #2b3244;
  --tm-muted:  #5f6a7d;
  --tm-paper:  #ffffff;
  --tm-mist:   #f6f8fb;
  --tm-line:   #e6e9f0;

  --tm-display: "Be Vietnam Pro", "Segoe UI", Roboto, sans-serif;
  --tm-body: "Nunito Sans", "Segoe UI", Roboto, sans-serif;

  --tm-ease: cubic-bezier(.22,.68,.28,1);

  /* Dải 4 màu nhóm tính cách, dùng lại ở chân header */
  --tm-spectrum: linear-gradient(90deg,
    #9a7ab0 0%, #9a7ab0 25%,
    #3fb583 25%, #3fb583 50%,
    #52a8c8 50%, #52a8c8 75%,
    #e0aa33 75%, #e0aa33 100%);
}

/* -------------------------------------------------------------------------
 * 1. Hiệu ứng vào trang
 * Chỉ ẩn nội dung khi JS bật (Flatsome thêm class "js" vào <html> ngay trong
 * <head>), nên không bị trắng trang nếu JS lỗi hay bị tắt.
 * ---------------------------------------------------------------------- */
html.js .tm-reveal {
  opacity: 0;
  transform: translateY(16px);
}
html.js.tm-ready .tm-reveal {
  opacity: 1;
  transform: none;
  transition: opacity .65s var(--tm-ease), transform .65s var(--tm-ease);
  transition-delay: var(--tm-d, 0ms);
}

/* -------------------------------------------------------------------------
 * 2. Logo
 * ---------------------------------------------------------------------- */
#logo .tm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
  color: #fff;
}
/* Trên nền header sáng thì chữ quay về màu mực */
.header-main:not(.nav-dark) #logo .tm-brand,
.header-bottom:not(.nav-dark) #logo .tm-brand {
  color: var(--tm-ink);
}
#logo .tm-brand:hover,
#logo .tm-brand:focus-visible { color: inherit; }

#logo .tm-brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: block;
  overflow: visible;
}
#logo .tm-brand-word {
  font-family: var(--tm-display);
  font-size: 21px;
  letter-spacing: -.02em;
  white-space: nowrap;
  text-transform: none;
  color: inherit;
}
#logo .tm-brand-word i {
  font-style: normal;
  font-weight: 600;
  opacity: .7;
}
#logo .tm-brand-word b {
  font-weight: 800;
}

/* Các chấm nảy vào khi tải trang */
html.js .tm-brand-mark circle { opacity: 0; transform: scale(.2); transform-origin: center; transform-box: fill-box; }
html.js.tm-ready .tm-brand-mark circle {
  animation: tm-pop .5s var(--tm-ease) forwards;
  animation-delay: calc(var(--i, 0) * 22ms);
}
@keyframes tm-pop {
  from { opacity: 0; transform: scale(.2); }
  60%  { opacity: 1; transform: scale(1.12); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 549px) {
  #logo .tm-brand-word { font-size: 18px; }
  #logo .tm-brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
}

/* -------------------------------------------------------------------------
 * 3. Header
 * ---------------------------------------------------------------------- */
.header-main { position: relative; }

/* Dải 4 màu mỏng ở chân header — nhắc lại 4 nhóm tính cách trong logo */
.header-main::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--tm-spectrum);
  z-index: 3;
  pointer-events: none;
}

/* Menu chính trên desktop (bỏ qua ô tìm kiếm và menu di động) */
.header-main ul.header-nav-main > li:not(.header-search-form) { position: relative; }

.header-main ul.header-nav-main > li:not(.header-search-form) > a.nav-top-link {
  font-family: var(--tm-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  text-transform: none;
  color: rgba(255,255,255,.84);
  transition: color .18s var(--tm-ease);
}
.header-main ul.header-nav-main > li:not(.header-search-form) > a.nav-top-link:hover,
.header-main ul.header-nav-main > li:not(.header-search-form):focus-within > a.nav-top-link,
.header-main ul.header-nav-main > li.active:not(.header-search-form) > a.nav-top-link {
  color: #fff;
}
.header-main ul.header-nav-main > li.active:not(.header-search-form) > a.nav-top-link {
  font-weight: 700;
}

/* Header nền sáng thì đổi màu chữ cho đọc được */
.header-main:not(.nav-dark) ul.header-nav-main > li:not(.header-search-form) > a.nav-top-link {
  color: var(--tm-muted);
}
.header-main:not(.nav-dark) ul.header-nav-main > li:not(.header-search-form) > a.nav-top-link:hover,
.header-main:not(.nav-dark) ul.header-nav-main > li.active:not(.header-search-form) > a.nav-top-link {
  color: var(--tm-ink);
}

/* Thanh chỉ mục đang xem, nằm sát đáy header */
.header-main ul.header-nav-main > li:not(.header-search-form)::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #fff;
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: center;
  transition: opacity .2s var(--tm-ease), transform .2s var(--tm-ease);
  z-index: 4;
}
.header-main ul.header-nav-main > li:not(.header-search-form):hover::after {
  opacity: .55;
  transform: scaleX(1);
}
.header-main ul.header-nav-main > li.active:not(.header-search-form)::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Ô tìm kiếm */
.header-main .header-search-form .search-field {
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-family: var(--tm-body);
  font-size: 14px;
  box-shadow: none;
  transition: background .2s var(--tm-ease), border-color .2s var(--tm-ease);
}
.header-main .header-search-form .search-field::placeholder {
  color: rgba(255,255,255,.62);
}
.header-main .header-search-form .search-field:focus {
  background: rgba(255,255,255,.17);
  border-color: rgba(255,255,255,.45);
  outline: none;
  box-shadow: none;
}
.header-main .header-search-form .ux-search-submit,
.header-main .header-search-form .ux-search-submit:hover {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: rgba(255,255,255,.85);
}
.header-main .header-search-form .ux-search-submit:hover { color: #fff; }

/* Header dính khi cuộn: thêm chút đổ bóng cho tách khỏi nội dung */
.stuck .header-main { box-shadow: 0 6px 20px rgba(16,24,44,.18); }

@media (max-width: 849px) {
  .header-main::after { height: 2px; }
}

/* -------------------------------------------------------------------------
 * 4. Mega menu "Các loại tính cách"
 * ---------------------------------------------------------------------- */
.header-nav li.tm-has-mega { position: relative; }

.header-nav li.tm-has-mega > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .65;
  transition: transform .2s var(--tm-ease), opacity .2s var(--tm-ease);
}
.header-nav li.tm-has-mega:hover > a::after,
.header-nav li.tm-has-mega:focus-within > a::after {
  opacity: 1;
  transform: translateY(1px) rotate(225deg);
}

.tm-mega {
  position: absolute;
  top: 100%;
  left: var(--tm-mega-left, 0px);
  z-index: 999;
  width: min(940px, calc(100vw - 40px));
  padding: 26px 26px 22px;
  background: var(--tm-paper);
  border: 1px solid var(--tm-line);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(24,32,54,.16);
  font-family: var(--tm-body);
  text-align: left;
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .18s var(--tm-ease), transform .18s var(--tm-ease), visibility .18s;
}
.tm-mega::before {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--tm-mega-arrow, 50%);
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  background: var(--tm-paper);
  border-left: 1px solid var(--tm-line);
  border-top: 1px solid var(--tm-line);
  transform: rotate(45deg);
  border-radius: 3px 0 0 0;
}
.tm-mega::after {
  /* cầu nối vô hình để chuột rê xuống không bị mất panel */
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.header-nav li.tm-has-mega:hover > .tm-mega,
.header-nav li.tm-has-mega:focus-within > .tm-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(10px);
}

.tm-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 30px;
}
.tm-mega-group h4 {
  margin: 0 0 4px;
  font-family: var(--tm-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.tm-mega-group p {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--tm-muted);
}
.tm-mega-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tm-mega-chips a {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 12px;
  border-radius: 9px;
  font-family: var(--tm-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  text-transform: none;
  transition: transform .16s var(--tm-ease), filter .16s var(--tm-ease);
}
.tm-mega-chips a span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  opacity: .78;
}
.tm-mega-chips a:hover,
.tm-mega-chips a:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  color: #fff;
}

.tm-mega-group.is-analysts  h4 { color: var(--tm-purple); }
.tm-mega-group.is-diplomats h4 { color: var(--tm-green); }
.tm-mega-group.is-sentinels h4 { color: var(--tm-blue); }
.tm-mega-group.is-explorers h4 { color: var(--tm-yellow); }
.tm-mega-group.is-analysts  .tm-mega-chips a { background: var(--tm-purple); }
.tm-mega-group.is-diplomats .tm-mega-chips a { background: var(--tm-green); }
.tm-mega-group.is-sentinels .tm-mega-chips a { background: var(--tm-blue); }
.tm-mega-group.is-explorers .tm-mega-chips a { background: var(--tm-yellow); }

.tm-mega-all {
  display: inline-block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--tm-line);
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: var(--tm-ink);
  text-decoration: none;
  text-transform: none;
}
.tm-mega-all:hover { color: var(--tm-purple); }

@media (max-width: 849px) {
  .tm-mega { display: none; }
  .header-nav li.tm-has-mega > a::after { display: none; }
}

/* -------------------------------------------------------------------------
 * 5. Trang chủ
 * ---------------------------------------------------------------------- */
.tm-home {
  font-family: var(--tm-body);
  color: var(--tm-ink);
  background: var(--tm-paper);
}
.tm-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Hero --- */
.tm-hero {
  position: relative;
  padding: 48px 0 34px;
  background: linear-gradient(180deg, var(--tm-mist) 0%, #fdfdfe 70%, var(--tm-paper) 100%);
  text-align: center;
  overflow: hidden;
}
.tm-hero-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  display: block;
  overflow: visible;
}
html.js .tm-hero-mark circle { opacity: 0; transform: scale(.2); transform-origin: center; transform-box: fill-box; }
html.js.tm-ready .tm-hero-mark circle {
  animation: tm-pop .55s var(--tm-ease) forwards;
  animation-delay: calc(120ms + var(--i, 0) * 30ms);
}

.tm-eyebrow {
  margin: 0 0 12px;
  font-family: var(--tm-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tm-muted);
}
.tm-hero h1 {
  margin: 0 auto;
  max-width: 15ch;
  font-family: var(--tm-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--tm-ink);
}

/* --- Ba bước --- */
.tm-steps {
  padding: 34px 0 0;
  background: var(--tm-paper);
}
.tm-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.tm-card {
  position: relative;
  padding: 26px 24px 28px;
  background: var(--tm-paper);
  border: 1px solid var(--tm-line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .22s var(--tm-ease), box-shadow .22s var(--tm-ease);
}
.tm-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--tm-card-color, var(--tm-blue));
}
.tm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(24,32,54,.09);
}
.tm-card-art {
  display: block;
  width: 100%;
  height: 128px;
  margin-bottom: 18px;
}
.tm-card-step {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--tm-card-soft, var(--tm-blue-soft));
  color: var(--tm-card-color, var(--tm-blue));
  font-family: var(--tm-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.tm-card h3 {
  margin: 0 0 8px;
  font-family: var(--tm-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.25;
  color: var(--tm-ink);
}
.tm-card p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.62;
  color: var(--tm-muted);
}
.tm-card.is-blue   { --tm-card-color: var(--tm-blue);   --tm-card-soft: var(--tm-blue-soft); }
.tm-card.is-green  { --tm-card-color: var(--tm-green);  --tm-card-soft: var(--tm-green-soft); }
.tm-card.is-purple { --tm-card-color: var(--tm-purple); --tm-card-soft: var(--tm-purple-soft); }

/* --- Dải sóng ngăn cách --- */
.tm-wave {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: 30px;
  color: var(--tm-mist);
}

/* --- Khu vực bài test --- */
.tm-quiz {
  padding: 4px 0 44px;
  background: var(--tm-mist);
}
.tm-quiz-head {
  text-align: center;
  margin-bottom: 20px;
}
.tm-quiz-head h2 {
  margin: 0 0 8px;
  font-family: var(--tm-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--tm-ink);
}
.tm-quiz-head p {
  margin: 0;
  color: var(--tm-muted);
  font-size: .98rem;
}
.tm-quiz-box {
  max-width: 860px;
  margin: 0 auto;
  padding: 6px 22px 22px;
  background: var(--tm-paper);
  border: 1px solid var(--tm-line);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(24,32,54,.06);
}

/* Tiêu đề sẵn có của plugin trùng với hero → ẩn, và thu gọn khoảng trống
   mà nó để lại trong phần đầu khung bài test.
   Khung của plugin bỏ luôn padding và margin riêng vì .tm-quiz-box đã lo. */
.tm-home .jp-quiz-title,
.tm-home .jp-quiz-description { display: none; }
.tm-home #jp-mbti-quiz-container {
  font-family: var(--tm-body);
  margin: 0 auto;
  padding: 0;
}
.tm-home .jp-quiz-header {
  padding-top: 6px;
  padding-bottom: 12px;
  margin-top: 0;
  margin-bottom: 0;
}
.tm-home .jp-quiz-info {
  margin-top: 0;
  margin-bottom: 12px;
  padding-top: 0;
}
.tm-home .jp-quiz-progress-wrapper {
  margin: 0;
  padding: 0;
}
.tm-home .jp-quiz-navigation-top {
  margin: 0;
  padding: 0;
  min-height: 0;
}
.tm-home .jp-quiz-form { margin-bottom: 0; }
.tm-home .jp-quiz-form > *:last-child { margin-bottom: 0; }

/* Nút điều hướng của bài test: bo tròn, màu tím giống hệ thống nút của site */
.tm-home .jp-quiz-navigation-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 0;
  padding-top: 18px;
  padding-bottom: 0;
  border-top: 0;
}
.tm-home #jp-next-btn,
.tm-home #jp-mbti-submit-btn,
.tm-home #jp-prev-btn {
  border: 0;
  border-radius: 999px;
  font-family: var(--tm-display);
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  cursor: pointer;
  transition: transform .18s var(--tm-ease), box-shadow .18s var(--tm-ease), background .18s var(--tm-ease);
}
.tm-home #jp-next-btn,
.tm-home #jp-mbti-submit-btn {
  min-width: 210px;
  padding: 15px 34px;
  background: var(--tm-purple);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(136,97,154,.32);
}
.tm-home #jp-next-btn:hover,
.tm-home #jp-mbti-submit-btn:hover,
.tm-home #jp-next-btn:focus-visible,
.tm-home #jp-mbti-submit-btn:focus-visible {
  background: var(--tm-purple-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(136,97,154,.42);
}
.tm-home #jp-next-btn:active,
.tm-home #jp-mbti-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(136,97,154,.3);
}
.tm-home #jp-prev-btn {
  padding: 9px 18px;
  background: transparent;
  color: var(--tm-muted);
  font-size: .86rem;
  box-shadow: none;
}
.tm-home #jp-prev-btn:hover {
  background: var(--tm-mist);
  color: var(--tm-ink);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .tm-cards { grid-template-columns: 1fr; gap: 18px; }
  .tm-card-art { height: 118px; }
  .tm-hero { padding: 34px 0 26px; }
  .tm-quiz-box { padding: 6px 14px 18px; border-radius: 18px; }
  .tm-home #jp-next-btn,
  .tm-home #jp-mbti-submit-btn { min-width: 0; width: 100%; }
  /* Thu padding ngang của câu hỏi để dành chỗ cho 7 vòng tròn */
  .tm-home .jp-question { padding: 24px 8px; }
}
@media (max-width: 600px) {
  .tm-shell { padding: 0 14px; }
  .tm-hero-mark { width: 54px; height: 54px; margin-bottom: 16px; }
  .tm-wave { height: 42px; margin-top: 24px; }
  .tm-quiz { padding-bottom: 32px; }
  .tm-quiz-box { padding: 6px 10px 16px; }

  /* Màn hình hẹp: giữ nguyên cỡ vòng tròn cho dễ bấm, cắt bớt padding lồng nhau */
  .tm-home .jp-question { padding: 22px 4px; margin-bottom: 16px; }
  .tm-home .jp-question-title { margin-bottom: 14px; }
  .tm-home .jp-likert-scale { margin-top: 14px; }
  .tm-home .jp-likert-options { gap: 3px; padding: 14px 0; }
  .tm-home .jp-likert-labels { font-size: 13px; }
}

/* -------------------------------------------------------------------------
 * 6. Tôn trọng người dùng tắt hiệu ứng chuyển động
 * ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html.js .tm-reveal { opacity: 1; transform: none; }
  html.js .tm-brand-mark circle,
  html.js .tm-hero-mark circle { opacity: 1; transform: none; animation: none; }
  .tm-card:hover { transform: none; }
  .tm-home #jp-next-btn:hover,
  .tm-home #jp-mbti-submit-btn:hover { transform: none; }
  * { scroll-behavior: auto !important; }
}

/* -------------------------------------------------------------------------
 * 7. Trang trung gian "Lấy mã để xem kết quả" (/nhan-ket-qua/)
 * Popup .dttn-l4m-* dùng CSS sẵn có của plugin đề thi; phần dưới chỉ lo
 * nền trang và thẻ thông báo, rồi đổi nút sang tông tím của TestMBTI.
 * ---------------------------------------------------------------------- */
.tm-gate {
  font-family: var(--tm-body);
  color: var(--tm-ink);
  background: var(--tm-mist);
  min-height: 60vh;
  padding: 46px 0 60px;
}
.tm-gate-shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}
.tm-gate-card {
  background: var(--tm-paper);
  border: 1px solid var(--tm-line);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(24,32,54,.07);
  padding: 34px 30px 32px;
  text-align: center;
}
.tm-gate-eyebrow {
  margin: 0 0 10px;
  font-family: var(--tm-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tm-purple);
}
.tm-gate-card h1 {
  margin: 0 0 12px;
  font-family: var(--tm-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--tm-ink);
}
.tm-gate-sub {
  margin: 0 auto 22px;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--tm-muted);
}
.tm-gate-sub strong {
  color: var(--tm-purple);
  font-weight: 800;
  letter-spacing: .02em;
}
.tm-gate-open {
  border: 0;
  border-radius: 999px;
  padding: 14px 32px;
  background: var(--tm-purple);
  color: #fff;
  font-family: var(--tm-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(136,97,154,.32);
  transition: transform .18s var(--tm-ease), box-shadow .18s var(--tm-ease), background .18s var(--tm-ease);
}
.tm-gate-open:hover,
.tm-gate-open:focus-visible {
  background: var(--tm-purple-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(136,97,154,.42);
}

/* Nút "Nhận kết quả" trong popup theo tông tím của site (chỉ trên trang này) */
.tm-gate .dttn-l4m-codebox button {
  background: var(--tm-purple);
  font-family: var(--tm-display);
}
.tm-gate .dttn-l4m-codebox button:hover { background: var(--tm-purple-dark); }
.tm-gate .dttn-l4m-codebox button:disabled { background: #b3a3bc; }
.tm-gate .dttn-l4m-h { color: var(--tm-ink); font-family: var(--tm-display); }
.tm-gate .dttn-l4m-steps strong { color: var(--tm-purple); }
.tm-gate .dttn-l4m-kw { color: var(--tm-purple); background: var(--tm-purple-soft); }

@media (max-width: 600px) {
  .tm-gate { padding: 28px 0 40px; }
  .tm-gate-shell { padding: 0 14px; }
  .tm-gate-card { padding: 26px 20px 24px; border-radius: 18px; }
  .tm-gate-open { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tm-gate-open:hover { transform: none; }
}

/* -------------------------------------------------------------------------
 * 8. Trang Giới thiệu (page-about.php)
 * ---------------------------------------------------------------------- */
.tm-about {
  font-family: var(--tm-body);
  color: var(--tm-ink);
  background: var(--tm-paper);
}
.tm-shell-narrow { max-width: 820px; }

/* Nút dùng chung cho trang này */
.tm-about .tm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border: 2px solid var(--tm-purple);
  border-radius: 999px;
  background: var(--tm-purple);
  color: #fff;
  font-family: var(--tm-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  box-shadow: 0 10px 24px rgba(136,97,154,.3);
  transition: transform .18s var(--tm-ease), box-shadow .18s var(--tm-ease), background .18s var(--tm-ease), color .18s var(--tm-ease);
}
.tm-about .tm-btn:hover,
.tm-about .tm-btn:focus-visible {
  background: var(--tm-purple-dark);
  border-color: var(--tm-purple-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(136,97,154,.4);
}
.tm-about .tm-btn.is-ghost {
  background: transparent;
  color: var(--tm-purple);
  border-color: var(--tm-line);
  box-shadow: none;
}
.tm-about .tm-btn.is-ghost:hover {
  background: var(--tm-purple-soft);
  border-color: var(--tm-purple);
  color: var(--tm-purple);
}

/* --- Hero --- */
.tm-ab-hero {
  padding: 52px 0 44px;
  background: linear-gradient(180deg, var(--tm-mist) 0%, #fdfdfe 72%, var(--tm-paper) 100%);
  text-align: center;
}
.tm-ab-hero h1 {
  margin: 0 auto 18px;
  max-width: 17ch;
  font-family: var(--tm-display);
  font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  color: var(--tm-ink);
}
.tm-ab-lead {
  margin: 0 auto;
  max-width: 60ch;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--tm-muted);
}
.tm-ab-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

/* --- Dải con số --- */
.tm-ab-stats { padding: 0 0 8px; background: var(--tm-paper); }
.tm-ab-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 22px 10px;
  border-top: 1px solid var(--tm-line);
  border-bottom: 1px solid var(--tm-line);
}
.tm-ab-stat { text-align: center; }
.tm-ab-stat strong {
  display: block;
  font-family: var(--tm-display);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--tm-purple);
}
.tm-ab-stat span {
  display: block;
  margin-top: 4px;
  font-size: .86rem;
  color: var(--tm-muted);
}

/* --- Khối chung --- */
.tm-ab-section { padding: 56px 0; background: var(--tm-paper); }
.tm-ab-section.is-tint { background: var(--tm-mist); }

.tm-ab-head {
  max-width: 62ch;
  margin: 0 auto 34px;
  text-align: center;
}
.tm-ab-head h2 {
  margin: 0 0 12px;
  font-family: var(--tm-display);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.18;
  color: var(--tm-ink);
}
.tm-ab-head p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--tm-muted);
}

/* --- Năm trục --- */
.tm-axes { display: grid; gap: 16px; }
.tm-axis {
  padding: 22px 24px 24px;
  background: var(--tm-paper);
  border: 1px solid var(--tm-line);
  border-left: 4px solid var(--tm-axis, var(--tm-purple));
  border-radius: 16px;
  transition: box-shadow .22s var(--tm-ease), transform .22s var(--tm-ease);
}
.tm-axis:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(24,32,54,.08);
}
.tm-axis.is-extra { border-style: dashed; }

.tm-axis-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.tm-axis-letters {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 7px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tm-axis) 12%, #fff);
  color: var(--tm-axis);
  font-family: var(--tm-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.tm-axis-letters i { font-style: normal; opacity: .5; }
.tm-axis-head h3 {
  margin: 0 0 2px;
  font-family: var(--tm-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--tm-ink);
}
.tm-axis-head h3 em {
  font-style: normal;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--tm-muted);
}
.tm-axis-head p {
  margin: 0;
  font-size: .93rem;
  color: var(--tm-muted);
}

.tm-axis-bar {
  position: relative;
  height: 8px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--tm-axis) 55%, #fff) 0%,
    #eef1f6 50%,
    color-mix(in srgb, var(--tm-axis) 55%, #fff) 100%);
}
.tm-axis-dot {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--tm-axis);
  box-shadow: 0 2px 8px rgba(24,32,54,.16);
}

.tm-axis-sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 26px;
}
.tm-axis-sides b {
  display: block;
  margin-bottom: 3px;
  font-family: var(--tm-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--tm-axis);
}
.tm-axis-sides span {
  display: block;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--tm-muted);
}

/* --- Bốn nhóm lớn --- */
.tm-ab-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.tm-gcard {
  padding: 24px 24px 22px;
  background: var(--tm-paper);
  border: 1px solid var(--tm-line);
  border-radius: 18px;
  border-top: 4px solid var(--tm-g, var(--tm-purple));
}
.tm-gcard h3 {
  margin: 0 0 6px;
  font-family: var(--tm-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--tm-g);
}
.tm-gcard p {
  margin: 0 0 14px;
  font-size: .93rem;
  line-height: 1.62;
  color: var(--tm-muted);
}
.tm-gcard.is-analysts  { --tm-g: var(--tm-purple); }
.tm-gcard.is-diplomats { --tm-g: var(--tm-green); }
.tm-gcard.is-sentinels { --tm-g: var(--tm-blue); }
.tm-gcard.is-explorers { --tm-g: var(--tm-yellow); }

.tm-gchips { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-gchips a {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--tm-g);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  transition: transform .16s var(--tm-ease), filter .16s var(--tm-ease);
}
.tm-gchips a span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  opacity: .8;
}
.tm-gchips a:hover,
.tm-gchips a:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  color: #fff;
}

/* --- Cách chấm điểm + nói thật --- */
.tm-ab-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 40px;
  align-items: start;
}
.tm-ab-split h2 {
  margin: 0 0 18px;
  font-family: var(--tm-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: var(--tm-ink);
}
.tm-ab-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tmstep;
}
.tm-ab-steps li {
  position: relative;
  margin: 0 0 16px;
  padding-left: 44px;
  font-size: .97rem;
  line-height: 1.68;
  color: var(--tm-muted);
}
.tm-ab-steps li::before {
  counter-increment: tmstep;
  content: counter(tmstep);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tm-purple-soft);
  color: var(--tm-purple);
  font-family: var(--tm-display);
  font-size: .88rem;
  font-weight: 800;
}
.tm-ab-steps li b { color: var(--tm-ink); font-weight: 700; }

.tm-ab-note {
  padding: 26px 26px 22px;
  background: var(--tm-yellow-soft);
  border: 1px solid #f0dcb0;
  border-radius: 18px;
}
.tm-ab-note h3 {
  margin: 0 0 12px;
  font-family: var(--tm-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.015em;
  color: #8a6212;
}
.tm-ab-note p {
  margin: 0 0 12px;
  font-size: .95rem;
  line-height: 1.68;
  color: #6d5320;
}
.tm-ab-note p:last-child { margin-bottom: 0; }

/* --- Nên / không nên --- */
.tm-ab-use {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.tm-uselist {
  padding: 24px 26px 22px;
  background: var(--tm-paper);
  border: 1px solid var(--tm-line);
  border-radius: 18px;
}
.tm-uselist h3 {
  margin: 0 0 14px;
  font-family: var(--tm-display);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -.015em;
}
.tm-uselist.is-yes h3 { color: var(--tm-green); }
.tm-uselist.is-no h3  { color: #c05b5b; }
.tm-uselist ul { margin: 0; padding: 0; list-style: none; }
.tm-uselist li {
  position: relative;
  margin: 0 0 11px;
  padding-left: 30px;
  font-size: .95rem;
  line-height: 1.62;
  color: var(--tm-muted);
}
.tm-uselist li:last-child { margin-bottom: 0; }
.tm-uselist li::before {
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.tm-uselist.is-yes li::before { content: "\2713"; background: var(--tm-green-soft); color: var(--tm-green); }
.tm-uselist.is-no li::before  { content: "\00d7"; background: #fbeaea; color: #c05b5b; font-size: 14px; }

/* --- FAQ --- */
.tm-faq { display: grid; gap: 10px; }
.tm-faq-item {
  background: var(--tm-paper);
  border: 1px solid var(--tm-line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .18s var(--tm-ease), box-shadow .18s var(--tm-ease);
}
.tm-faq-item[open] {
  border-color: #d9cfe1;
  box-shadow: 0 10px 26px rgba(24,32,54,.06);
}
.tm-faq-item summary {
  position: relative;
  padding: 17px 52px 17px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--tm-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.45;
  color: var(--tm-ink);
}
.tm-faq-item summary::-webkit-details-marker { display: none; }
.tm-faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2.5px solid var(--tm-purple);
  border-bottom: 2.5px solid var(--tm-purple);
  transform: rotate(45deg);
  transition: transform .2s var(--tm-ease);
}
.tm-faq-item[open] summary::after {
  margin-top: -2px;
  transform: rotate(225deg);
}
.tm-faq-item summary:hover { color: var(--tm-purple); }
.tm-faq-body {
  padding: 0 22px 20px;
  font-size: .96rem;
  line-height: 1.72;
  color: var(--tm-muted);
}
.tm-faq-body p { margin: 0; }

/* --- Nội dung soạn thêm trong trình soạn thảo --- */
.tm-ab-extra { font-size: 1rem; line-height: 1.75; color: var(--tm-muted); }
.tm-ab-extra h2, .tm-ab-extra h3 { font-family: var(--tm-display); color: var(--tm-ink); }

/* --- CTA cuối --- */
.tm-ab-final {
  padding: 58px 0 64px;
  background: linear-gradient(180deg, var(--tm-paper) 0%, var(--tm-mist) 100%);
  text-align: center;
}
.tm-ab-final-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  display: block;
  overflow: visible;
}
.tm-ab-final h2 {
  margin: 0 auto 10px;
  max-width: 20ch;
  font-family: var(--tm-display);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.16;
  color: var(--tm-ink);
}
.tm-ab-final p {
  margin: 0 auto 24px;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--tm-muted);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .tm-ab-groups,
  .tm-ab-use { grid-template-columns: 1fr; }
  .tm-ab-split { grid-template-columns: 1fr; gap: 28px; }
  .tm-ab-section { padding: 44px 0; }
}
@media (max-width: 600px) {
  .tm-ab-hero { padding: 34px 0 32px; }
  .tm-ab-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .tm-ab-cta { flex-direction: column; }
  .tm-about .tm-btn { width: 100%; }
  .tm-axis { padding: 18px 16px 20px; }
  .tm-axis-head { gap: 12px; }
  .tm-axis-letters { padding: 6px 11px; font-size: .95rem; }
  .tm-axis-sides { grid-template-columns: 1fr; gap: 12px; }
  .tm-gcard { padding: 20px 18px; }
  .tm-uselist { padding: 20px 18px; }
  .tm-faq-item summary { padding: 15px 44px 15px 16px; font-size: .96rem; }
  .tm-faq-item summary::after { right: 16px; }
  .tm-faq-body { padding: 0 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .tm-axis:hover { transform: none; }
  .tm-gchips a:hover { transform: none; }
  .tm-about .tm-btn:hover { transform: none; }
}

/* Dự phòng cho trình duyệt cũ chưa hỗ trợ color-mix() */
@supports not (background: color-mix(in srgb, red 50%, white)) {
  .tm-axis-letters { background: #f2f4f8; }
  .tm-axis-bar {
    background: linear-gradient(90deg, #dfe4ec 0%, #eef1f6 50%, #dfe4ec 100%);
  }
}

/* Trên màn hẹp, bỏ ngắt dòng thủ công ở tiêu đề để chữ xuống dòng tự nhiên */
@media (max-width: 600px) {
  .tm-ab-hero h1 br { display: none; }
  .tm-ab-hero h1 { max-width: 20ch; }
}

/* -------------------------------------------------------------------------
 * 9. Trang Liên hệ (page-contact.php)
 * Dùng lại hero, section, nút và hộp ghi chú của trang Giới thiệu.
 * ---------------------------------------------------------------------- */
.tm-contact .tm-ct-top { padding-top: 40px; }

.tm-ct-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tm-ct-card {
  --tm-c: var(--tm-purple);
  display: block;
  padding: 26px 26px 24px;
  background: var(--tm-paper);
  border: 1px solid var(--tm-line);
  border-radius: 20px;
  text-decoration: none;
  text-transform: none;
  transition: transform .2s var(--tm-ease), box-shadow .2s var(--tm-ease), border-color .2s var(--tm-ease);
}
.tm-ct-card:hover,
.tm-ct-card:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tm-c) 45%, #fff);
  box-shadow: 0 16px 36px rgba(24,32,54,.1);
}
.tm-ct-card.is-mail  { --tm-c: var(--tm-purple); }
.tm-ct-card.is-phone { --tm-c: var(--tm-green); }

.tm-ct-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--tm-c) 12%, #fff);
  color: var(--tm-c);
}
.tm-ct-icon svg { width: 24px; height: 24px; display: block; }

.tm-ct-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--tm-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tm-muted);
}
.tm-ct-value {
  display: block;
  margin-bottom: 8px;
  font-family: var(--tm-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--tm-c);
  overflow-wrap: anywhere;
}
.tm-ct-hint {
  display: block;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--tm-muted);
}

.tm-ct-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

.tm-ct-time {
  margin: 18px 0 0;
  text-align: center;
  font-size: .94rem;
  line-height: 1.6;
  color: var(--tm-muted);
}
.tm-ct-time strong { color: var(--tm-ink); }

/* --- Những việc nhận xử lý --- */
.tm-ct-topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.tm-ct-topic {
  position: relative;
  padding: 22px 20px 20px;
  background: var(--tm-paper);
  border: 1px solid var(--tm-line);
  border-radius: 16px;
  overflow: hidden;
}
.tm-ct-topic::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--tm-t, var(--tm-purple));
}
.tm-ct-topic h3 {
  margin: 0 0 7px;
  font-family: var(--tm-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.3;
  color: var(--tm-ink);
}
.tm-ct-topic p {
  margin: 0;
  font-size: .91rem;
  line-height: 1.6;
  color: var(--tm-muted);
}
.tm-ct-topic.is-purple { --tm-t: var(--tm-purple); }
.tm-ct-topic.is-green  { --tm-t: var(--tm-green); }
.tm-ct-topic.is-blue   { --tm-t: var(--tm-blue); }
.tm-ct-topic.is-yellow { --tm-t: var(--tm-yellow); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .tm-ct-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tm-contact .tm-ct-top { padding-top: 28px; }
  .tm-ct-cards { grid-template-columns: 1fr; gap: 14px; }
  .tm-ct-card { padding: 22px 18px 20px; }
  .tm-ct-topics { grid-template-columns: 1fr; gap: 14px; }
  .tm-ct-quick { flex-direction: column; margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .tm-ct-card:hover { transform: none; }
}

@supports not (background: color-mix(in srgb, red 50%, white)) {
  .tm-ct-icon { background: var(--tm-mist); }
}

/* -------------------------------------------------------------------------
 * 10. Footer (UX Block "Footer")
 * ---------------------------------------------------------------------- */
.tm-foot {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px 34px;
  font-family: var(--tm-body);
  color: var(--tm-muted);
  text-align: left;
}

.tm-foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1fr;
  gap: 34px 28px;
}

/* --- Cột thương hiệu --- */
.tm-foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
  line-height: 1;
  color: var(--tm-ink);
}
.tm-foot-logo:hover { color: var(--tm-purple); }
.tm-foot-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: block;
}
.tm-foot-word {
  font-family: var(--tm-display);
  font-size: 19px;
  letter-spacing: -.02em;
  text-transform: none;
  color: inherit;
}
.tm-foot-word i { font-style: normal; font-weight: 600; opacity: .7; }
.tm-foot-word b { font-weight: 800; }

.tm-foot-blurb {
  margin: 0 0 14px;
  max-width: 34ch;
  font-size: .92rem;
  line-height: 1.65;
  color: var(--tm-muted);
}

.tm-foot-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tm-foot-contact li {
  margin: 0 0 6px;
  font-size: .92rem;
  line-height: 1.5;
}
.tm-foot-contact a {
  font-weight: 700;
  color: var(--tm-purple);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.tm-foot-contact a:hover { color: var(--tm-purple-dark); text-decoration: underline; }
.tm-foot-contact span { color: var(--tm-muted); font-size: .85rem; }

/* --- Các cột link --- */
.tm-foot-col h4 {
  margin: 4px 0 12px;
  font-family: var(--tm-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tm-ink);
}
.tm-foot-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tm-foot-col li { margin: 0 0 9px; }
.tm-foot-col a {
  font-size: .93rem;
  line-height: 1.5;
  color: var(--tm-muted);
  text-decoration: none;
  transition: color .16s var(--tm-ease);
}
.tm-foot-col a:hover { color: var(--tm-purple); }

/* --- Dòng dưới cùng --- */
.tm-foot-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--tm-line);
}
.tm-foot-copy {
  margin: 0 0 8px;
  font-size: .9rem;
  color: var(--tm-muted);
}
.tm-foot-legal {
  margin: 0;
  max-width: 92ch;
  font-size: .8rem;
  line-height: 1.6;
  color: #8a93a3;
}
.tm-foot-legal sup { font-size: .7em; }

@media (max-width: 900px) {
  .tm-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .tm-foot-brand { grid-column: 1 / -1; }
  .tm-foot-blurb { max-width: none; }
}
@media (max-width: 600px) {
  .tm-foot { padding: 34px 16px 28px; }
  .tm-foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .tm-foot-bottom { margin-top: 26px; }
}
