/* AIP Thiep Cuoi — demo lat cat (Pha 0-B, 0d). 1 engine khoi + 3 theme CSS. Khong anh ngoai, khong font ngoai: tai lan dau < 100KB. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Georgia, 'Times New Roman', serif; background: #faf7f2; color: #2b2b2b; line-height: 1.6; }
a { color: inherit; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 18px; }
section { padding: 44px 0; text-align: center; }
h1 { font-size: 34px; line-height: 1.25; }
h2 { font-size: 24px; margin-bottom: 10px; }
p.lead { font-size: 17px; opacity: .85; }
.small { font-size: 13px; opacity: .65; }
.btn { display: inline-block; padding: 13px 30px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 16px; border: 2px solid transparent; cursor: pointer; }
.btn.ghost { background: transparent; border-color: currentColor; }
.count { display: flex; justify-content: center; gap: 12px; margin: 18px 0; }
.count div { min-width: 64px; padding: 10px 6px; border-radius: 12px; border: 1px solid rgba(0,0,0,.15); }
.count b { display: block; font-size: 26px; line-height: 1.1; }
.count span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.card { border: 1px solid rgba(0,0,0,.12); border-radius: 16px; padding: 20px; margin: 12px 0; text-align: left; background: rgba(255,255,255,.6); }
.card h3 { font-size: 19px; margin-bottom: 4px; }
.album { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.album div { aspect-ratio: 4/3; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 13px; opacity: .75; }
form label { display: block; text-align: left; font-size: 14px; font-weight: 700; margin: 12px 0 4px; }
form input, form select { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid rgba(0,0,0,.25); font-size: 16px; background: #fff; }
form .note { font-size: 13px; opacity: .7; margin-top: 10px; text-align: left; }
footer { padding: 26px 0 40px; text-align: center; font-size: 13px; opacity: .7; }
/* Man hinh phong bi */
.envelope { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; cursor: pointer; }
.envelope .seal { font-size: 64px; line-height: 1; margin-bottom: 14px; }
.envelope h1 { font-size: 30px; }
.hidden { display: none !important; }
/* --- Theme: Truyen thong do --- */
.theme-do { background: #8f1d1d; color: #f7e8c9; }
.theme-do .btn { background: #d4a017; color: #5c1208; }
.theme-do .btn.ghost { background: transparent; color: #f7e8c9; border-color: #d4a017; }
.theme-do .count div { border-color: #d4a017; }
.theme-do .card { background: rgba(0,0,0,.18); border-color: #d4a017; color: #f7e8c9; }
.theme-do .album div { background: linear-gradient(135deg, #a52a2a, #6d1010); color: #f7e8c9; }
.theme-do form input, .theme-do form select { background: #fff8e7; color: #3a0d0d; }
/* --- Theme: Hien dai toi gian --- */
.theme-toi-gian { background: #fff; color: #111; font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
.theme-toi-gian h1, .theme-toi-gian h2 { font-weight: 800; letter-spacing: -.5px; }
.theme-toi-gian .btn { background: #111; color: #fff; }
.theme-toi-gian .btn.ghost { background: transparent; color: #111; border-color: #111; }
.theme-toi-gian .album div { background: #f0f0f0; color: #666; }
.theme-toi-gian section { border-bottom: 1px solid #eee; }
/* --- Theme: Pastel Han --- */
.theme-pastel { background: #fdf3f0; color: #6b4a4a; }
.theme-pastel h1, .theme-pastel h2 { color: #b76e79; }
.theme-pastel .btn { background: #e8a2a2; color: #fff; }
.theme-pastel .btn.ghost { background: transparent; color: #b76e79; border-color: #e8a2a2; }
.theme-pastel .count div { border-color: #e8a2a2; background: #fff; }
.theme-pastel .card { background: #fff; border-color: #f3d9d9; }
.theme-pastel .album div { background: linear-gradient(135deg, #fbe3e3, #f6d5d5); color: #b76e79; }
/* --- Trang kho mau --- */
.gallery { max-width: 960px; margin: 0 auto; padding: 0 18px; }
.gallery .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.mini { border-radius: 16px; overflow: hidden; border: 1px solid rgba(0,0,0,.12); text-align: center; }
.mini .prev { height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; }
.mini .prev .seal { font-size: 44px; }
.mini .body { padding: 16px; background: #fff; }
.mini .body h3 { font-size: 18px; margin-bottom: 4px; }
.mini .body p { font-size: 14px; opacity: .75; margin-bottom: 12px; }

/* Sales site additions (AIP Thiep Cuoi) */
.demo-bar{position:sticky;top:0;z-index:50;background:#7a1020;color:#ffe9ec;text-align:center;padding:9px 12px;font-size:14px}
.demo-bar a{color:#ffd166;font-weight:700;text-decoration:underline}
.incl{text-align:left;max-width:560px;margin:0 auto;line-height:1.65}
.faq{text-align:left;max-width:560px;margin:0 auto;line-height:1.6}
.btn.ghost{background:transparent;border:1.5px solid currentColor}
#pay-panel{border:1.5px dashed #b03060;border-radius:12px;padding:18px 14px;background:#fff8fa}
