/*
Theme Name: Tơ Hồng
Theme URI: https://tohongtuvi.com
Description: Trang xem duyên hai người qua lá số tử vi, có thanh toán VietQR và quản lý đơn.
Version: 1.3.0
Text Domain: tohong
*/
/* Layout: một cột dọc như cuộn lá số, mỗi bước là một "màn"; lá số 12 cung là hình ảnh chủ đạo. Một thế giới sơn mài tối, cố ý chỉ một giao diện. */
:root {
  --lacquer: #150c0b;      /* nền sơn mài đen nâu */
  --lacquer-2: #21130f;    /* bề mặt nổi */
  --lacquer-3: #2d1a14;    /* bề mặt nhấn */
  --gold: #c9a35c;         /* vàng thếp */
  --gold-soft: rgba(201,163,92,.28);
  --cinnabar: #cf4a33;     /* son đỏ, chỉ hồng */
  --eggshell: #efe5d0;     /* vỏ trứng, chữ chính */
  --muted: #b3a38a;
  --ok: #7fb38a;
  --plate: #ffffff;        /* nền cố định cho mã QR */
  --plate-ink: #120a08;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--lacquer); }
body {
  color: var(--eggshell);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(207,74,51,.13), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(201,163,92,.08), transparent 60%),
    var(--lacquer);
  min-height: 100%;
}
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }
a { color: var(--gold); }
.eyebrow { font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); font-weight: 600; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(21,12,11,.88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gold-soft); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; font: inherit; }
.seal { width: 34px; height: 34px; border-radius: 6px; background: var(--cinnabar); color: var(--eggshell); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.2rem; box-shadow: inset 0 0 0 2px rgba(239,229,208,.25); }
.brand b { font-family: var(--display); font-size: 1.45rem; font-weight: 700; }
.brand small { display: block; font-size: .7rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; line-height: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--body); padding: 15px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--cinnabar); color: var(--eggshell); }
.btn-red:hover { background: #dc5a42; }
.btn-ghost { background: transparent; color: var(--eggshell); border-color: var(--gold-soft); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

section.screen { padding-block: 48px 72px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 56px 40px; }
.hero > * { min-width: 0; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); margin-top: 18px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .note { margin-top: 14px; font-size: .85rem; color: var(--muted); }
.laso-box { position: relative; }
.laso-box .tag { position: absolute; top: -12px; right: 12px; background: var(--lacquer-3); border: 1px solid var(--gold-soft); color: var(--muted); font-size: .72rem; padding: 3px 10px; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; }
svg.laso { width: 100%; max-width: 440px; display: block; margin-inline: auto; height: auto; }
.laso .cell { fill: var(--lacquer-2); stroke: var(--gold-soft); stroke-width: 1; }
.laso .cell.a { fill: rgba(207,74,51,.22); stroke: var(--cinnabar); stroke-width: 1.6; }
.laso .cell.b { fill: rgba(201,163,92,.16); stroke: var(--gold); stroke-width: 1.6; }
.laso .chi { fill: var(--eggshell); font-family: var(--display); font-size: 22px; font-weight: 600; }
.laso .con { fill: var(--muted); font-family: var(--body); font-size: 10.5px; }
.laso .who { font-family: var(--body); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.laso .who.a { fill: var(--cinnabar); }
.laso .who.b { fill: var(--gold); }
.laso .center { fill: var(--lacquer); stroke: var(--gold-soft); }
.laso .tri { fill: none; stroke: var(--gold-soft); stroke-width: 1; stroke-dasharray: 3 4; }
.laso .thread { fill: none; stroke: var(--cinnabar); stroke-width: 2.4; stroke-linecap: round; }
.laso .ctext { fill: var(--eggshell); font-family: var(--display); text-anchor: middle; paint-order: stroke; stroke: var(--lacquer); stroke-width: 5px; }
.laso .csmall { fill: var(--gold); font-family: var(--body); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; text-anchor: middle; paint-order: stroke; stroke: var(--lacquer); stroke-width: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .laso .thread { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.6s .3s ease-out forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* landing blocks */
.band { padding-block: 40px; border-top: 1px solid var(--gold-soft); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.step { min-width: 0; }
.step .n { font-family: var(--display); font-size: 2.6rem; color: var(--cinnabar); line-height: 1; }
.step h3 { margin-top: 8px; }
.step p { color: var(--muted); margin-top: 6px; }
.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 24px; border: 1px solid var(--gold-soft); border-radius: 14px; overflow: hidden; }
.term { padding: 22px 24px; border-bottom: 1px solid var(--gold-soft); min-width: 0; }
.term:nth-child(odd) { border-right: 1px solid var(--gold-soft); }
.term:nth-last-child(-n+2) { border-bottom: 0; }
.term b { font-family: var(--display); font-size: 1.35rem; font-weight: 600; display: block; }
.term span { color: var(--muted); font-size: .95rem; }
.price-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 24px; padding: 28px; border-radius: 16px; background: var(--lacquer-2); border: 1px solid var(--gold); }
.price-card > * { min-width: 0; }
.price { font-family: var(--display); font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.checks li { padding-left: 24px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; border-radius: 2px; background: var(--cinnabar); transform: rotate(45deg); }
details { border-bottom: 1px solid var(--gold-soft); padding-block: 16px; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; max-width: 62ch; }
footer { border-top: 1px solid var(--gold-soft); padding-block: 28px; color: var(--muted); font-size: .85rem; }

/* form */
.form-head { max-width: 640px; }
.form-head p { color: var(--muted); margin-top: 10px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.person { background: var(--lacquer-2); border: 1px solid var(--gold-soft); border-radius: 16px; padding: 22px; display: grid; gap: 14px; min-width: 0; }
.person.a { border-top: 3px solid var(--cinnabar); }
.person.b { border-top: 3px solid var(--gold); }
.person h3 { font-size: 1.3rem; }
label.f { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=date], select, textarea {
  font: 500 1rem var(--body); color: var(--eggshell); background: var(--lacquer); border: 1px solid var(--gold-soft); border-radius: 10px; padding: 12px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; min-height: 90px; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-block; padding: 8px 14px; border: 1px solid var(--gold-soft); border-radius: 999px; cursor: pointer; color: var(--eggshell); font-size: .92rem; }
.chip-radio input:checked + span { background: var(--lacquer-3); border-color: var(--gold); color: var(--gold); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.tet { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.tet input { margin-top: 4px; accent-color: var(--cinnabar); }
.extra { margin-top: 20px; display: grid; gap: 14px; background: var(--lacquer-2); border: 1px solid var(--gold-soft); border-radius: 16px; padding: 22px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.err { color: #f0907c; font-size: .9rem; }
.linkish { background: none; border: 0; color: var(--gold); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; padding: 0; }

/* result */
.result-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 18px; }
.score { display: flex; align-items: baseline; gap: 8px; }
.score b { font-family: var(--display); font-size: 5.2rem; line-height: .9; color: var(--gold); font-variant-numeric: tabular-nums; }
.score span { color: var(--muted); font-size: 1.1rem; }
.meter { height: 6px; background: var(--lacquer-3); border-radius: 3px; overflow: hidden; margin-top: 10px; max-width: 320px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--cinnabar), var(--gold)); }
.verdict { font-family: var(--display); font-size: 1.9rem; font-weight: 600; margin-top: 14px; line-height: 1.2; text-wrap: balance; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: .82rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--gold-soft); color: var(--eggshell); background: var(--lacquer-2); }
.chip.a { border-color: rgba(207,74,51,.6); }
.chip.b { border-color: rgba(201,163,92,.7); }
.reading { max-width: 720px; margin-top: 40px; display: grid; gap: 30px; }
.reading article h3 { display: flex; align-items: baseline; gap: 10px; }
.reading article h3 em { font-style: normal; font-family: var(--body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.reading article p { margin-top: 10px; color: #e2d7c0; }
.reading .cut { position: relative; }
.reading .cut::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2em; background: linear-gradient(transparent, var(--lacquer)); }
.locked { border: 1px solid var(--gold-soft); border-radius: 16px; overflow: hidden; }
.locked .row { padding: 20px 22px; border-bottom: 1px solid var(--gold-soft); }
.locked .row:last-child { border-bottom: 0; }
.locked .row h4 { margin: 0; font-family: var(--display); font-size: 1.3rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.locked .row h4 svg { flex: none; }
.blur { filter: blur(5px); user-select: none; color: var(--muted); margin-top: 8px; font-size: .95rem; }
.unlock { background: var(--lacquer-2); border: 1px solid var(--gold); border-radius: 18px; padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.unlock > * { min-width: 0; }
.unlock p { color: var(--muted); margin-top: 6px; }

/* checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
.panel { background: var(--lacquer-2); border: 1px solid var(--gold-soft); border-radius: 16px; padding: 24px; display: grid; gap: 14px; min-width: 0; }
.panel h3 { font-size: 1.35rem; display: flex; gap: 10px; align-items: baseline; }
.panel h3 .n { font-family: var(--display); color: var(--cinnabar); }
.panel.off { opacity: .45; pointer-events: none; }
.order-line { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; border-bottom: 1px dashed var(--gold-soft); font-size: .95rem; }
.order-line:last-child { border-bottom: 0; }
.order-line b { font-variant-numeric: tabular-nums; }
.qr-plate { background: var(--plate); border-radius: 14px; padding: 14px; width: 100%; max-width: 260px; margin-inline: auto; }
.qr-plate svg { display: block; width: 100%; height: auto; }
.qr-fallback { color: var(--plate-ink); font-size: .8rem; word-break: break-all; }
.bank { display: grid; gap: 2px; }
.kv { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 10px; align-items: center; padding-block: 8px; border-bottom: 1px solid var(--gold-soft); font-size: .94rem; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.copy { background: transparent; border: 1px solid var(--gold-soft); color: var(--gold); border-radius: 8px; padding: 5px 10px; font: 500 .8rem var(--body); cursor: pointer; }
.demo-banner { border: 1px dashed var(--cinnabar); border-radius: 12px; padding: 12px 14px; font-size: .88rem; color: #f0b3a5; background: rgba(207,74,51,.08); }
.status { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
@media (prefers-reduced-motion: no-preference) { .dot.pulse { animation: pulse 1.2s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .3; } } }
.dot.ok { background: var(--ok); }

/* hero art: đôi nam nữ dưới vầng trăng, nối bằng chỉ hồng */
svg.couple { width: 100%; max-width: 460px; height: auto; display: block; margin-inline: auto; }
.couple .moon { fill: rgba(201,163,92,.13); stroke: var(--gold-soft); }
.couple .moon2 { fill: none; stroke: var(--gold-soft); stroke-dasharray: 2 6; }
.couple .fig { fill: var(--lacquer-3); stroke: var(--gold); stroke-width: 1.4; stroke-linejoin: round; }
.couple .hair { fill: var(--lacquer); stroke: var(--gold); stroke-width: 1.2; }
.couple .collar { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; }
.couple .ring { fill: var(--gold); font-family: var(--display); font-size: 15px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; opacity: .8; }
.couple .thread { fill: none; stroke: var(--cinnabar); stroke-width: 2.6; stroke-linecap: round; }
.couple .knot { fill: var(--cinnabar); }
.couple .star { fill: var(--eggshell); opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .couple .thread { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.8s .4s ease-out forwards; }
}
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.trust > div { min-width: 0; border-left: 2px solid var(--cinnabar); padding-left: 16px; }
.trust b { display: block; font-weight: 600; }
.trust span { color: var(--muted); font-size: .93rem; }
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.sample { background: var(--lacquer-2); border: 1px solid var(--gold-soft); border-radius: 16px; padding: 18px; display: grid; gap: 10px; min-width: 0; align-content: start; }
.sample .top-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sample .top-line b { font-family: var(--display); font-size: 1.3rem; }
.sample .top-line strong { font-family: var(--display); font-size: 1.9rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.sample p { color: var(--muted); font-size: .9rem; }
.sample svg.laso { max-width: 100%; }

/* chỉ số phụ + tháng */
.subs { display: grid; gap: 10px; margin-top: 20px; max-width: 360px; }
.sub { display: grid; grid-template-columns: 6.5em 1fr 2.6em; gap: 10px; align-items: center; font-size: .9rem; }
.sub span { color: var(--muted); }
.sub .bar { height: 6px; background: var(--lacquer-3); border-radius: 3px; overflow: hidden; }
.sub .bar i { display: block; height: 100%; background: var(--gold); }
.sub b { text-align: right; font-variant-numeric: tabular-nums; }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.mo { border: 1px solid var(--gold-soft); border-radius: 8px; padding: 8px 2px; text-align: center; font-size: .72rem; line-height: 1.3; color: var(--muted); }
.mo b { display: block; font-size: .95rem; color: var(--eggshell); font-variant-numeric: tabular-nums; }
.mo.thuan { background: rgba(201,163,92,.22); border-color: var(--gold); }
.mo.tranh { border-color: var(--muted); border-style: dashed; }
.months.hide .mo { filter: blur(3px); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; border: 1px solid var(--gold-soft); }
.legend i.t { background: rgba(201,163,92,.22); border-color: var(--gold); }
.legend i.x { border: 1px dashed var(--muted); }
.peek { color: #e2d7c0; margin-top: 8px; }
.lockline { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--gold); margin-top: 10px; letter-spacing: .04em; }
.repeat { margin-top: 12px; padding: 10px 14px; border: 1px dashed var(--gold); border-radius: 10px; color: var(--eggshell) !important; font-size: .93rem; }
.repeat b { color: var(--gold); }
.lean { font-family: var(--display); font-size: 1.5rem; color: var(--gold); margin-top: 8px; }

/* bản đầy đủ: đoạn ngắn, tiêu đề phụ, danh sách */
.reading .sec { display: grid; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--gold-soft); }
.reading .sec p { margin: 0; }
.sub-h { margin: 8px 0 0; font: 600 .82rem var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.rl { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rl li { position: relative; padding-left: 22px; color: #e2d7c0; }
.rl li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 7px; height: 7px; border-radius: 2px; background: var(--cinnabar); transform: rotate(45deg); }
.kv2 { margin: 0; display: grid; gap: 0; border: 1px solid var(--gold-soft); border-radius: 12px; overflow: hidden; }
.kv2 div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--gold-soft); }
.kv2 div:last-child { border-bottom: 0; }
.kv2 dt { color: var(--muted); font-size: .9rem; }
.kv2 dd { margin: 0; color: var(--eggshell); }
.full-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }
.full-tools .muted { font-size: .9rem; }
.toc { margin-top: 24px; max-width: 720px; border: 1px solid var(--gold-soft); border-radius: 14px; padding: 16px 18px; }
.toc b { font-family: var(--display); font-size: 1.2rem; }
.toc div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.toc a { font-size: .86rem; color: var(--eggshell); text-decoration: none; border: 1px solid var(--gold-soft); border-radius: 999px; padding: 4px 12px; }
.toc a:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 520px) { .kv2 div { grid-template-columns: 1fr; gap: 2px; } }

/* bản PDF (nền sáng, chỉ dùng khi xuất file) */
.pdf-doc { position: fixed; left: -10000px; top: 0; width: 760px; background: #fff; color: #2a1d18; font-family: var(--body); font-size: 15px; line-height: 1.65; padding: 0; }
.pdf-doc h1 { font-family: var(--display); font-size: 44px; line-height: 1.1; margin: 18px 0 0; color: #2a1d18; }
.pdf-doc h2 { font-family: var(--display); font-size: 26px; margin: 0 0 8px; color: #8e2f20; }
.pdf-doc p { margin: 0 0 10px; }
.pdf-cover { padding: 30px 0 26px; border-bottom: 2px solid #c9a35c; margin-bottom: 22px; }
.pdf-brand { display: flex; align-items: center; gap: 10px; font: 600 13px var(--body); letter-spacing: .12em; text-transform: uppercase; color: #8a6a2f; }
.pdf-seal { width: 30px; height: 30px; border-radius: 6px; background: #cf4a33; color: #fff; display: inline-grid; place-items: center; font-size: 18px; letter-spacing: 0; }
.pdf-score { margin-top: 16px !important; font-size: 18px; } .pdf-score b { font-family: var(--display); font-size: 40px; color: #8a6a2f; }
.pdf-verdict { font-family: var(--display); font-size: 24px; }
.pdf-meta, .pdf-legend, .pdf-foot { color: #7a6a5a; font-size: 12.5px; }
.pdf-sec { padding: 6px 0 18px; border-bottom: 1px solid #eadfcd; margin-bottom: 16px; }
.pdf-doc .sub-h { color: #8a6a2f; margin: 10px 0 6px; }
.pdf-doc .rl li { color: #2a1d18; margin-bottom: 4px; }
.pdf-doc .kv2 { border-color: #eadfcd; margin-bottom: 10px; } .pdf-doc .kv2 div { border-color: #eadfcd; } .pdf-doc .kv2 dt { color: #7a6a5a; } .pdf-doc .kv2 dd { color: #2a1d18; }
.pdf-months { width: 100%; border-collapse: separate; border-spacing: 6px; margin: 4px 0; }
.pdf-months td { border: 1px solid #eadfcd; border-radius: 8px; text-align: center; padding: 8px 0; font-size: 12px; color: #7a6a5a; }
.pdf-months td b { display: block; font-family: var(--display); font-size: 22px; color: #2a1d18; font-variant-numeric: lining-nums; }
.pdf-months td.thuan { background: #f6ecd6; border-color: #c9a35c; }
.pdf-months td.tranh { border-style: dashed; }
.pdf-foot { margin-top: 18px; }

/* responsive */
@media (max-width: 820px) {
  .hero, .result-top, .checkout, .pair { grid-template-columns: 1fr; }
  .hero { gap: 32px; padding-block: 32px 24px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .terms { grid-template-columns: 1fr; }
  .term:nth-child(odd) { border-right: 0; }
  .term:nth-last-child(2) { border-bottom: 1px solid var(--gold-soft); }
  .price-card, .unlock { grid-template-columns: 1fr; }
  .trust, .samples { grid-template-columns: 1fr; }
  .months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .score b { font-size: 4.2rem; }
}
@media (max-width: 420px) {
  .wrap { padding-inline: 16px; }
  .brand small { display: none; }
  .kv { grid-template-columns: 1fr auto; }
  .kv span { grid-column: 1 / -1; }
}
/* ===== WordPress ===== */
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.top .brand { text-decoration: none; }
.site-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a { color: var(--muted); }
.prose { max-width: 720px; margin: 0 auto; padding-block: 48px 72px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.prose h2 { font-size: 1.8rem; margin-top: 2em; }
.prose p, .prose li { color: #e2d7c0; }
.prose p, .prose ul, .prose ol { margin-block: 1em; }
.prose .meta { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.post-list { display: grid; gap: 28px; margin-top: 28px; }
.post-list article { border-bottom: 1px solid var(--gold-soft); padding-bottom: 24px; }
.post-list h2 { margin: 0; font-size: 1.7rem; }
.post-list h2 a { color: var(--eggshell); text-decoration: none; }
.pay-help { font-size: .9rem; color: var(--muted); }

/* ===== Khung chat hỗ trợ ===== */
.chat { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: grid; justify-items: end; gap: 10px; }
.chat-fab { display: inline-flex; align-items: center; gap: 8px; background: var(--cinnabar); color: var(--eggshell); border: 0; border-radius: 999px; padding: 12px 18px; font: 600 .95rem var(--body); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.chat-fab:hover { background: #dc5a42; }
.chat-panel { width: min(360px, calc(100vw - 32px)); background: var(--lacquer-2); border: 1px solid var(--gold); border-radius: 16px; padding: 18px; display: grid; gap: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.55); max-height: calc(100vh - 120px); overflow-y: auto; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chat-head b { font-family: var(--display); font-size: 1.35rem; }
.chat-x { background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-sub { color: var(--muted); font-size: .9rem; margin: 0; }
.chat-order { font-size: .85rem; color: var(--gold); margin: 0; }
.chat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chat .err { margin: 0; }
@media (max-width: 420px) { .chat-fab span { display: none; } .chat-fab { padding: 14px; } }
