/* thiep.site / jagame.vn — trang giới thiệu thiệp cưới online. Cùng tông với giao diện trang cưới (ngà + hồng phấn). */
:root {
  --bg: #fbf7f3; --paper: #fff; --ink: #2f2626; --muted: #86797a; --line: #eee3dc; --soft: #f5ebe6;
  --accent: #c0747a; --accent-2: #e7a39a; --deep: #5b3a40;
  --serif: "Playfair Display", "Playfair Fallback", Georgia, serif; --body: "Lora", "Lora Fallback", Georgia, serif; --ui: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 16px; --shadow: 0 1px 2px rgba(47,38,38,.06), 0 12px 32px rgba(47,38,38,.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95em; }
.small .mono, .small code, .plan-sub .mono, .cmp .mono { font-size: 1em; } /* .cmp ≤560px đã .9rem: .mono không co thêm (M2-INTRO-01) */
code { background: var(--soft); padding: 1px 6px; border-radius: 5px; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .center { text-align: center; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 88px 20px; }
.narrow { max-width: 780px; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.eyebrow { font: 600 .9rem var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.sec { font: italic 600 clamp(2rem, 4.2vw, 2.9rem)/1.15 var(--serif); text-align: center; margin-bottom: 44px; }
.sec.left { text-align: left; margin-bottom: 22px; }
.sec .mono { font-size: .85em; overflow-wrap: anywhere; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 15px var(--ui); text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(192,116,122,.3); }
.btn-accent:hover { background: #a85f66; }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; box-shadow: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; padding: 12px 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-ico { width: 34px; height: 34px; color: var(--accent); }
.brand span { font: italic 700 1.45rem/1 var(--serif); display: grid; }
.brand small { font: 500 .72rem var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; font-style: normal; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font: 500 .93rem var(--ui); }
.nav a:hover { color: var(--accent); }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 38px; font-size: 18px; }
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 14px; }
  .nav.open { display: flex; } .nav a { padding: 10px 0; }
  .burger { display: block; } .top-cta { display: none; }
}

/* Hero */
.hero { max-width: 1240px; margin: 0 auto; padding: 56px 20px 90px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero h1 { font: italic 600 clamp(2.7rem, 6vw, 4.6rem)/1.05 var(--serif); letter-spacing: -.01em; }
.hero h1 em { color: var(--accent); }
.lead { font-size: 1.12rem; color: #54494a; max-width: 560px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 26px; }
/* Điện thoại: nút hero xếp dọc full chiều ngang -> số dòng không đổi khi phông về (CLS 0), vùng bấm to (M1-PERF-03). */
@media (max-width: 560px) { .hero .cta-row .btn { flex: 1 1 100%; } }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font: 500 .9rem var(--ui); color: #5d5253; }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.hero-shots { position: relative; padding: 10px 40px 60px 0; }
.browser { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px rgba(91,58,64,.22); transform: rotate(-1.2deg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f3ece8; font: 500 12px var(--ui); color: var(--muted); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2d5cf; }
.browser-bar b { margin-left: 12px; padding: 3px 12px; border-radius: 999px; background: #fff; font-weight: 500; }
.phone { position: absolute; right: 0; bottom: 0; width: 30%; margin: 0; border: 7px solid #231d1d; border-radius: 28px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(0,0,0,.28); transform: rotate(3deg); background: #231d1d; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 30px; } .hero-shots { padding-right: 24px; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features article { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 24px 18px; }
.features svg { width: 34px; height: 34px; color: var(--accent); padding: 6px; border-radius: 10px; background: var(--soft); margin-bottom: 12px; }
.features h3 { font: 600 1.08rem var(--ui); }
.features p { font-size: .96rem; color: #5b5051; margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.split.rev > div { order: 2; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: "♥"; position: absolute; left: 0; top: 0; color: var(--accent); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 30px; } .split.rev > div { order: 0; } }

/* Link demo */
.link-demo { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; max-width: 100%; margin-top: 16px; padding: 14px 22px; border-radius: 14px; background: var(--bg);
  border: 1px dashed var(--accent-2); font: 500 clamp(.95rem, 3vw, 1.5rem) ui-monospace, Menlo, monospace; color: var(--muted); }
.link-demo b { color: var(--accent); min-width: 5ch; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { background: var(--paper); border-radius: var(--r); padding: 28px 24px; box-shadow: var(--shadow); }
.steps li > b { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 1.2rem var(--serif); margin-bottom: 12px; }
.steps h3 { font: 600 1.1rem var(--ui); }
.steps p { margin: 0; font-size: .96rem; color: #5b5051; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; }
.dl { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
a.dl:hover { border-color: var(--accent); transform: translateY(-2px); }
.dl b { font: 700 1.2rem var(--ui); }
.dl span { font-size: .95rem; color: #5b5051; }
.dl em { font: 600 .9rem var(--ui); font-style: normal; color: var(--accent); margin-top: 6px; }
.dl.soon { opacity: .7; } .dl.soon em { color: var(--muted); }
@media (max-width: 820px) { .downloads { grid-template-columns: 1fr; } }

/* FAQ */
details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; font: 600 1rem var(--ui); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: -2px 0 14px; color: #5b5051; }

.foot { text-align: center; padding: 50px 20px 60px; display: grid; justify-items: center; gap: 6px; border-top: 1px solid var(--line); }

/* Trang "chưa có trang cưới ở link này" (tên chưa cấp / đã đổi) */
.nf { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(ellipse at top, #fff 0, var(--bg) 60%); }
.nf-box { max-width: 560px; width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 36px 30px; box-shadow: var(--shadow); }
.nf-box h1 { font: italic 600 clamp(1.8rem, 6vw, 2.4rem)/1.15 var(--serif); margin-top: 6px; }
.nf-host { margin: 26px 0 4px; color: var(--muted); word-break: break-all; }
.nf-box .ticks { margin: 4px 0 26px; font-size: .98rem; }
.nf-box .cta-row { margin: 0; }
@media (max-width: 480px) { .nf-box { padding: 28px 20px; } .nf-box .btn { flex: 1 1 100%; } }

/* Hiện dần khi cuộn */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Trang ủng hộ /donate */
.dn .top { position: sticky; }
.dn-back { margin-left: auto; }
.dn-wrap { padding-top: 48px; max-width: 980px; }
.dn-wrap .sec { margin-bottom: 18px; }
.dn-lead { margin: 0 auto 40px; max-width: 640px; }
.dn-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dn-card { background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; display: grid; justify-items: center; padding: 0 22px 22px; text-align: center; }
.dn-card header { width: calc(100% + 44px); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; color: #fff; font: 500 .9rem var(--ui); }
.dn-bank header { background: linear-gradient(135deg, #d6263b, #b3162a); }
.dn-momo header { background: linear-gradient(135deg, #b0006d, #8a0057); }
.dn-badge { background: rgba(255,255,255,.2); border-radius: 999px; padding: 3px 11px; font-weight: 700; letter-spacing: .04em; }
.dn-qr { margin: 22px 0 6px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(47,38,38,.06); }
.dn-qr img { width: min(240px, 62vw); height: auto; display: block; }
.dn-name { font: 700 1.05rem var(--ui); letter-spacing: .08em; margin: 10px 0 8px; }
.dn-card dl { margin: 0 0 12px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; text-align: left; font-size: .95rem; }
.dn-card dt { color: var(--muted); font: 500 .88rem var(--ui); padding-top: 3px; }
.dn-card dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dn-card dd b { font-size: 1.02rem; }
.dn-copy { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 14px; min-height: 44px; font: 600 14px var(--ui); cursor: pointer; color: var(--ink); }
.dn-copy:hover { border-color: var(--accent); color: var(--accent); }
.dn-dl { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font: 600 .9rem var(--ui); text-decoration: underline dashed 1px; text-underline-offset: 4px; }
.dn-note { margin: 34px auto 0; max-width: 640px; text-align: center; background: var(--soft); border-radius: 18px; padding: 22px 24px 8px; }
.dn-note h2 { font: italic 600 1.5rem var(--serif); }
.dn-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 12px; font: .92rem var(--ui); z-index: 50; }
@media (max-width: 700px) { .dn-cards { grid-template-columns: 1fr; } .dn-wrap { padding-top: 28px; } }

/* Nút + ghi chú web demo ở hero */
.btn-demo { border-color: var(--accent); color: var(--accent); }
.btn-demo:hover { background: var(--accent); color: #fff; }
.demo-note { margin: -12px 0 22px; max-width: 520px; }

/* Link GitHub: menu + mục Tải về */
.gh-ico { vertical-align: -3px; }
.btn-gh .btn-ico { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.nav-gh { display: inline-flex; align-items: center; gap: 6px; }
.gh-dl { display: grid; justify-items: center; gap: 8px; margin: 6px 0 18px; }
.gh-dl .btn { gap: 8px; }


/* ── Giao diện & demo: thanh chọn 20 phong cách (cuộn) + khung xem desktop/điện thoại + nút mở demo ── */
.anchor { position: relative; top: -80px; display: block; }
.ds-wrap { padding-top: 72px; padding-bottom: 72px; }
/* Hai cột: trái = tablist 20 giao diện (cuộn dọc), phải = khung trình duyệt + điện thoại xem ảnh thật.
   Chọn một mục -> JS đổi ảnh + nút mở demo; mỗi mục mang màu riêng --ac, tổng thể vẫn tông kem editorial. */
.ds { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 36px;
  max-width: 1160px; margin: 0 auto; align-items: start; }

/* Thanh danh sách bên trái — cuộn dọc trên desktop */
.ds-list { display: flex; flex-direction: column; gap: 7px;
  max-height: 564px; overflow-y: auto; overscroll-behavior: contain;
  padding: 3px 10px 3px 3px; margin: -3px -3px -3px -3px; scrollbar-width: thin;
  scrollbar-color: var(--gold-soft) transparent; }
.ds-list::-webkit-scrollbar { width: 7px; }
.ds-list::-webkit-scrollbar-thumb { background: var(--gold-soft); border-radius: 999px; }
.ds-tab { --ac: var(--accent);
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  min-height: 48px; padding: 11px 14px; border-radius: 13px; cursor: pointer;
  background: #fff; border: 1px solid var(--hair); color: var(--ink); font-family: var(--ui);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.ds-tab:hover { border-color: color-mix(in srgb, var(--ac) 45%, var(--hair)); transform: translateX(2px); }
.ds-tab:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 50%, transparent); }
.ds-tab.is-on { border-color: color-mix(in srgb, var(--ac) 55%, transparent);
  background: color-mix(in srgb, var(--ac) 7%, #fff);
  box-shadow: 0 1px 2px rgba(91,58,64,.05), 0 14px 26px -20px color-mix(in srgb, var(--ac) 80%, #5b3a40); }
.ds-n { flex: none; width: 2ch; font: 700 .74rem/1 var(--ui); color: var(--ac); letter-spacing: .04em; }
.ds-tx { display: grid; gap: 1px; min-width: 0; }
.ds-tx b { font: 600 .97rem var(--ui); color: var(--ink); }
.ds-d { display: none; }
.ds-desc { font: .83rem/1.35 var(--ui); color: #6b5f60; }
.ds-card { font: 500 .81rem var(--ui); color: var(--gold-ink); }

/* Khung xem bên phải: trình duyệt desktop + điện thoại đặt chồng góc dưới phải */
.ds-stage { --ac: var(--accent); position: relative; display: grid; }
.ds-frame { position: relative; }
.ds-browser { position: relative; margin: 0; border-radius: 15px; overflow: hidden; background: #fff;
  border: 1px solid var(--hair);
  box-shadow: 0 2px 5px rgba(91,58,64,.08), 0 40px 70px -34px rgba(91,58,64,.5); }
.ds-browser::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 20%, transparent); }
.ds-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: #f3ece8; border-bottom: 1px solid var(--hair); }
.ds-bar i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #e2d5cf; }
.ds-url { margin-left: 10px; padding: 3px 13px; border-radius: 999px; background: #fff;
  font: 500 12px var(--ui); color: var(--muted); box-shadow: inset 0 0 0 1px var(--hair);
  max-width: 64%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-screen { display: block; aspect-ratio: 16 / 10; background: var(--soft); }
.ds-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.ds-phone { position: absolute; right: 18px; bottom: -22px; width: 21%; min-width: 92px; max-width: 134px;
  margin: 0; border: 6px solid #231d1d; border-radius: 22px; overflow: hidden; background: #231d1d;
  box-shadow: 0 20px 44px rgba(0,0,0,.26); }
.ds-phone img { width: 100%; height: auto; display: block; border-radius: 16px; }

.ds-cta { display: inline-flex; align-items: center; justify-content: center; gap: .4em; width: fit-content;
  margin: 48px auto 0; padding: 0 24px; min-height: 46px; border-radius: 999px;
  font: 700 .92rem var(--ui); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  color: #fff; background: color-mix(in srgb, var(--ac) 68%, #180f11);
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--ac) 70%, #180f11);
  transition: transform .2s, box-shadow .2s, background .2s; }
.ds-cta:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--ac) 82%, #180f11);
  box-shadow: 0 14px 30px -8px color-mix(in srgb, var(--ac) 72%, #180f11); }
.ds-cta:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 45%, transparent); }

.ds-note { text-align: center; margin: 56px auto 0; max-width: 64ch; }
.ds-note b { color: var(--gold-ink); }

/* Điện thoại: thanh chọn cuộn NGANG (scroll-snap) phía trên, khung xem bên dưới */
@media (max-width: 860px) {
  .ds { grid-template-columns: 1fr; gap: 22px; }
  .ds-list { flex-direction: row; max-height: none; align-items: stretch;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    gap: 10px; padding: 3px 3px 12px; margin: 0; }
  .ds-tab { flex: 0 0 auto; width: auto; min-width: 178px; max-width: 232px; scroll-snap-align: start; }
  .ds-tab:hover { transform: none; }
  .ds-phone { width: 23%; right: 10px; }
}
@media (max-width: 480px) {
  .ds-cta { white-space: normal; text-align: center; line-height: 1.25; padding: 9px 18px; }
}
@media (prefers-reduced-motion: reduce) { .ds-tab, .ds-cta { transition: none; } }

/* ── Gói VIP (thiep.site): nút, mục 10 giao diện VIP, so sánh 2 gói ── */
:root { --vip: #b8893a; --vip-deep: #2a1d22; --vip-ink: #f6ead2; }
.brand span > b { font: inherit; }
.btn-ico { width: 18px; height: 18px; margin-right: 8px; flex-shrink: 0; }
.btn-vip { background: linear-gradient(135deg, #c99a4a, #9c6f28); color: #fff; box-shadow: 0 8px 20px rgba(156,111,40,.3); }
.btn-vip:hover { background: linear-gradient(135deg, #b98a3c, #8a611f); }
.btn-vip.btn-sm { box-shadow: none; }
.top-login { font: 500 .93rem var(--ui); color: var(--ink); text-decoration: none; white-space: nowrap; }
.top-login:hover { color: var(--accent); }
.top .top-cta + .top-cta { margin-left: -12px; }
.nav-vip { color: var(--vip) !important; font-weight: 600 !important; }
@media (max-width: 1080px) { .top .btn-ghost.top-cta { display: none; } .top .top-cta + .top-cta { margin-left: 0; } }
/* 09/10/2026: thanh trên có 3 nút (Tải miễn phí · Đăng ký online miễn phí · Tên miền riêng) — tránh tràn ở màn vừa. */
@media (max-width: 1800px) { .top .nav-gh { display: none; } }
@media (max-width: 1240px) { .top .btn-ghost.top-cta { display: none; } }
@media (max-width: 820px) { .top-login { margin-left: auto; } .top-login + .top-cta + .top-cta { display: none; } .burger { margin-left: 4px; } }
.vip-note { margin: -8px 0 22px; max-width: 540px; color: #6b5a4a; background: #fbf3e4; border: 1px solid #f0dfbf; border-radius: 12px; padding: 10px 14px; }
.vip-note a { color: var(--vip); font-weight: 600; }
.features article:last-child:nth-child(3n+1) { grid-column: 2; }
@media (max-width: 900px) { .features article:last-child:nth-child(3n+1) { grid-column: auto; } }

.vip-band { background: radial-gradient(ellipse at top, #3a2830 0, var(--vip-deep) 70%); color: var(--vip-ink); }
.vip-band .sec { color: #fff; }
.vip-eyebrow { color: #e2c07d; display: flex; align-items: center; justify-content: center; gap: 8px; }
.eb-ico { width: 18px; height: 18px; vertical-align: -3px; color: currentColor; }
.vip-lead { color: #dccbb4; margin: -24px auto 40px; max-width: 640px; }
.vip-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.vt { position: relative; display: grid; gap: 2px; align-content: start; font: .86rem/1.4 var(--ui); color: #cbb9a2; }
.vt b { color: #fff; font: 600 .95rem var(--ui); margin-top: 8px; }
.vt-img { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--vb);
  box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08); }
.vt-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vt-ph { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 10px; color: var(--va);
  background: linear-gradient(160deg, var(--vb), color-mix(in srgb, var(--vb) 78%, var(--va))); }
.vt-ph::before { content: ""; position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--va) 55%, transparent); border-radius: 9px; }
.vt-ph i { font: normal 600 2.4rem/1 var(--serif); width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--va) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--va) 35%, transparent); }
.vt-ph small { font: 600 .76rem var(--ui); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.vt.ph .vt-ph { display: grid; } .vt.ph img { visibility: hidden; }
.vt-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 999px;
  background: linear-gradient(135deg, #e6c27a, #b8893a); color: #2a1d22; font: 700 .78rem var(--ui); letter-spacing: .08em; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.vt-badge svg { width: 13px; height: 13px; }
.center-row { justify-content: center; margin: 40px 0 0; }
@media (max-width: 1000px) { .vip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .vip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .vt span:not(.vt-badge):not(.vt-ph) { display: none; } }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 22px; padding: 28px 26px 26px; box-shadow: var(--shadow); }
.plan h3 { font: 600 1.35rem var(--ui); margin: 0; display: flex; align-items: center; gap: 8px; }
.plan-sub { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.plan-price { font: 600 2rem/1.1 var(--serif); font-variant-numeric: lining-nums; margin: 0; }
.plan-price small { font: 500 .9rem var(--ui); font-style: normal; color: var(--muted); } /* ≥ 14px trên điện thoại (M2-INTRO-01) */
.plan .ticks { gap: 10px; font-size: .97rem; }
.plan .ticks li.no { color: var(--muted); } .plan .ticks li.no::before { content: "–"; color: var(--muted); }
.plan .btn { justify-self: start; }
.plan-vip { background: linear-gradient(170deg, #fffaf0, #fff 55%); border-color: #ecd5a8; box-shadow: 0 1px 2px rgba(47,38,38,.06), 0 18px 44px rgba(156,111,40,.18); }
.plan-vip h3 { color: #7a5518; } .plan-vip .ticks li::before { color: var(--vip); }
.plan-flag { position: absolute; top: -12px; right: 22px; background: var(--vip-deep); color: #f3d79e; font: 600 .82rem var(--ui); letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan .btn { justify-self: stretch; } }

.cmp-wrap { max-width: 980px; margin: 34px auto 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; font: .95rem/1.45 var(--ui); }
.cmp th, .cmp td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.cmp thead th { font-weight: 700; background: var(--soft); }
.cmp tbody th { font-weight: 500; color: #5b5051; width: 34%; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp .cmp-vip { background: #fffaf0; }
.cmp thead .cmp-vip { background: #f6e6c4; color: #6d4b14; }
.cmp i.y { font-style: normal; color: #3f8a55; font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) { .cmp th, .cmp td { padding: 10px 8px; font-size: .9rem; } .cmp tbody th { width: 38%; } }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.contact { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.contact:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact b { font: 600 1.02rem var(--ui); color: var(--accent); }
.contact span { font-size: .93rem; color: #5b5051; }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .top .brand small { display: none; } .top { gap: 12px; padding: 12px 16px; } }

/* Thuộc tính hidden luôn thắng display:grid/flex của lớp (trang tài khoản, admin dùng hidden để ẩn/hiện khối) */
[hidden] { display: none !important; }

/* ── Công tắc "Kiếm tiền" (Docs/kiem-tien.md) — assets/js/platform.js đặt <html data-mz="1"> khi bật.
   Mặc định (chưa tải cấu hình / lỗi mạng / tắt) = chế độ miễn phí: [data-mz-on] (VIP, giá, thanh toán) ẩn, [data-mz-off] hiện.
   !important để thắng display của lớp (.btn inline-flex, section…). ── */
html:not([data-mz="1"]) [data-mz-on] { display: none !important; }
html[data-mz="1"] [data-mz-off] { display: none !important; }
/* Dùng thử + gói VIP (Docs/thiep-site.md mục 9d) — platform.js đặt <html data-tr="1"> khi bật; mặc định (chưa tải) ẩn. */
html:not([data-tr="1"]) [data-tr-on] { display: none !important; }
html[data-tr="1"] [data-tr-off] { display: none !important; }
@media (max-width: 820px) { .top .top-cta[data-mz-off] { display: none !important; } }
.btn-online { background: var(--deep); color: #fff; box-shadow: 0 8px 20px rgba(91,58,64,.25); }
.btn-online:hover { background: #4a2e33; }
.online { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; max-width: 980px; margin: 0 auto; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px; box-shadow: var(--shadow); }
.online .lead { margin-top: 0; }
.online-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; font: .97rem/1.5 var(--ui); }
.online-steps li { display: flex; gap: 12px; align-items: flex-start; }
.online-steps b { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--deep); font: 700 .9rem var(--ui); }
.online-contact { background: var(--soft); border-radius: 16px; padding: 18px 18px 8px; }
@media (max-width: 760px) { .online { grid-template-columns: 1fr; padding: 22px 18px; } .online .btn { width: 100%; } }
/* Khối liên hệ admin (Zalo / điện thoại / email / Facebook) — dựng bởi platform.js */
.pc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font: .92rem/1.35 var(--ui); min-height: 48px; min-width: 0; }
.pc:hover { border-color: var(--accent); }
.pc i { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: normal 700 .78rem var(--ui); color: #fff; background: var(--accent); }
.pc-zalo i { background: #0068ff; } .pc-phone i { background: #3f8a55; } .pc-email i { background: var(--deep); } .pc-facebook i { background: #1877f2; }
.pc span { display: grid; min-width: 0; } .pc small { color: var(--muted); font-size: .9rem; }
.pc b { font-weight: 600; overflow-wrap: anywhere; }
.foot-contact { width: 100%; max-width: 760px; margin: 6px 0 4px; }
.foot-contact p { margin: 0 0 8px; }
.foot-contact .pc-list { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); text-align: left; }
.online-cta { margin: 0; }
@media (max-width: 760px) { .online-cta .btn { flex: 1 1 100%; } }

/* ── Nút ngôn ngữ VI | EN (assets/js/i18n.js) — gọn, nằm trên thanh đầu trang mọi trang intro ── */
.lang-sw { display: inline-flex; flex: none; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.lang-sw button { min-width: 34px; height: 28px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--muted);
  font: 600 14px/1 var(--ui); letter-spacing: .06em; cursor: pointer; }
.lang-sw button:hover { color: var(--ink); }
.lang-sw button.on { background: var(--deep); color: #fff; }
.lang-sw button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lang-sw.push { margin-left: auto; }
.top .lang-sw.push + .btn, .ac .top .lang-sw.push + .btn { margin-left: 0; }
@media (max-width: 480px) { .ac .top .ac-user + .lang-sw { margin-left: auto; } .ac .top .ac-user + .lang-sw + .btn { margin-left: 0; } }
.nf-top { display: flex; align-items: center; gap: 12px; }
/* Thanh đầu trang trang chủ: thêm nút VI | EN + chữ EN/VI dài ngắn khác nhau -> không cho chữ menu xuống 2 dòng;
   bớt dần mục phụ khi hẹp (GitHub có ở chân trang + mục Tải về; "Tải miễn phí" có ở hero), hẹp hơn nữa thì dùng menu ☰. */
.nav a, .top-login, .top .btn { white-space: nowrap; }
.top .nav { gap: clamp(16px, 1.7vw, 26px); }
/* 04/10: link GitHub luôn hiện — hẹp hơn 1500px chỉ còn icon (chữ GitHub ẩn), trong menu ☰ hiện đủ. */
@media (max-width: 1500px) { .top .nav-gh .gh-txt { display: none; } .top .nav-gh { gap: 0; } }
@media (max-width: 1240px) { .top .nav-gh .gh-txt { display: inline; } .top .nav-gh { gap: 6px; } }
@media (max-width: 1400px) { .top .btn-ghost.top-cta { display: none; } .top .top-cta + .top-cta { margin-left: 0; } }
@media (max-width: 1240px) {
  .top .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 8px 20px 14px; }
  .top .nav.open { display: flex; } .top .nav a { padding: 10px 0; }
  .top .nav-gh { display: inline-flex; }
  .burger { display: block; margin-left: 4px; } .top-login { margin-left: auto; }
}
.top .brand { flex: none; } .brand small { white-space: nowrap; }

/* ── Điện thoại (vòng M1, 03/10/2026 — Docs/qa/mobile-r1-intro.md): thanh đầu vừa 320px, ☰ đóng đúng, vùng bấm ≥ 44px,
   chữ ≥ 14px, tai thỏ (viewport-fit=cover) khi xoay ngang, toast không che nút.
   Kiểm bằng Playwright: Galaxy S9+ 320, Galaxy S8 360, iPhone SE 375 (+ chữ 120%), iPhone 13 390 (WebKit), Pixel 7 412, xoay ngang. ── */
.brand { min-height: 44px; }
.top .brand { flex: 0 1 auto; min-width: 0; }
.top .brand span { min-width: 0; overflow: hidden; }
.top .brand span > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .nav .nav-login { display: none; }
.burger { flex: none; cursor: pointer; color: var(--ink); }
.burger.is-open { background: var(--soft); }
.burger > span { pointer-events: none; }
@media (max-width: 1240px), (pointer: coarse) {
  /* VI | EN: mỗi nút 44×44, phần nhìn thấy vẫn là viên thuốc gọn (nền chỉ tô vùng nội dung). */
  .lang-sw { position: relative; isolation: isolate; padding: 0 1px; border: 0; background: none; }
  .lang-sw::before { content: ""; position: absolute; inset: 7px 0; z-index: -1; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
  .lang-sw button { min-width: 44px; height: 44px; padding: 9px 3px; background-clip: content-box; }
  .burger { width: 44px; height: 44px; }
  .top-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
  .btn-sm { min-height: 44px; }
  .dn-copy, .dn-dl { min-height: 44px; }
}
@media (max-width: 1240px) {
  .top .nav a { display: flex; align-items: center; min-height: 46px; padding: 0; }
  .top .nav .nav-login { display: none; }
}
/* < 600px: "Đăng nhập" chuyển vào menu ☰ (thanh đầu chỉ còn logo + VI | EN + ☰). */
@media (max-width: 599px) {
  .top .top-login { display: none; }
  .top .nav .nav-login { display: flex; font-weight: 600; }
  .top .lang-sw { margin-left: auto; }
}
@media (max-width: 440px) { .top { gap: 10px; padding: 10px 14px; } .burger { margin-left: 0; } }
@media (max-width: 360px) {
  .top { gap: 6px; padding: 10px 10px; }
  .brand { gap: 7px; } .brand-ico { width: 30px; height: 30px; }
  .top .brand span { font-size: 1.22rem; }
}
/* Trang phụ (tài khoản, đăng ký, ủng hộ) trên máy hẹp: logo chỉ còn biểu tượng, nút quay về chỉ còn "←" (chữ vẫn đọc được cho trình đọc màn hình). */
.ac-back, .dn-back { gap: 6px; }
@media (max-width: 420px) {
  .ac .top .brand span, .dn .top .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ac .top .brand, .dn .top .brand { min-width: 44px; justify-content: center; }
  .dn .top { gap: 10px; padding: 10px 14px; }
}
@media (max-width: 400px) {
  .ac-back .back-txt, .dn-back .back-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ac-back, .dn-back { min-width: 44px; padding: 0 12px; font-size: 20px; }
}
.nf-top { flex-wrap: wrap; }
@media (max-width: 400px) { .nf-top .brand small { display: none; } }
/* Toast trên điện thoại: hiện DƯỚI thanh đầu trang thay vì sát đáy (che nút "Hủy, chọn tên khác" — M1-INTRO-08). */
@media (max-width: 680px) { .dn-toast { top: calc(68px + env(safe-area-inset-top, 0px)); bottom: auto; } }

/* Tai thỏ / thanh Home: nội dung không nằm dưới vùng khuyết khi xoay ngang (env = 0 trên máy không có tai thỏ). */
@supports (padding: max(0px)) {
  @media (min-width: 481px) {
    .top { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
    .wrap, .hero, .foot, .top .nav, .ac-main { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
    .nf { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  }
  @media (min-width: 1241px) { .top .nav { padding-left: 0; padding-right: 0; } }
  .dn-toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
  .foot { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  @media (max-width: 680px) { .dn-toast { bottom: auto; } }
}

/* Nút Google ở đầu trang chủ (06/10, google-home.js) — chỉ hiện khi máy chủ có Google client_id và chưa đăng nhập */
.top-google { display: inline-flex; align-items: center; min-height: 44px; }

/* ════════════════════════════════════════════════════════════════════════════
   REDESIGN TRANG CHỦ — "Thiệp cưới editorial" (09/10/2026, Docs/trang-chu-2026-10.md)
   Lớp thẩm mỹ phủ lên trên: giữ NGUYÊN mọi selector cấu trúc/đáp ứng/công tắc data-*
   ở trên. Chỉ nâng: nhịp khoảng trắng, hệ chữ serif, hairline vàng gold, hoa văn
   tinh tế, khung ảnh gallery kiểu "bộ sưu tập thiệp". Nền ngà ấm + hồng phấn + gold.
   ════════════════════════════════════════════════════════════════════════════ */
:root {
  --script: "Dancing Script", "Playfair Display", "Playfair Fallback", cursive;
  --gold: #b0863f; --gold-soft: #e3cd9e; --gold-ink: #8a6626;
  --hair: rgba(91, 58, 64, .13);        /* đường mảnh ấm, hoà mọi nền */
}

/* ── Nhịp & khoảng trắng ── */
.wrap { padding: 104px 20px; }
.band + .band { border-top: 0; }
@media (max-width: 760px) { .wrap { padding: 62px 20px; } .hero { padding: 24px 20px 64px; } }

/* ── Nhãn overline có hairline vàng hai bên (cảm giác thiệp mời) ── */
.eyebrow { color: var(--gold-ink); letter-spacing: .24em; font-weight: 700; font-size: .74rem; }
.eyebrow.center { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.eyebrow.center::before, .eyebrow.center::after {
  content: ""; height: 1px; width: clamp(24px, 7vw, 52px);
  background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.eyebrow.center::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }

/* ── Tiêu đề: serif italic, giãn chữ quang học ── */
.sec { letter-spacing: -.01em; margin-bottom: 52px; }
.sec.left::after { content: ""; display: block; width: 54px; height: 2px; margin-top: 18px;
  background: linear-gradient(90deg, var(--accent), var(--gold-soft)); border-radius: 2px; }

/* ── Hero: chữ lớn hơn, điểm nhấn viết tay, phông nền hồng mờ sau ảnh ── */
.hero { padding-top: 64px; gap: 56px; }
.hero h1 { font-size: clamp(2.9rem, 6.2vw, 5.1rem); letter-spacing: -.015em; margin-bottom: .32em; }
.hero h1 em { font-family: var(--script); font-style: normal; font-weight: 700;
  font-size: 1.22em; line-height: .8; color: var(--accent); padding: 0 .04em; }
.eyebrow:not(.center) { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow:not(.center)::after { content: ""; width: 34px; height: 1px; background: var(--gold-soft); }
.hero .lead { font-size: 1.14rem; line-height: 1.6; color: #5b4f50; }
.hero-shots::before { content: ""; position: absolute; left: 6%; top: 2%; width: 78%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(231,163,154,.34), transparent 66%); filter: blur(10px); z-index: -1; }
.hero-shots { isolation: isolate; }
.browser { border-radius: 16px; box-shadow: 0 2px 4px rgba(91,58,64,.08), 0 44px 80px -34px rgba(91,58,64,.5); }
.browser::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(176,134,63,.22); }
.browser { position: relative; }
.browser-bar b { box-shadow: inset 0 0 0 1px var(--hair); }
.trust { margin-top: 28px; }
.trust svg { color: var(--gold); }
/* CTA hero: 2 nút đặc là chính; "demo" + "GitHub" thành liên kết chữ nhẹ -> bớt rối */
.hero .cta-row .btn-demo, .hero .cta-row .btn-gh {
  background: transparent; border-color: transparent; color: var(--muted); box-shadow: none;
  min-height: 40px; padding: 0 8px; font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--gold-soft); text-underline-offset: 5px; }
.hero .cta-row .btn-demo:hover, .hero .cta-row .btn-gh:hover { color: var(--accent); background: transparent; transform: none; text-decoration-color: var(--accent); }
.vip-note { background: #fbf4e7; border-color: #ecdabc; border-radius: 13px; }

/* ── Tính năng: thẻ thoáng, viền hairline, icon viền vàng, tiêu đề serif ── */
#tinh-nang { background: linear-gradient(180deg, #fff, #fdfaf6); }
.features { gap: 16px; }
.features article { background: #fff; border: 1px solid var(--hair); border-radius: 18px; padding: 26px 26px 22px;
  box-shadow: 0 1px 2px rgba(91,58,64,.04); transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s, border-color .3s; }
.features article:hover { transform: translateY(-3px); border-color: var(--gold-soft); box-shadow: 0 20px 40px -26px rgba(91,58,64,.5); }
.features svg { width: 40px; height: 40px; color: var(--gold); background: #fbf3e4; padding: 9px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--gold-soft); margin-bottom: 16px; }
.features h3 { font: italic 600 1.26rem/1.2 var(--serif); margin-bottom: .35em; }
.features p { font-size: .95rem; line-height: 1.55; }

/* ── Khối chia đôi: ảnh bo góc + matte vàng mảnh ── */
.shot { border-radius: 18px; border: 1px solid var(--hair); box-shadow: 0 2px 4px rgba(91,58,64,.05), 0 36px 64px -40px rgba(91,58,64,.45); }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(176,134,63,.18); pointer-events: none; }
.shot { position: relative; }
.ticks li::before { content: "❧"; color: var(--gold); font-size: 1.05em; top: -1px; }

/* ── 20 phong cách: đệm khối ── */
.ds-wrap { padding-top: 92px; padding-bottom: 88px; }

/* ── VIP grid: viền vàng tinh, đồng bộ bộ sưu tập ── */
.vt-img { border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.4), inset 0 0 0 1px rgba(226,205,158,.3); }
.vt b span, .vt b { color: #fff; }

/* ── Gói/So sánh/Tải về: hairline + bo góc mềm + nhiều khí ── */
.plan, .online, .cmp-wrap, .dl, .contact, details { border-color: var(--hair); }
.plan { border-radius: 22px; }
.dl { border-radius: 18px; background: #fff; }
a.dl:hover { border-color: var(--gold-soft); box-shadow: 0 20px 40px -28px rgba(91,58,64,.5); }
.steps li { border: 1px solid var(--hair); box-shadow: 0 2px 4px rgba(91,58,64,.05); }
.steps li > b { background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-family: var(--serif); }
.link-demo { border-color: var(--gold-soft); background: #fff; }
.link-demo b { color: var(--accent); }

/* ── Chân trang: hoa văn khép lại ── */
.foot { padding-top: 64px; }
.foot::before { content: "❦"; color: var(--gold); font-size: 1.4rem; opacity: .7; margin-bottom: 4px; }
.foot .brand { margin-bottom: 6px; }

/* ── Giảm chuyển động ── */
@media (prefers-reduced-motion: reduce) {
  .features article, .ds-tab, .ds-cta, .shot { transition: none !important; }
}

/* Thanh đầu ở màn vừa (1240–1440px): nav đủ mục + 2 nút CTA dễ bóp cụt tên thương hiệu.
   Ẩn phụ đề nhỏ của logo và siết khoảng cách nav để tên "thiep.site" luôn đủ chỗ (redesign 09/10). */
@media (max-width: 1440px) and (min-width: 1241px) {
  .top .brand small { display: none; }
  .top .nav { gap: clamp(12px, 1.2vw, 18px); }
  .top .nav .nav-vip, .top .nav [href="#hoi-dap"] { display: none; } /* bớt 1–2 mục phụ (có ở chân trang / menu ☰) */
}

/* Giữ nhãn overline sáng trên dải VIP nền tối (thắng màu gold-ink mặc định của .eyebrow). */
.vip-band .eyebrow, .vip-eyebrow { color: #e2c07d; }

/* Dải quảng bá chéo "Cùng tác giả" — gọn, trên màn hình đầu, trước mục 20 phong cách. */
.xpromo { max-width: 1160px; margin: 0 auto; padding: 20px 20px 4px; }
.xpromo-in { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; }
.xpromo-eyebrow { font: 600 .72rem var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.xpromo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xpromo-card { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(47,38,38,.04); transition: border-color .18s, box-shadow .18s, transform .18s; }
.xpromo-card:hover { border-color: var(--bc); box-shadow: 0 10px 24px rgba(47,38,38,.1); transform: translateY(-2px); }
.xpromo-card:focus-visible { outline: 2px solid var(--bc); outline-offset: 2px; }
.xpromo-logo { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(47,38,38,.14); }
.xpromo-logo img { width: 46px; height: 46px; display: block; }
.xpromo-tx { display: grid; gap: 1px; min-width: 0; }
.xpromo-name { font: 700 1rem var(--ui); line-height: 1.2; }
.xpromo-name span { font-weight: 500; color: var(--muted); font-size: .82em; }
.xpromo-desc { font: 400 .84rem/1.3 var(--body); color: #5b5051; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.xpromo-arr { flex: 0 0 auto; width: 20px; height: 20px; color: var(--muted); transition: color .18s, transform .18s; }
.xpromo-card:hover .xpromo-arr { color: var(--bc); transform: translate(2px, -2px); }
@media (max-width: 760px) {
  .xpromo { padding: 16px 20px 2px; }
  .xpromo-in { grid-template-columns: 1fr; gap: 10px; }
  .xpromo-cards { grid-template-columns: 1fr; }
}
