/* Bố cục trang the365 bản mới. Chỉ dùng biến trong tokens.css và lớp t365-; file này chỉ xếp chỗ. */
body.t365 { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--brand); }
.site-top { display: flex; align-items: center; gap: var(--space-1); height: 56px; padding: 0 var(--space-2) 0 var(--space-4); background: var(--brand-strong); }
.site-top__logo img { display: block; height: 34px; width: auto; }
.site-top__spacer { flex: 1; }
.site-top__link { height: 36px; padding: 0 10px; display: flex; align-items: center; color: var(--on-brand); font: 800 13px var(--font-sans); text-decoration: none; border-radius: 10px; }
.site-top__login { height: 36px; padding: 0 12px; display: flex; align-items: center; background: var(--surface); color: var(--brand-strong); font: 800 13px var(--font-sans); text-decoration: none; border-radius: 10px; }
.site-main { flex: 1; width: 100%; max-width: var(--size-container); margin: 0 auto; box-sizing: border-box; }
.site-foot { padding: var(--space-6) var(--space-4) 120px; color: var(--ink-muted); font-size: 13px; line-height: 18px; text-align: center; }
.site-foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-2); }
.page { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); max-width: 560px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.page__title { margin: 0; font: 900 22px/28px var(--font-sans); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.muted { color: var(--ink-muted); }
.small { font-size: 13px; line-height: 18px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.label { font: 800 12px/16px var(--font-sans); letter-spacing: .04em; color: var(--ink-muted); text-transform: uppercase; }
.brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.brands .t365-brand { text-decoration: none; }
.buy-head { display: flex; justify-content: space-between; align-items: baseline; }
.buy-head h2 { margin: 0; font: 900 18px/24px var(--font-sans); }
.denoms { border-top: 1px solid var(--border); padding-top: var(--space-3); }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin: var(--space-4); }
.steps3 .card { padding: 12px 10px; gap: 2px; }
.steps3 b { font: 900 20px var(--font-sans); color: var(--brand); }
.invite { margin: 0 var(--space-4); text-decoration: none; color: var(--ink); flex-direction: row; align-items: center; }
.orderbar-wrap { position: fixed; left: 12px; right: 12px; bottom: 16px; z-index: 10; max-width: 536px; margin: 0 auto; }
.orderbar-wrap[hidden] { display: none; }
.sheet-fixed { position: fixed; z-index: 20; }
.t365-check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 14px; line-height: 20px; }
.t365-check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--action); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 800; }
.field input { height: var(--size-control); padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: 400 16px var(--font-sans); color: var(--ink); background: var(--surface); }
.field__error { color: var(--danger); font-size: 13px; }
.lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); font-variant-numeric: tabular-nums; }
.lines li { display: flex; justify-content: space-between; gap: var(--space-2); }
.qr-wrap { display: flex; justify-content: center; }
.qr-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; color: var(--ink-muted); }
.cards { display: flex; flex-direction: column; gap: var(--space-3); }
.cardcode { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3); display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.demo { border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); padding: var(--space-3); display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
@media (min-width: 900px) {
  .home { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-6); padding: var(--space-6) var(--space-4); align-items: start; }
  .home .t365-hero { border-radius: var(--radius-2xl); }
  .home .t365-buybox { margin: -40px var(--space-4) 0; }
  .home-side { position: sticky; top: var(--space-4); }
  .orderbar-wrap.is-mobile-only { display: none; }
}
@media (max-width: 899px) { .home-side { display: none; } }
.method { padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.method.is-off { opacity: .55; }

/* Tin tức, bài viết */
.site-foot__bct img { display: inline-block; margin-top: var(--space-3); height: 57px; width: auto; }
.news, .article-page { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); box-sizing: border-box; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a { padding: 6px 12px; border-radius: var(--radius-full); border: 1px solid var(--border); text-decoration: none; color: var(--ink); background: var(--surface); font-size: 13px; font-weight: 700; }
.tabs a.is-active { background: var(--brand-strong); color: var(--on-brand); border-color: var(--brand-strong); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-5); align-items: start; }
.news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.news-list li { gap: 4px; }
.news-list a, .news-lead { text-decoration: none; color: var(--ink); }
.news-lead img, .article__image { width: 100%; height: auto; border-radius: var(--radius-lg); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.pager a { min-width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 800; }
.pager a.is-active { background: var(--brand-strong); color: var(--on-brand); border-color: var(--brand-strong); }
.crumbs a { color: var(--ink-muted); }
.article__title { margin: 0; font: 900 26px/34px var(--font-sans); }
.article__body { font-size: 16px; line-height: 26px; }
.article__body h2 { font: 900 20px/28px var(--font-sans); margin: var(--space-5) 0 var(--space-2); scroll-margin-top: 16px; }
.article__body img { max-width: 100%; height: auto; }
.article__body table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.article__body td, .article__body th { border: 1px solid var(--border); padding: 6px 8px; }
.toc ol, .related { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.article-side { position: sticky; top: var(--space-4); }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } .article-side { position: static; } }
.site-foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); max-width: 720px; margin: 0 auto var(--space-4); text-align: left; }
.site-foot__cols div { display: flex; flex-direction: column; gap: 6px; }
.site-foot__cols b { color: var(--ink); }
.site-foot a { color: var(--ink-muted); }
@media (max-width: 600px) { .site-foot__cols { grid-template-columns: 1fr 1fr; } }
.denoms { border: 0; margin: 0; padding: var(--space-3) 0 0; border-top: 1px solid var(--border); }
.denoms legend { padding: 0; margin-bottom: var(--space-2); }
.denom-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.denom-pick { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 56px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; font-variant-numeric: tabular-nums; }
.denom-pick input { position: absolute; opacity: 0; pointer-events: none; }
.denom-pick:has(input:checked) { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); background: var(--action-soft, var(--surface)); }
.denom-pick:has(input:focus-visible) { outline: 2px solid var(--focus, var(--brand)); outline-offset: 2px; }
.denom-pick.is-off { opacity: .5; cursor: not-allowed; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
@media (max-width: 380px) { .denom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.buy-step { display: flex; flex-direction: column; gap: var(--space-2); border: 0; margin: 0; padding: var(--space-3) 0 0; border-top: 1px solid var(--border); }
.buy-step:first-of-type { border-top: 0; padding-top: 0; }
.buy-step__h { display: flex; align-items: center; gap: var(--space-2); font: 800 16px/22px var(--font-sans); padding: 0; }
.buy-step__n { width: 24px; height: 24px; border-radius: var(--radius-full); background: var(--brand-strong); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.qty-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.home-side .method { padding: 6px 0; }
.home-side .method.is-off { opacity: .55; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 900px) { .home-side { position: sticky; top: var(--space-4); align-self: start; } }
