/* ============ Trung tâm hướng dẫn AiGara ============ */
:root {
  --o: #f26b2a; --o2: #e04e17; --o-soft: #fff1ea; --o-ink: #b8430f;
  --ink: #0f1b2d; --ink2: #3c4a5e; --mut: #6b7789; --line: #e5e9f0; --line2: #eef1f6;
  --bg: #ffffff; --bg2: #f6f8fb; --bg3: #eef2f7; --card: #ffffff;
  --b: #2f6fed; --g: #12a26b; --y: #e3a008; --p: #7c4dff; --r: #e5484d; --c: #0aa5c2; --k: #d6409f;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 6px 24px rgba(15, 27, 45, .06);
  --r-lg: 16px; --r-md: 12px; --r-sm: 8px;
  --hdr: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8edf5; --ink2: #c3ccd9; --mut: #8b97a9; --line: #253246; --line2: #1d2838;
    --bg: #0f1623; --bg2: #131c2b; --bg3: #18233499; --card: #172131; --o-soft: #2a1a12; --o-ink: #ff9a66;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e8edf5; --ink2: #c3ccd9; --mut: #8b97a9; --line: #253246; --line2: #1d2838;
  --bg: #0f1623; --bg2: #131c2b; --bg3: #18233499; --card: #172131; --o-soft: #2a1a12; --o-ink: #ff9a66;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .25); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.65 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--bg); overflow-x: hidden; }
a { color: var(--o-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.01em; }
img, video { max-width: 100%; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--mut); }
.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.ic.sm { width: 16px; height: 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--o); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--o) 60%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap; text-decoration: none !important; transition: .15s; }
.btn-o { background: linear-gradient(135deg, var(--o), var(--o2)); color: #fff; box-shadow: 0 4px 14px rgba(242, 107, 42, .3); }
.btn-o:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--o); color: var(--o-ink); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--ink2); }
.icon-btn:hover { background: var(--bg2); color: var(--o-ink); }
.link-btn { border: 0; background: none; color: var(--mut); display: inline-flex; gap: 6px; align-items: center; padding: 0; font-size: 14px; }
.link-btn:hover { color: var(--o-ink); }
kbd { font-weight: 600; font-size: .85em; line-height: 1; font-family: inherit; background: var(--bg2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 3px 7px; color: var(--ink); white-space: nowrap; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { height: var(--hdr); display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; }
.logo-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff8a4c, var(--o2)); box-shadow: 0 4px 12px rgba(242, 107, 42, .35); }
.logo b { display: block; font-size: 18px; font-weight: 800; line-height: 1.1; }
.logo small { display: block; font-size: 12px; color: var(--mut); line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px; color: var(--ink2); font-weight: 500; font-size: 15px; background: none; border: 0; text-decoration: none !important; }
.nav-a:hover, .nav-item:hover > .nav-a, .nav-a.on, .nav-item.on > .nav-a { color: var(--o-ink); background: var(--o-soft); }
.hdr-r { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr-cta { margin-left: 6px; }
.burger { display: none; }
.has-mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: var(--hdr); background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(15, 27, 45, .12); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 28px; padding: 24px 0 28px; }
.mega-h { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.mega ul { list-style: none; margin: 0 0 12px; padding: 0 0 0 46px; }
.mega li a { display: block; padding: 3px 0; color: var(--ink2); font-size: 14px; }
.mega li a:hover { color: var(--o-ink); }
.mega li a.more { color: var(--o-ink); font-weight: 600; }

/* ---------- Biểu tượng chủ đề ---------- */
.cat-ic { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; color: #fff; flex: none; }
.cat-ic.sm { width: 26px; height: 26px; border-radius: 8px; } .cat-ic.sm .ic { width: 15px; height: 15px; }
.cat-ic.lg { width: 64px; height: 64px; border-radius: 18px; } .cat-ic.lg .ic { width: 32px; height: 32px; }
.c-o { background: linear-gradient(135deg, #ff8a4c, #e04e17); } .c-b { background: linear-gradient(135deg, #4d8bff, #2556d6); }
.c-g { background: linear-gradient(135deg, #22c38a, #0b8a59); } .c-y { background: linear-gradient(135deg, #f7b733, #d98b06); }
.c-p { background: linear-gradient(135deg, #9b74ff, #6438e8); } .c-r { background: linear-gradient(135deg, #f8676b, #d12f36); }
.c-c { background: linear-gradient(135deg, #20c3dd, #0590a8); } .c-k { background: linear-gradient(135deg, #ef5cb3, #c02b86); }
.c-o-t { color: var(--o-ink); } .c-b-t { color: var(--b); } .c-g-t { color: var(--g); } .c-y-t { color: var(--y); } .c-p-t { color: var(--p); } .c-r-t { color: var(--r); } .c-c-t { color: var(--c); } .c-k-t { color: var(--k); }

/* ---------- Hero trang chủ ---------- */
.hero { position: relative; background: radial-gradient(1200px 400px at 80% -10%, rgba(255, 170, 120, .5), transparent 60%), linear-gradient(135deg, #ff7a35 0%, #ef5a1f 55%, #d9450f 100%); color: #fff; padding: 64px 0 72px; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.hero-in { position: relative; z-index: 1; text-align: center; max-width: 860px; }
.hero h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; margin-bottom: 12px; }
.hero p { font-size: 17px; opacity: .95; margin: 0 auto 28px; max-width: 680px; }
.hero-search { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 8px 8px 8px 18px; box-shadow: 0 18px 48px rgba(120, 30, 0, .3); color: #0f1b2d; text-align: left; }
.hero-search > .ic { color: #8b97a9; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; padding: 10px 4px; background: transparent; color: #0f1b2d; }
.hero-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5; }
.hero-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; font-size: 14px; }
.hero-tags a { color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); padding: 4px 12px; border-radius: 999px; }
.hero-tags a:hover { background: rgba(255, 255, 255, .26); text-decoration: none; }

.sec { padding: 52px 0 8px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-h h2 { font-size: 26px; margin: 0; }
.sec-t { margin-top: 40px; }

.start-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.start { display: flex; flex-direction: column; gap: 4px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none !important; transition: .18s; }
.start:hover { border-color: var(--o); box-shadow: var(--shadow); transform: translateY(-2px); }
.start-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--o-soft); color: var(--o-ink); margin-bottom: 10px; }
.start-ic .ic { width: 24px; height: 24px; }
.start b { font-size: 17px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; transition: .18s; }
.cat-card:hover { box-shadow: var(--shadow); }
.cat-card-h { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); text-decoration: none !important; margin-bottom: 12px; }
.cat-card-h b { display: block; font-size: 17px; }
.cat-card-h small { display: block; color: var(--mut); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.cat-card ul { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--line2); }
.cat-card li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line2); color: var(--ink2); font-size: 14.5px; }
.cat-card li a:hover { color: var(--o-ink); text-decoration: none; }
.cat-more { margin-top: auto; font-weight: 600; font-size: 14px; }

.flow-band { margin-top: 52px; padding: 48px 0; background: var(--bg2); border-block: 1px solid var(--line); }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: j; }
.journey li { position: relative; }
.journey li:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -12px; width: 12px; height: 2px; background: var(--o); opacity: .5; }
.journey a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none !important; position: relative; transition: .18s; }
.journey a:hover { border-color: var(--o); transform: translateY(-2px); }
.j-n { position: absolute; top: 12px; right: 14px; font-weight: 800; color: var(--line); font-size: 26px; line-height: 1; }
.j-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--o-soft); color: var(--o-ink); margin-bottom: 8px; }
.journey small { color: var(--mut); font-size: 13px; line-height: 1.45; }

.a-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.a-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none !important; transition: .15s; }
.a-card:hover { border-color: var(--o); box-shadow: var(--shadow); }
.a-card-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.a-card .muted { font-size: 14px; line-height: 1.5; }

.v-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.v-card { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none !important; }
.v-thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--r-md); background: linear-gradient(135deg, #1e2a3d, #0f1623) center/cover; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.v-play { width: 56px; height: 56px; border-radius: 50%; background: rgba(242, 107, 42, .92); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); transition: .15s; }
.v-play .ic { width: 22px; height: 22px; margin-left: 3px; }
.v-card:hover .v-play { transform: scale(1.08); }
.v-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.v-card.soon .v-play { background: rgba(255, 255, 255, .18); }
.v-card .muted { font-size: 14px; }
.v-full { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.v-full video { width: 100%; border-radius: var(--r-md); background: #000; }

.help-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px; border-radius: 20px; background: linear-gradient(135deg, var(--o-soft), var(--bg2)); border: 1px solid var(--line); margin-bottom: 56px; }
.help-band h2 { margin: 0 0 6px; } .help-band p { margin: 0; color: var(--ink2); }
.help-band-b { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Bố cục bài viết ---------- */
.doc { display: grid; grid-template-columns: 270px minmax(0, 1fr) 230px; gap: 40px; padding: 28px 0 64px; }
.doc-2 { grid-template-columns: 270px minmax(0, 1fr); }
.side-in { position: sticky; top: calc(var(--hdr) + 20px); max-height: calc(100vh - var(--hdr) - 40px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.side-cat { border-bottom: 1px solid var(--line2); }
.side-cat summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 4px; font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--ink); }
.side-cat summary::-webkit-details-marker { display: none; }
.side-cat summary::after { content: "›"; margin-left: auto; color: var(--mut); transition: .15s; font-size: 18px; }
.side-cat[open] summary::after { transform: rotate(90deg); }
.side-cat ul { list-style: none; margin: 0 0 10px; padding: 0 0 0 14px; border-left: 2px solid var(--line2); margin-left: 16px; }
.side-cat li a { display: block; padding: 5px 10px; font-size: 14px; color: var(--ink2); border-radius: 6px; line-height: 1.45; }
.side-cat li a:hover { background: var(--bg2); color: var(--o-ink); text-decoration: none; }
.side-cat li a[aria-current] { color: var(--o-ink); background: var(--o-soft); font-weight: 600; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--mut); margin-bottom: 14px; }
.crumbs a { color: var(--mut); } .crumbs b { color: var(--ink2); font-weight: 500; }
.doc-head h1 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; }
.lead { font-size: 18px; color: var(--ink2); margin: 0 0 14px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13.5px; color: var(--mut); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.doc-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.doc-meta .ic { width: 16px; height: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--o-soft); color: var(--o-ink) !important; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.badge .ic { width: 14px; height: 14px; }

.toc > * { position: sticky; }
.toc { font-size: 14px; }
.toc b { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0 0 24px; padding: 0; border-left: 2px solid var(--line2); }
.toc li a { display: block; padding: 4px 0 4px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink2); line-height: 1.45; }
.toc li a:hover { color: var(--o-ink); text-decoration: none; }
.toc li a.on { color: var(--o-ink); border-left-color: var(--o); font-weight: 600; }
.toc { position: sticky; top: calc(var(--hdr) + 20px); align-self: start; max-height: calc(100vh - var(--hdr) - 40px); overflow: auto; }
.toc-help { padding: 14px; border-radius: var(--r-md); background: var(--bg2); border: 1px solid var(--line); }
.toc-help b { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.toc-mobile { display: none; }

/* ---------- Nội dung bài ---------- */
.prose { font-size: 16.5px; color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 24px; margin-top: 2em; padding-top: .2em; }
.prose h3 { font-size: 19px; margin-top: 1.6em; }
.prose h2 .anchor, .prose h3 .anchor { float: left; margin-left: -1em; width: 1em; opacity: 0; color: var(--mut); font-weight: 400; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; text-decoration: none; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--o); font-weight: 700; }
.prose code { font: .9em ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--bg2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--o) 40%, transparent); }
.prose strong { font-weight: 700; }
.prose-wide { max-width: 860px; }

ol.steps { list-style: none; padding: 0; counter-reset: st; }
ol.steps > li { counter-increment: st; position: relative; padding: 14px 16px 14px 60px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
ol.steps > li + li { margin-top: 10px; }
ol.steps > li::before { content: counter(st); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--o), var(--o2)); color: #fff; font-weight: 700; font-size: 15px; }
ol.steps ul { margin-top: 6px; }

.callout { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid; border-left-width: 4px; font-size: 15.5px; }
.callout-label { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.callout-tip { background: color-mix(in srgb, var(--g) 8%, var(--bg)); border-color: color-mix(in srgb, var(--g) 35%, transparent); } .callout-tip .callout-label { color: var(--g); }
.callout-note, .callout-info { background: color-mix(in srgb, var(--b) 7%, var(--bg)); border-color: color-mix(in srgb, var(--b) 30%, transparent); } .callout-note .callout-label, .callout-info .callout-label { color: var(--b); }
.callout-warn { background: color-mix(in srgb, var(--r) 7%, var(--bg)); border-color: color-mix(in srgb, var(--r) 35%, transparent); } .callout-warn .callout-label { color: var(--r); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line2); vertical-align: top; }
.prose th { background: var(--bg2); font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px; background: var(--bg2); border: 1px dashed var(--line); border-radius: var(--r-md); }
.flow-node { padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.flow-node:last-child { background: var(--o-soft); border-color: var(--o); color: var(--o-ink); }
.flow-arrow { color: var(--o); font-weight: 700; }

.video-ph { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-md); background: var(--bg2); border: 1px dashed var(--line); }
.video-ph > .ic { color: var(--o); width: 28px; height: 28px; }
.video-ph b { display: block; }
figure.video { margin: 1.4em 0; } figure.video video { width: 100%; border-radius: var(--r-md); background: #000; }
figure.video figcaption { font-size: 14px; color: var(--mut); margin-top: 6px; }

/* ---------- Phản hồi, điều hướng ---------- */
.feedback { margin-top: 48px; padding: 22px; border-radius: var(--r-lg); background: var(--bg2); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.fb-btns { display: flex; gap: 8px; }
.fb-btns .btn.on { border-color: var(--o); color: var(--o-ink); background: var(--o-soft); }
.fb-form { flex-basis: 100%; display: grid; gap: 8px; }
.fb-form textarea { width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); resize: vertical; }
.fb-form .btn { justify-self: start; }
.fb-thanks { margin: 0; color: var(--g); font-weight: 600; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.pn a { display: flex; flex-direction: column; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); font-weight: 600; text-decoration: none; }
.pn a:hover { border-color: var(--o); }
.pn a small { color: var(--mut); font-weight: 500; }
.pn a.r { text-align: right; }
.related { margin-top: 40px; } .related h2 { font-size: 20px; }
.related .a-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- Trang chủ đề / trang thường ---------- */
.cat-hero, .page-hero { padding: 32px 0 30px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.cat-hero-in { display: flex; gap: 20px; align-items: center; }
.cat-hero h1, .page-hero h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin: 0 0 4px; }
.cat-hero p { margin: 0; color: var(--ink2); font-size: 17px; }
.cat-hero small { color: var(--mut); }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cat-list a { display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; transition: .15s; }
.cat-list a:hover { border-color: var(--o); box-shadow: var(--shadow); }
.cat-list a > span:nth-child(2) { flex: 1; } .cat-list b { display: block; font-size: 16.5px; } .cat-list .muted { font-size: 14px; }
.num { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--o-soft); color: var(--o-ink); font-weight: 700; }
.page-body { padding: 32px 0 64px; }
.page-search { max-width: 720px; margin-top: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.faq-search { display: flex; align-items: center; gap: 10px; max-width: 520px; margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; }
.faq-search input { flex: 1; border: 0; outline: 0; font: inherit; padding: 10px 0; background: transparent; color: var(--ink); }
.qa { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); margin-top: 10px; }
.qa summary { list-style: none; cursor: pointer; padding: 14px 48px 14px 18px; font-weight: 600; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 22px; color: var(--o); font-weight: 400; }
.qa[open] summary::after { content: "–"; }
.qa-a { padding: 0 18px 16px; color: var(--ink2); }
.qa-a > * + * { margin-top: .8em; }
.nf { text-align: center; } .nf-code { font-size: 96px; font-weight: 800; color: var(--o); line-height: 1; display: block; } .nf .page-search { margin-inline: auto; }

/* ---------- Tìm kiếm ---------- */
.search-modal { position: fixed; inset: 0; z-index: 90; background: rgba(10, 16, 28, .55); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search-modal[hidden] { display: none; }
.search-box { width: min(720px, 100%); background: var(--bg); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; border: 1px solid var(--line); }
.search-field { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; background: transparent; color: var(--ink); }
.search-results { max-height: 60vh; overflow: auto; }
.search-results:empty { display: none; }
.hero-results { background: var(--bg); border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); border: 1px solid var(--line); color: var(--ink); }
.sr { display: block; padding: 12px 18px; border-bottom: 1px solid var(--line2); color: var(--ink); text-decoration: none !important; }
.sr:hover, .sr.on { background: var(--o-soft); }
.sr small { display: block; color: var(--mut); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.sr b { display: block; font-size: 15.5px; }
.sr span { display: block; color: var(--mut); font-size: 14px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sr mark, .result-list mark { background: color-mix(in srgb, var(--o) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-empty { padding: 18px; color: var(--mut); }
.result-list .sr { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; padding: 16px 18px; }
.result-list .sr b { font-size: 17px; }

/* ---------- Footer ---------- */
.ftr { background: var(--bg2); border-top: 1px solid var(--line); padding: 48px 0 0; font-size: 14.5px; }
.ftr-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.ftr h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin: 6px 0; display: flex; align-items: center; gap: 8px; }
.ftr li a { color: var(--ink2); } .ftr li .ic { width: 16px; height: 16px; color: var(--o); }
.ftr p { margin: 12px 0 16px; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 10px; background: #0f1b2d; color: #fff; text-decoration: none !important; line-height: 1.15; font-weight: 600; }
.store small { display: block; font-size: 11px; font-weight: 400; opacity: .8; }
.store .ic { width: 22px; height: 22px; }
.ftr-b { border-top: 1px solid var(--line); margin-top: 36px; padding: 18px 0; color: var(--mut); font-size: 13.5px; }

/* ================= Điện thoại minh hoạ ================= */
.shot { margin: 1.6em 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.shot figcaption { font-size: 14px; color: var(--mut); text-align: center; max-width: 420px; }
.phone { width: 330px; padding: 10px; border-radius: 42px; background: linear-gradient(145deg, #2b3446, #0b0f17); box-shadow: 0 24px 50px rgba(15, 27, 45, .28), inset 0 0 0 2px #3a4559; }
.phone-screen { position: relative; height: 650px; border-radius: 32px; overflow: hidden; background: #121926; color: #e8edf5; font-size: 12px; line-height: 1.35; display: flex; flex-direction: column; font-family: 'Be Vietnam Pro', system-ui, sans-serif; }
.phone-screen .ic { width: 15px; height: 15px; }
.m-status { display: flex; justify-content: space-between; padding: 10px 22px 4px; font-size: 11px; font-weight: 600; flex: none; }
.m-sig { letter-spacing: -1px; font-size: 9px; opacity: .9; }
.m-head { display: flex; align-items: center; gap: 12px; padding: 8px 14px; flex: none; }
.m-head b { font-size: 16px; flex: 1; } .m-head b.big { font-size: 22px; }
.m-head-r { display: flex; }
.m-head2 > div { flex: 1; min-width: 0; } .m-head2 b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .m-head2 small { color: #8a96a8; font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-btn-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #1c2535; border: 1px solid #2a3547; flex: none; }
.m-body { padding: 6px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.m-scroll { overflow: hidden; }
.m-card { background: #1d2636; border: 1px solid #263246; border-radius: 14px; padding: 10px; }
.m-field { display: flex; align-items: center; gap: 10px; background: #243045; border-radius: 12px; padding: 9px 12px; min-height: 42px; flex: 1; min-width: 0; }
.m-field > .ic { color: #8a96a8; }
.m-field-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-field-t small { font-size: 10px; color: #8a96a8; }
.m-field .ph { color: #8a96a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-field.ph-o .ph { color: #ff9a66; }
.m-field .val { color: #fff; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-field.focus { outline: 1.5px solid #f26b2a; }
.m-line { display: flex; gap: 8px; align-items: center; }
.m-round { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #2a3445; flex: none; color: #8a96a8; }
.m-round.o { background: #5a2e1d; color: #ffd2bd; }
.m-cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 14px; background: linear-gradient(90deg, #ff7a35, #ea4f1a); color: #fff; font-weight: 700; font-size: 13.5px; }
.m-cta.flat { background: #ff7a35; }
.m-cta.dim { background: linear-gradient(90deg, #9a4f2b, #8b3a20); color: #e0b8a5; }
.m-cta.green { background: linear-gradient(90deg, #14c38e, #0a9b6c); }
.m-cta.sm { padding: 6px 12px; font-size: 12px; border-radius: 9px; display: inline-flex; }
.m-out { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-radius: 12px; border: 1px solid #344158; color: #fff; font-weight: 600; font-size: 12px; white-space: nowrap; }
.m-out-full { flex: 1; }
.m-out.red { color: #ff6b6b; border-color: #6b2b30; }
.m-lbl { font-size: 12px; font-weight: 700; margin-top: 2px; } .m-lbl.o { color: #ff9a66; font-weight: 500; }
.m-muted { color: #8a96a8; } .m-center { text-align: center; }
.m-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.m-tags span { background: #243045; padding: 5px 10px; border-radius: 999px; font-size: 11px; }
.m-seg { display: flex; border: 1px solid #344158; border-radius: 10px; overflow: hidden; flex: none; } .m-seg > * { padding: 10px 11px; } .m-seg b { background: #3a2418; color: #ff7a35; }
.m-bottom { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 0; background: #1a2232; border-top: 1px solid #263246; flex: none; }
.m-bottom2 { padding: 8px 12px 14px; background: #1a2232; flex: none; }
.m-total small { display: block; color: #8a96a8; font-size: 10.5px; } .m-total b { font-size: 16px; }
.m-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; background: #2a3445; color: #c3ccd9; white-space: nowrap; }
.m-pill.o { background: #3a2418; color: #ff7a35; } .m-pill.y { background: #3a2f14; color: #f7b733; } .m-pill.g { background: #123628; color: #22c38a; }
.m-pill .ic { width: 11px; height: 11px; }
.o { color: #ff7a35; } .y { color: #f7b733; } .g { color: #22c38a; } .b { color: #5b95ff; }
.m-kv { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .m-kv > span { color: #a3afc0; } .m-kv small { color: #8a96a8; }
.m-kvs { display: flex; flex-direction: column; gap: 5px; }
.m-tot { padding: 4px 2px; border-top: 1px solid #263246; padding-top: 8px; }
.m-sum { display: flex; justify-content: space-between; align-items: center; } .m-sum small { display: block; color: #8a96a8; text-align: right; font-size: 10.5px; } .m-sum b { font-size: 19px; color: #ff7a35; }
.m-info { display: flex; flex-direction: column; gap: 6px; } .m-info > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .m-info u { display: inline-flex; gap: 4px; align-items: center; }
.m-item { display: flex; align-items: center; justify-content: space-between; gap: 6px; } .m-item > div:first-child { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 0; } .m-item span b { display: block; font-size: 12px; } .m-item small { color: #8a96a8; }
.m-item-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.m-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); z-index: 1; }
.m-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; background: #1e2737; border-radius: 22px 22px 0 0; padding: 8px 12px 14px; display: flex; flex-direction: column; gap: 8px; max-height: 76%; }
.m-sheet-tall { max-height: 90%; }
.m-sheet h4 { font-size: 15px; margin: 2px 0; }
.m-sheet-h { display: flex; align-items: center; justify-content: space-between; }
.m-grab { width: 40px; height: 4px; border-radius: 4px; background: #3a4559; margin: 0 auto 4px; }
.m-list { display: flex; flex-direction: column; overflow: hidden; }
.m-li { display: flex; justify-content: space-between; padding: 9px 2px; font-size: 13px; } .m-li small { color: #a3afc0; }
.m-login { flex: 1; display: flex; flex-direction: column; align-items: center; background: radial-gradient(circle at 20% 0%, #ffa36e, transparent 40%), linear-gradient(170deg, #ff8642, #e8461a); padding: 0 0 12px; }
.m-login .m-status { align-self: stretch; }
.m-logo { width: 64px; height: 64px; background: #fff; border-radius: 18px; color: #f26b2a; display: grid; place-items: center; margin-top: 30px; } .m-logo .ic { width: 30px; height: 30px; }
.m-logo.sm { width: 48px; height: 48px; margin: 0 0 8px; border-radius: 14px; }
.m-brand { font-size: 26px; font-weight: 800; margin-top: 8px; } .m-sub { font-size: 11.5px; opacity: .95; margin-bottom: 14px; }
.m-login-card { width: 88%; background: #1d2636; border: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; border-radius: 20px; } .m-login-card h4 { font-size: 17px; margin: 0 0 4px; }
.m-link-r { text-align: right; color: #ff8a4c; font-weight: 600; font-size: 12px; }
.m-foot-l { margin-top: 14px; font-size: 12px; text-align: center; } .m-foot-s { margin-top: 8px; font-size: 11px; text-align: center; color: inherit; opacity: .85; }
.m-hero-ic { width: 54px; height: 54px; border-radius: 16px; background: #3a2418; color: #ff7a35; display: grid; place-items: center; margin: 14px auto 2px; } .m-hero-ic .ic { width: 26px; height: 26px; }
.m-body h4 { font-size: 15px; margin: 4px 0; }
.m-greet small { color: #8a96a8; display: block; } .m-greet b { font-size: 17px; }
.m-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-row2 .m-card { padding: 9px; display: flex; flex-direction: column; gap: 4px; }
.m-card-t { font-weight: 700; display: flex; align-items: center; gap: 6px; } .m-card-t .bar { width: 3px; height: 13px; background: #ff7a35; border-radius: 2px; }
.m-chips { display: flex; gap: 4px; } .m-chips span { border: 1px solid #344158; border-radius: 999px; padding: 2px 7px; font-size: 9.5px; } .m-chips span.on { background: #ff7a35; border-color: #ff7a35; }
.m-chips-l span { font-size: 11px; padding: 5px 11px; white-space: nowrap; }
.m-row2 .m-kv { font-size: 9.5px; white-space: nowrap; } .m-row2 .m-kv b { font-size: 10.5px; } .m-chips span { white-space: nowrap; }
.m-bars { display: flex; align-items: flex-end; gap: 5px; height: 38px; } .m-bars i { flex: 1; background: linear-gradient(#ff8642, #e8461a); border-radius: 3px 3px 0 0; }
.m-donut { width: 74px; height: 74px; border-radius: 50%; margin: 4px auto; background: conic-gradient(#f26b2a 0 18%, #3b82f6 0 27%, #10b981 0 34%, #ec4899 0); display: grid; place-items: center; position: relative; }
.m-donut::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #1d2636; }
.m-donut b, .m-donut small { position: relative; line-height: 1; } .m-donut b { font-size: 14px; margin-top: 18px; } .m-donut small { font-size: 8px; color: #8a96a8; margin-top: -26px; }
.m-leg { font-size: 9.5px; display: flex; align-items: center; gap: 5px; } .m-leg i { width: 7px; height: 7px; border-radius: 50%; }
.m-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: #8a96a8; margin-top: 2px; }
.m-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.m-q { background: #1d2636; border: 1px solid #263246; border-radius: 12px; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 500; text-align: center; }
.m-q.hot { background: linear-gradient(135deg, #ff7a35, #ea4f1a); border-color: transparent; }
.m-alert { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #2b2615; border: 1px solid #5a4a1c; } .m-alert > .ic { color: #f7b733; } .m-alert div { flex: 1; } .m-alert b { display: block; } .m-alert small { color: #a3afc0; } .m-alert .num { font-size: 20px; color: #f7b733; }
.m-appt { display: flex; gap: 12px; align-items: center; } .m-appt b.o { font-size: 16px; } .m-appt small { display: block; color: #8a96a8; }
.m-nav { display: flex; background: #1a2232; border-top: 1px solid #263246; padding: 7px 4px 12px; flex: none; }
.m-nav-i { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9.5px; color: #8a96a8; padding: 4px 0; border-radius: 12px; }
.m-nav-i.on { color: #ff7a35; } .m-nav-i.on .ic { background: #3a2418; border-radius: 10px; padding: 3px 12px; width: 40px; height: 22px; }
.m-fn { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 4px; overflow: hidden; }
.m-fn-i { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 9.5px; text-align: center; line-height: 1.2; }
.m-fn-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.m-fn-ic .ic { width: 18px; height: 18px; }
.m-stats .m-fn-ic, .m-inv .m-fn-ic, .m-card-t2 .m-fn-ic { width: 28px; height: 28px; border-radius: 9px; } .m-stats .m-fn-ic .ic, .m-card-t2 .m-fn-ic .ic { width: 14px; height: 14px; }
.m-title { display: flex; align-items: center; gap: 10px; } .m-title > i { width: 3px; height: 34px; background: #ff7a35; border-radius: 2px; } .m-title div { flex: 1; } .m-title b { font-size: 19px; display: block; } .m-title small { color: #8a96a8; font-size: 10.5px; }
.m-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.m-stat { background: #1d2636; border: 1px solid #263246; border-radius: 12px; padding: 7px; display: flex; flex-direction: column; gap: 3px; } .m-stat b { font-size: 13px; } .m-stat small { font-size: 9px; color: #8a96a8; line-height: 1.2; }
.m-order { display: flex; flex-direction: column; gap: 3px; } .m-order small { color: #a3afc0; display: flex; gap: 4px; align-items: center; }
.m-inv { display: flex; align-items: center; gap: 10px; } .m-inv > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; } .m-inv b { font-size: 12px; } .m-inv small { color: #a3afc0; }
.m-fab { position: absolute; right: 14px; bottom: 74px; display: flex; gap: 6px; align-items: center; padding: 11px 15px; background: #ff7a35; border-radius: 16px; font-weight: 700; z-index: 1; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.m-prof { display: flex; gap: 12px; align-items: center; } .m-prof b { display: flex; gap: 8px; align-items: center; font-size: 15px; } .m-prof small { color: #8a96a8; }
.m-ava { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, #ff7a35, #e8461a); display: grid; place-items: center; font-size: 22px; font-weight: 800; flex: none; }
.m-ava.sm { width: 32px; height: 32px; font-size: 14px; border-radius: 50%; }
.m-card-t2 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .m-card .m-field + .m-field, .m-card .m-field + .m-cta { margin-top: 8px; }
.m-dialog { position: absolute; z-index: 3; left: 24px; right: 24px; top: 38%; background: #222c3d; border-radius: 18px; padding: 16px; } .m-dialog p { color: #a3afc0; margin: 6px 0 12px; } .m-dialog-b { display: flex; justify-content: flex-end; gap: 22px; font-weight: 700; }
.m-banner { margin: 0 12px; padding: 8px 10px; border-radius: 10px; background: #3a2f14; color: #f7b733; font-size: 11px; display: flex; gap: 6px; align-items: center; }

/* Đánh dấu thao tác trên màn minh hoạ */
.phone-screen [data-n], .browser-screen [data-n] { position: relative; outline: 2.5px solid #ffd43b; outline-offset: 2px; border-radius: 10px; z-index: 4; box-shadow: 0 0 0 6px rgba(255, 212, 59, .18); }
.phone-screen [data-n]::after, .browser-screen [data-n]::after { content: attr(data-n); position: absolute; top: -10px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: #ffd43b; color: #1a1300; font: 800 11px/20px 'Be Vietnam Pro', sans-serif; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); z-index: 5; }

/* ---------- Trình duyệt minh hoạ (bản web) ---------- */
.shot-wide { width: 100%; }
.browser { width: 100%; max-width: 760px; border-radius: 14px; overflow: hidden; border: 1px solid #2a3547; box-shadow: 0 24px 50px rgba(15, 27, 45, .22); background: #121926; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1f2838; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { margin-left: 10px; flex: 1; background: #121926; color: #a3afc0; border-radius: 8px; padding: 3px 12px; font-size: 12px; }
.browser-screen { color: #e8edf5; font-size: 12px; line-height: 1.4; min-height: 300px; }
.browser-screen .ic { width: 15px; height: 15px; }
.w-login { display: grid; grid-template-columns: 1fr 1fr; min-height: 330px; }
.w-login-l { background: linear-gradient(160deg, #ff8642, #e8461a); display: flex; flex-direction: column; justify-content: center; padding: 28px; } .w-login-l b { font-size: 26px; font-weight: 800; } .w-login-l p { margin: 4px 0 0; }
.w-login-r { padding: 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; } .w-login-r h4 { font-size: 18px; margin: 0; }
.w-app { display: grid; grid-template-columns: 170px 1fr; min-height: 330px; }
.w-side { background: #1a2232; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid #263246; }
.w-side-b { font-weight: 800; font-size: 15px; display: flex; gap: 8px; align-items: center; color: #ff7a35; padding: 4px 8px 12px; }
.w-side-i { display: flex; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 8px; color: #a3afc0; } .w-side-i.on { background: #3a2418; color: #ff7a35; font-weight: 600; }
.w-main { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.w-top { display: flex; gap: 12px; align-items: center; } .w-top .m-field { min-height: 34px; padding: 6px 10px; }
.w-main b.big { font-size: 17px; }
.w-table { width: 100%; border-collapse: collapse; font-size: 11.5px; } .w-table th { text-align: left; color: #8a96a8; font-weight: 600; padding: 6px; border-bottom: 1px solid #263246; } .w-table td { padding: 8px 6px; border-bottom: 1px solid #1f2a3b; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .doc { grid-template-columns: 250px minmax(0, 1fr); }
  .toc { display: none; }
  .toc-mobile { display: block; margin: 12px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg2); }
  .toc-mobile summary { font-weight: 600; cursor: pointer; }
  .toc-mobile ol { margin: 8px 0 0; padding-left: 1.2em; }
  .cat-grid, .start-grid { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(3, 1fr); }
  .journey li::after { display: none; }
  .mega-in { grid-template-columns: repeat(2, 1fr); max-height: calc(100vh - var(--hdr)); overflow: auto; }
}
@media (max-width: 960px) {
  .nav { position: fixed; inset: var(--hdr) 0 auto 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; gap: 2px; display: none; max-height: calc(100vh - var(--hdr)); overflow: auto; box-shadow: 0 20px 40px rgba(0, 0, 0, .15); }
  .nav.open { display: flex; }
  .nav-a { padding: 12px; justify-content: space-between; width: 100%; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; }
  .has-mega.open .mega { display: block; }
  .mega-in { grid-template-columns: 1fr; padding: 4px 0 8px; width: 100%; }
  .burger { display: grid; }
  .hdr-cta { display: none; }
  .doc, .doc-2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { display: none; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
  .a-grid, .related .a-grid, .v-grid { grid-template-columns: 1fr 1fr; }
  .v-full { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero { padding: 40px 0 48px; }
  .hero-search { padding: 6px 6px 6px 14px; }
  .hero-search .btn { padding: 10px 12px; }
  .hero-search input { font-size: 16px; }
  .cat-grid, .start-grid, .a-grid, .related .a-grid, .v-grid, .journey, .ftr-in { grid-template-columns: 1fr; }
  .pn { grid-template-columns: 1fr; }
  .prose { font-size: 16px; }
  ol.steps > li { padding-left: 52px; }
  .phone { width: 310px; } .phone-screen { height: 620px; }
  .cat-hero-in { flex-direction: column; align-items: flex-start; }
  .cat-list a { flex-wrap: wrap; } .cat-list .badge { margin-left: 50px; }
  .w-app { grid-template-columns: 1fr; } .w-side { display: none; } .w-login { grid-template-columns: 1fr; } .w-login-l { display: none; }
  .w-table th:nth-child(3), .w-table td:nth-child(3) { display: none; }
  .logo small { display: none; }
}
@media print {
  .hdr, .side, .toc, .ftr, .feedback, .pn, .related, .toc-mobile, .doc-meta .link-btn { display: none !important; }
  .doc { display: block; padding: 0; } body { background: #fff; color: #000; }
  .phone { box-shadow: none; } .shot { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Chế độ khung hình video: chỉ hiện điện thoại minh hoạ, phóng to */
body.frame { background: transparent; }

/* ---------- Ảnh chụp màn hình thật (có chú thích đánh số) ---------- */
.shot-real { margin: 1.6em 0; }
.shot-real a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg2); cursor: zoom-in; }
.shot-real img { display: block; width: 100%; height: auto; }
.shot-real figcaption { font-size: 14px; color: var(--mut); margin-top: 8px; text-align: center; }
.shot-missing { padding: 28px; border: 2px dashed var(--line); border-radius: 12px; text-align: center; color: var(--mut); background: var(--bg2); }
.prose ol.legend { list-style: none; padding: 0; counter-reset: lg; }
.prose ol.legend > li { counter-increment: lg; position: relative; padding-left: 40px; }
.prose ol.legend > li::before { content: counter(lg); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: #f26b2a; color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
