/* TuKA website — stylesheet dùng chung (trang chủ, blog, trang phụ).
   Không framework. Màu theo theme Tết trong tài liệu dự án (mục 6). */
:root {
  --night: #120807;
  --night-2: #1d0d0b;
  --son: #c8102e;
  --son-deep: #8e0e22;
  --gold: #e8b931;
  --gold-soft: #f2c45a;
  --dao: #f7a1b5;
  --paper: #fff6e5;
  --paper-2: #fbecd2;
  --card: #fffdf8;
  --ink: #1f1a17;
  --ink-2: #4a3f38;
  --muted: #7a6a5f;
  --ivory: #fff8e7;
  --line: rgba(31, 26, 23, .12);
  --line-dark: rgba(255, 243, 214, .14);
  --radius: 22px;
  --shadow: 0 24px 60px -24px rgba(60, 12, 8, .35);
  --serif: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; font-weight: 500; line-height: 1.65; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- Typography ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 em, h2 em, h3 em { font-style: normal; font-weight: 700; color: var(--gold-soft); }
.on-light h2 em, .on-light h1 em { color: var(--son); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--son); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.dark .eyebrow { color: var(--gold-soft); }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section-head p { color: var(--ink-2); font-size: 1.08rem; margin: 16px 0 0; }
.dark { background: var(--night); color: var(--ivory); }
.dark .section-head p, .dark p { color: rgba(255, 248, 231, .78); }

/* ---------- Buttons ---------- */
.btn { --bg: var(--son); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 999px; background: var(--bg); color: var(--fg); font-weight: 700; font-size: 15.5px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(200, 16, 46, .6); }
.btn-gold { --bg: var(--gold-soft); --fg: var(--night); }
.btn-gold:hover { box-shadow: 0 14px 30px -12px rgba(242, 196, 90, .7); }
.btn-ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn-ghost:hover { box-shadow: none; background: rgba(255, 255, 255, .06); }
.btn svg { width: 22px; height: 22px; flex: none; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 20px 9px 16px; border-radius: 16px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .22); transition: transform .2s, border-color .2s; }
.store:hover { transform: translateY(-2px); border-color: var(--gold-soft); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; opacity: .75; line-height: 1.2; letter-spacing: .02em; }
.store strong { display: block; font-size: 17px; line-height: 1.2; }
.store.is-suggested { border-color: var(--gold-soft); box-shadow: 0 0 0 4px rgba(242, 196, 90, .18); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 8, 7, .82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line-dark); color: var(--ivory); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { display: block; height: 48px; width: auto; }
.site-footer .logo img { height: 60px; }
.logo span { font-size: 12px; color: rgba(255, 248, 231, .6); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: rgba(255, 248, 231, .82); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .07); }
.nav .btn { min-height: 42px; padding: 8px 18px; font-size: 14.5px; white-space: nowrap; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-dark); background: transparent; color: var(--ivory); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; margin: auto; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, opacity .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1180px) { .logo span { display: none; } .nav-links a { padding: 8px 11px; } }
@media (max-width: 1000px) {
  .menu-btn { display: block; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: var(--night); border-bottom: 1px solid var(--line-dark); transform: translateY(-120%); transition: transform .3s ease; }
  .menu-open .nav-links { transform: none; }
  .nav-links a { padding: 14px 12px; font-size: 17px; }
  .nav .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 78% 10%, rgba(200, 16, 46, .42), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(232, 185, 49, .14), transparent 60%), var(--night); color: var(--ivory); padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 110px); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(242, 196, 90, .5) 1px, transparent 1.4px); background-size: 3px 3px; opacity: .06; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); color: #fff8ec; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 248, 231, .82); max-width: 560px; margin: 22px 0 30px; }
.hero .lead strong { color: var(--gold-soft); font-weight: 600; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: rgba(255, 248, 231, .75); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: rgba(242, 196, 90, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2c45a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.countdown { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); font-size: 14px; color: rgba(255, 248, 231, .8); }
.countdown .pill { padding: 5px 12px; border-radius: 999px; background: var(--son); color: #fff; font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.countdown b { color: var(--gold-soft); font-variant-numeric: tabular-nums; }

/* Phone + floating card */
.stage { position: relative; height: clamp(520px, 52vw, 640px); }
.phone { position: absolute; right: 12%; top: 0; width: min(300px, 70%); aspect-ratio: 9 / 19.5; border-radius: 44px; padding: 10px; background: linear-gradient(160deg, #3a2a26, #0b0504 40%, #2a1c19); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .8), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.screen { position: relative; height: 100%; border-radius: 35px; overflow: hidden; background: #000; }
.screen::before { content: ""; position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 5; }
.slides { position: absolute; inset: 0; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: slide 16s infinite; }
.slides img:nth-child(2) { animation-delay: 4s; } .slides img:nth-child(3) { animation-delay: 8s; } .slides img:nth-child(4) { animation-delay: 12s; }
@keyframes slide { 0% { opacity: 0; transform: scale(1.12); } 5% { opacity: 1; } 25% { opacity: 1; } 31% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
.screen-ui { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 18px; background: linear-gradient(transparent 45%, rgba(0, 0, 0, .65)); }
.screen-ui .cap { font-family: var(--serif); font-size: 30px; line-height: 1.1; color: #fff3d6; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.screen-ui .meta { margin-top: 12px; display: flex; justify-content: space-between; font-size: 11.5px; color: rgba(255, 255, 255, .78); }
.bar { height: 3px; margin-top: 8px; background: rgba(255, 255, 255, .25); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 40%; background: var(--gold-soft); animation: bar 16s linear infinite; }
@keyframes bar { from { width: 0; } to { width: 100%; } }
.float-card img { width: 100%; height: auto; }
.float-card { position: absolute; left: 0; bottom: 4%; width: min(230px, 46%); rotate: -7deg; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); border: 3px solid #fff8ec; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
.chip-float { position: absolute; right: 0; top: 18%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 248, 236, .96); color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite 1s; }
.chip-float b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--son); color: #fff; font-size: 15px; }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { height: 500px; max-width: 460px; margin: 8px auto 0; width: 100%; }
  .phone { right: 6%; }
}

/* ---------- Greeting card preview (HTML overlay on template bg) ---------- */
.gcard { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #3a0a10; container-type: inline-size; }
.gcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcard .t { position: absolute; left: 50%; translate: -50% -50%; width: 74%; text-align: center; line-height: 1.12; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.gcard .title { top: 42%; font-family: "Dancing Script", var(--serif); font-weight: 700; font-size: 12.5cqw; color: #fff3d6; }
.gcard .wish { top: 58%; font-family: "Charm", var(--serif); font-weight: 700; font-size: 6.4cqw; color: var(--gold-soft); }
.gcard .year { top: 86%; font-family: var(--serif); font-size: 4.4cqw; letter-spacing: .14em; text-transform: uppercase; color: #fff3d6; opacity: .9; }
.gcard .cd { position: absolute; top: 50%; translate: 0 -50%; width: 15%; text-align: center; font-family: "Pattaya", var(--serif); font-size: 5.4cqw; line-height: 1.18; color: var(--gold-soft); text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.gcard .cd.l { left: 4%; } .gcard .cd.r { right: 4%; }
.gcard.has-cd .title, .gcard.has-cd .wish { width: 62%; }
.gcard.light .title { color: var(--son-deep); text-shadow: none; } .gcard.light .wish { color: #b0122f; text-shadow: none; } .gcard.light .year { color: var(--son-deep); text-shadow: none; }
.gcard .wm { position: absolute; right: 4%; bottom: 3%; font-family: var(--serif); font-size: 4cqw; color: rgba(255, 255, 255, .7); }

/* ---------- Marquee strip ---------- */
.strip { background: var(--son); color: #fff; overflow: hidden; border-block: 1px solid rgba(0, 0, 0, .15); }
.strip .track { display: flex; gap: 48px; width: max-content; padding: 16px 0; animation: marquee 38s linear infinite; font-family: var(--serif); font-size: 1.25rem; white-space: nowrap; }
.strip .track span::after { content: "✦"; margin-left: 48px; color: var(--gold-soft); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { position: relative; padding: 32px 28px 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(140deg, var(--son), var(--son-deep)); color: var(--gold-soft); margin-bottom: 22px; }
.feature .ic svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.5rem; margin-bottom: 10px; }
.feature p { margin: 0; color: var(--ink-2); }
.feature .num { position: absolute; top: 22px; right: 26px; font-family: var(--serif); font-size: 2.4rem; color: rgba(200, 16, 46, .12); line-height: 1; }
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px; margin: 40px 0 0; padding: 30px 0 0; list-style: none; border-top: 1px dashed rgba(31, 26, 23, .2); }
.more li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 15.5px; }
.more li b { color: var(--ink); }
.more li::before { content: "✦"; color: var(--son); line-height: 1.6; }
@media (max-width: 860px) { .features, .more { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--gold-soft); margin-bottom: 18px; }
.steps h3 { font-size: 1.35rem; color: #fff8ec; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 15.5px; }
.steps .time { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Template gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery figure { margin: 0; }
.gallery .frame { border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(60, 12, 8, .55); transition: transform .3s; }
.gallery figure:hover .frame { transform: translateY(-6px) rotate(-1deg); }
.gallery figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 4px 0; font-weight: 600; }
.gallery figcaption small { font-weight: 500; color: var(--muted); font-size: 13px; }
.tag { flex: none; white-space: nowrap; line-height: 1.6; display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; background: var(--paper-2); color: var(--son-deep); }
.tag.vip { background: var(--night); color: var(--gold-soft); }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -16px; padding: 0 16px 10px; } .gallery figure { flex: 0 0 72%; scroll-snap-align: center; } }

/* Video template cards (9:16) */
.videos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 56px; }
.vcard { margin: 0; }
.vcard .v { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--night); box-shadow: 0 18px 40px -22px rgba(60, 12, 8, .55); container-type: inline-size; }
.vcard .v img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.vcard:hover .v img { transform: scale(1.12); }
.vcard .v::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0, 0, 0, .7)); }
.vcard .play { position: absolute; z-index: 2; top: 50%; left: 50%; translate: -50% -50%; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 248, 236, .92); display: grid; place-items: center; color: var(--son); }
.vcard .play svg { width: 20px; height: 20px; margin-left: 3px; }
.vcard .msg { position: absolute; z-index: 2; left: 10%; right: 10%; bottom: 9%; font-family: var(--serif); font-size: 11cqw; line-height: 1.1; color: #fff3d6; }
.vcard figcaption { padding: 12px 2px 0; }
.vcard figcaption b { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; line-height: 1.35; }
.vcard figcaption span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 4px; }
.subhead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 22px; }
.subhead h3 { font-size: 1.6rem; }
.subhead p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .videos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 10px; } .vcard { flex: 0 0 40%; scroll-snap-align: start; } }
@media (max-width: 560px) { .vcard { flex-basis: 58%; } .subhead { flex-direction: column; gap: 4px; } }

/* ---------- Occasions ---------- */
.occasions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.occ { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 210px; padding: 16px; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.occ img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.occ::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 30%, rgba(0, 0, 0, .78)); }
.occ:hover img { transform: scale(1.06); }
.occ b { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; }
.occ small { font-size: 12.5px; opacity: .85; margin-top: 4px; }
.occ.now::before { content: "Đang mở"; position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--night); font-size: 11px; font-weight: 700; }
@media (max-width: 960px) { .occasions { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .occasions { grid-template-columns: repeat(2, 1fr); } .occ { min-height: 170px; } }

/* ---------- Privacy split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.lock { position: relative; aspect-ratio: 1; max-width: 440px; margin-inline: auto; width: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(200, 16, 46, .35), transparent 65%); display: grid; place-items: center; }
.lock::before, .lock::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed rgba(242, 196, 90, .35); animation: spin 40s linear infinite; }
.lock::after { inset: 22%; border-style: solid; border-color: rgba(242, 196, 90, .18); animation-duration: 60s; animation-direction: reverse; }
@keyframes spin { to { rotate: 360deg; } }
.lock svg { width: 34%; height: auto; color: var(--gold-soft); filter: drop-shadow(0 10px 30px rgba(242, 196, 90, .35)); }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.checks li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.checks li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(242, 196, 90, .12); color: var(--gold-soft); font-weight: 700; }
.checks b { display: block; color: #fff8ec; font-size: 1.05rem; }
.checks p { margin: 2px 0 0; font-size: 15.5px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .lock { max-width: 280px; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.plan h3 { font-size: 1.55rem; }
.plan .price { margin: 14px 0 4px; font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.plan .price small { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--muted); }
.plan .note { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15.5px; color: var(--ink-2); }
.plan li::before { content: "✓"; color: var(--son); font-weight: 700; }
.plan .btn { width: 100%; }
.plan.hot { background: linear-gradient(160deg, #2a0d0b, var(--night)); color: var(--ivory); border-color: rgba(242, 196, 90, .4); position: relative; box-shadow: var(--shadow); }
.plan.hot li { color: rgba(255, 248, 231, .85); } .plan.hot li::before { color: var(--gold-soft); } .plan.hot .note, .plan.hot .price small { color: rgba(255, 248, 231, .6); }
.plan.hot .badge { position: absolute; top: -13px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--night); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* ---------- B2B band ---------- */
.band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding: clamp(32px, 5vw, 56px); border-radius: 28px; background: linear-gradient(120deg, var(--son-deep), var(--son)); color: #fff; overflow: hidden; position: relative; }
.band::after { content: "✦"; position: absolute; right: -20px; bottom: -80px; font-size: 280px; color: rgba(242, 196, 90, .12); line-height: 1; }
.band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.band p { color: rgba(255, 255, 255, .85); margin: 14px 0 0; }
.band .actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } .band .actions { justify-content: flex-start; } }

/* ---------- Blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card div { padding: 20px 22px 24px; }
.post-card small { color: var(--son); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.post-card h3 { font-size: 1.3rem; margin: 8px 0 8px; }
.post-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); font-family: var(--sans); font-size: 20px; color: var(--son); transition: rotate .25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); }
.faq details > div p { margin: 0 0 10px; }

/* ---------- Final CTA + footer ---------- */
.final { text-align: center; }
.final h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 820px; margin: 0 auto; }
.final p { max-width: 580px; margin: 18px auto 32px; }
.final .stores { justify-content: center; }
.site-footer { background: #0c0504; color: rgba(255, 248, 231, .7); padding: 56px 0 32px; font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; } .site-footer a:hover { color: #fff; text-decoration: underline; }
.copy { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   BLOG / ARTICLE
   ========================================================= */
.post-hero { background: radial-gradient(900px 400px at 90% 0%, rgba(200, 16, 46, .4), transparent 60%), var(--night); color: var(--ivory); padding: 40px 0 120px; }
.post-hero .wrap, .article .wrap { width: min(820px, 100% - 32px); }
.breadcrumb { font-size: 14px; color: rgba(255, 248, 231, .65); margin: 0 0 22px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: var(--gold-soft); text-decoration: none; } .breadcrumb a:hover { text-decoration: underline; }
.post-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: #fff8ec; }
.post-hero .sum { font-size: 1.12rem; color: rgba(255, 248, 231, .8); margin: 18px 0 0; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: 14px; color: rgba(255, 248, 231, .6); }
.article { margin-top: -90px; padding-bottom: 80px; }
.article .cover { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--night-2); }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 18px; line-height: 1.8; color: #2b231f; margin-top: 40px; }
.prose > p:first-child { font-size: 1.15em; }
.prose h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 56px 0 16px; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.35rem; margin: 34px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--son); }
.prose a { color: var(--son); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 26px 0; padding: 18px 24px; border-left: 4px solid var(--son); background: var(--card); border-radius: 0 16px 16px 0; font-family: var(--serif); font-size: 1.15em; }
.prose figure { margin: 30px 0; }
.prose figure img { border-radius: 18px; }
.prose .thiep-preview { max-width: 380px; margin: 28px auto; }
.prose .thiep-preview img { box-shadow: var(--shadow); }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.toc { margin: 32px 0; padding: 22px 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.toc strong { font-family: var(--serif); font-size: 1.15rem; }
.toc ol { margin: 10px 0 0; padding-left: 1.2em; }
.toc li { margin: 6px 0; }
.toc a { color: var(--ink-2); text-decoration: none; } .toc a:hover { color: var(--son); text-decoration: underline; }
.tip { margin: 26px 0; padding: 18px 22px; border-radius: 16px; background: #fff1d1; border: 1px solid rgba(232, 185, 49, .5); font-size: 16.5px; }
.tip b:first-child { color: var(--son-deep); }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.cards-2 > div { padding: 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.cards-2 h3 { margin-top: 0; font-size: 1.15rem; }
.cards-2 p { font-size: 16px; margin: 6px 0 0; }
@media (max-width: 640px) { .cards-2 { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: 16px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--card); }
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper-2); font-weight: 700; }
.couplet { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.couplet span { padding: 14px 16px; border-radius: 12px; background: linear-gradient(140deg, var(--son), var(--son-deep)); color: #ffe9b0; font-family: "Pattaya", var(--serif); font-size: 1.05em; text-align: center; line-height: 1.5; }
@media (max-width: 560px) { .couplet { grid-template-columns: 1fr; } }
.app-box { margin: 44px 0; padding: 30px; border-radius: 22px; background: linear-gradient(150deg, #2a0d0b, var(--night)); color: var(--ivory); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.app-box h3 { font-size: 1.6rem; color: #fff8ec; margin: 0 0 8px; }
.app-box p { color: rgba(255, 248, 231, .8); margin: 0; font-size: 16px; }
.app-box .stores { justify-content: flex-end; }
.prose .store, .prose .btn { color: #fff; text-decoration: none; }
.prose .btn-gold { color: var(--night); }
.prose .store strong { color: #fff; }
.prose .post-card { color: var(--ink); text-decoration: none; }
.prose .post-card small { color: var(--son); }
.store small { white-space: nowrap; }
@media (max-width: 700px) { .app-box { grid-template-columns: 1fr; } .app-box .stores { justify-content: flex-start; } }
.prose .faq summary { font-size: 1.15rem; }
.related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; }
.related .posts { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .related .posts { grid-template-columns: 1fr; } }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--son), var(--gold-soft)); }

/* Blog index */
.blog-hero { padding: 64px 0 56px; }
.blog-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); color: #fff8ec; max-width: 760px; }
.blog-hero p { max-width: 640px; margin-top: 16px; }

/* Simple pages (privacy, 404) */
.page { padding: 56px 0 90px; }
.page .wrap { width: min(820px, 100% - 32px); }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }

/* Thanh trượt ngang: chỉ cuộn ngang, thẻ con không dịch dọc (tránh box bị cuộn dọc) */
@media (max-width: 960px) {
  .videos, .gallery, .plans, .occasions { overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
  .js .videos > .reveal, .js .gallery > .reveal, .js .plans > .reveal, .js .occasions > .reveal { transform: none; }
}
@media (hover: none) {
  .gallery figure:hover .frame, .feature:hover, .post-card:hover, .btn:hover, .store:hover { transform: none; }
  .vcard:hover .v img, .occ:hover img { transform: none; }
}

/* =========================================================
   MOBILE DOCK (thanh tải app cố định đáy màn hình, tạo bằng main.js)
   ========================================================= */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 18px; background: rgba(18, 8, 7, .92); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border: 1px solid rgba(242, 196, 90, .22); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); color: var(--ivory); transform: translateY(calc(100% + 24px)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .dock.show { transform: none; }
  .menu-open .dock { transform: translateY(calc(100% + 24px)); }
  .dock .d-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(140deg, var(--son), var(--son-deep)); color: var(--gold-soft); font-weight: 700; font-size: 20px; }
  .dock .d-tx { flex: 1; min-width: 0; line-height: 1.25; }
  .dock .d-tx b { display: block; font-size: 14.5px; color: #fff8ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock .d-tx small { display: block; font-size: 12px; color: rgba(255, 248, 231, .65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock .btn { min-height: 44px; padding: 8px 18px; font-size: 14.5px; white-space: nowrap; }
  .site-footer { padding-bottom: 104px !important; }
}

/* =========================================================
   MOBILE ≤ 600px: nhịp chữ, khoảng trắng, bố cục gọn
   ========================================================= */
@media (max-width: 600px) {
  body { font-size: 16px; line-height: 1.6; }
  html { scroll-padding-top: 68px; }
  .wrap { width: calc(100% - 40px); }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 1.9rem; line-height: 1.16; }
  .section-head p { font-size: 15.5px; margin-top: 12px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .14em; gap: 8px; margin-bottom: 10px; }
  .eyebrow::before { width: 18px; }
  .btn { min-height: 48px; font-size: 15px; }

  /* Header + menu dạng tấm phủ */
  .nav { height: 60px; }
  .logo img { height: 42px; }
  .menu-btn { width: 42px; height: 42px; }
  .nav-links { inset: 60px 0 auto 0; padding: 8px 20px 20px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
  .nav-links li + li { border-top: 1px solid var(--line-dark); }
  .nav-links a { display: flex; justify-content: space-between; padding: 15px 4px; font-size: 17px; font-weight: 600; border-radius: 0; }
  .nav-links a::after { content: "›"; color: var(--gold-soft); font-size: 20px; line-height: 1; }
  .nav-links a:hover { background: none; }

  /* Hero */
  .hero { padding: 26px 0 36px; }
  .hero-grid > * { min-width: 0; }
  .countdown { overflow: hidden; text-overflow: ellipsis; display: flex; width: 100%; gap: 10px; margin-bottom: 20px; padding: 6px 12px 6px 6px; font-size: 13px; white-space: nowrap; }
  .countdown .pill { padding: 4px 10px; font-size: 10.5px; flex: none; }
  .countdown .cd-tail { display: none; }
  .hero h1 { font-size: 2.2rem; line-height: 1.1; }
  .hero .lead { font-size: 15.5px; margin: 14px 0 22px; }
  .hero .stores, .final .stores, .app-box .stores, .upsell .stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .store { min-height: 54px; padding: 8px 12px; gap: 9px; border-radius: 14px; justify-content: center; }
  .store svg { width: 22px; height: 22px; }
  .store small { font-size: 10px; }
  .store strong { font-size: 15px; }
  .trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; font-size: 12px; line-height: 1.3; }
  .trust li { flex-direction: column; text-align: center; gap: 6px; padding: 10px 6px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
  .stage { height: 380px; max-width: 340px; margin-top: 28px; }
  .phone { width: 176px; right: 50%; translate: 50% 0; border-radius: 34px; padding: 7px; }
  .screen { border-radius: 28px; }
  .screen::before { width: 64px; height: 18px; top: 7px; }
  .screen-ui { padding: 16px 14px; }
  .screen-ui .cap { font-size: 22px; }
  .screen-ui .meta { font-size: 10px; margin-top: 8px; }
  .float-card { width: 128px; left: 0; bottom: 6%; border-width: 2px; border-radius: 12px; }
  .chip-float { right: 0; top: 12%; padding: 8px 10px; gap: 8px; font-size: 11.5px; line-height: 1.3; border-radius: 12px; }
  .chip-float b { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }
  .strip .track { padding: 11px 0; font-size: 1rem; gap: 32px; }
  .strip .track span::after { margin-left: 32px; }

  /* Tính năng: thẻ ngang gọn */
  .features { gap: 12px; }
  .feature { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 20px 18px; border-radius: 18px; }
  .feature .num { display: none; }
  .feature .ic { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 14px; margin: 0; }
  .feature .ic svg { width: 24px; height: 24px; }
  .feature h3 { font-size: 1.12rem; margin: 2px 0 0; }
  .feature p { font-size: 14.5px; line-height: 1.55; }
  .more { gap: 12px; margin-top: 28px; padding-top: 24px; }
  .more li { font-size: 14.5px; gap: 10px; line-height: 1.5; }
  .more li::before { line-height: 1.5; font-size: 12px; }

  /* Bước làm: dòng thời gian */
  .steps { gap: 0; position: relative; }
  .steps::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 40px; width: 1.5px; background: linear-gradient(var(--gold-soft), rgba(242, 196, 90, .1)); }
  .steps li { display: grid; grid-template-columns: 44px 1fr; gap: 2px 16px; padding: 0 0 22px; background: none; border: 0; border-radius: 0; }
  .steps li::before { grid-row: 1 / span 3; position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; border-radius: 50%; background: var(--night); border: 1.5px solid var(--gold-soft); font-family: var(--sans); font-size: 15px; font-weight: 700; }
  .steps h3 { font-size: 1.1rem; margin: 9px 0 4px; }
  .steps p { font-size: 14.5px; line-height: 1.55; }
  .steps .time { margin-top: 6px; font-size: 11px; }
  #cach-lam .btn-ghost, #rieng-tu .btn-ghost, #cam-nang .btn-ghost, #mau-tet .btn { width: 100%; }

  /* Thanh cuộn ngang dùng chung: mép lộ, ẩn thanh cuộn */
  .videos, .gallery, .plans, .occasions { margin-inline: -20px; padding: 0 20px 6px; scroll-padding-inline: 20px; scrollbar-width: none; }
  .videos::-webkit-scrollbar, .gallery::-webkit-scrollbar, .plans::-webkit-scrollbar, .occasions::-webkit-scrollbar { display: none; }
  .subhead { flex-direction: column; gap: 2px; margin-bottom: 14px; }
  .subhead h3 { font-size: 1.25rem; }
  .subhead p { font-size: 13px; }
  .videos { gap: 12px; margin-bottom: 40px; }
  .vcard { flex: 0 0 44%; scroll-snap-align: start; }
  .vcard .v { border-radius: 14px; }
  .vcard .play { width: 40px; height: 40px; }
  .vcard .play svg { width: 16px; height: 16px; }
  .vcard figcaption { padding-top: 10px; }
  .vcard figcaption b { font-size: 14.5px; flex-direction: column; gap: 4px; }
  .vcard figcaption span { font-size: 12.5px; line-height: 1.4; }
  .gallery { gap: 12px; }
  .gallery figure { flex: 0 0 64%; scroll-snap-align: start; }
  .gallery .frame { border-radius: 14px; }
  .gallery figcaption { font-size: 14.5px; padding-top: 10px; }

  /* Dịp lễ: lưới cuộn ngang 2 hàng */
  .occasions { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, 150px); grid-auto-columns: 40%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .occ { min-height: 0; padding: 12px; border-radius: 14px; scroll-snap-align: start; }
  .occ b { font-size: 1.02rem; }
  .occ small { font-size: 11px; }
  .occ.now::before { top: 10px; left: 10px; font-size: 10px; padding: 2px 8px; }

  /* Riêng tư */
  .split { gap: 8px; }
  .lock { max-width: 170px; }
  .checks { gap: 16px; margin-top: 22px; }
  .checks li { grid-template-columns: 34px 1fr; gap: 12px; }
  .checks li > span { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
  .checks b { font-size: 1rem; }
  .checks p { font-size: 14.5px; line-height: 1.55; }

  /* Bảng giá: carousel, gói nổi bật đứng đầu */
  .plans { display: flex; max-width: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 14px; }
  .plan { flex: 0 0 84%; scroll-snap-align: start; padding: 26px 22px 22px; border-radius: 20px; }
  .plan.hot { order: -1; }
  .plan h3 { font-size: 1.25rem; }
  .plan .price { font-size: 2.2rem; margin-top: 10px; }
  .plan .note { font-size: 13.5px; margin-bottom: 14px; }
  .plan ul { gap: 8px; margin-bottom: 20px; }
  .plan li { font-size: 14.5px; line-height: 1.5; }
  .plan.hot .badge { left: 22px; }

  /* B2B */
  .band { padding: 28px 22px; border-radius: 22px; gap: 22px; }
  .band h2 { font-size: 1.6rem; }
  .band p { font-size: 15px; }
  .band .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .band .actions .btn { padding-inline: 12px; }
  .band::after { font-size: 200px; bottom: -60px; }

  /* Bài viết: danh sách ngang, ảnh bên trái */
  .posts { gap: 12px; }
  .post-card { display: grid; grid-template-columns: 104px 1fr; align-items: stretch; border-radius: 16px; }
  .post-card img { aspect-ratio: auto; height: 100%; min-height: 104px; object-position: 78% 50%; }
  .post-card div { padding: 12px 14px; align-self: center; }
  .post-card small { font-size: 10.5px; }
  .post-card h3 { font-size: 1rem; line-height: 1.3; margin: 4px 0 0; }
  .post-card p { display: none; }

  /* FAQ */
  .faq summary { font-size: 1.02rem; padding: 16px 0; gap: 14px; }
  .faq summary::after { width: 30px; height: 30px; font-size: 18px; }
  .faq details > div { font-size: 15px; padding-bottom: 18px; }

  /* CTA cuối + footer */
  .final h2 { font-size: 1.95rem; }
  .final p { font-size: 15.5px; margin: 14px auto 24px; }
  .site-footer { padding-top: 44px; font-size: 14.5px; }
  .foot { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .site-footer ul { gap: 10px; }
  .copy { margin-top: 28px; flex-direction: column; gap: 6px; font-size: 12px; }

  /* ---------- Blog ---------- */
  .post-hero { padding: 24px 0 92px; }
  .post-hero .wrap, .article .wrap, .page .wrap { width: calc(100% - 40px); }
  .breadcrumb { font-size: 12.5px; margin-bottom: 16px; }
  .post-hero h1 { font-size: 1.85rem; line-height: 1.18; }
  .post-hero .sum { font-size: 15.5px; margin-top: 12px; }
  .byline { font-size: 12.5px; gap: 4px 14px; margin-top: 16px; }
  .article { margin-top: -72px; padding-bottom: 48px; }
  .article .cover { border-radius: 16px; }
  .prose { font-size: 16.5px; line-height: 1.75; margin-top: 28px; }
  .prose > p:first-child { font-size: 1.06em; }
  .prose h2 { font-size: 1.45rem; line-height: 1.22; margin: 40px 0 12px; }
  .prose h3 { font-size: 1.15rem; margin: 26px 0 8px; }
  .prose ul, .prose ol { padding-left: 1.15em; }
  .prose blockquote { padding: 14px 18px; font-size: 1.05em; }
  .prose table { font-size: 14px; }
  .prose th, .prose td { padding: 10px 12px; }
  .toc { padding: 18px 20px; margin: 24px 0; }
  .toc li { margin: 8px 0; font-size: 15px; }
  .tip { padding: 16px 18px; font-size: 15.5px; }
  .couplet { gap: 8px; }
  .couplet span { padding: 12px 14px; }
  .app-box { padding: 24px 20px; margin: 32px 0; gap: 18px; border-radius: 20px; }
  .app-box h3 { font-size: 1.3rem; }
  .app-box p { font-size: 15px; }
  .app-box .store { padding: 8px 8px; gap: 7px; }
  .app-box .store small { font-size: 9.5px; }
  .app-box .store strong { font-size: 14px; }
  .related { margin-top: 40px; padding-top: 24px; }
  .related .posts { grid-template-columns: 1fr; }
  .blog-hero { padding: 36px 0 32px; }
  .blog-hero h1 { font-size: 2.1rem; }
  .page { padding: 36px 0 64px; }
  .page h1 { font-size: 1.9rem; }
}

/* Màn rất hẹp (≤ 360px) */
@media (max-width: 360px) {
  .wrap, .post-hero .wrap, .article .wrap, .page .wrap { width: calc(100% - 32px); }
  .hero h1 { font-size: 2rem; }
  .section-head h2 { font-size: 1.75rem; }
  .countdown { font-size: 12px; }
  .store { padding: 8px; gap: 7px; }
  .store strong { font-size: 14px; }
  .videos, .gallery, .plans, .occasions { margin-inline: -16px; padding-inline: 16px; }
  .stage { height: 350px; }
  .phone { width: 160px; }
  .float-card { width: 112px; }
}

/* =========================================================
   TẠO THIỆP ONLINE (tao-thiep.html + assets/js/tao-thiep.js)
   ========================================================= */
.page-maker .dock { display: none !important; }
.ff-dancing { font-family: "Dancing Script", cursive; font-weight: 700; }
.ff-charm { font-family: "Charm", serif; font-weight: 700; }
.ff-pattaya { font-family: "Pattaya", serif; font-weight: 400; }

.maker { padding: 32px 0 72px; background: radial-gradient(1000px 500px at 85% 0%, rgba(200, 16, 46, .38), transparent 60%), radial-gradient(700px 420px at 0% 100%, rgba(232, 185, 49, .1), transparent 60%), var(--night); }
.maker-head { max-width: 760px; margin-bottom: 28px; }
.maker-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); color: #fff8ec; }
.maker-head .lead { margin: 12px 0 0; font-size: 1.08rem; color: rgba(255, 248, 231, .8); }
.maker-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.maker-preview { position: sticky; top: 92px; }
.card-stage { position: relative; aspect-ratio: 4 / 5; width: min(100%, calc((100vh - 120px) * .8)); max-width: 520px; margin-inline: auto; border-radius: 18px; overflow: hidden; background: #3a0a10; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(242, 196, 90, .18); }
.card-stage > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-stage canvas { opacity: 0; transition: opacity .25s; }
.card-stage.ready canvas { opacity: 1; }
.card-stage.ready .card-fallback { visibility: hidden; }

.maker-panel { padding: 18px; border-radius: 22px; background: rgba(255, 248, 231, .04); border: 1px solid var(--line-dark); }
.m-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .35); margin-bottom: 16px; }
.m-tabs button { min-height: 44px; padding: 6px 4px; border: 0; border-radius: 10px; background: transparent; color: rgba(255, 248, 231, .75); font: 700 14.5px/1.2 var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.m-tabs button[aria-selected="true"] { background: var(--gold-soft); color: var(--night); }
.m-panel { min-height: 220px; }
.m-label { display: block; margin: 16px 0 8px; font-size: 14px; font-weight: 700; color: rgba(255, 248, 231, .88); }
.m-label small { font-weight: 500; color: rgba(255, 248, 231, .55); }
.m-panel > .m-label:first-child { margin-top: 2px; }
.m-input { display: block; width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(255, 243, 214, .2); background: rgba(255, 255, 255, .07); color: #fff8ec; font: 600 16px/1.4 var(--sans); resize: none; transition: border-color .2s, background .2s; }
.m-input::placeholder { color: rgba(255, 248, 231, .4); }
.m-input:focus { outline: none; border-color: var(--gold-soft); background: rgba(255, 255, 255, .1); }
.m-note { margin: 14px 0 0; font-size: 13.5px; color: rgba(255, 248, 231, .6) !important; }
.m-note a { color: var(--gold-soft); }
.m-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.chips { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; overscroll-behavior-x: contain; }
.chips::-webkit-scrollbar { display: none; }
.chips button, .cd-list button { flex: none; min-height: 38px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 243, 214, .18); background: rgba(255, 255, 255, .05); color: rgba(255, 248, 231, .88); font: 600 14px/1.3 var(--sans); white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.chips button[aria-pressed="true"] { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--night); }
.cd-list { display: grid; gap: 8px; }
.cd-list button { border-radius: 12px; white-space: normal; text-align: left; padding: 10px 14px; }
.cd-list button[aria-pressed="true"] { border-color: var(--gold-soft); background: rgba(242, 196, 90, .12); color: #fff; }
.cd-off .cd-fields { opacity: .5; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; min-height: 52px; padding: 6px; border-radius: 12px; border: 1px solid rgba(255, 243, 214, .18); background: rgba(255, 255, 255, .05); color: #fff3d6; font-size: 21px; line-height: 1.1; text-align: center; transition: border-color .2s, background .2s; }
.seg input:checked + span { border-color: var(--gold-soft); background: rgba(242, 196, 90, .14); box-shadow: inset 0 0 0 1px var(--gold-soft); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.switch { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; font-size: 15px; color: #fff8ec; cursor: pointer; margin-bottom: 4px; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 50px; height: 30px; margin: 0; border-radius: 999px; background: rgba(255, 255, 255, .18); cursor: pointer; transition: background .2s; }
.switch input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.switch input:checked { background: var(--son); }
.switch input:checked::before { transform: translateX(20px); }

.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tpl { position: relative; display: block; padding: 0; border: 0; background: none; color: rgba(255, 248, 231, .85); font: 600 13px/1.25 var(--sans); text-align: center; cursor: pointer; }
.tpl img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 2px transparent; transition: box-shadow .2s, transform .2s; }
.tpl span { display: block; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl[aria-pressed="true"] img { box-shadow: 0 0 0 3px var(--gold-soft); }
.tpl[aria-pressed="true"] span { color: var(--gold-soft); }
.tpl.is-vip img { filter: saturate(.9) brightness(.82); }
.tpl i.tag { position: absolute; top: 6px; right: 6px; font-style: normal; box-shadow: 0 0 0 1px rgba(242, 196, 90, .5); }
@media (hover: hover) { .tpl:hover img { transform: translateY(-2px); } }

.maker-actions { display: flex; gap: 10px; margin-top: 20px; }
.maker-actions .btn { flex: 1 1 0; min-height: 54px; font-size: 16px; }
.maker-actions .btn-ghost { flex: 0 0 auto; color: var(--ivory); padding-inline: 20px; }
.maker-actions .btn[disabled] { opacity: .6; pointer-events: none; }

/* Khối gợi ý app */
.upsell { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 52px); border-radius: 28px; background: var(--night); color: var(--ivory); box-shadow: var(--shadow); overflow: hidden; }
.upsell h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); color: #fff8ec; }
.upsell h2 em { color: var(--gold-soft) !important; }
.upsell .eyebrow { color: var(--gold-soft); }
.ticks { list-style: none; margin: 20px 0 26px; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: rgba(255, 248, 231, .82); }
.ticks li::before { content: "✦"; position: absolute; left: 4px; top: 0; color: var(--gold-soft); }
.ticks b { color: #fff8ec; }
.upsell-art { position: relative; min-height: 380px; }
.upsell-art img { position: absolute; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.upsell-art img:first-child { width: 62%; left: 4%; top: 6%; rotate: -5deg; }
.upsell-art img:last-child { width: 44%; right: 4%; bottom: 0; rotate: 5deg; border: 5px solid #1a0d0b; border-radius: 22px; }

.howto { list-style: none; counter-reset: ht; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.howto li { counter-increment: ht; padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.howto li::before { content: counter(ht); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--son); color: #fff; font-weight: 700; }
.howto b { display: block; color: var(--ink); margin-bottom: 4px; }
.faq-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 8px; }

/* Hộp gợi ý tải app sau khi lưu thiệp */
html.sheet-open { overflow: hidden; }
.sheet { width: min(540px, 100% - 24px); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: 24px; background: var(--night-2); color: var(--ivory); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(242, 196, 90, .2); overflow: auto; overscroll-behavior: contain; }
.sheet:not([open]) { display: none; }
.sheet[open] { animation: sheet-in .3s cubic-bezier(.2, .8, .2, 1); }
.sheet::backdrop { background: rgba(8, 3, 2, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } }
.sheet-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.sheet-done { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; padding: 24px 56px 18px 22px; }
.sheet-done img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .8); -webkit-touch-callout: default; }
.sheet-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft) !important; }
.sheet h2 { font-size: 1.4rem; line-height: 1.2; color: #fff8ec; }
.sheet-hint { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: rgba(255, 248, 231, .72) !important; }
.sheet-up { padding: 18px 22px 22px; background: linear-gradient(160deg, rgba(200, 16, 46, .3), rgba(200, 16, 46, .08)); border-top: 1px solid var(--line-dark); }
.sheet-up-t { margin: 0 0 10px; font-size: 15px; color: rgba(255, 248, 231, .85); }
.sheet-up-t b { color: #fff8ec; }
.sheet-up ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.sheet-up li { position: relative; padding-left: 24px; color: rgba(255, 248, 231, .82); }
.sheet-up li::before { content: "✦"; position: absolute; left: 2px; color: var(--gold-soft); }
.sheet .stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet .store { min-height: 54px; padding: 8px 12px; }
.sheet .store strong { font-size: 15.5px; }
.sheet-later { display: block; width: 100%; min-height: 44px; margin-top: 10px; border: 0; background: none; color: rgba(255, 248, 231, .7); font: 600 14.5px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (max-width: 900px) {
  .maker { padding: 16px 0 40px; }
  .maker .breadcrumb { display: none; }
  .maker-head { margin-bottom: 14px; }
  .maker-head h1 { font-size: 1.6rem; line-height: 1.2; }
  .maker-head .lead { font-size: 14.5px; margin-top: 6px; }
  .maker-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* Xem trước dính trên cùng để vừa sửa vừa thấy thiệp */
  .maker-preview { top: 60px; z-index: 6; margin-inline: -16px; padding: 10px 16px 8px; background: var(--night); }
  .card-stage { width: min(100%, calc(36svh * .8)); border-radius: 14px; }
  .maker-panel { padding: 12px 0 84px; border: 0; background: none; }
  .m-panel { min-height: 0; }
  .m-tabs { position: sticky; top: calc(60px + var(--pv-h, 0px)); z-index: 5; box-shadow: 0 0 0 6px var(--night); background: #0b0504; }
  .tpl-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86px; overflow-x: auto; margin-inline: -16px; padding: 4px 16px 6px; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
  .tpl-grid::-webkit-scrollbar { display: none; }
  .tpl { scroll-snap-align: start; }
  .chips, .cd-list { margin-inline: -16px; padding-inline: 16px; }
  .cd-list { display: flex; overflow-x: auto; scrollbar-width: none; }
  .cd-list::-webkit-scrollbar { display: none; }
  .cd-list button { flex: none; max-width: 78%; }
  .m-row { grid-template-columns: 1fr; gap: 0; }
  /* Thanh nút lưu cố định đáy màn hình khi đang ở trình tạo thiệp */
  .maker-actions { position: fixed; z-index: 44; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(18, 8, 7, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-dark); transform: translateY(110%); transition: transform .3s ease; }
  .maker-in .maker-actions { transform: none; }
  .menu-open .maker-actions { transform: translateY(110%); }
  .upsell { grid-template-columns: 1fr; }
  .upsell-art { min-height: 300px; max-width: 400px; width: 100%; margin-inline: auto; }
}
@media (max-width: 600px) {
  .maker-head h1 { font-size: 1.45rem; }
  .sheet { width: 100%; max-width: 100%; max-height: 92svh; margin: auto 0 0; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .sheet[open] { animation-name: sheet-up; }
  .sheet-done { grid-template-columns: 96px 1fr; gap: 14px; padding: 20px 52px 14px 16px; }
  .sheet h2 { font-size: 1.2rem; }
  .sheet-hint { font-size: 13.5px; }
  .sheet-up { padding: 16px 16px 14px; }
  .sheet .store { padding: 8px 10px; gap: 8px; }
  .sheet .store small { font-size: 10.5px; }
  .sheet .store strong { font-size: 14.5px; }
  .howto { grid-template-columns: 1fr; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
.hero-alt { display: inline-block; margin-top: 16px; font-size: 15px; color: rgba(255, 248, 231, .8); text-decoration: none; }
.hero-alt b { color: var(--gold-soft); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hero-alt:hover b { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.on-light .btn-ghost { color: var(--son); }

/* ====== Thanh chọn dịp lễ (tao-thiep) + liên kết thiệp cưới ====== */
.occ-bar { display: flex; gap: 8px; margin: 0 0 22px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding: 2px 0 4px; }
.occ-bar::-webkit-scrollbar { display: none; }
.occ-bar button, .occ-wed { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 243, 214, .2); background: rgba(255, 255, 255, .05); color: rgba(255, 248, 231, .9); font: 700 14.5px/1.2 var(--sans); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.occ-bar button[aria-checked="true"] { background: var(--son); border-color: var(--son); color: #fff; box-shadow: 0 6px 18px -8px rgba(200, 16, 46, .9); }
.occ-bar button:focus-visible, .occ-wed:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.occ-wed { border-color: rgba(242, 196, 90, .55); color: var(--gold-soft); }
.occ-wed svg { width: 18px; height: 18px; }
@media (hover: hover) { .occ-bar button:hover, .occ-wed:hover { border-color: var(--gold-soft); } }
.occ-links { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 24px; }
.occ-links li { padding: 12px 0; border-bottom: 1px solid rgba(31, 26, 23, .1); font-weight: 700; }
.occ-links a { color: var(--son); }
.occ-links span { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; color: rgba(31, 26, 23, .65); }
.ff-vibes { font-family: "Great Vibes", cursive; font-weight: 400; }
.ff-playfair { font-family: "Playfair Display", serif; font-style: italic; font-weight: 400; }
.maker-wed .m-tabs button { font-size: 13.5px; }
.lunar-out { margin: 8px 0 0; min-height: 1.4em; font-size: 14px; color: var(--gold-soft); }
.m-tip { margin: 16px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(242, 196, 90, .1); border: 1px dashed rgba(242, 196, 90, .35); font-size: 13.5px; color: rgba(255, 248, 231, .82); }
.m-tip b { color: var(--gold-soft); }
.m-input[type="date"], .m-input[type="time"] { color-scheme: dark; }
@media (max-width: 900px) {
  .occ-bar { margin: 0 -16px 10px; padding-inline: 16px; }
  .occ-bar button, .occ-wed { min-height: 38px; padding: 7px 14px; font-size: 14px; }
}
.m-tabs button[hidden] { display: none; }
