:root { --blue: #0a4f9e; --blue-50: #eaf2fc; --ink: #16202b; --ink-2: #4a5866; --line: #dde3ea; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); }
* { box-sizing: border-box; }
body { margin: 0; background: #f5f7fa; line-height: 1.55; }
a { color: var(--blue); }
.topbar { position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 6px rgba(0,0,0,.15); display: flex; justify-content: space-between; align-items: center; height: 52px; padding: 0 16px; background: var(--blue); }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-decoration: none; font-size: 17px; }
.brand img { border-radius: 7px; }
.cta-top { color: #fff; font-size: 14px; text-decoration: none; border: 1px solid rgba(255,255,255,.6); padding: 6px 12px; border-radius: 8px; }
.wrap { max-width: 900px; margin: 0 auto; padding: 16px; }
.crumbs { font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
h1 { font-size: 26px; line-height: 1.25; margin: 8px 0 10px; }
h2 { font-size: 19px; margin: 28px 0 10px; }
.lead { font-size: 16.5px; }
.scope { font-size: 14px; color: var(--ink-2); background: #fff8e6; border-left: 3px solid #f5a524; padding: 8px 12px; border-radius: 6px; }
.fees { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,32,48,.06), 0 4px 16px rgba(16,32,48,.06); font-size: 14.5px; }
.fees th, .fees td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fees th { background: var(--blue-50); font-size: 13px; }
.fees .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fees tr:last-child td { border-bottom: 0; }
.scroll { overflow-x: auto; }
.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; padding: 10px 16px; border-radius: 10px; font-weight: 600; margin: 14px 0 4px; }
.links { list-style: none; padding: 0; margin: 0; }
.links li { padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; }
.links li span { color: var(--ink-2); white-space: nowrap; }
.links.cols { columns: 2 280px; column-gap: 28px; }
.links.cols li { break-inside: avoid; }
.ad { margin: 18px 0; min-height: 90px; }
.note { font-size: 13px; color: var(--ink-2); margin-top: 28px; }
.foot { text-align: center; font-size: 13.5px; padding: 24px; color: var(--ink-2); }
@media (max-width: 640px) { h1 { font-size: 22px; } .fees td:nth-child(2) { font-size: 12.5px; } }

/* ---- Thanh trên ---- */
.top-links { display: flex; align-items: center; gap: 14px; }
.top-links > a:not(.cta-top) { color: #fff; font-size: 14px; text-decoration: none; white-space: nowrap; }
.top-links > a:not(.cta-top):hover { text-decoration: underline; }
@media (max-width: 420px) { .cta-top { padding: 5px 8px; font-size: 13px; } }

/* ---- Bài viết ---- */
.post-body { background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(16,32,48,.06), 0 4px 16px rgba(16,32,48,.06); }
.post-body h1 { margin-top: 0; }
.post-body h2 { font-size: 20px; }
.post-body h3 { font-size: 17px; margin: 20px 0 8px; }
.post-body p, .post-body li { font-size: 16px; }
.post-body img { max-width: 100%; height: auto; }
.post-body blockquote { margin: 14px 0; padding: 8px 14px; background: #fff8e6; border-left: 3px solid #f5a524; border-radius: 6px; }
.post-body blockquote p { margin: 6px 0; font-size: 15px; }
.post-body .fees { box-shadow: none; border: 1px solid var(--line); }
.meta { color: var(--ink-2); font-size: 14px; margin-top: -4px; }
.sources { margin-top: 24px; border-top: 1px solid var(--line); }
.sources li { font-size: 14px; word-break: break-word; }
.posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.post { background: #fff; border-radius: 10px; padding: 12px 14px; border: 1px solid var(--line); }
.post a { text-decoration: none; }
.post a b { font-size: 16.5px; }
.post span { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.post p { margin: 6px 0 0; font-size: 14.5px; }
.post.has-thumb { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; }
.post .thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; display: block; }
@media (max-width: 420px) { .post.has-thumb { grid-template-columns: 88px 1fr; } .post .thumb { width: 88px; height: 64px; } }
.fig { margin: 18px 0; }
.fig img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--blue-50); }
.fig.hero { margin: 10px 0 16px; }
.fig figcaption { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
.fig .credit { display: block; font-size: 12px; opacity: .85; }
.fig .credit a { color: inherit; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.cats a { background: var(--blue-50); border-radius: 999px; padding: 6px 12px; text-decoration: none; font-size: 14px; }
h2 a { text-decoration: none; }

/* ---- Khối sản phẩm Shopee ---- */
.aff { margin: 18px 0; border: 1px solid #f2c9b8; background: #fffaf7; border-radius: 12px; padding: 12px 14px; }
.aff-head { margin: 0 0 8px; font-weight: 700; }
.aff-head span { font-weight: 400; color: var(--ink-2); font-size: 13px; }
.aff-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aff-item a { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; text-decoration: none; color: var(--ink); }
.aff-item a:hover { border-color: #ee4d2d; }
.aff-item img, .aff-ph { flex: none; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #fdeee8; display: grid; place-items: center; font-size: 24px; }
.aff-txt { flex: 1; min-width: 0; }
.aff-txt b { display: block; font-size: 15px; }
.aff-txt small { display: block; color: var(--ink-2); font-size: 13px; }
.aff-price { color: #ee4d2d; font-weight: 600; font-size: 14px; }
.aff-go { flex: none; background: #ee4d2d; color: #fff; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.aff-more { margin-top: 8px; background: none; border: 1px solid #ee4d2d; color: #ee4d2d; border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.aff-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-2); }
.aff-item[hidden] { display: none; }
@media (max-width: 480px) { .aff-go { display: none; } }
.brand { white-space: nowrap; }
.cta-top .sm { display: none; }
@media (max-width: 560px) {
  .cta-top .lg { display: none; } .cta-top .sm { display: inline; }
  .topbar { padding: 0 12px; } .top-links { gap: 10px; }
  .post-body { padding: 14px; }
}

/* Menu trên màn hình hẹp: ẩn tên site (giữ biểu tượng) để đủ chỗ cho menu */
.cta-top { white-space: nowrap; }
@media (max-width: 440px) {
  .brand-name { display: none; }
  .top-links > a:not(.cta-top) { font-size: 13px; }
}
