* { -webkit-tap-highlight-color: transparent; box-sizing: border-box;}
a {
  color: inherit;
  text-decoration: none;
}

[hidden] { display: none !important; }
[class^="ri-"],
[class*=" ri-"] {
  font-weight: 400;
  font-synthesis: none;
}
:root {
  --bg: #f1f2ef;
  --bgicon: #e8e8e8;
  --black: #333;
  --white: #fff;
  --red: #e74a30;
  --green: #1f997e;
  --border: 1px solid #777;
  --shadow-ava: 0 2px 8px rgba(0,0,0, 0.2);
  --shadow-card:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 4px 10px -4px rgba(30,40,45,0.1),
    0 24px 50px -30px rgba(30,40,45,0.3);
  --radius-pill: 999px;
  --muted: #333;
  --ease: 0.18s ease;
  --focus: var(--black);
  --press: 0.92;
  --mesh-a: #cde9e4;
  --mesh-b: #f3e3c8;
  --mesh-c: #d3e6f3;
  --glass: rgba(255,255,255,0.4);
  --glass-bold: rgba(255,255,255, 0.8);
  --rim: #ffffffd1;

  /* Icon button */
  --ib-size: 36px;
  --ib-fz: 18px;
  --ib-bg: var(--bgicon);
  --ib-color: var(--black);
  --ib-border: none;

  /* Row (menu) */
  --row-h: 46px;
  --row-pad: 16px;
}

/* blur */
.logo,
.popup-panel,
.menu-backdrop,
.bottom-nav,
.dock {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* ---------- PILL ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 0;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--black);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), scale var(--ease);
}

.btn i {
  font-size: 18px;
  line-height: 1.3;
}

.btndk {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 0;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--black);
  max-width: 170px;
  font-family: inherit;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), scale var(--ease);
}

.btndk i {
  font-size: 18px;
  line-height: 1.3;
}

.btndk:active {
  scale: var(--press);
}

.btn:disabled { cursor: default; }

/* ---------- ICON (tròn) ---------- */
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--ib-size);
  height: var(--ib-size);
  padding: 0;
  border: var(--ib-border);
  border-radius: 50%;
  background: var(--ib-bg);
  color: var(--ib-color);
  font-size: var(--ib-fz);
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), scale var(--ease);
}

.btn-icon i {
  display: block;
  line-height: 1.3;
}

/* ROW (menu) */
.menu-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-shrink: 0;
  width: 100%;
  height: var(--row-h);
  padding: 0 var(--row-pad);
  border: none;
  border-radius: 25px;
  background: transparent;
  color: var(--black);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), scale var(--ease);
}

.menu-row i {
  flex-shrink: 0;
  width: 20px;
  font-size: 20px;
  line-height: 1.3;
  text-align: center;
}

/* btn panel */
.btn:not(:disabled):active,
.btn-icon:active {
  scale: var(--press);
}

/* Menu mobile: nhấn */
@media (max-width: 767.98px) {
  .menu-panel .menu-row:active,
  .bottom-nav .menu-row:active {
    scale: var(--press);
  }
}

/* mouse */
@media (any-hover: hover) {
  html:not([data-input="touch"]) .btn:not(:disabled):hover,
  html:not([data-input="touch"]) .btn-icon:hover {
    scale: var(--press);
  }
}

/* Menu left PC: hover */
@media (min-width: 768px) and (any-hover: hover) {
  html:not([data-input="touch"]) .menu-row:not(.active):hover {
    background: var(--bgicon);
    border-radius: var(--radius-pill);
  }
}

:is(.btn, .btn-icon, .menu-row):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-icon,
  .menu-row {
    transition: none;
  }
}

.popup-card,
.menu-panel,
.dym-chip {
  color: var(--black);
  border: 1px solid var(--rim);
  background: var(--glass-bold);
  box-shadow: var(--shadow-card);
}

html, body { height: 100%; }

body {
  font-family: 'MiSans VF', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--black);
  margin: 0;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(23vmax circle at calc(100% - 31vmax) 7vmax, var(--mesh-c), transparent),
    radial-gradient(35vmax circle at calc(100% - 11vmax) calc(100% - 5vmax), var(--mesh-b), transparent),
    radial-gradient(31vmax circle at 13vmax 7vmax, var(--mesh-a), transparent);
}

input,
button,
textarea {
  font-family: inherit;
}

.content { flex: 1; padding-bottom: 90px; }

.boot-loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boot-loading .kd-spinner {
  font-size: 36px;
  color: var(--black);
}

.search-wrap {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  line-height: 1.3;
  color: var(--black);
  pointer-events: none;
  z-index: 1;
}

#search {
  width: 100%;
  padding: 14px 54px 14px 40px;
  font-size: 15px;
  border-radius: var(--radius-pill);
  outline: none;
  color: var(--black);
  border: none;
  background: var(--glass);
  box-shadow: var(--shadow-card);
}

#search::placeholder {
  color: var(--muted);
}

#search:-webkit-autofill,
#search:-webkit-autofill:hover,
#search:-webkit-autofill:focus,
#search:-webkit-autofill:active {
  -webkit-text-fill-color: var(--black);
  caret-color: var(--black);
  transition: background-color 9999s ease-in-out 0s;
}

#clear-btn,
.preview-clear-btn {
  --ib-size: 36px;
  --ib-fz: 18px;
  --ib-bg: transparent;
}

#clear-btn {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.spin-360 {
  animation: kd-spin 0.45s ease-in-out;
}

.preview-char {
  display: inline-block;
  will-change: transform, opacity;
}

.preview-trash {
  position: absolute;
  margin-left: -16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--red);
  pointer-events: none;
  opacity: 0;
  transform: scale(0);
}

.preview-size-slider {
--pct: 0.27;
-webkit-appearance: none;
appearance: none;
display: block;
flex: 1;
min-width: 0;
height: 6px;
margin: 0;
border-radius: 25px;
outline: none;
cursor: pointer;
border: none;
background: linear-gradient(#333, #333) 0 0 / calc(10px + (100% - 20px) * var(--pct)) 100% no-repeat, #e8e8e8;
}

.preview-size-value {
  min-width: 10px;
  text-align: right;
  font-size: 13px;
  color: var(--black);
  font-variant-numeric: tabular-nums;
}

.preview-size-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border-radius: 25px;
}

.preview-size-slider::-moz-range-track {
  height: 6px;
  background: transparent;
  border-radius: 25px;
}

.preview-size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 21px;
  height: 21px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--black);
  border: 3px solid var(--white);
  box-shadow:  0 2px 6px rgba(0,0,0, 0.2);
}

.preview-size-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bgicon);
  border: none;
}

.preview-text {
  position: relative;
  transition: padding-bottom 0.17s ease;
  margin-top: 14px;
  padding-top: 0.2em;
  font-size: 30px;
  line-height: 1.5;
  color: var(--black);
  word-break: break-word;
  min-height: 36px;
  text-align: center;
}

.preview-loading {
  margin-top: 12px;
  font-size: 15px;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
}

#status {
  text-align: center;
  color: var(--black);
  margin-top: 16px;
  font-size: 15px;
}

/* ----popup (thông báo / font finder / xem ảnh) ---- */
.popup-panel {
  position: fixed;
  inset: 0;
  z-index: 500;
  padding: 35px 15px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  gap: 14px;
  margin-bottom: 140px;
}

.logo-img {
  width: 44px;
  height: auto;
  flex-shrink: 0;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.logo-name {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.3;
  color: var(--black);
}

.logo-slogan {
  margin-top: 2px;
  font-size: 13.3px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 4.4px;
  color: var(--black);
}

.search-brand {
  margin-bottom: 25px;
}

.popup-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-top: 30px;
  border-radius: 25px;
  padding: 50px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#finder-popup .popup-card {
  padding: 50px 20px 20px;
}

/* Pill tiêu đề: notice / finder / menu */
.popup-title {
  position: absolute;
  top: -15px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--black);
  border: none;
  color: var(--white);
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.popup-title i { font-size: 18px; line-height: 1.3; display: block; }

.notice-msg {
  white-space: pre-line;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
}

.popup-btn-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.popup-btn {
  flex: 1;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
  width: calc(100% - 30px);
  max-width: 500px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: var(--glass-bold);
  border: 1px solid var(--rim);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  z-index: 500;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}

.menu-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.18s ease, visibility 0s;
}

.menu-panel {
  position: fixed;
  right: max(15px, calc(50% - 200px));
  bottom: 90px;
  width: calc(100% - 30px);
  max-width: 500px;
  margin: 0;
  padding: 28px 8px 8px;
  border-radius: 25px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.92);
  transform-origin: bottom right;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.menu-panel.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

.menu-scroll {
  max-height: calc(100dvh - 150px - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-item.active {
  background: transparent;
  color: var(--white);
  border-radius: var(--radius-pill);
}

/* Menu popup (Đăng nhập / Đăng ký / Finder) active trên PC */
@media (min-width: 768px) {
  .menu-panel .menu-row.active {
    background: transparent;
    color: var(--white);
    border-radius: var(--radius-pill);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-backdrop,
  .menu-backdrop.open,
  .menu-panel,
  .menu-panel.open { transition: none; }
}

#finder-popup .popup-card {
  max-height: calc(100% - 30px);
}

.finder-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.finder-video {
  display: block;
  width: 100%;
  border-radius: 14px;
  background: var(--bgicon);
}

@media (min-width: 768px) {
  #finder-popup .popup-card {
    max-width: 880px;
    padding: 50px 28px 24px;
  }
  .finder-scroll {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    gap: 32px;
  }
  .finder-media {
    flex: 1.35;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
  .finder-media .finder-video {
    flex: 1;
    min-height: 0;
    width: 100%;
    object-fit: contain;
  }
  .finder-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .finder-text .finder-head { margin-top: 0; }
  .finder-name { font-size: 24px; }
  .finder-sub, .finder-list li > div { font-size: 16px; }
}

.finder-caption {
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  color: var(--black);
}

.finder-caption i {
  font-size: 18px;
  line-height: 1.3;
}

.finder-head {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.finder-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
}

.finder-name {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--black);
}

.finder-sub {
  font-size: 15px;
  line-height: 1.3;
  color: var(--muted);
}

.finder-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.finder-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.finder-list li > i {
  font-size: 20px;
  flex-shrink: 0;
  height: 20px;
  display: flex;
  align-items: center;
  color: var(--black);
}

.finder-list li > div {
  font-size: 15px;
  line-height: 1.3;
  color: var(--black);
}

.finder-list b,
.finder-list span {
  display: block;
}

.finder-list b { font-weight: 500; }

.finder-actions { margin-top: 20px; }

@keyframes kd-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.kd-spinner {
  display: inline-block;
  animation: kd-spin 0.8s linear infinite;
  font-size: 18px;
  line-height: 1.3;
}

.demo-foot {
  border: none;
  padding: 6px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 500;
}

.demo-download .dl-count {
  font-size: 14px;
  font-style: normal;
  white-space: nowrap;
}

.demo-download .dl-sec {
  display: inline-block;
  padding: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--red);
}

.demo-download[data-counting] {
  width: auto;
  padding: 0 14px;
  border-radius: var(--radius-pill);
}

.demos-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 25px auto 0;
}

.demos-actions[hidden] { display: none; }

.back-to-top[hidden] { display: none; }

.back-to-top {
  --ib-size: 46px;
  --ib-fz: 22px;
  box-shadow: var(--shadow-card);
  background: var(--glass);
}

.demos-more {
  width: 100%;
  max-width: 200px;
  margin: 0;
  box-shadow: var(--shadow-card);
  background: var(--glass);
  color: var(--black);
}

#demos {
  max-width: 500px;
  width: 100%;
  margin: 25px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-card {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: var(--glass);
  border: 1px solid var(--rim);
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.demo-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 25px;
  padding: 8px;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.demo-name {
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
  letter-spacing: 0.3px;
}

.demo-panel {
  display: none;
  border-top: 1px solid #eaeaea;
  padding: 14px;
  cursor: default;
}

.demo-card.open .demo-panel { display: block; }

.demo-panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-align {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.demo-align-btn {
  --ib-size: 28px;
  --ib-fz: 14px;
}

.demo-align-btn.active {
  background: var(--black);
  color: var(--white);
}

.demo-text-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

.demo-variant-label {
  width: fit-content;
  margin-top: 14px;
  padding: 3px 12px;
  border-radius: 25px;
  color: var(--black);
  background: var(--bgicon);
  font-size: 12px;
}

.demo-variant-label + .demo-text-wrap .demo-preview-text {
  margin: 10px;
}

.demo-clear-btn {
  position: static;
  align-self: flex-end;
  transform: none;
  margin: 6px -10px -10px auto;
}

.demo-preview-text {
  outline: none;
  white-space: pre;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
  scrollbar-width: thin;
  scrollbar-color: var(--bgicon) transparent;
}

.demo-preview-text::-webkit-scrollbar { height: 6px; }
.demo-preview-text::-webkit-scrollbar-track { background: transparent; }
.demo-preview-text::-webkit-scrollbar-thumb {
  background: var(--bgicon);
  border-radius: 25px;
}

.demo-preview-text:empty::before {
  content: attr(data-placeholder);
  opacity: 0.4;
}

.did-you-mean {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.3;
}

.dym-chip {
  display: block;
  margin: 8px auto 0;
  padding: 8px 18px;
  border-radius: 25px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.demo-free-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

.demo-price-badge {
  flex-shrink: 0;
  margin-left: 8px;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
}

.demo-foot .demo-download { margin-left: auto; }

.menu-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 2px;
  flex-shrink: 0;
  pointer-events: none;
}

.menu-divider span {
  padding: 4px 20px;
  border-radius: var(--radius-pill);
  background: var(--bgicon);
  color: var(--black);
  font-size: 12px;
  white-space: nowrap;
}

.menu-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #999;
  opacity: .2;
}

.dock { display: contents; }
.nav-label,
.nav-zalo-icon,
.dock-footer { display: none; }
@media (min-width: 768px) {
  :root {
    --row-h: 46px;
    --icon-pad: calc((var(--row-h) - 20px) / 2);
    --row-pad: var(--icon-pad);
    --item-gap: 9px;
    --dock-collapsed: calc(var(--row-h) + 16px);
    --dock-expanded: 250px;
    --dock-w: var(--dock-expanded);
    --side-w: var(--dock-collapsed);
    --header-h: 90px;
  }

  html[data-dock="collapsed"] { --dock-w: var(--dock-collapsed); }

  .dock {
    display: flex;
    flex-direction: column;
    gap: var(--item-gap);
    position: fixed;
    top: 20px;
    bottom: 20px;
    left: 20px;
    width: var(--dock-w);
    transition: width 0.2s ease;
    padding: 8px;
    background: var(--glass);
    border-radius: 25px;
    box-shadow: var(--shadow-card);
    z-index: 1000;
  }

  .menu-backdrop,
  #menu-btn { display: none; }

  .menu-panel .menu-title { display: none; }

  .menu-panel,
  .menu-panel.open,
  .menu-scroll,
  .bottom-nav {
    display: contents;
    visibility: visible;
    transition: none;
  }

  .bottom-nav .menu-item:nth-child(1) { order: 1; }
  .bottom-nav .menu-item:nth-child(2) { order: 2; }
  .bottom-nav .menu-item:nth-child(3) { order: 3; }
  .bottom-nav .menu-item:nth-child(4) { order: 4; }
  .menu-panel .menu-divider:nth-of-type(1) { order: 5; }
  .menu-panel [data-action="finder"]       { order: 6; }
  .menu-panel [data-action="folder"]       { order: 7; }
  .menu-panel .menu-divider:nth-of-type(2) { order: 8; }
  .menu-panel a[href*="facebook.com"] { order: 9; }
  .menu-panel a[href*="m.me"]         { order: 10; }
  .menu-panel a[href*="zalo.me"]      { order: 11; }
  .menu-panel .menu-divider:nth-of-type(3) { order: 12; }
  .menu-panel #auth-btn               { order: 13; }

  .dock-footer {
    order: 15;
    display: block;
    margin-top: auto;
    padding: 12px 0 6px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap;
  }

  .nav-zalo-text { display: none; }
  .nav-zalo-icon { display: block; }

  .nav-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 500;
  }

  /* Search header */
  .logo-text { flex-shrink: 0; }
  .logo .search-wrap {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    margin: 0 0 0 30px;
  }

  #search {
    height: var(--row-h);
    padding: 0 40px 0 44px;
  }

  body {
    padding: calc(var(--header-h) + 15px) 30px 30px calc(20px + var(--side-w) + 30px);
    transition: padding-left 0.2s ease;
  }

  .content {
    max-width: 1500px;
    padding-bottom: 40px;
  }

  .logo,
  .search-brand {
    max-width: 1500px;
    margin: 0 0 25px;
  }

  /* Logo + search fixed */
  .logo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    max-width: none;
    height: var(--header-h);
    margin: 0;
    padding: 20px 30px 15px calc(20px + var(--side-w) + 30px);
    transition: padding-left 0.2s ease;
    background: none;
  }

  #demos {
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  :root { --side-w: var(--dock-w); }
  #demos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Menu trái thu nhỏ (chỉ icon)*/
@media (min-width: 768px) {
  html[data-dock="collapsed"] .dock .menu-row {
    width: var(--row-h);
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  html[data-dock="collapsed"] .menu-item span,
  html[data-dock="collapsed"] .dock .nav-label,
  html[data-dock="collapsed"] .dock-footer span { display: none; }

  html[data-dock="collapsed"] .menu-divider { padding: 6px 4px 2px; }
  html[data-dock="collapsed"] .menu-divider span { display: none; }
}

/* Hàng menu + mở/đóng*/
.menu-divider.dock-head { display: none; }
.dock-toggle { --ib-size: 36px; background: var(--white);}

@media (min-width: 768px) {
  .menu-divider.dock-head {
    display: flex;
    order: -1;
    min-height: 32px;
    padding: 0 0 0 4px;
  }
  .dock-head::after { order: 2; }
  .dock-head .dock-toggle { order: 3; pointer-events: auto; }

  html[data-dock="collapsed"] .menu-divider.dock-head {
    padding: 0;
    gap: 0;
    justify-content: center;
  }
  html[data-dock="collapsed"] .dock-head::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dock,
  body { transition: none; }
}

/* Menu left size full */
@media (min-width: 768px) {
  .dock {
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .dock::-webkit-scrollbar { display: none; }
  .dock > *,
  .dock-footer { flex-shrink: 0; }
}

@media (max-width: 767.98px) {

  /* btn menu bottom nav */
  .bottom-nav { justify-content: space-between; padding: 0 8px; }

  #menu-btn {
    --ib-size: 40px;
    --ib-fz: 20px;
    --ib-color: var(--black);
    --ib-bg: transparent;
    --ib-border: none;
  }

  #menu-btn[aria-expanded="true"] {
    --ib-bg: var(--black);
    --ib-color: var(--white);
  }

  .menu-panel.open ~ .bottom-nav { z-index: 1001; }

  /* menu btn active khi nhấn */
  .menu-panel.open ~ .bottom-nav .menu-item.active {
    width: 40px;
    padding: 0;
    gap: 0;
    background: transparent;
    color: var(--black);
  }
  .menu-panel.open ~ .bottom-nav .menu-item.active span { display: none; }

  /* bottom menu */
  .bottom-nav .menu-item {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-pill);
    justify-content: center;
    gap: 0;
    color: var(--black);
    background: transparent;
    flex-shrink: 0;
  }

  .bottom-nav .menu-item span { display: none; }

  /* bottom active */
  .bottom-nav .menu-item.active {
    width: auto;
    padding: 0 16px 0 12px;
    gap: 8px;
    background: transparent;
    color: var(--white);
  }

  .bottom-nav .menu-item.active span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
  }

  @media (max-width: 359.98px) {
    .bottom-nav .menu-item.active { width: 40px; padding: 0; gap: 0; }
    .bottom-nav .menu-item.active span { display: none; }
  }

  .menu-panel .nav-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-panel .nav-zalo-text { display: none; }
  .menu-panel .nav-zalo-icon { display: block; }
}

@media (min-width: 768px) {
  .menu-panel #register-btn { order: 14; }
}

.popup-close {
  --ib-size: 30px;
  --ib-fz: 15px;
  --ib-color: var(--black);
  --ib-bg: none;
  --focus: var(--black);
  border: var(--border);
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

@media (min-width: 768px) {
  .popup-panel {
    padding-left: calc(20px + var(--side-w) + 20px);
  }
}

.dock-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1100;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.12s ease;
}
.dock-tip.show {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 767.98px), (min-width: 1280px) {
  .dock-tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dock-tip { transition: none; }
}

.demo-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 8px;
  flex-shrink: 0;
}

.demo-nav-group:not([hidden]) + .demo-download { margin-left: 0; }

.demo-nav {
  color: var(--black);
  background: var(--bgicon);
}


/* avatar + mail */
.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-chip[hidden] { display: none; }

.user-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  border: none;
  box-sizing: border-box;
  overflow: hidden;
  user-select: none;
  box-shadow: var(--shadow-ava);
}

.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-mail {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
}

/* icon đăng xuất mail */
.user-logout {
  --ib-size: 36px;
  --ib-fz: 18px;
  margin-left: auto;
}

/* Desktop: đăng nhập / đăng ký / mail + đăng xuất */
.header-actions { display: none; }

@media (min-width: 768px) {
  .header-actions {
    order: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 30px;
  }
  
  .header-actions > .menu-row {
    width: auto;
    padding: 0 20px;
    border-radius: var(--radius-pill);
    background: var(--glass);
    box-shadow: var(--shadow-card);
  }
  
  .header-actions > .menu-row.active { background: var(--black); color: var(--white); box-shadow: none; }
  html:not([data-input="touch"]) .header-actions > .menu-row:not(.active):hover {
    background: var(--black);
    color: var(--white);
  }
  .header-actions > .user-chip { max-width: 320px; flex-shrink: 0; }
  .header-actions > .user-chip .user-avatar { width: var(--row-h); height: var(--row-h); font-size: 20px; }
  .header-actions > .user-chip .user-logout { margin-left: 4px; --ib-size: var(--row-h); background: var(--glass); box-shadow: var(--shadow-card);}

  .menu-panel .menu-divider:nth-of-type(3) { display: none; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  .header-actions > .user-chip .user-mail { display: none; }
}

/* 2 card: nút đăng nhập / đăng ký chỉ icon */
@media (min-width: 768px) and (max-width: 1279.98px) {
  .header-actions > #auth-btn,
  .header-actions > #register-btn {
    width: var(--row-h);
    padding: 0;
    gap: 0;
    justify-content: center;
  }
  .header-actions > #auth-btn .nav-label,
  .header-actions > #register-btn .nav-label { display: none; }
}

/* Mobile: mail + đăng xuất trong menu */
@media (max-width: 767.98px) {
  .menu-scroll > .user-chip { flex-shrink: 0; padding: 8px var(--row-pad); }
  .menu-scroll > .user-chip .user-mail { flex: 1; }
}

/* Search fix */
#search { -webkit-appearance: none; appearance: none; }
#search::-webkit-search-cancel-button,
#search::-webkit-search-decoration,
#search::-webkit-search-results-button,
#search::-webkit-search-results-decoration { -webkit-appearance: none; display: none; }


/* BANNER CARD */
.banner-card {
  position: relative;
  max-width: 500px;
  width: 100%;
  min-height: 150px;
  margin: 25px auto 0;
  padding: 22px 20px;
  border-radius: 25px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(130deg, #6fb78a 0%, #3b6f53 100%);
  box-shadow: 0 4px 10px rgba(59,111,83,0.5);
}

.banner-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Mobi */
.banner-title { font-weight: 700; line-height: 1.3; }
.banner-title span { display: block; }
.banner-title i { display: none; font-style: normal; }
.bn-a { font-size: 26px; text-transform: uppercase; }
.bn-b { font-size: 30px; font-weight: 700; }
.bn-c { margin-top: 10px; font-size: 15px; font-weight: 500; }
.bn-c::first-letter { text-transform: uppercase; }

.banner-title span:not(.bn-a),
.banner-date { max-width: 62%; }

.banner-date {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
}

.banner-img {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 80%;
  width: auto;
  max-width: 50%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  user-select: none;
}

/* Desk */
@media (min-width: 768px) {
  .banner-card {
    max-width: none;
    min-height: 0;
    margin: 0 0 25px;
  }
  .banner-text { max-width: calc(100% - 110px); }
  .banner-date { max-width: none; }
  .banner-title { font-size: 30px; }
  .banner-title span { display: inline; font-size: inherit; font-weight: inherit; text-transform: none; }
  .banner-title i { display: inline; }
  .bn-c::first-letter { text-transform: none; }
  .banner-img { height: 120%; }
}


/* ---------- PILL TRƯỢT (active menu) ---------- */
.nav-pill {
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  border-radius: var(--radius-pill);
  background: var(--pill-bg, var(--black));
  pointer-events: none;
  will-change: transform;
  transition:
    transform .35s cubic-bezier(.4, 0, .2, 1),
    width .35s cubic-bezier(.4, 0, .2, 1),
    opacity .2s ease;
}
.nav-pill.no-anim { transition: opacity .2s ease; }
.nav-pill.hide { opacity: 0; }

/* Mobile: bottom nav */
@media (max-width: 767.98px) {
  .menu-panel.open ~ .bottom-nav .nav-pill { opacity: 0; }

  .bottom-nav .menu-item,
  #menu-btn {
    transition:
      transform .35s cubic-bezier(.4, 0, .2, 1),
      color .2s ease,
      background var(--ease),
      scale var(--ease);
  }
  /* chữ/icon active đổi màu khi pill gần tới */
  .bottom-nav .menu-item.active {
    transition:
      transform .35s cubic-bezier(.4, 0, .2, 1),
      color .2s ease .12s,
      scale var(--ease);
  }
  .bottom-nav .menu-item.active span {
    animation: nav-label-in .25s ease .12s both;
  }
}
@keyframes nav-label-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* PC: dock trái, pill trượt dọc */
@media (min-width: 768px) {
  .nav-pill {
    --pill-bg: var(--black);
    left: 8px;
    right: 8px;
    height: var(--row-h);
  }
  .dock .menu-row.active {
    transition:
      background var(--ease),
      color .2s ease .15s,
      scale var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-pill,
  .nav-pill.no-anim,
  .bottom-nav .menu-item,
  .bottom-nav .menu-item.active,
  #menu-btn { transition: none; }
  .bottom-nav .menu-item.active span { animation: none; }
}

/* slide ảnh demo-card */
.demo-media {
  position: relative;
  overflow: hidden;
  border-radius: 25px;
}
.demo-media.is-sliding {
  transition: height .55s cubic-bezier(.22, .61, .36, 1);
}
.demo-media.is-sliding .demo-img {
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.demo-img--in {
  position: absolute;
  top: 0;
  left: 0;
}
@media (prefers-reduced-motion: reduce) {
  .demo-media.is-sliding,
  .demo-media.is-sliding .demo-img { transition: none; }
}

/* popup xem ảnh lớn */
.viewer-card {
  width: auto;
  max-width: 80%;
  margin-top: 0;
  padding: 10px;
  gap: 8px;
}

.viewer-card .popup-close {
  --ib-bg: var(--glass-bold);
  --ib-size: 32px;
  top: 20px;
  right: 20px;
}

.viewer-card .popup-close { --ib-bg: var(--glass-bold); }

.viewer-stage {
  width: min(1000px, calc(100vw - var(--v-l, 15px) - var(--v-r, 15px) - 22px));
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.viewer-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - var(--v-t, 35px) - var(--v-b, 90px) - 80px);
  max-height: calc(100dvh - var(--v-t, 35px) - var(--v-b, 90px) - 80px);
  object-fit: contain;
}

.viewer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 6px 4px;
}
.viewer-name {
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.viewer-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.viewer-nav[hidden] { display: none; }

/* popup slide img */
.viewer-stage { position: relative; }
.viewer-stage.is-sliding {
  transition: height .55s cubic-bezier(.22, .61, .36, 1);
}
.viewer-stage.is-sliding .viewer-img {
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.viewer-img--in {
  position: absolute;
  top: 0;
  left: 0;
}
@media (prefers-reduced-motion: reduce) {
  .viewer-stage.is-sliding,
  .viewer-stage.is-sliding .viewer-img { transition: none; }
}

/* viewer PC: canh giữa vùng còn lại (chừa menu trái + header), ảnh không vượt màn hình */
@media (min-width: 768px) {
  .popup-panel:has(.viewer-card) {
    --v-t: calc(var(--header-h) + 15px);
    --v-b: 30px;
    --v-l: calc(20px + var(--side-w) + 30px);
    --v-r: 30px;
    padding: var(--v-t) var(--v-r) var(--v-b) var(--v-l);
    transition: padding-left 0.2s ease;
  }
  .viewer-card { max-width: 100%; }
}


/* ---------- popup Mua font ---------- */
#buy-popup .popup-card {
  max-height: calc(100% - 30px);
}

.buy-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.buy-scroll {
  scrollbar-width: thin;
  margin-right: -14px;
  padding-right: 14px;
}

.buy-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.buy-field { position: relative; }

.buy-field-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1.3;
  color: var(--black);
  pointer-events: none;
}

.buy-input {
  width: 100%;
  padding: 14px 14px 14px 50px;
  font-family: inherit;
  font-size: 15px;
  border: var(--border);
  border-radius: var(--radius-pill);
  outline: none;
  background: none;
  color: var(--black);
  text-overflow: ellipsis;
}

.buy-req {
  color: var(--red);
  font-weight: 500;
  line-height: 1.3;
  margin-right: -8px;
  flex-shrink: 0;
}

.buy-field .buy-req {
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 0;
  font-size: 15px;
  pointer-events: none;
}
.buy-input--req { padding-left: 62px; }

.buy-file {
  width: 100%;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--muted);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}
.buy-file i {
  font-size: 18px;
  line-height: 1.3;
  flex-shrink: 0;
  color: var(--black);
}
.buy-file span:not(.buy-req) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.buy-file.has-file { color: var(--black); border-style: solid; }
.buy-file.has-file .buy-req { display: none; }

.buy-hint {
  width: 100%;
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--red);
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  border: 1px solid #ec5e47;
}
.buy-hint i {
  flex-shrink: 0;
  font-size: 17px;
  line-height: 1.3;
}
.buy-hint .kd-spinner { font-size: 17px; }
.buy-hint:empty { display: none; }

/* QR + thông tin chuyển khoản */
.buy-side {
  --qr: 200px;
  padding: 20px;
  border-radius: 20px;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.buy-qr {
  width: 100%;
  max-width: var(--qr);
  padding: 10px;
  border-radius: 14px;
  background: var(--white);
}
.buy-qr img { display: block; width: 100%; height: auto; }
.buy-qr-dl {
  padding: 8px 18px;
  background: var(--white);
  color: var(--black);
}
.buy-info {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.buy-info li {
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  font-size: 15px;
  color: var(--white);
}
.buy-info li i {
  font-size: 18px;
  line-height: 1.3;
  flex-shrink: 0;
}

.buy-info li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  #buy-popup .popup-card {
    max-width: 880px;
    padding: 50px 28px 24px;
  }
  .buy-scroll {
    flex-direction: row;
    align-items: stretch;
    gap: 30px;
  }

  .buy-form {
    flex: 1;
    position: relative;
    justify-content: space-between;
    padding: 0 0 100px;
  }
  .buy-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
  }
  .buy-side { flex: 0 0 340px; justify-content: center; }
}

/* ---------- popup tttc ---------- */
#buy-success-popup.popup-panel { padding: 15px; }
.buy-success-card {
  align-items: center;
  padding: 25px 20px 22px;
  margin-top: 0;
  max-width: 450px;
}
.buy-success-icon {
  --ib-size: 36px;
  --ib-bg: var(--green);
  --ib-color: var(--white);
  --ib-border: 1px solid var(--rim);
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
  pointer-events: none;
}
.buy-success-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--black);
}
.buy-success-msg {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  color: var(--black);
}
@media (min-width: 768px) {
  #buy-success-popup.popup-panel { padding-left: calc(20px + var(--side-w) + 20px); }
}

/* Điều khoản */
body.terms-page {
  height: auto;
  overflow-x: hidden;
}

/* Logo */
.terms-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 0 30px;
}

/* icon ve trang chu */
.back-home {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  text-decoration: none;
  --ib-size: 36px;
  --ib-fz: 17px;
  --ib-bg: var(--glass);
  --ib-color: var(--black);
  --ib-border: 1px solid var(--rim);
}
.back-home-text {
  font-size: 15px;
  line-height: 1.3;
}
.back-home:active .btn-icon {
  scale: var(--press);
}


/* PC: cách mép 20px */
@media (min-width: 768px) {
  body.terms-page {
    padding: 20px;
  }
}

.terms-stage {
  flex: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  align-content: start;
}
.terms-card {
  min-width: 0;
  padding: 28px 24px;
  border: 1px solid var(--rim);
  border-radius: 25px;
  background: var(--glass);
  box-shadow: var(--shadow-card);
  color: var(--black);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.terms-head {
  text-align: center;
}
.terms-title {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.3;
}
.terms-sub {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.7;
}
.terms-card > .terms-sub {
  margin: 0;
  text-align: center;
}
.terms-section h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}
.terms-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.terms-section li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.5;
}
.terms-section li::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: 0;
}

@media (min-width: 768px) {
  .terms-card {
    padding: 36px;
  }
}

.footer-dock {
  margin: auto auto -10px;
  padding-top: 30px;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  color: var(--black);
}

.nf-stage {
  align-content: center;
}
.nf-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  color: var(--black);
}
.nf-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.nf-img {
  order: -1;
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}
.nf-btn {
  width: auto;
  padding: 14px 28px;
}

.nf-title {
  margin: 0;
  font-size: 80px;
  font-weight: 900;
  line-height: 1.3;
}
.nf-sub {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.7;
}

/* PC: chữ bên trái, ảnh bên phải */
@media (min-width: 768px) {
  .nf-wrap {
    max-width: 720px;
    flex-direction: row;
    justify-content: center;
    gap: 90px;
    text-align: left;
  }
  .nf-text {
    flex: 0 1 auto;
    min-width: 0;
    align-items: flex-start;
  }
  .nf-text .terms-head {
    text-align: left;
  }
  .nf-img {
    order: 0;
    flex: 0 0 240px;
    max-width: 240px;
  }
}
