:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --grad: linear-gradient(90deg, #fa7e1e, #d62976, #962fbf);
  --ring: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
  --line: #efefef; --muted: #737373; --blue: #0095f6; --pink: #d62976;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fafafa; color: #111; font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.app { max-width: 480px; margin: 0 auto; background: #fff; min-height: 100vh; padding-bottom: 24px; }
.grad { background: var(--grad); }
.top { position: sticky; top: 0; z-index: 5; background: #fff; padding: 12px 16px; font-weight: 800; font-size: 20px; border-bottom: 1px solid var(--line); }

.cd { margin: 12px 16px 4px; border-radius: 18px; color: #fff; padding: 14px 12px 12px; text-align: center; }
.cd .lbl { font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.cd .nums { display: flex; justify-content: center; gap: 8px; margin: 8px 0 6px; }
.cd .nums div { background: rgba(255,255,255,.18); border-radius: 12px; width: 72px; padding: 6px 0 4px; font-size: 10px; font-weight: 600; }
.cd .nums b { display: block; font-size: 32px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cd .when { font-size: 13px; font-weight: 600; }

.raised { margin: 10px 16px 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; }
.raised .amt { font-size: 28px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.raised .amt small { font-size: 14px; font-weight: 600; color: var(--muted); }
.raised .bar { height: 12px; margin: 10px 0 6px; }
.raised .sub { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }

.mosaic { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 16px 4px; }
.r { padding: 2px; border-radius: 50%; display: inline-block; }
.r.paid { background: var(--ring); }
.r.registered { background: #d6d6d6; }
.r.none { background: transparent; }
.r img, .r .ph { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; display: block; background: #eee; }
.r .ph { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #777; }
.r.registered img, .r.registered .ph { opacity: .55; }
.more { width: 42px; height: 42px; border-radius: 50%; background: var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #555; }

.stats { display: flex; justify-content: space-around; text-align: center; font-size: 12px; padding: 10px 16px 6px; }
.stats b { display: block; font-size: 19px; }
.bio { padding: 0 16px; font-size: 14px; line-height: 1.5; }

.hl { display: flex; gap: 12px; padding: 6px 16px 12px; overflow-x: auto; scrollbar-width: none; }
.hl::-webkit-scrollbar { display: none; }
.hl div { text-align: center; font-size: 11px; width: 64px; flex-shrink: 0; line-height: 1.25; }
.hl .c { width: 58px; height: 58px; border-radius: 50%; border: 1px solid #dbdbdb; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 4px; background: #fafafa; position: relative; }
.hl .c.on { border: 2px solid var(--pink); }
.hl .c.active { border: 2px dashed var(--pink); }
.hl .lock { position: absolute; right: -2px; bottom: -2px; font-size: 13px; background: #fff; border-radius: 50%; }

.fund { margin: 0 16px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; line-height: 1.45; }
.bar { height: 8px; background: var(--line); border-radius: 9px; overflow: hidden; margin: 8px 0 4px; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 9px; }
.muted { color: var(--muted); }

.post { border-top: 1px solid var(--line); }
.post-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.post-h img, .post-h .ph { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #eee; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.post-h small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.msg { margin: 0 14px 12px; border-radius: 14px; padding: 16px; background: linear-gradient(135deg, #fdf1e7, #fbe3f0); font-size: 15px; line-height: 1.45; }
.big-emoji { font-size: 30px; }
.pics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.pics.one { grid-template-columns: 1fr; }
.pics img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pics.one img { aspect-ratio: 4/3; }
.video { position: relative; padding-top: 56.25%; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ptxt { padding: 8px 14px 12px; font-size: 14px; line-height: 1.45; }

.tabs { display: flex; justify-content: space-around; border-top: 1px solid var(--line); margin-top: 8px; }
.tabs button { flex: 1; background: none; border: 0; padding: 12px 0; font: 600 13px var(--font); color: var(--muted); border-top: 2px solid transparent; }
.tabs button.on { color: #111; border-top-color: #111; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.grid3 img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.foot { text-align: center; font-size: 11px; color: var(--muted); padding: 18px 0 0; }

.sheet { position: fixed; inset: 0; z-index: 20; background: #fff; overflow-y: auto; max-width: 480px; margin: 0 auto; }
.sheet-bar { position: sticky; top: 0; background: #fff; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 16px; z-index: 2; }
.back { font-size: 28px; line-height: 1; padding: 0 6px; }
.step { font-size: 11px; font-weight: 700; color: var(--pink); letter-spacing: .08em; padding: 16px 16px 6px; }
.search { display: block; width: calc(100% - 32px); margin: 0 16px 8px; background: var(--line); border: 0; border-radius: 10px; padding: 11px 12px; font: 15px var(--font); }
.who { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 14px; cursor: pointer; }
.who img, .who .ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #eee; display: flex; align-items: center; justify-content: center; }
.who small { display: block; color: var(--muted); font-size: 12px; }
.who.sel { background: #fdf0f6; }
.who .tick { margin-left: auto; color: var(--pink); font-weight: 900; }
.list { max-height: 260px; overflow-y: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px; }
.chips button { border: 1.5px solid #dbdbdb; background: #fff; border-radius: 12px; padding: 9px 0; width: calc(33.3% - 6px); font: 700 14px var(--font); color: #111; }
.chips button small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.chips button.on { border-color: var(--pink); background: #fdf0f6; color: var(--pink); }
.other-amount { display: none; width: calc(100% - 32px); margin: 8px 16px 0; border: 1.5px solid #dbdbdb; border-radius: 10px; padding: 10px; font: 15px var(--font); }
.unlock { margin: 10px 16px; border-radius: 12px; background: #fff7ed; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; }
.qr { display: block; width: 240px; max-width: 80%; margin: 10px auto 6px; }
.kv { margin: 0 16px; font-size: 13.5px; border: 1px solid var(--line); border-radius: 12px; }
.kv div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.kv div:last-child { border: 0; }
.kv span { color: var(--muted); }
.kv button { background: none; border: 0; color: var(--blue); font: 700 13px var(--font); }
.cta { display: block; margin: 14px 16px; text-align: center; border-radius: 10px; padding: 13px; font-weight: 800; font-size: 15px; color: #fff; }
.note { font-size: 12.5px; color: var(--muted); text-align: center; padding: 0 20px 16px; line-height: 1.45; }
.tl { padding: 12px 16px 16px; }
.tl div { position: relative; padding: 0 0 16px 22px; border-left: 2px solid #f3d3e4; margin-left: 6px; font-size: 14px; line-height: 1.4; }
.tl div::before { content: ""; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); }
.tl div:last-child { border-color: transparent; }
.tl b { display: block; font-size: 12px; color: var(--pink); }
.tl .hi::before { width: 16px; height: 16px; left: -9px; background: #fa7e1e; box-shadow: 0 0 0 4px #ffe8d6; }
.sum { display: flex; gap: 8px; padding: 12px 16px; }
.sum div { flex: 1; border-radius: 12px; padding: 10px; font-size: 11px; font-weight: 600; }
.sum b { display: block; font-size: 15px; font-weight: 900; }
.row { display: flex; justify-content: space-between; gap: 8px; padding: 10px 16px; font-size: 14px; border-bottom: 1px solid #f4f4f4; }
.row small { display: block; color: var(--muted); font-size: 12px; }
.sec { font-size: 12px; font-weight: 800; color: var(--muted); padding: 16px 16px 4px; letter-spacing: .05em; }
.cta.zalo { background: #0068ff; }
.or { text-align: center; font-size: 12px; color: var(--muted); margin: 4px 0; }
textarea.search { resize: vertical; }
/* Ba trạng thái: chưa đi (ảnh mờ) · đã confirm · đã đóng góp (huy hiệu) */
.r.none img, .r.none .ph { filter: blur(2.5px) grayscale(.7); opacity: .75; }
.who .r { flex-shrink: 0; }
.who .r img, .who .r .ph { width: 40px; height: 40px; }
.snote { display: block; font-size: 12px; margin-top: 2px; }
.snote.none { color: #b54708; }
.snote.registered { color: #175cd3; }
.snote.paid { color: #067647; font-weight: 700; }
.pbadge { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; vertical-align: 1px;
  background: linear-gradient(135deg, #feda75, #fa7e1e 35%, #d62976 70%, #962fbf); box-shadow: 0 1px 6px rgba(214, 41, 118, .35); text-shadow: 0 1px 1px rgba(0,0,0,.15); }
/* Phóng to ảnh */
img[data-full] { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 82vh; object-fit: contain; border-radius: 6px; cursor: default; }
.lightbox img.blur { filter: blur(14px) grayscale(.7); }
.lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; font-weight: 600; padding: 0 16px; }
.lb-x, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 22px; line-height: 44px; cursor: pointer; }
.lb-x { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.lb-prev[hidden], .lb-next[hidden] { display: none; }

/* Thang cỡ chữ thống nhất cho phần đầu trang: tiêu đề 18 · nhãn 12 · số lớn 30 · chữ 14 · chữ phụ 13 */
.top { font-size: 18px; }
.cd .lbl, .raised .lbl { font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.raised .lbl { color: var(--muted); }
.cd .nums b, .raised .amt { font-size: 30px; font-weight: 900; }
.raised .amt small { font-size: 13px; }
.cd .when, .raised .sub, .bio .muted { font-size: 13px; }
.raised .sub { margin-top: 4px; }
.raised .sub b { color: #111; }
.stats b { font-size: 18px; }
.stats div { font-size: 12px; color: var(--muted); }
.stats b { color: #111; margin-bottom: 2px; }
.bio { font-size: 14px; line-height: 1.6; }
.bio-title { font-weight: 800; font-size: 15px; }

/* 3 nút chính: nổi bật, lấp lánh, rõ là bấm được */
.btns { display: block; padding: 14px 16px 10px; }
.btn-row { display: flex; gap: 10px; margin-top: 10px; }
.btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  flex: 1; border-radius: 14px; padding: 13px 16px; font-weight: 800; font-size: 15px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.12), inset 0 -3px 0 rgba(0,0,0,.12); transition: transform .12s ease, box-shadow .12s ease; -webkit-tap-highlight-color: transparent; }
.btn i { font-style: normal; font-size: 22px; line-height: 1; opacity: .9; transition: transform .2s ease; }
.btn:hover i { transform: translateX(3px); }
.btn:active { transform: translateY(2px) scale(.98); box-shadow: 0 2px 6px rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.12); }
.btn-join { background: linear-gradient(100deg, #fa7e1e, #d62976 45%, #962fbf); color: #fff; font-size: 17px; padding: 16px 18px;
  animation: glow 2.2s ease-in-out infinite; }
.btn-prog { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #075985; border: 1.5px solid #7dd3fc; }
.btn-fund { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #166534; border: 1.5px solid #86efac; }
/* vệt sáng lướt qua nút (lấp lánh) */
.btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }
.btn-prog::after { animation-delay: 1s; }
.btn-fund::after { animation-delay: 2s; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes glow { 0%, 100% { box-shadow: 0 4px 14px rgba(214,41,118,.35), inset 0 -3px 0 rgba(0,0,0,.15); } 50% { box-shadow: 0 6px 24px rgba(214,41,118,.6), inset 0 -3px 0 rgba(0,0,0,.15); } }
@media (prefers-reduced-motion: reduce) { .btn, .btn::after { animation: none; } }
/* Dòng ngày giờ và dòng địa điểm tách riêng, không ngắt giữa chữ */
.cd .when span { display: block; white-space: nowrap; }
.cd .when span + span { margin-top: 2px; }

/* Mở khoá quà: 2 thanh trượt */
.unlock-sec { margin: 4px 16px 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.unlock-sec .lbl { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.trk { margin-top: 12px; }
.trk + .trk { border-top: 1px dashed #e5e5e5; padding-top: 14px; margin-top: 16px; }
.trk-h { font-size: 15px; font-weight: 800; }
.trk-line { font-size: 13px; margin-top: 4px; }
.rail { position: relative; height: 14px; background: #f1f1f1; border-radius: 99px; margin: 26px 4px 30px; }
.rail .ghost, .rail .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.rail .ghost { background: #e9d5ff; }
.rail .fill { background: var(--grad); }
.rail .mk { position: absolute; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.rail .mk span { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid #d4d4d4; font-size: 15px; filter: grayscale(.6); }
.rail .mk.on span { border-color: var(--pink); filter: none; box-shadow: 0 0 0 3px #fce7f3; }
.rail .mk em { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 800; color: #555; }
.rail.money { margin: 14px 4px 12px; }
.rail .tick { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fff; transform: translateX(-1px); }
.rail-legend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); margin-top: -8px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.dot.fill { background: var(--grad); }
.dot.ghost { background: #e9d5ff; }
.next { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: #fff7ed; font-size: 14px; font-weight: 700; color: #9a3412; }
.ms-list { list-style: none; margin: 10px 0 0; padding: 0; }
.ms-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #f4f4f4; font-size: 14px; }
.ms-list li:last-child { border: 0; }
.ms-list li > div { flex: 1; }
.ms-list .ico { font-size: 16px; line-height: 1.3; }
.ms-list small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.ms-list li.done small { color: #067647; font-weight: 700; }
.ms-list li.active small { color: #b54708; font-weight: 700; }
.ms-list .mini { height: 6px; background: #f1f1f1; border-radius: 9px; margin-top: 5px; overflow: hidden; }
.ms-list .mini i { display: block; height: 100%; background: var(--grad); }
.pledge { font-size: 13px; margin: 10px 0 0; color: #555; }

/* Nút "+N" (xem cả lớp): viền gradient sáng, nhịp phát sáng để mọi người bấm vào */
.more { position: relative; width: 42px; height: 42px; border-radius: 50%; color: var(--pink); font-weight: 900; font-size: 12px;
  background: linear-gradient(#fff, #fff) padding-box, var(--ring) border-box; border: 3px solid transparent;
  box-shadow: 0 0 0 0 rgba(214, 41, 118, .45); animation: morePulse 1.8s ease-out infinite; }
.more:active { transform: scale(.94); }
@keyframes morePulse { 0% { box-shadow: 0 0 0 0 rgba(214, 41, 118, .45); } 70% { box-shadow: 0 0 0 9px rgba(214, 41, 118, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 41, 118, 0); } }
@media (prefers-reduced-motion: reduce) { .more { animation: none; } }

/* Màn hình chúc mừng */
button.cta { width: calc(100% - 32px); border: 0; font-family: var(--font); cursor: pointer; }
.celebrate { position: fixed; inset: 0; z-index: 60; background: rgba(20, 10, 30, .55); display: flex; align-items: center; justify-content: center; padding: 20px; animation: celFade .25s ease-out; }
.cel-card { position: relative; z-index: 2; background: #fff; border-radius: 22px; padding: 24px 20px 18px; max-width: 380px; width: 100%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: celPop .45s cubic-bezier(.2, 1.4, .4, 1); }
.cel-emoji { font-size: 54px; line-height: 1; animation: celBounce 1s ease-in-out infinite; }
.cel-card h3 { margin: 10px 0 8px; font-size: 22px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cel-card p { margin: 6px 0; font-size: 15px; line-height: 1.45; color: #333; }
.cel-card .cta { margin: 14px 0 4px; display: block; }
.cel-home { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation-name: fall; animation-timing-function: linear; animation-iteration-count: 2; }
@keyframes fall { to { top: 105%; transform: rotate(720deg) translateX(40px); } }
@keyframes celPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes celFade { from { opacity: 0; } }
@keyframes celBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .cel-emoji, .cel-card { animation: none; } }
