/* Xưởng Reel — kiểu dùng chung cho mọi trang. Mobile-first. */
:root {
  --kem: #fff8f0;
  --kem-2: #fdeee0;
  --trang: #ffffff;
  --chu: #2a1f3d;
  --chu-phu: #5b4e6e;
  --tim: #6d28d9;
  --hong: #be185d;
  --cam: #ea580c;
  --vien: #ecdccb;
  --bo: 20px;
  --grad: linear-gradient(120deg, #7c3aed 0%, #db2777 55%, #f97316 100%);
  --grad-nut: linear-gradient(120deg, #6d28d9, #be185d);
  --grad-dam: linear-gradient(120deg, #6d28d9 0%, #be185d 55%, #c2410c 100%); /* đủ tương phản AA cho chữ */
  --bong: 0 10px 30px -12px rgba(76, 29, 149, .28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--kem); color: var(--chu);
  font: 16px/1.65 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--tim); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--cam); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.chu-grad { background: var(--grad-dam); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chu-phu { color: var(--chu-phu); }
.nho { font-size: .875rem; }

/* Thanh đầu */
.dau { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 240, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--vien); }
.dau .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--chu); text-decoration: none; }
.logo i { font-style: normal; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--grad); font-size: 1.1rem; }
.menu { display: none; gap: 22px; }
.menu a { color: var(--chu); text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu a:hover { color: var(--tim); }

/* Nút */
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 0; transition: transform .15s, box-shadow .15s; }
.nut:hover { transform: translateY(-2px); }
.nut-chinh { background: var(--grad-nut); color: #fff; box-shadow: var(--bong); }
.nut-phu { background: var(--trang); color: var(--tim); border: 2px solid #d9c8f5; }
.nut-nho { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.hang-nut { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: 36px 0 48px; overflow: hidden; }
.hero .wrap { display: grid; gap: 36px; }
.nhan { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #f3e8ff; color: var(--tim); font-weight: 700; font-size: .85rem; margin-bottom: 14px; }
.hero .loi { font-size: 1.1rem; color: var(--chu-phu); max-width: 34em; }
.hero .ghi { margin-top: 14px; font-size: .85rem; color: var(--chu-phu); }
.kenh-chip { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; padding: 0; list-style: none; }
.kenh-chip li { background: var(--trang); border: 1px solid var(--vien); border-radius: 999px; padding: 5px 12px; font-size: .88rem; font-weight: 600; }

/* Khung điện thoại 9:16 */
.dien-thoai-o { position: relative; display: flex; justify-content: center; }
.dien-thoai-o::before { content: ""; position: absolute; inset: 8% 4%; background: var(--grad); filter: blur(60px); opacity: .35; border-radius: 50%; }
.dien-thoai { position: relative; width: min(280px, 74vw); aspect-ratio: 9 / 19; background: #1b1430; border-radius: 42px; padding: 12px; box-shadow: 0 30px 60px -20px rgba(42, 31, 61, .55); }
.man { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: linear-gradient(160deg, #fbcfe8 0%, #fed7aa 45%, #ddd6fe 100%); }
.man::before { content: ""; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(transparent, rgba(27, 20, 48, .75)); }
.man video, .man img { width: 100%; height: 100%; object-fit: cover; }
.man .canh { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5.5rem; animation: nhun 3s ease-in-out infinite; }
.man .tai-tho { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: #1b1430; border-radius: 999px; }
.man .phu-de { position: absolute; left: 12px; right: 56px; bottom: 18px; color: #fff; font-size: .82rem; line-height: 1.4; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.man .phu-de b { display: block; font-size: .95rem; }
.man .nut-doc { position: absolute; right: 10px; bottom: 26px; display: grid; gap: 14px; font-size: 1.35rem; text-align: center; }
.man .bang-gia { position: absolute; top: 28%; left: 50%; transform: translate(-50%, 0) rotate(-4deg); background: #fff; color: var(--hong); font-weight: 800; padding: 6px 14px; border-radius: 12px; font-size: 1rem; box-shadow: var(--bong); white-space: nowrap; }
.man .the-mau { position: absolute; top: 44px; left: 12px; background: rgba(27, 20, 48, .72); color: #fff; font-size: .7rem; padding: 3px 9px; border-radius: 999px; }
@keyframes nhun { 50% { transform: scale(1.06) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .man .canh { animation: none; } html { scroll-behavior: auto; } .nut:hover { transform: none; } }

/* Khối */
.khoi { padding: 56px 0; }
.khoi-trang { background: var(--trang); }
.khoi-dau { max-width: 44em; margin-bottom: 28px; }
.luoi { display: grid; gap: 16px; }
.the { background: var(--trang); border: 1px solid var(--vien); border-radius: var(--bo); padding: 22px; box-shadow: 0 2px 0 rgba(42, 31, 61, .03); }
.khoi-trang .the { background: var(--kem); }
.the .bieu { font-size: 2rem; line-height: 1; margin-bottom: 12px; }
.the p:last-child { margin-bottom: 0; }
.buoc-so { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad-nut); color: #fff; font-weight: 800; margin-bottom: 10px; }

/* Số liệu */
.so-lieu { background: var(--grad-dam); color: #fff; border-radius: 28px; padding: 30px 22px; }
.so-lieu h2 { color: #fff; }
.so-lieu .luoi { margin-top: 18px; }
.so-o { background: rgba(27, 20, 48, .28); border-radius: var(--bo); padding: 18px; }
.so-o b { display: block; white-space: nowrap; font-size: clamp(1.9rem, 8vw, 2.4rem); font-weight: 800; line-height: 1.1; }
.so-o span { font-size: .95rem; }
.so-lieu .ghi-do { margin: 18px 0 0; font-size: .88rem; background: rgba(27, 20, 48, .35); padding: 10px 14px; border-radius: 14px; }

/* Bảng */
.bang-o { overflow-x: auto; border-radius: var(--bo); border: 1px solid var(--vien); background: var(--trang); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--vien); vertical-align: top; font-size: .95rem; }
thead th { background: var(--kem-2); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
td.tot { background: #f5effe; font-weight: 600; }
/* Điện thoại: mỗi hàng bảng thành 1 thẻ, nhãn cột lấy từ data-nhan (main.js điền) */
@media (max-width: 719px) {
  .bang-o { overflow: visible; border: 0; background: none; }
  .bang-o table { min-width: 0; }
  .bang-o caption { padding: 0 0 10px !important; }
  .bang-o thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bang-o tr { display: block; background: var(--trang); border: 1px solid var(--vien); border-radius: var(--bo); margin-bottom: 12px; overflow: hidden; }
  .khoi-trang .bang-o tr { background: var(--kem); }
  .bang-o td { display: block; border: 0; padding: 4px 16px; }
  .bang-o td:first-child { font-weight: 800; padding-top: 14px; font-size: 1.02rem; }
  .bang-o td:last-child { padding-bottom: 14px; }
  .bang-o td[data-nhan]:not(:first-child)::before { content: attr(data-nhan) ": "; font-weight: 700; color: var(--chu-phu); }
  .bang-o td.tot { margin: 6px 10px 10px; border-radius: 12px; padding: 8px 12px; }
}

/* Giá */
.gia { position: relative; border: 2px solid transparent; background: linear-gradient(var(--trang), var(--trang)) padding-box, var(--grad) border-box; }
.gia .so { font-size: 2.6rem; font-weight: 800; line-height: 1; margin: 6px 0; }
.gia .so small { font-size: 1rem; font-weight: 600; color: var(--chu-phu); }
.gia ul { padding-left: 0; list-style: none; margin: 16px 0 20px; }
.gia li { padding: 5px 0 5px 28px; position: relative; }
.gia li::before { content: "✅"; position: absolute; left: 0; font-size: .9rem; top: 7px; }
.huy-hieu { position: absolute; top: -14px; left: 20px; background: #fdba74; color: #1b1430; font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }

/* FAQ */
details { background: var(--trang); border: 1px solid var(--vien); border-radius: var(--bo); padding: 0 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 18px 28px 18px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--tim); }
details[open] summary::after { content: "–"; }
details > div { padding-bottom: 16px; color: var(--chu-phu); }

/* Hộp lưu ý (SmartScreen) */
.luu-y { background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--bo); padding: 18px 20px; }
.luu-y ol { margin: 8px 0 0; padding-left: 1.3em; }
kbd { background: var(--trang); border: 1px solid var(--vien); border-bottom-width: 3px; border-radius: 6px; padding: 1px 6px; font: inherit; font-size: .9em; font-weight: 600; }

/* CTA cuối */
.cta { text-align: center; }
.cta .hang-nut { justify-content: center; }

/* Chân trang */
.chan { background: #1b1430; color: #e9e2f5; padding: 40px 0 28px; font-size: .92rem; }
.chan a { color: #e9e2f5; }
.chan .luoi-chan { display: grid; gap: 20px; margin-bottom: 22px; }
.chan .doc-lap { border-top: 1px solid #3b2f57; padding-top: 18px; color: #c9bfdc; font-size: .85rem; }
.chan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* Hộp "Sắp mở" */
dialog > div { padding: 28px 24px; }
dialog { border: 0; border-radius: 24px; padding: 0; max-width: 400px; width: calc(100% - 32px); color: var(--chu); background: var(--trang); box-shadow: 0 30px 80px -20px rgba(27, 20, 48, .6); text-align: center; }
dialog::backdrop { background: rgba(27, 20, 48, .55); }
dialog .bieu { font-size: 3rem; }
dialog .hang-nut { justify-content: center; margin-top: 18px; }

/* Trang pháp lý */
.phap-ly { padding: 32px 0 56px; }
.phap-ly .wrap { max-width: 780px; }
.phap-ly h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
.phap-ly h2 { font-size: 1.3rem; margin-top: 2em; }
.phap-ly li { margin-bottom: .4em; }
.nhap { background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; border-radius: 14px; padding: 12px 16px; font-weight: 600; margin-bottom: 22px; }
.can-dien { background: #fef3c7; color: #78350f; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.muc-luc { background: var(--trang); border: 1px solid var(--vien); border-radius: var(--bo); padding: 16px 20px; }
.muc-luc ol { margin: 6px 0 0; padding-left: 1.3em; }

@media (min-width: 720px) {
  .luoi-2 { grid-template-columns: repeat(2, 1fr); }
  .luoi-3 { grid-template-columns: repeat(3, 1fr); }
  .chan .luoi-chan { grid-template-columns: 2fr 1fr 1fr; }
  .so-lieu { padding: 44px; }
}
@media (min-width: 960px) {
  .menu { display: flex; }
  .hero { padding: 64px 0 72px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .luoi-4 { grid-template-columns: repeat(4, 1fr); }
  .khoi { padding: 80px 0; }
}

/* ===== Chuyển động (18/10, người dùng: "làm cho trang web động chút"). Tắt hết khi người dùng chọn giảm chuyển động. ===== */
@keyframes bay { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes tho { 0%, 100% { opacity: .28; transform: scale(.95); } 50% { opacity: .5; transform: scale(1.06); } }
@keyframes vet-sang { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes bat-len { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes lac { 0%, 100% { transform: translate(-50%, 0) rotate(-4deg); } 50% { transform: translate(-50%, -4px) rotate(3deg); } }
@keyframes dap { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.3); } }
@keyframes luot { from { left: -60%; } to { left: 130%; } }
@keyframes trot { 0% { transform: translate(0, 0); } 50% { transform: translate(30px, -20px); } 100% { transform: translate(0, 0); } }

.hero { position: relative; }
.hero::before, .hero::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; filter: blur(70px); opacity: .22; z-index: -1; animation: trot 14s ease-in-out infinite; }
.hero::before { background: #c084fc; top: -80px; left: -60px; }
.hero::after { background: #fb923c; bottom: -100px; right: -40px; animation-delay: -7s; }
.dien-thoai { animation: bay 6s ease-in-out infinite; }
.dien-thoai-o::before { animation: tho 5s ease-in-out infinite; }
.hero h1 .chu-grad { background-size: 200% auto; animation: vet-sang 6s linear infinite; background-image: linear-gradient(120deg, #6d28d9, #be185d, #c2410c, #be185d, #6d28d9); }
.kenh-chip li { animation: bat-len .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.kenh-chip li:nth-child(2) { animation-delay: .12s; } .kenh-chip li:nth-child(3) { animation-delay: .24s; } .kenh-chip li:nth-child(4) { animation-delay: .36s; }
.man .bang-gia { animation: lac 2.4s ease-in-out infinite; }
.man .nut-doc span:first-child { display: inline-block; animation: dap 1.6s ease-in-out infinite; }
.man .dem-video { position: absolute; top: 44px; right: 12px; background: rgba(255, 255, 255, .92); color: var(--tim); font-weight: 800; font-size: .72rem; padding: 4px 10px; border-radius: 999px; box-shadow: var(--bong); }
.nut { position: relative; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.nut:hover { transform: translateY(-2px); }
.nut:active { transform: translateY(1px) scale(.98); }
.nut-chinh::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: luot 3.2s ease-in-out infinite; }
.the, .so-o { transition: transform .2s ease, box-shadow .2s ease; }
.the:hover { transform: translateY(-4px); box-shadow: var(--bong); }
.hien-dan { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.hien-dan.da-hien { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hien-dan { opacity: 1; transform: none; }
}

/* ===== Động mạnh hơn (18/10) ===== */
@keyframes len-tim { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--x, -20px), -260px) scale(1.3) rotate(var(--r, 15deg)); opacity: 0; } }
@keyframes chay-ngang { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes vao-tren { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes ra-tren { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes go-chu { from { opacity: 0; transform: translateY(.4em) rotateX(70deg); } to { opacity: 1; transform: none; } }
@keyframes sang-chip { 0%, 100% { box-shadow: none; transform: none; } 50% { box-shadow: 0 0 0 4px rgba(219, 39, 119, .18), var(--bong); transform: translateY(-3px); } }
.chu-doi { display: inline-block; animation: go-chu .45s cubic-bezier(.2, 1.3, .4, 1); }
.dien-thoai-o { perspective: 900px; }
.dien-thoai { transition: transform .25s ease-out; }
.dien-thoai.nghieng { animation: none; }
.man { overflow: hidden; }
.man .slide { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5.5rem; z-index: 0; }
.man .slide.vao { animation: vao-tren .55s cubic-bezier(.2, .9, .3, 1) both; }
.man .slide.ra { animation: ra-tren .55s cubic-bezier(.2, .9, .3, 1) both; }
.man > :not(.slide) { z-index: 1; }
.man .tim-bay { position: absolute; right: 18px; bottom: 120px; font-size: 1.3rem; pointer-events: none; animation: len-tim 2.2s ease-out forwards; z-index: 2; }
.kenh-chip li.sang { animation: sang-chip .9s ease; }
.dai-chay { overflow: hidden; background: var(--grad-dam); color: #fff; padding: 12px 0; transform: rotate(-1.2deg); margin: 8px -10px 0; }
.dai-trong { display: flex; gap: 34px; width: max-content; animation: chay-ngang 26s linear infinite; font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .dai-trong { animation: none; } .man .tim-bay { display: none; } }
.chu-doi { background: linear-gradient(120deg, #be185d, #c2410c); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
.man .phu-de { text-shadow: 0 1px 4px rgba(0, 0, 0, .55); }
.man::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(transparent, rgba(27, 20, 48, .55)); z-index: 0; pointer-events: none; }

/* ===== Soát bố cục (18/10) ===== */
html, body { overflow-x: clip; }
h1, h2 { text-wrap: balance; }
.dai-chay { margin: 8px 0 0; }
@media (min-width: 960px) {
  .hero h1 { font-size: clamp(2.4rem, 4.2vw, 3.1rem); }
}
@media (max-width: 719px) {
  .khoi { padding: 40px 0; }
  .hero { padding: 20px 0 32px; }
  .hero .wrap { gap: 24px; }
  .hero .loi { font-size: 1rem; }
  .dien-thoai { width: min(220px, 58vw); }
  .the { padding: 18px; }
  .dai-trong { font-size: .92rem; gap: 24px; }
}
@media (max-width: 719px) { .hero .hang-nut { display: grid; grid-template-columns: 1fr; gap: 12px; } .hero .hang-nut .nut { justify-content: center; text-align: center; } }
