/* tastemaker stamp: app shell · mood warm, light va dark cung seed 2711 · mau "yen tam" la xanh ngoc (accent), khong dung do bao dong
   font: Fraunces + Be Vietnam Pro (da do du dau tieng Viet 13/11/2026) · motion: CSS tu viet, duoi 250ms */
:root {
  --bg: #fff6f4; --surface: #f6ebe9; --text: #221815; --muted: #6b5a55;
  --primary: #9f5d4f; --primary-chu: #86493c; --on-primary: #fff;
  --secondary: #f2d7d1; --border: #e5dbd9; --vien-dam: #cbbcb8;
  --accent: #187f74; --accent-chu: #126a61; --accent-nen: #dcefec; --o: #fff;
  --f-chu: 'Be Vietnam Pro', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --f-ten: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px;
  --r: 20px; --r-nho: 14px; --em: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #110a09; --surface: #1c1513; --text: #feeeea; --muted: #b9a7a2;
    --primary: #a66354; --primary-chu: #e3a797; --on-primary: #fff;
    --secondary: #3c2824; --border: #28201f; --vien-dam: #55443f;
    --accent: #1f776d; --accent-chu: #6cc4b7; --accent-nen: #12302c; --o: #241b19;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.5 var(--f-chu); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
main { max-width: 640px; margin: 0 auto; padding: calc(var(--s6) + env(safe-area-inset-top)) var(--s5) calc(120px + env(safe-area-inset-bottom)); }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; touch-action: manipulation; }
a { color: var(--accent-chu); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg { flex: none; display: block; }
.an { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
em { font-style: normal; }
[hidden] { display: none !important; }

/* ----- dau trang ----- */
.dau { margin-bottom: var(--s6); }
.dau .nhan { font-size: 15px; font-weight: 600; color: var(--primary-chu); letter-spacing: .02em; }
.dau h1 { font: 600 46px/1.08 var(--f-ten); letter-spacing: -.01em; margin-top: 2px; overflow-wrap: anywhere; }
.dau .ngay { font-size: 18px; color: var(--muted); margin-top: 6px; text-wrap: balance; }
.bang { background: var(--secondary); border-radius: var(--r-nho); padding: var(--s3) var(--s4); font-size: 16px; margin-bottom: var(--s5); }

/* ----- khoi ----- */
main > section, #kq > section { margin-top: var(--s8); }
.the { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: var(--s6); }
.muc { font: 600 20px/1.3 var(--f-chu); display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.muc .dem { font-weight: 500; font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.phu { color: var(--muted); font-size: 16px; margin-top: var(--s4); }
.phu0 { color: var(--muted); font-size: 16px; }
.giua { text-align: center; }
.chan { margin-top: var(--s10); text-align: center; }
.y { list-style: disc; padding-left: 22px; }
.y li { padding: 4px 0; }
.y li::marker { color: var(--vien-dam); }
.nguon { font-size: 14px; color: var(--muted); margin-top: var(--s4); line-height: 1.6; }
.nguon a { color: var(--muted); }

/* ----- the yen tam ----- */
.the.yen { background: var(--accent-nen); border-color: transparent; }
.nhan-the { font-size: 15px; font-weight: 600; color: var(--accent-chu); margin-bottom: 4px; }
.the.yen { padding: var(--s5); }
.the.yen h2 { font: 600 23px/1.2 var(--f-ten); margin-bottom: var(--s2); }
.the.yen .y { font-size: 17px; }
.the.yen .y li { padding: 3px 0; }
.the.on { background: var(--accent-nen); border-color: transparent; padding: var(--s4) var(--s5); }
.the.nhe { padding: var(--s4) var(--s5); }
.the.on p:first-child, .the.nhe p:first-child { font-size: 17px; }

/* ----- nut chinh ----- */
.chot { display: block; width: 100%; min-height: 62px; padding: 0 var(--s4); border-radius: var(--r-nho); background: var(--primary); color: var(--on-primary); font-size: 20px; font-weight: 600; text-align: center; }
.chot.dang { background: var(--accent); }
.chot .dong-ho { font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 6px; }
.nut-phu { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s4); border: 1px solid var(--vien-dam); border-radius: var(--r-nho); background: var(--o); font-weight: 500; font-size: 17px; flex: none; text-decoration: none; color: var(--text); }
.nut-phu.to { width: 100%; min-height: 56px; margin-top: var(--s3); }
.tron { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--vien-dam); background: var(--o); display: grid; place-items: center; flex: none; }
.tron.nho { width: 40px; height: 40px; border-color: transparent; background: transparent; color: var(--muted); }
.tron.dam { background: var(--primary); border-color: var(--primary); color: var(--on-primary); width: 54px; height: 54px; }

/* ----- o ghi bu, ta, ngu ----- */
.luoi-ghi { display: grid; gap: var(--s4); }
.o-ghi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: var(--s5); }
.o-dau h2 { font-size: 16px; font-weight: 600; color: var(--primary-chu); }
.o-dau .lon { font: 600 30px/1.15 var(--f-ten); margin-top: 2px; font-variant-numeric: tabular-nums; }
.nut-hang { display: grid; gap: var(--s2); margin-top: var(--s4); }
.nut-hang.bon { grid-template-columns: repeat(4, 1fr); }
.nut-hang.ba { grid-template-columns: repeat(3, 1fr); }
.nut-hang button { min-height: 60px; border-radius: var(--r-nho); background: var(--secondary); text-align: center; font-weight: 600; font-size: 18px; padding: 0 4px; }
.nut-hang button.dang { background: var(--accent); color: #fff; }

/* ----- con go, dong thoi gian ----- */
.so-lieu { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s4); font-size: 16px; color: var(--muted); }
.so-lieu b { color: var(--text); font: 600 22px/1.2 var(--f-ten); display: block; }
.dong { margin-top: var(--s3); }
.dong li { display: flex; align-items: center; gap: var(--s3); min-height: 52px; border-bottom: 1px solid var(--border); font-size: 17px; }
.dong li > span:first-child, .dong .gio { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 52px; }
.dong .hai-dong { flex: 1; display: grid; padding: 6px 0; line-height: 1.3; }
.dong .hai-dong small { color: var(--muted); font-size: 15px; }
.dong li > button:not(.tron) { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 52px; }
.dong .ta-sk { flex: 1; }
.dong .ai { color: var(--muted); font-size: 15px; }
.quy-tac { padding: var(--s3) var(--s4); border-radius: var(--r-nho); background: var(--accent-nen); font-size: 17px; }
details.hoi.quy-tac-go { margin-top: var(--s4); border-bottom: 0; border-top: 1px solid var(--border); }
details.hoi.quy-tac-go > summary { font-size: 17px; min-height: 52px; color: var(--accent-chu); }
details.hoi.quy-tac-go .than { padding-bottom: 0; }
main > section.sat { margin-top: var(--s4); }
.tien-do li + li { margin-top: var(--s2); }
.tien-do button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 56px; padding: 0 var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-nho); font-weight: 500; }
.tien-do b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }

/* ----- xep mo: di vien ngay, co binh thuong khong ----- */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details.khan { background: var(--secondary); border-radius: var(--r); }
details.khan + details.khan { margin-top: var(--s3); }
details.khan > summary { min-height: 64px; padding: var(--s3) var(--s5); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font-weight: 600; font-size: 19px; }
details.khan > summary::after, details.hoi > summary::after { content: "+"; font-size: 26px; font-weight: 400; line-height: 1; color: var(--muted); flex: none; }
details[open] > summary::after { content: "–"; }
details.khan .than { padding: 0 var(--s5) var(--s5); }
details.hoi { border-bottom: 1px solid var(--border); }
details.hoi > summary { min-height: 58px; padding: var(--s2) 0; display: flex; align-items: center; gap: var(--s3); font-weight: 500; font-size: 19px; }
details.hoi > summary > span { flex: 1; }
details.hoi > summary em { font-size: 14px; font-weight: 500; color: var(--accent-chu); background: var(--accent-nen); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
details.hoi .than { padding: 0 0 var(--s5); }
.than p + p, .than ul + p, .than p + ul { margin-top: var(--s3); }
.khi { padding: var(--s3) var(--s4); border-radius: var(--r-nho); background: var(--secondary); }
.goi-hang { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.goi-hang.tren { margin: 0 0 var(--s4); }
.nut-goi { display: inline-flex; align-items: center; gap: var(--s2); min-height: 50px; padding: 0 var(--s4); border-radius: var(--r-nho); background: var(--text); color: var(--bg); font-weight: 600; font-size: 17px; text-decoration: none; }

/* ----- tim, chip, o nhap ----- */
.o-tim { position: relative; }
.o-tim svg { position: absolute; left: 16px; top: 17px; color: var(--muted); }
.o-tim input[type="search"] { padding-left: 48px; }
input[type="text"], input[type="search"], input[type="tel"], input[type="number"], input[type="date"], input[type="datetime-local"], textarea {
  width: 100%; min-height: 56px; padding: var(--s3) var(--s4); background: var(--o); border: 1.5px solid var(--vien-dam); border-radius: var(--r-nho); font-size: 18px; -webkit-appearance: none; appearance: none; }
input::placeholder { color: var(--muted); opacity: 1; }
input:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.chip-hang { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.chip { min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--vien-dam); border-radius: 999px; background: var(--o); font-size: 16px; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.o-them { display: flex; gap: var(--s2); margin-top: var(--s4); }
.hai-o { display: grid; gap: var(--s2); margin-top: var(--s4); }
.hai-o label:not(.an) { font-weight: 500; font-size: 16px; margin-top: var(--s2); }
.hai-o .nut-phu, .hai-o .chot { margin-top: var(--s2); }

/* ----- danh sach tick, link ----- */
.tick li { display: flex; align-items: center; gap: 4px; }
.tick li + li { margin-top: 6px; }
.o { flex: 1; display: flex; align-items: center; gap: var(--s3); min-height: 58px; padding: var(--s2) var(--s3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-nho); min-width: 0; }
.o .hop { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--vien-dam); display: grid; place-items: center; flex: none; background: var(--o); }
.o .chu { font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.o.xong { background: var(--accent-nen); border-color: transparent; }
.o.xong .hop { background: var(--accent); border-color: var(--accent); color: #fff; }
.o.xong .chu { color: var(--muted); }
.link li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--border); }
.link strong { display: block; font-weight: 600; font-size: 18px; }
.link div span { display: block; font-size: 15px; color: var(--muted); }
.link .hai { display: flex; align-items: center; gap: 4px; }
.link .trong { color: var(--muted); font-size: 16px; }
.link.tiem li.xong strong { color: var(--accent-chu); }
.buoc { list-style: decimal; padding-left: 26px; font-size: 17px; margin-bottom: var(--s3); }

/* ----- thanh duoi ----- */
#thanh { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px max(var(--s4), calc((100vw - 640px) / 2)) calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
#thanh button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 58px; justify-content: center; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: var(--r-nho); }
#thanh button[aria-current="page"] { color: var(--text); font-weight: 600; background: var(--secondary); }

/* ----- to ----- */
dialog { border: 0; padding: 0; background: var(--bg); color: var(--text); width: 100%; max-width: 640px; max-height: 88dvh; margin: auto auto 0; border-radius: var(--r) var(--r) 0 0; overflow: auto; }
dialog::backdrop { background: rgba(20, 12, 10, .5); }
.to-dau { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--border); }
.to-dau h2 { font: 600 24px/1.2 var(--f-ten); }
.to-than { padding: var(--s2) var(--s5) calc(var(--s8) + env(safe-area-inset-bottom)); margin-top: 0; }
#bao { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 20; width: max-content; max-width: calc(100vw - 32px); padding: var(--s3) var(--s5); border-radius: var(--r-nho); background: var(--text); color: var(--bg); font-size: 17px; text-align: center; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }
#bao.hien { opacity: 1; transform: translate(-50%, 0); }
.cho { padding-top: var(--s4); }
.xuong { background: var(--surface); border-radius: var(--r-nho); margin-bottom: var(--s4); }
.x1 { width: 30%; height: 18px; } .x2 { width: 62%; height: 52px; } .x3 { height: 150px; border-radius: var(--r); }

@media (prefers-reduced-motion: no-preference) {
  #bao { transition: opacity .18s var(--em), transform .18s var(--em); }
  .nut-hang button:active, .chot:active, .nut-phu:active, .o:active, .chip:active, .tron:active { transform: scale(.97); }
  .o .hop { transition: background-color .15s var(--em), border-color .15s var(--em); }
}
@media (hover: hover) {
  .nut-phu:hover, .chip:hover, .tron:not(.nho):hover { border-color: var(--text); }
  .nut-hang button:not(.dang):hover { background: var(--vien-dam); }
}
@media (max-width: 400px) { .dau h1 { font-size: 40px; } .nut-hang button { font-size: 17px; } .o-dau .lon { font-size: 27px; } }
@media (min-width: 760px) {
  dialog { margin: auto; border-radius: var(--r); max-height: 80dvh; }
  .luoi-ghi { grid-template-columns: 1fr 1fr; }
  .luoi-ghi .o-ghi:first-child { grid-column: 1 / -1; }
}

.them-the { margin-top: var(--s5); border-top: 1px solid var(--border); }
.them-the .than .the + .the { margin-top: var(--s4); }
.nho-chu { font-size: 14px; margin-top: var(--s3); }

.nhom-luoi { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s3); }
.nhom-luoi .chip { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 56px; border-radius: var(--r-nho); padding: var(--s2) var(--s3); text-align: left; line-height: 1.25; }
.nhom-luoi .chip b { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.nhom-luoi .chip[aria-pressed="true"] b { color: var(--bg); }
#cam-nang .than details.hoi > summary { font-size: 18px; }
