/* Marketingseotop.com – theme gốc. Mục lục:
   1. Biến & nền tảng   2. Lưới section/row/col   3. Thanh trên & header
   4. Nút, tiêu đề      5. Thẻ bài viết          6. Trang chủ
   7. Bài viết          8. Sản phẩm affiliate    9. Chân trang
*/

/* ---------- 1. Biến & nền tảng ---------- */
:root {
    --c-primary: #2f5bea;
    --c-primary-dark: #2244c0;
    --c-ink: #1d2230;
    --c-text: #3a4152;
    --c-muted: #6c7385;
    --c-line: #e8e9ee;
    --c-soft: #f2f5ff;
    --c-white: #fff;
    --c-gold: #f6a609;
    --c-shopee: #ee4d2d;
    --c-tiktok: #161823;
    --c-lazada: #1a1f8a;
    --c-tiki: #0b74e5;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 6px 24px rgba(29, 34, 48, .08);
    --container: 1140px;
    --gutter: 15px;
    --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-white);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; }

.screen-reader-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 999; background: var(--c-ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.mst-icon { flex: none; vertical-align: -4px; }

/* ---------- 2. Lưới section / row / col ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

.section { padding: 44px 0; }
.section--soft { background: var(--c-soft); }
.section--primary { background: var(--c-primary); color: #fff; }
.section--dark { background: var(--c-ink); color: #d9dce5; }
.section--primary :is(h1, h2, h3), .section--dark :is(h1, h2, h3) { color: #fff; }
/* Phần tử đặt thẳng trong section (không nằm trong row) vẫn canh theo khung. */
.section-content > *:not(.row) { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.row { display: flex; flex-wrap: wrap; width: 100%; max-width: var(--container); margin-inline: auto; }
.row .row { width: auto; max-width: none; margin-inline: calc(var(--gutter) * -1); }
.row-full-width { max-width: none; }
.row.align-middle { align-items: center; }
.row.align-bottom { align-items: flex-end; }
.row.align-center { justify-content: center; }
.row.align-right { justify-content: flex-end; }

.col { position: relative; width: 100%; padding: 0 var(--gutter) 30px; }
.col-inner { height: 100%; }
.col-inner > :last-child { margin-bottom: 0; }
.row-small { padding-inline: calc(var(--gutter) - 8px); } /* giữ mép thẳng hàng với tiêu đề */
.row .row-small { padding-inline: 0; }
.row-small > .col { padding: 0 8px 16px; }
.row-large > .col { padding: 0 30px 30px; }
.row-collapse > .col { padding: 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.small-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }   .small-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
.small-3 { flex: 0 0 25%; max-width: 25%; }            .small-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.small-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }  .small-6 { flex: 0 0 50%; max-width: 50%; }
.small-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }  .small-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
.small-9 { flex: 0 0 75%; max-width: 75%; }            .small-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.small-11 { flex: 0 0 91.6667%; max-width: 91.6667%; } .small-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 550px) {
    .medium-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }   .medium-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
    .medium-3 { flex: 0 0 25%; max-width: 25%; }            .medium-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .medium-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }  .medium-6 { flex: 0 0 50%; max-width: 50%; }
    .medium-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }  .medium-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
    .medium-9 { flex: 0 0 75%; max-width: 75%; }            .medium-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
    .medium-11 { flex: 0 0 91.6667%; max-width: 91.6667%; } .medium-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 850px) {
    .large-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }   .large-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
    .large-3 { flex: 0 0 25%; max-width: 25%; }            .large-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .large-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }  .large-6 { flex: 0 0 50%; max-width: 50%; }
    .large-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }  .large-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
    .large-9 { flex: 0 0 75%; max-width: 75%; }            .large-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
    .large-11 { flex: 0 0 91.6667%; max-width: 91.6667%; } .large-12 { flex: 0 0 100%; max-width: 100%; }
    .section { padding: 60px 0; }
}
/* Trên máy tính bảng, hai cột của khối mở đầu xếp chồng lên nhau. */
@media (min-width: 550px) and (max-width: 849px) {
    .hero .col { flex: 0 0 100%; max-width: 100%; }
}

.gap { width: 100%; }
.divider { border: 0; border-top: 1px solid var(--c-line); margin: 24px 0; }

/* ---------- 3. Thanh trên & header ---------- */
.topbar { background: var(--c-ink); color: #d9dce5; font-size: .82rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.topbar__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__hotline { color: #fff; font-weight: 600; white-space: nowrap; }
.topbar__hotline:hover { color: var(--c-gold); }
.topbar .mst-icon { width: 15px; height: 15px; vertical-align: -2px; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--c-line); }
.site-header__in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.site-logo a { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; color: var(--c-ink); letter-spacing: -.01em; }
.site-logo .mst-icon { color: var(--c-primary); width: 26px; height: 26px; }
.site-logo img { max-height: 44px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav__list > li { position: relative; }
.main-nav__list a { white-space: nowrap; display: block; padding: 10px 12px; color: var(--c-ink); font-weight: 600; font-size: .95rem; border-radius: 8px; }
.main-nav__list a:hover, .main-nav__list .current-menu-item > a { color: var(--c-primary); background: var(--c-soft); }
.main-nav__list .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: -2px; }
.main-nav__list .sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 210px; list-style: none; margin: 0; padding: 8px;
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.main-nav__list li:hover > .sub-menu, .main-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav__list .sub-menu a { font-weight: 500; padding: 8px 10px; }

.nav-toggle, .search-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--c-ink); }
.nav-toggle:hover, .search-toggle:hover { background: var(--c-soft); color: var(--c-primary); }
.nav-toggle { display: none; }
.header-search { border-top: 1px solid var(--c-line); padding: 14px 0; background: #fff; }

@media (max-width: 849px) {
    .nav-toggle { display: inline-grid; }
    .site-logo { margin-right: auto; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow); max-height: calc(100vh - 110px); overflow-y: auto; }
    .main-nav.is-open { display: block; }
    .main-nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
    .main-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 6px 14px; }
    .main-nav__list .menu-item-has-children > a::after { display: none; }
    .main-nav__list .menu-item-has-children > a[href="#"] { color: var(--c-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 2px; }
}

/* ---------- 4. Nút, tiêu đề, ô tìm kiếm ---------- */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: .95rem; line-height: 1.2; transition: .15s;
}
.button--primary { background: var(--c-primary); color: #fff; }
.button--primary:hover { background: var(--c-primary-dark); color: #fff; }
.button--dark { background: var(--c-ink); color: #fff; }
.button--white { background: #fff; color: var(--c-primary); }
.button--white:hover { background: var(--c-ink); color: #fff; }
.button--outline { background: transparent; border-color: currentColor; color: var(--c-primary); }
.button--small { padding: 7px 14px; font-size: .85rem; }
.button--large { padding: 14px 28px; font-size: 1.05rem; }

.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-title--center { justify-content: center; text-align: center; }
.section-title__text { margin: 0; position: relative; padding-left: 14px; }
.section-title__text::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; border-radius: 3px; background: var(--c-primary); }
.section-title--center .section-title__text { padding-left: 0; }
.section-title--center .section-title__text::before { display: none; }
.section-title__sub { margin: 4px 0 0; padding-left: 14px; color: var(--c-muted); font-size: .92rem; }
.section-title__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.section-title__link .mst-icon { width: 16px; height: 16px; }
.row + .section-title { margin-top: 14px; }

.mst-search { display: flex; background: #fff; border: 2px solid var(--c-line); border-radius: 999px; padding: 4px; max-width: 560px; transition: .15s; }
.mst-search:focus-within { border-color: var(--c-primary); }
.mst-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px; font: inherit; color: var(--c-ink); outline: 0; }
.mst-search button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 10px 18px; background: var(--c-primary); color: #fff; font-weight: 700; }
.mst-search button:hover { background: var(--c-primary-dark); }
.mst-search .mst-icon { width: 18px; height: 18px; }

.mst-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--c-soft); color: var(--c-primary); font-size: .76rem; font-weight: 700; letter-spacing: .01em; }
.section--soft .mst-chip { background: #fff; }
.mst-chip:hover { background: var(--c-primary); color: #fff; }

/* Tông màu dùng chung cho bìa, ô dịp lễ */
.mst-tone-0 { --tone-a: #7fa0ff; --tone-b: #2f5bea; }
.mst-tone-1 { --tone-a: #ffb65c; --tone-b: #ee6c2d; }
.mst-tone-2 { --tone-a: #6fd3a8; --tone-b: #1f9d74; }
.mst-tone-3 { --tone-a: #7fb2ff; --tone-b: #2f6fe0; }
.mst-tone-4 { --tone-a: #c59bff; --tone-b: #7a48d6; }
.mst-tone-5 { --tone-a: #ff9ad1; --tone-b: #d1418f; }

/* ---------- 5. Thẻ bài viết ---------- */
.mst-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.mst-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mst-card__media { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--c-soft); }
.mst-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mst-cover__ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; min-height: 150px; padding: 16px; text-align: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--tone-a, #7fa0ff), var(--tone-b, #2f5bea)); }
.mst-cover__ph .mst-icon { width: 38px; height: 38px; opacity: .95; }
.mst-card__body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px 18px 18px; flex: 1; }
.mst-card__title { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.mst-card__title a { color: var(--c-ink); }
.mst-card__title a:hover { color: var(--c-primary); }
.mst-card__excerpt { margin: 0; color: var(--c-muted); font-size: .9rem; line-height: 1.55; }
.mst-card__meta { margin-top: auto; padding-top: 6px; color: var(--c-muted); font-size: .8rem; }
.mst-card__meta .mst-icon { width: 14px; height: 14px; vertical-align: -2px; }

.mst-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 10px 0 0; padding: 0; }
.mst-pagination a, .mst-pagination span { display: block; min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--c-line); border-radius: 10px; color: var(--c-ink); font-weight: 600; }
.mst-pagination .current, .mst-pagination a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.mst-empty, .mst-empty-state { color: var(--c-muted); }
.mst-empty-state { text-align: center; padding: 10px 0 30px; }
.mst-empty-state .mst-search { margin-inline: auto; }

/* ---------- 6. Trang chủ ---------- */
.hero { padding: 48px 0 26px; background: linear-gradient(180deg, #e7edff 0%, var(--c-soft) 100%); }
.hero h1 { margin-bottom: 14px; }
.hero .lead { font-size: 1.08rem; color: var(--c-text); max-width: 560px; margin-bottom: 22px; }

.mst-countdown { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 26px 28px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #6f8fff, var(--c-primary) 55%, #1d37a0); box-shadow: 0 14px 36px rgba(47, 91, 234, .3); }
.mst-countdown__label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
.mst-countdown__name { font-size: 2rem; font-weight: 800; line-height: 1.15; }
.mst-countdown__date { opacity: .9; }
.mst-countdown__days { margin: 8px 0 14px; font-size: 1.05rem; }
.mst-countdown__days b { font-size: 2.6rem; font-weight: 800; line-height: 1; margin-right: 4px; }

.mst-occasion { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 104px; padding: 16px 18px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, var(--tone-a), var(--tone-b)); transition: transform .18s, box-shadow .18s; }
.mst-occasion:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow); }
.mst-occasion__name { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.mst-occasion__meta { font-size: .86rem; opacity: .95; }

.mst-catbox { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-ink); transition: .18s; }
.mst-catbox:hover { border-color: var(--c-primary); color: var(--c-ink); box-shadow: var(--shadow); }
.mst-catbox__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--c-soft); color: var(--c-primary); }
.mst-catbox__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mst-catbox__body strong { font-size: 1.02rem; }
.mst-catbox__body span { color: var(--c-muted); font-size: .86rem; line-height: 1.45; }
.mst-catbox > .mst-icon { color: var(--c-muted); }
.mst-catbox:hover > .mst-icon { color: var(--c-primary); }

.mst-services { padding: 26px; border-radius: var(--radius); background: var(--c-ink); color: #d9dce5; }
.mst-services__head strong { display: block; color: #fff; font-size: 1.25rem; }
.mst-services__list { list-style: none; margin: 16px 0 20px; padding: 0; columns: 2; column-gap: 24px; }
.mst-services__list li { display: flex; gap: 8px; break-inside: avoid; padding: 4px 0; }
.mst-services__list .mst-icon { color: var(--c-gold); width: 18px; height: 18px; margin-top: 4px; }
.mst-services__list a { color: #fff; }
.mst-services__list a:hover { color: var(--c-gold); }
@media (max-width: 549px) { .mst-services__list { columns: 1; } }

/* ---------- 7. Bài viết ---------- */
.mst-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0 0 12px; padding: 0; font-size: .84rem; color: var(--c-muted); }
.mst-crumbs li + li::before { content: "›"; margin-right: 8px; }
.mst-crumbs a { color: var(--c-muted); }
.mst-crumbs a:hover { color: var(--c-primary); }

.archive-head, .single-head { padding: 30px 0 28px; }
.archive-head__title, .single-head__title { margin: 0; }
.archive-head__desc { margin-top: 8px; color: var(--c-muted); max-width: 720px; }
.archive-head__desc p { margin: 0; }
.single-head__meta { margin: 12px 0 0; color: var(--c-muted); font-size: .9rem; }
.single-head__meta .mst-icon { width: 16px; height: 16px; vertical-align: -3px; }

.single-body { padding-top: 26px; padding-bottom: 50px; }
.mst-disclosure { padding: 10px 14px; border-left: 4px solid var(--c-gold); background: #fffaf0; border-radius: 0 8px 8px 0; color: var(--c-muted); font-size: .86rem; }
.single-thumb { margin: 0 0 22px; }
.single-thumb img { width: 100%; border-radius: var(--radius); }
.single-lead { font-size: 1.1rem; color: var(--c-ink); font-weight: 500; }
.single-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }

.entry-content { font-size: 1.04rem; }
.entry-content h2 { margin-top: 1.8em; padding-top: .2em; scroll-margin-top: 84px; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.entry-content li { margin-bottom: .45em; }
.entry-content a:not(.mst-btn):not(.button) { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--c-primary); background: var(--c-soft); border-radius: 0 8px 8px 0; }

.mst-toc summary { padding: 0 0 8px; font-weight: 700; color: var(--c-ink); cursor: pointer; }

.mst-table-wrap { overflow-x: auto; margin: 0 0 1.3em; border: 1px solid var(--c-line); border-radius: var(--radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
.entry-content th, .entry-content td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.entry-content thead th { background: var(--c-ink); color: #fff; font-weight: 600; white-space: nowrap; }
.entry-content tbody tr:last-child td { border-bottom: 0; }
.entry-content tbody tr:nth-child(even) { background: #fafafb; }

/* Danh sách gợi ý: mỗi món một thẻ có số thứ tự và nút xem giá */
.mst-picks { list-style: none; padding: 0 !important; margin: 0 0 1.4em; }
.mst-picks > li { position: relative; margin: 0 0 12px; padding: 16px 18px 16px 62px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; transition: .18s; }
.mst-picks > li:hover { border-color: #f3c3ca; box-shadow: var(--shadow); }
.mst-picks > li::before { content: counter(list-item); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--c-primary); color: #fff; font-weight: 800; font-size: .95rem; }
.mst-picks > li > strong:first-child { color: var(--c-ink); font-size: 1.06rem; }
.mst-picks .mst-btn { display: flex; width: fit-content; margin-top: 10px; }

/* Khối "Tóm tắt nhanh" đầu bài: câu trả lời ngắn cho người đọc và cho công cụ AI */
.mst-summary { margin: 0 0 1.4em; padding: 18px 20px; border-radius: var(--radius); background: #f3f8ff; border: 1px solid #d6e6ff; }
.mst-summary > strong:first-child, .mst-summary > p:first-child { display: block; margin: 0 0 8px; color: var(--c-ink); font-weight: 700; }
.mst-summary ul { margin: 0; padding-left: 1.2em; }
.mst-summary li { margin-bottom: .35em; }
.mst-sources { font-size: .9rem; color: var(--c-muted); }
.mst-sources a { color: var(--c-muted); }

.mst-author { display: flex; gap: 14px; align-items: flex-start; margin-top: 32px; padding: 18px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fafafb; }
.mst-author__avatar { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 800; font-size: 1.2rem; }
.mst-author p { margin: 0; }
.mst-author__label { color: var(--c-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.mst-author__name { font-weight: 700; color: var(--c-ink); }
.mst-author__bio { margin-top: 4px !important; color: var(--c-text); font-size: .92rem; }

.mst-contact { list-style: none; padding: 0 !important; }
.mst-contact li { padding: 10px 0; border-bottom: 1px solid var(--c-line); }

/* ---------- 8. Nút sàn & sản phẩm affiliate ---------- */
.mst-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; color: #fff !important; font-weight: 700; font-size: .9rem; line-height: 1.2; text-decoration: none !important; background: var(--c-primary); transition: filter .15s, transform .15s; }
.mst-btn:hover { filter: brightness(1.08); transform: translateX(2px); }
.mst-btn .mst-icon { width: 16px; height: 16px; }
.mst-btn--shopee { background: var(--c-shopee); }
.mst-btn--tiktok { background: var(--c-tiktok); }
.mst-btn--lazada { background: var(--c-lazada); }
.mst-btn--tiki { background: var(--c-tiki); }
.mst-btn--sm { padding: 7px 12px; font-size: .82rem; }
.mst-btn--sm .mst-icon { display: none; }

.mst-btn--lg { padding: 14px 26px; font-size: 1.05rem; }
.mst-offer { padding: 24px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.mst-offer .single-lead { font-weight: 400; }

.mst-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mst-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; color: var(--c-ink); font-size: .9rem; font-weight: 600; }
.mst-tag span { color: var(--c-muted); font-weight: 500; font-size: .8rem; }
.mst-tag:hover { border-color: var(--c-primary); color: var(--c-primary); }

.mst-product { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.mst-product__media { position: relative; aspect-ratio: 1; background: var(--c-soft); }
.mst-product__media img { width: 100%; height: 100%; object-fit: cover; }
.mst-product__badge { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; background: var(--c-gold); color: var(--c-ink); font-size: .74rem; font-weight: 800; }
.mst-product__body { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
.mst-product__name { margin: 0; font-size: .98rem; line-height: 1.35; }
.mst-product__price { color: var(--c-primary); font-weight: 800; }
.mst-product__desc { margin: 0; color: var(--c-muted); font-size: .86rem; line-height: 1.5; }
.mst-product__buy { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.mst-product-single { max-width: 340px; margin: 0 0 1.4em; }

/* ---------- 9. Chân trang ---------- */
.site-footer { background: var(--c-ink); color: #aeb4c2; font-size: .92rem; padding-top: 48px; }
.site-footer a { color: #d9dce5; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #fff; font-size: 1.25rem; font-weight: 800; }
.footer-brand .mst-icon { color: var(--c-primary); width: 26px; height: 26px; }
.footer-title { margin: 0 0 12px; color: #fff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.footer-title--gap { margin-top: 22px; }
.footer-menu, .footer-agency__list { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 7px; }
.footer-social { display: flex; gap: 14px; }
.footer-agency { padding: 20px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); background: rgba(255, 255, 255, .04); }
.footer-agency .footer-title { font-size: 1.05rem; text-transform: none; letter-spacing: 0; margin-bottom: 2px; }
.footer-agency__slogan { margin-bottom: 12px; font-size: .85rem; }
.footer-agency__list { columns: 2; column-gap: 18px; font-size: .85rem; }
.footer-agency__list li { break-inside: avoid; margin-bottom: 6px; padding-left: 12px; position: relative; }
.footer-agency__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--c-gold); }
.footer-agency__hotline { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 16px; border-radius: 999px; background: var(--c-primary); color: #fff !important; font-weight: 700; }
.footer-agency__hotline:hover { background: var(--c-primary-dark); }
.footer-agency__hotline .mst-icon { width: 17px; height: 17px; }
.footer-bottom { margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; }
.footer-bottom__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 16px; }
.footer-bottom__in > span:first-child { flex: 1 1 420px; }
@media (max-width: 549px) { .footer-agency__list { columns: 1; } }

.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--c-ink); color: #fff; box-shadow: var(--shadow); }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--c-primary); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* Chủ đề, danh sách mới nhất, cam kết (trang chủ dạng thư viện công cụ) */
.hero .mst-search { max-width: 560px; }
.mst-latest { padding: 20px 22px; background: #fff; border: 1px solid var(--c-line); border-radius: 18px; box-shadow: var(--shadow); }
.mst-latest__title { display: block; margin-bottom: 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c-primary); }
.mst-latest ul { list-style: none; margin: 0; padding: 0; }
.mst-latest li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--c-line); }
.mst-latest li:first-child { border-top: 0; }
.mst-latest a { color: var(--c-ink); font-weight: 600; line-height: 1.35; }
.mst-latest a:hover { color: var(--c-primary); }
.mst-latest li span { color: var(--c-muted); font-size: .8rem; }

.mst-topic { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 18px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-ink); transition: .18s; }
.mst-topic:hover { border-color: var(--c-primary); color: var(--c-ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.mst-topic__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--tone-a), var(--tone-b)); }
.mst-topic__icon .mst-icon { width: 24px; height: 24px; }
.mst-topic__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mst-topic__body strong { font-size: 1.04rem; }
.mst-topic__body span { color: var(--c-muted); font-size: .86rem; line-height: 1.45; }
.mst-topic__body em { margin-top: 2px; font-style: normal; font-size: .78rem; font-weight: 600; color: var(--c-primary); }

.mst-trust__item { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; background: var(--c-soft); border-radius: var(--radius); }
.mst-trust__item > span:last-child { color: var(--c-text); font-size: .92rem; line-height: 1.5; }
.mst-trust__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--c-primary); }

.section > .section-content > .mst-countdown { max-width: 720px; margin-inline: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.single-head__cat { margin-bottom: 10px; }
.single-head__cat .mst-icon { width: 14px; height: 14px; vertical-align: -2px; }

/* Mục lục: thẻ có vạch xanh bên trái, số thứ tự trong ô tròn, hai cột trên màn rộng */
.mst-toc { margin: 0 0 32px; padding: 20px 22px 18px; background: linear-gradient(180deg, #f7f9ff, var(--c-soft)); border: 1px solid #dbe3fb; border-left: 5px solid var(--c-primary); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(47, 91, 234, .07); }
.mst-toc__title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed #cdd8f7; color: var(--c-ink); font-size: 1.02rem; }
.mst-toc__title .mst-icon { width: 20px; height: 20px; color: var(--c-primary); }
.mst-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; grid-template-columns: 1fr; gap: 2px 28px; }
.mst-toc li { position: relative; margin: 0; padding: 0; counter-increment: toc; font-size: .96rem; line-height: 1.45; }
.mst-toc li a { display: flex; align-items: flex-start; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--c-text); text-decoration: none !important; transition: background .15s, color .15s; }
.mst-toc li a::before { content: counter(toc); flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: #fff; border: 1px solid #c9d6fa; color: var(--c-primary); font-size: .76rem; font-weight: 800; }
.mst-toc li a:hover { background: #fff; color: var(--c-primary); }
.mst-toc li a:hover::before { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.mst-toc ol { max-height: 288px; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #b9c8f5 transparent; }
.mst-toc li a { padding: 6px 8px; }
@media (min-width: 720px) { .mst-toc ol { grid-template-columns: 1fr 1fr; max-height: 340px; } }
.entry-content h2[id] { scroll-margin-top: 90px; }

/* Nhịp dọc của bài: khoảng cách đều giữa đoạn, tiêu đề, bảng, ảnh, hộp */
.single-head { padding: 34px 0 30px; }
.single-head__title { line-height: 1.22; }
.single-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.single-body { padding-top: 30px; padding-bottom: 56px; }
.single-body > * + * { margin-top: 0; }
.mst-disclosure { margin: 0 0 24px; }
.single-thumb { margin: 0 0 28px; }
.single-lead { margin: 0 0 24px; line-height: 1.65; }
.entry-content { line-height: 1.78; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content h2 { margin: 2.1em 0 .7em; padding-top: 0; }
.entry-content h3 { margin: 1.7em 0 .55em; }
.entry-content h4 { margin: 1.4em 0 .5em; }
.entry-content h2 + h3, .entry-content h2 + p, .entry-content h3 + p { margin-top: 0; }
.entry-content ul, .entry-content ol { margin: 0 0 1.3em; }
.entry-content figure, .entry-content .wp-caption { margin: 1.6em 0; }
.entry-content figcaption, .entry-content .wp-caption-text { margin-top: 8px; color: var(--c-muted); font-size: .86rem; text-align: center; }
.entry-content blockquote { margin: 1.6em 0; }
.mst-table-wrap { margin: 1.6em 0; }
.mst-summary, .mst-picks { margin: 1.6em 0; }
.mst-author { margin-top: 40px; }
.single-cats { margin-top: 28px; }
.mst-rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c-ink); }
.mst-rating__stars { color: var(--c-gold); letter-spacing: 2px; font-size: 1.05rem; line-height: 1; }
.mst-rating__stars i { font-style: normal; color: #d8dbe4; }
.mst-rating__stars i.on { color: var(--c-gold); }
.mst-rating__note { font-weight: 500; color: var(--c-muted); font-size: .84rem; }
