:root {
  --ink: #1b1512;
  --paper: #fff6e6;
  --card: #fffdf8;
  --red: #d63a22;
  --red-dark: #b22c17;
  --yellow: #ffc83d;
  --teal: #0f8b7d;
  --muted: #655a52;
  --soft: #f3e6cf;
  --radius: 18px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.7rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; scroll-margin-top: 60px; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 14px; margin-bottom: 18px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Demo strip */
.demo-strip { background: var(--ink); color: var(--paper); text-align: center; font-size: .86rem; padding: 6px 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 2px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.25rem; text-decoration: none; white-space: nowrap; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--red); border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink); display: grid; place-items: center; color: #fff; font-size: 1.05rem;
}
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: .96rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Giá ra mắt / giá thường */
.when-regular { display: none; }
.launch-over .when-launch { display: none !important; }
.launch-over .when-regular { display: revert; }
.price s, .row .p s { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); line-height: 1.2; }
.buybox .price s { display: inline; font-size: 1.1rem; margin-left: 10px; }
.launch-note { font-size: .9rem; font-weight: 700; color: var(--red-dark); margin: 14px 0 0; }
.buybox .launch-note { margin: 2px 0 6px; }
.launch-bar { max-width: 760px; margin: 28px auto 0; text-align: center; background: var(--card); border: 2px dashed var(--red); border-radius: 14px; padding: 12px 18px; font-size: .97rem; }
.launch-bar b { color: var(--red-dark); }
.plan .after { font-size: .86rem; font-weight: 600; margin: 0 0 2px; opacity: .8; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: inherit; font-weight: 800; text-decoration: none; color: var(--ink);
  background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 13px 24px;
  box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-yellow { background: var(--yellow); }
.btn-lg { font-size: 1.1rem; padding: 16px 30px; }
.btn-sm { padding: 8px 16px; font-size: .92rem; border-radius: 12px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }

/* Hero */
.hero { padding: 56px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.hero .lead { margin-bottom: 24px; }
.cmd {
  background: var(--ink); color: #f7ead2; border-radius: 14px; padding: 16px 20px; margin: 0 0 22px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 1rem; box-shadow: 5px 5px 0 var(--red);
  min-height: 58px; display: flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap;
}
.cmd .prompt { color: var(--yellow); }
.cmd > span:not(.prompt) { min-width: 0; }
.cmd-text { min-width: 0; display: flex; align-items: center; gap: 10px; }
.cmd-ghost { display: none; }
.cmd-live { min-width: 0; display: flex; align-items: center; gap: 10px; }
.cmd .caret { display: inline-block; width: 9px; height: 1.15em; background: var(--yellow); animation: blink 1s steps(1) infinite; vertical-align: -3px; }
@keyframes blink { 50% { opacity: 0; } }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before {
  content: '✓'; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: .8rem; font-weight: 900; display: grid; place-items: center;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.req { margin-top: 18px; font-size: .9rem; color: var(--muted); }

.phones { position: relative; height: 480px; }
.phones .poster { position: absolute; width: 215px; }
.phones .poster:nth-child(1) { left: 2%; top: 60px; transform: rotate(-8deg); }
.phones .poster:nth-child(2) { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; width: 235px; }
.phones .poster:nth-child(3) { right: 2%; top: 70px; transform: rotate(8deg); }

/* Poster (chỗ đặt video demo) */
.poster {
  position: relative; aspect-ratio: 9 / 16; border: 3px solid var(--ink); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 16px;
  background: linear-gradient(160deg, var(--a), var(--b));
}
.poster.wide { aspect-ratio: 16 / 9; }
.poster video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: #000; }
.poster.has-video { background: #000; }
.poster.has-video::after { display: none; }
.poster::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 80% 15%, rgba(255,255,255,.28), transparent 45%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 14px, transparent 14px 28px);
}
.poster > * { position: relative; z-index: 1; }
.poster-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.chip { background: rgba(27,21,18,.78); color: #fff; padding: 3px 10px; border-radius: 999px; font-family: ui-monospace, Menlo, monospace; }
.poster-name { font-weight: 900; font-size: 1.7rem; line-height: 1.05; text-shadow: 2px 2px 0 rgba(27,21,18,.55); }
.play {
  align-self: center; width: 58px; height: 58px; border-radius: 50%; background: #fff; border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm); display: grid; place-items: center;
}
.play::before { content: ''; border-left: 17px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.sub {
  background: rgba(27,21,18,.82); border-radius: 10px; padding: 7px 10px; font-weight: 800; font-size: .92rem;
  line-height: 1.3; text-align: center; white-space: pre-line;
}

/* Trust strip */
.strip { background: var(--ink); color: var(--paper); padding: 18px 0; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center; font-weight: 600; font-size: .95rem; }
.strip li::before { content: '●'; color: var(--yellow); margin-right: 9px; font-size: .7em; vertical-align: 2px; }

/* Skill grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.card {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.card-media { text-decoration: none; background: var(--soft); border-bottom: 2px solid var(--ink); padding: 22px; display: grid; place-items: center; height: 300px; }
.card-media .poster { height: 100%; width: auto; box-shadow: var(--shadow-sm); border-radius: 16px; padding: 12px; }
.card-media .poster.wide { height: auto; width: 100%; }
.card-media .poster-name { font-size: 1.25rem; }
.card-media .poster:not(.wide) .poster-top span:last-child { display: none; }
.card-media .play { width: 44px; height: 44px; }
.card-media .play::before { border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; margin-left: 4px; }
.card-media .sub { font-size: .72rem; padding: 5px 8px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; font-size: .76rem; font-weight: 700; background: var(--soft); border: 1.5px solid var(--ink); border-radius: 999px; padding: 1px 11px; margin-bottom: 10px; }
.card h3 { margin-bottom: 4px; font-size: 1.35rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .tagline { font-weight: 700; margin-bottom: 8px; }
.card p.desc { color: var(--muted); font-size: .96rem; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.price { font-weight: 900; font-size: 1.35rem; white-space: nowrap; }
.card-actions { display: flex; gap: 8px; }

/* Tính năng */
section.tight { padding-top: 8px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.feature { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.feature .glyph { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--yellow); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 1.05rem; }
.feature h3 { font-size: 1.05rem; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }

/* Steps */
.alt { background: var(--soft); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; counter-reset: s; }
.step { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); counter-increment: s; }
.step::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  background: var(--yellow); border: 2px solid var(--ink); font-weight: 900; font-size: 1.25rem;
}
.step p { margin: 0; color: var(--muted); }
.pipeline { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; padding: 0; list-style: none; }
.pipeline li { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: .95rem; }
.pipeline li span { color: var(--yellow); margin-right: 6px; }

/* Fit */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 36px; }
.box { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.box.no { background: transparent; box-shadow: none; border-style: dashed; }
.box ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 34px; align-items: stretch; }
.plan { background: var(--card); border: 2px solid var(--ink); border-radius: 22px; padding: 26px 22px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; }
.plan.best { background: var(--yellow); border-width: 3px; box-shadow: 8px 8px 0 var(--ink); }
.plan h3 { font-size: 1.3rem; margin: 0; }
.badge {
  position: absolute; top: -16px; right: 24px; background: var(--red); color: #fff; font-weight: 800; font-size: .9rem;
  border: 2px solid var(--ink); border-radius: 999px; padding: 4px 16px; transform: rotate(3deg);
}
.plan .big { font-size: clamp(1.8rem, 2.6vw, 2.25rem); overflow-wrap: anywhere; font-weight: 900; line-height: 1.1; margin: 6px 0 2px; }
.plan .was { font-weight: 600; font-size: .93rem; }
.plan .was s { opacity: .7; }
.plan .ticks { margin: 14px 0 24px; flex: 1; align-content: start; font-size: .95rem; }
.plan.best .ticks li::before { background: var(--ink); }
.plan .btn { width: 100%; }
.pay { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; font-size: .84rem; font-weight: 700; }
.pay span { background: var(--card); border: 1.5px solid var(--ink); border-radius: 8px; padding: 2px 10px; }
.singles { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 10px 24px; margin-top: 30px; }
.singles .rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; }
.singles h3 { margin: 16px 0 6px; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1.5px dashed #cbbda6; }
.row .n { flex: 1; min-width: 0; }
.row .n a { font-weight: 800; text-decoration: none; }
.row .n a:hover { text-decoration: underline; }
.row .n small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.row .p { font-weight: 800; white-space: nowrap; }
.total { display: flex; justify-content: space-between; padding: 14px 0 12px; border-top: 2px solid var(--ink); font-weight: 700; color: var(--muted); }

/* FAQ */
.faq { max-width: 800px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 0 22px; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 11px; font-size: 1.5rem; font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Final CTA + footer */
.final { background: var(--red); color: #fff; text-align: center; border-top: 2px solid var(--ink); }
.final p { opacity: .95; max-width: 52ch; margin: 0 auto 26px; }
.site-footer { background: var(--ink); color: #d9cdbb; padding: 44px 0 110px; font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .small { grid-column: 1 / -1; border-top: 1px solid #40362f; padding-top: 18px; font-size: .82rem; color: #a99c8b; }

/* Product page */
.crumbs { font-size: .88rem; color: var(--muted); padding-top: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.product { padding: 26px 0 64px; }
.product-grid { display: grid; grid-template-columns: 340px 1fr; gap: 52px; align-items: start; }
.product-grid.wide { grid-template-columns: 1fr 1fr; }
.product h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.buybox { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin: 24px 0; }
.buybox .price { font-size: 2.2rem; }
.buybox .note { font-size: .88rem; color: var(--muted); margin: 2px 0 16px; }
.buybox .cta-row .btn { flex: 1; min-width: 190px; }
.upsell { margin-top: 14px; font-size: .93rem; background: var(--soft); border-radius: 12px; padding: 10px 14px; }
.upsell a { font-weight: 800; }
.spec { width: 100%; border-collapse: collapse; margin-top: 12px; }
.spec th, .spec td { text-align: left; padding: 11px 0; border-top: 1.5px dashed #cbbda6; vertical-align: top; }
.spec th { width: 36%; font-weight: 700; padding-right: 16px; }
.spec td { color: var(--muted); }
.prose { max-width: 760px; }
.product .faq { max-width: 760px; margin: 18px 0 0; }
.product-media { position: sticky; top: 90px; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.fine { font-size: .86rem; color: var(--muted); }

/* Trang pháp lý: một cột đọc rộng khoảng 70 ký tự */
.legal { padding: 22px 0 80px; }
.legal .wrap > * { max-width: 70ch; }
.legal h1 { font-size: clamp(1.9rem, 4.6vw, 2.7rem); margin-bottom: .25em; }
.legal-updated { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.legal section { margin-top: 2.1em; padding: 0; } /* bỏ khoảng đệm chung của <section> */
.legal h2 { font-size: 1.35rem; margin: 0 0 .55em; }
.legal p, .legal li { line-height: 1.8; }
.legal p { margin: 0 0 1em; }
.legal ul { margin: 0 0 1em; padding-left: 1.25em; }
.legal li { margin-bottom: .5em; padding-left: .2em; }
.legal li::marker { color: var(--red); }

/* Trang 404 */
.notfound { padding: 84px 0 110px; text-align: center; }
.nf-code { font-size: clamp(5rem, 22vw, 9.5rem); font-weight: 900; line-height: 1; margin: 0 0 .1em; color: var(--red); text-shadow: 5px 5px 0 var(--ink); letter-spacing: -.02em; }
.notfound .lead { max-width: 44ch; margin: 0 auto 28px; }

/* Floating: Zalo + thanh mua trên mobile */
.zalo {
  position: fixed; right: 18px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 40; background: #0068ff; color: #fff; font-weight: 800; text-decoration: none;
  border: 2px solid var(--ink); border-radius: 999px; padding: 10px 18px; box-shadow: var(--shadow-sm); font-size: .95rem;
}
.buybar { display: none; }
.dock { display: contents; } /* trên máy tính và máy tính bảng: chỉ là hộp bọc, nút Zalo tự nổi */
.nav-cta, .menu-btn { display: none; }

/* Modal thanh toán */
dialog.checkout { border: 3px solid var(--ink); border-radius: 22px; padding: 0; width: min(460px, calc(100vw - 28px)); box-shadow: 8px 8px 0 var(--ink); background: var(--card); color: var(--ink); }
dialog.checkout::backdrop { background: rgba(27,21,18,.6); }
.co-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 2px solid var(--ink); background: var(--yellow); }
.co-head h2 { font-size: 1.2rem; margin: 0; }
.co-close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; color: var(--ink); }
.co-body { padding: 20px 22px 24px; }
.co-item { display: flex; justify-content: space-between; gap: 14px; font-weight: 700; padding-bottom: 14px; border-bottom: 1.5px dashed #cbbda6; }
.co-item small { display: block; font-weight: 400; color: var(--muted); }
.co-label { font-weight: 700; margin: 16px 0 8px; font-size: .92rem; }
.co-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-methods label { border: 2px solid var(--ink); border-radius: 12px; padding: 12px; cursor: pointer; display: block; }
.co-methods input { position: absolute; opacity: 0; }
.co-methods label:has(input:checked) { background: var(--soft); box-shadow: var(--shadow-sm); }
.co-methods label:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
.co-methods b { display: block; }
.co-methods small { color: var(--muted); font-size: .8rem; line-height: 1.35; display: block; }
.co-input { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); }
.co-input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.co-picks { border: 0; padding: 0; margin: 0 0 4px; min-width: 0; }
.co-picks legend { padding: 0; }
.co-picks label { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 7px 10px; border: 1.5px solid var(--ink); border-radius: 10px; margin-bottom: 6px; cursor: pointer; font-size: .93rem; }
.co-picks label:has(input:checked) { background: var(--yellow); }
.co-picks label:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.co-picks input { width: 18px; height: 18px; accent-color: var(--ink); grid-row: span 2; }
.co-picks small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.co-hint { font-size: .84rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.co-legal { margin-top: 8px; font-size: .8rem; }
.co-legal a { font-weight: 700; }
.co-error { background: #fde3dd; border: 1.5px solid var(--red); color: #7a1c0d; border-radius: 10px; padding: 9px 12px; font-size: .88rem; margin: 14px 0 0; }
form[data-step] .btn-primary { margin-top: 16px; }
.co-qr { display: grid; place-items: center; margin-top: 16px; }
.co-qr img { width: 230px; height: 230px; object-fit: contain; border: 2px solid var(--ink); border-radius: 14px; background: #fff; }
.co-save { text-align: center; font-size: .82rem; color: var(--muted); margin: 8px 0 12px; }
.co-bank { margin: 0; font-size: .93rem; }
.co-bank > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1.5px dashed #cbbda6; }
.co-bank dt { color: var(--muted); flex: none; }
.co-bank dd { margin: 0; font-weight: 700; text-align: right; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; overflow-wrap: anywhere; }
.co-bank button { font: inherit; font-size: .76rem; font-weight: 700; background: var(--soft); border: 1.5px solid var(--ink); border-radius: 8px; padding: 2px 9px; cursor: pointer; color: var(--ink); }
.co-wait { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: .9rem; font-weight: 600; margin: 14px 0 0; }
.co-wait.warn { background: #fde3dd; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--ink); border-top-color: transparent; animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.co-done { text-align: center; padding-top: 20px; }
.co-done p { margin: 0 0 8px; }
.co-ok { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 2rem; font-weight: 900; display: grid; place-items: center; border: 3px solid var(--ink); }
dialog.checkout { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.co-body .btn { width: 100%; margin-top: 8px; }

/* Responsive */
@media (max-width: 960px) {
  /* Gốc lỗi tràn ngang: cột lưới 1fr = minmax(auto, 1fr) và ô lưới có min-width: auto, nên dòng lệnh tự gõ (nowrap) làm cột rộng ra
     bằng độ dài câu lệnh đang gõ, đẩy cả cột hero (và cột video ở trang skill) ra khỏi màn hình. minmax(0, 1fr) và min-width: 0 sửa việc đó. */
  .hero-grid, .singles .rows, .product-grid, .product-grid.wide { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > *, .product-grid > * { min-width: 0; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .grid, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones { height: 400px; max-width: 520px; margin: 0 auto; width: 100%; }
  .phones .poster { width: 170px; }
  .phones .poster:nth-child(2) { width: 190px; }
  .product-media { position: static; max-width: 300px; margin: 0 auto; width: 100%; }
  .product-grid.wide .product-media { max-width: 560px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  .grid, .steps, .two, .features, .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; }
  .phones { height: 330px; }
  .phones .poster { width: 138px; padding: 10px; border-radius: 16px; }
  .phones .poster:nth-child(2) { width: 156px; }
  .phones .poster-name { font-size: 1.15rem; }
  .phones .poster-top span:last-child { display: none; }
  .phones .sub { font-size: .66rem; }
  .phones .play { width: 40px; height: 40px; }
  .phones .play::before { border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; }
  .plan { padding: 24px 20px; }
  .card-media { height: 260px; }
  .co-methods { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cmd .caret { animation: none; }
  .spin { animation-duration: 2.5s; }
  .btn { transition: none; }
}

/* Mã giảm giá và giảm giá giới thiệu trong khung thanh toán */
.co-coupon { display: flex; gap: 8px; }
.co-coupon .co-input { flex: 1; min-width: 0; text-transform: uppercase; }
.co-coupon .co-input::placeholder { text-transform: none; }
.co-apply { font: inherit; font-weight: 700; font-size: .92rem; background: var(--soft); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; padding: 0 16px; cursor: pointer; white-space: nowrap; }
.co-apply:hover { background: var(--yellow); }
.co-apply[disabled] { opacity: .55; cursor: wait; }
.co-refline { background: #e1f3ef; border: 1.5px solid var(--teal); border-radius: 10px; padding: 9px 12px; font-size: .88rem; font-weight: 600; margin: 12px 0 0; }
.co-sum { margin: 14px 0 0; font-size: .93rem; border-top: 1.5px dashed #cbbda6; }
.co-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.co-sum dt { color: var(--muted); }
.co-sum dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.co-sum .co-disc dd { color: var(--teal); }
.co-sum .co-total { border-top: 1.5px dashed #cbbda6; font-size: 1.05rem; }
.co-sum .co-total dt { color: var(--ink); font-weight: 700; }
.co-sum .co-total dd { color: var(--red-dark); }

/* ===== Điện thoại và máy tính bảng (màn hẹp hoặc cảm ứng) ===== */

/* Menu: dưới 960 px thanh liên kết thành bảng thả xuống mở bằng nút ba gạch */
@media (max-width: 960px) {
  .site-header { position: sticky; }
  .head-cta { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto; flex: none; width: 48px; height: 48px; padding: 0; cursor: pointer;
    background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-sm);
  }
  .menu-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
  .menu-ico, .menu-ico::before, .menu-ico::after { display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--ink); content: ''; position: relative; transition: transform .15s, background .15s; }
  .menu-ico::before { position: absolute; top: -7px; left: 0; }
  .menu-ico::after { position: absolute; top: 7px; left: 0; }
  .menu-btn[aria-expanded="true"] .menu-ico { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-ico::before { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-ico::after { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; z-index: 31;
    background: var(--paper); border-bottom: 2px solid var(--ink); padding: 6px 16px 16px; font-size: 1.05rem;
    max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { display: flex; align-items: center; min-height: 48px; border-bottom: 1.5px dashed #cbbda6; }
  .nav .nav-cta { display: inline-flex; margin-top: 14px; min-height: 52px; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body:has(.dock-bare) .site-footer { padding-bottom: 44px; }
}
@media (min-width: 961px) { .nav { display: flex; } }

/* Cảm ứng: vùng chạm tối thiểu 44 px. Máy tính dùng chuột (pointer: fine) giữ nguyên kích thước cũ. */
@media (max-width: 960px), (pointer: coarse) {
  .btn { min-height: 48px; }
  .btn-sm { min-height: 44px; padding: 8px 16px; }
  .site-footer ul { gap: 0; }
  .site-footer li a { display: flex; align-items: center; min-height: 44px; }
  .faq summary { min-height: 48px; display: flex; align-items: center; }
  .faq summary::after { top: 50%; transform: translateY(-50%); }
  .crumbs a { display: inline-block; padding: 10px 2px; }
  .row .n a { display: inline-block; padding: 6px 0; }
  .card h3 a { display: inline-block; padding: 4px 0; }
  .upsell a, .co-save a, .co-hint a, .co-legal a, .prose a, .fine a { display: inline-block; padding: 10px 2px; }
  .co-close { width: 48px; height: 48px; margin: -8px -8px -8px 8px; font-size: 1.9rem; }
  .co-input { min-height: 48px; font-size: 16px; }
  .co-apply { min-height: 48px; }
  .co-bank button { min-height: 44px; min-width: 44px; padding: 4px 12px; font-size: .86rem; }
  .co-methods label { min-height: 48px; }
  .co-picks label { min-height: 48px; padding: 8px 10px; }
  .co-picks input { width: 22px; height: 22px; }
  .zalo { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Hộp thanh toán: nằm trọn màn hình, cuộn bên trong, tiêu đề (nút đóng) luôn dính ở trên */
.co-head { position: sticky; top: 0; z-index: 2; }
.co-head h2 { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 960px), (pointer: coarse) {
  html:has(dialog[open]) { overflow: hidden; }
  dialog.checkout { margin: auto; scroll-padding-bottom: 24px; }
}

@media (max-width: 640px) {
  body { line-height: 1.6; }
  h1, h2, h3 { overflow-wrap: break-word; }
  h1 { font-size: clamp(1.85rem, 8.4vw, 2.4rem); line-height: 1.25; }
  h2 { font-size: clamp(1.45rem, 6.6vw, 1.9rem); line-height: 1.28; }
  .product h1 { font-size: clamp(1.7rem, 7.4vw, 2.2rem); }
  .legal h1 { font-size: clamp(1.7rem, 7.4vw, 2.2rem); }
  .eyebrow { font-size: .78rem; padding: 3px 12px; }
  .lead { font-size: 1.05rem; }
  .hero { padding: 36px 0 48px; }
  /* Dòng lệnh: xuống hàng trong hộp của nó. Bản chữ ẩn (câu dài nhất) giữ chỗ nên chiều cao không đổi khi gõ. */
  .cmd { white-space: normal; overflow-wrap: anywhere; align-items: flex-start; font-size: .9rem; line-height: 1.5; padding: 14px 16px; }
  .cmd .prompt { flex: none; }
  .cmd-text { display: grid; grid-template-columns: minmax(0, 1fr); }
  .cmd-ghost { display: block; grid-area: 1 / 1; visibility: hidden; pointer-events: none; }
  .cmd-live { display: block; grid-area: 1 / 1; }
  .cmd .caret { margin-left: 3px; width: 8px; }
  .cta-row .btn, .buybox .cta-row .btn { flex: 1 1 100%; min-width: 0; text-align: center; }
  .btn-lg { padding: 14px 20px; font-size: 1.05rem; }
  .card-foot { flex-wrap: wrap; }
  .card-body { padding: 18px 18px 20px; }
  .buybox { padding: 20px 18px; }
  .buybox .price { font-size: 2rem; }
  .singles { padding: 6px 16px; }
  .row { gap: 10px; }
  .box { padding: 22px 18px; }
  .faq details { padding: 0 16px; }
  .crumbs { padding-top: 14px; }
  .site-header .wrap { gap: 12px; }

  /* Thanh dưới: nút Zalo và thanh mua nằm chung một thanh cố định, không còn nút nổi đè lên nội dung */
  .dock {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--card); border-top: 2px solid var(--ink);
    padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }
  .dock .zalo {
    position: static; grid-column: 1; grid-row: 1; width: 62px; min-height: 48px; justify-content: center; text-align: center; padding: 4px 6px;
    border-radius: 14px; box-shadow: none; font-size: .78rem; line-height: 1.15;
  }
  .buybar { display: flex; grid-column: 2; grid-row: 1; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
  .buybar > div { min-width: 0; }
  .buybar small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.25; overflow-wrap: anywhere; }
  .buybar b { font-size: 1.1rem; line-height: 1.25; }
  .buybar .btn { padding: 10px 16px; flex: none; }
  .dock-bare { display: none; }
  dialog.checkout { width: calc(100vw - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); box-shadow: 5px 5px 0 var(--ink); border-radius: 18px; }
  .co-head { padding: 12px 14px 12px 18px; }
  .co-body { padding: 18px 16px 22px; }
  .co-qr img { width: min(230px, 100%); height: auto; aspect-ratio: 1; }
  .co-bank > div { flex-wrap: wrap; }
  .co-bank dd { flex: 1 1 auto; }
}

/* Điện thoại nằm ngang: chiều cao thấp nên bớt đệm, hộp thanh toán dùng gần hết màn hình */
@media (max-height: 520px) and (orientation: landscape) {
  section { padding: 40px 0; }
  .hero { padding: 28px 0 36px; }
  .site-header .wrap { height: 58px; }
  .nav { max-height: calc(100vh - 62px); max-height: calc(100dvh - 62px); }
  .zalo { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .notfound { padding: 40px 0 70px; }
  dialog.checkout { max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px); }
}
@media (prefers-reduced-motion: reduce) {
  .menu-ico, .menu-ico::before, .menu-ico::after { transition: none; }
}
