/* Trang trải nghiệm Locket Gold: giả lập app trong khung điện thoại (CSS thuần, không cần build) */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { font-family: ui-rounded, 'SF Pro Rounded', 'Nunito', -apple-system, system-ui, sans-serif; background: radial-gradient(70% 60% at 70% 30%, #2a2210 0%, #0d0c0a 55%, #070707 100%); color: #f5f5f4; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }
input { font: inherit; }
[hidden] { display: none !important; }
svg.lucide { width: 1.15em; height: 1.15em; stroke-width: 2.2; flex-shrink: 0; }
svg.lucide.fill { fill: currentColor; }

:root { --gold: #fbbf24; --gold-2: #f5a90a; --ink: #1c1300; --line: rgba(255, 255, 255, .08); --muted: #a8a29e; }

/* ---------- Sân khấu + khung điện thoại ---------- */
.stage { height: 100%; display: flex; align-items: center; justify-content: center; gap: 64px; padding: 20px; }
.stage-side { max-width: 340px; }
.side-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fde68a; }
.side-brand img { width: 34px; height: 34px; border-radius: 10px; }
.stage-side h1 { margin-top: 28px; font-size: 44px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.stage-side h1 span { background: linear-gradient(90deg, #fde68a, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stage-side p { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.side-cta { display: inline-flex; margin-top: 24px; padding: 12px 22px; border-radius: 14px; background: var(--gold); color: var(--ink); font-weight: 700; }

.phone { position: relative; width: 392px; height: min(850px, calc(100vh - 40px)); flex-shrink: 0; border-radius: 54px; padding: 12px; background: #1b1b1d; box-shadow: 0 0 0 2px #3a3a3e, 0 40px 90px -20px rgba(0, 0, 0, .8), inset 0 0 0 2px #000; }
.ph-screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #0b0b0c; }
@media (max-width: 900px) { .stage-side { display: none; } }
@media (max-width: 480px) {
    .stage { padding: 0; }
    .phone { width: 100%; height: 100%; border-radius: 0; padding: 0; box-shadow: none; background: #0b0b0c; }
    .ph-screen { border-radius: 0; }
    .ph-island { display: none; }
}

.ph-status { position: absolute; z-index: 80; top: 0; left: 0; right: 0; height: 46px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; pointer-events: none; }
.ph-island { position: absolute; left: 50%; top: 10px; width: 118px; height: 32px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.ph-status-r { display: flex; align-items: center; gap: 5px; }
.ph-status-r svg.lucide { width: 15px; height: 15px; }
.demo-pill { font-size: 9px; padding: 2px 6px; border-radius: 6px; background: var(--gold); color: var(--ink); letter-spacing: .04em; }

/* ---------- Khung màn hình ---------- */
.sc { position: absolute; inset: 0; padding-top: var(--sb); display: flex; flex-direction: column; background: #0b0b0c; opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s .28s, transform .32s cubic-bezier(.2, .8, .2, 1); }
.sc.is-on { opacity: 1; visibility: visible; transition: opacity .28s ease, transform .32s cubic-bezier(.2, .8, .2, 1); }
.top-bar { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 14px; flex-shrink: 0; }
.top-bar.floating { position: absolute; z-index: 5; top: var(--sb); left: 0; right: 0; }
.top-sp { width: 42px; }
.bar-title { font-weight: 800; font-size: 16px; }
.bar-title.lg { font-size: 20px; }
.round-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .1); flex-shrink: 0; }
.round-btn.ghost { background: rgba(255, 255, 255, .08); }
.round-btn .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.pill-btn { height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.pill-btn.sm { height: 36px; font-size: 14px; }
.avatar-btn img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }

/* ---------- Màn mở ---------- */
.sc-splash { align-items: center; justify-content: center; background: radial-gradient(60% 45% at 50% 42%, #2b2208 0%, #0b0b0c 70%); z-index: 70; }
.splash-rays { position: absolute; left: 50%; top: 42%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(251, 191, 36, .34) 0deg 3deg, transparent 3deg 14deg); -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%); mask: radial-gradient(circle, #000 18%, transparent 62%); animation: raySpin 14s linear infinite, rayIn .8s ease both; }
.splash-icon { position: relative; width: 100px; height: 100px; border-radius: 28px; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #ffe17a, #f5a90a); color: #b45309; box-shadow: 0 0 60px 12px rgba(251, 191, 36, .5), inset 0 0 0 4px rgba(255, 255, 255, .35); animation: iconPop .7s cubic-bezier(.34, 1.56, .64, 1) both; }
.splash-icon svg.lucide { width: 54px; height: 54px; }
.splash-title { position: relative; margin-top: 26px; font-family: 'Fraunces', serif; font-size: 30px; font-weight: 800; color: #fde68a; text-shadow: 0 0 24px rgba(251, 191, 36, .55); animation: fadeUp .6s .25s both; }
.splash-sub { position: relative; margin-top: 4px; font-size: 12.5px; color: var(--muted); animation: fadeUp .6s .35s both; }
.splash-pct { position: relative; margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--gold); }
.splash-foot { position: absolute; bottom: 34px; font-size: 11px; color: #78716c; }
.splash-foot b { color: #d6d3d1; }

/* ---------- Camera ---------- */
.sc-camera { padding-left: 14px; padding-right: 14px; }
.sc-camera .top-bar { padding: 0; }
.viewfinder { position: relative; margin-top: 8px; width: 100%; aspect-ratio: 1; border-radius: 44px; overflow: hidden; background: #1c1c1e; flex-shrink: 0; }
.viewfinder video { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.viewfinder video.is-front { transform: scaleX(-1); }
.viewfinder video.is-front.is-zoom { transform: scaleX(-1) scale(2); }
.viewfinder video.is-zoom { transform: scale(2); }
.vf-fallback { position: absolute; inset: 0; display: none; }
.vf-fallback.is-on { display: block; }
.vf-fallback img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; animation: breathe 5.6s ease-in-out infinite; }
.vf-fallback img.is-zoom { transform: scale(2); }
.vf-fallback .cam-cta { position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; background: rgba(20, 18, 14, .55); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .6); transition: background .2s, transform .15s; }
.vf-fallback .cam-cta:hover { background: rgba(251, 191, 36, .9); color: var(--ink); }
.vf-fallback .cam-cta:active { transform: translateX(-50%) scale(.96); }
.vf-sample-tag { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .4); backdrop-filter: blur(6px); font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .85); letter-spacing: .02em; }
.vf-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vf-caption { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: 80%; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.cap-glass { background: rgba(255, 255, 255, .28); backdrop-filter: blur(10px); color: #fff; }
.cap-gold { background: linear-gradient(180deg, #ffe17a, #f5a90a); color: #3b2604; }
.cap-pink { background: #f472b6; color: #fff; }
.cap-dark { background: rgba(0, 0, 0, .7); color: #fff; }
.vf-progress { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: rgba(255, 255, 255, .15); }
.vf-progress span { display: block; height: 100%; width: 0; background: var(--gold); }
.vf-rec { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.vf-rec > i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: blink 1s infinite; }
.vf-rec svg.lucide { width: 13px; height: 13px; opacity: .7; }
.vf-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 96px; font-weight: 800; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); pointer-events: none; }
.vf-count span { animation: countPop .8s ease both; }
.vf-booth { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 12px; font-weight: 700; }
.vf-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.vf-flash.go { animation: flash .45s ease; }
.vf-chip { position: absolute; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.vf-chip.tl { left: 14px; top: 14px; } .vf-chip.tr { right: 14px; top: 14px; } .vf-chip.bl { left: 14px; bottom: 14px; } .vf-chip.br { right: 14px; bottom: 14px; }
.vf-chip.gold, .vf-chip.is-on { color: var(--gold); }

.f-none { filter: none; }
.f-warm { filter: sepia(.25) saturate(1.3) hue-rotate(-8deg) brightness(1.05); }
.f-cool { filter: saturate(1.1) hue-rotate(12deg) brightness(1.03) contrast(1.05); }
.f-vivid { filter: saturate(1.7) contrast(1.12); }
.f-vintage { filter: sepia(.55) contrast(.9) brightness(1.08) saturate(.85); }
.f-mono { filter: grayscale(1) contrast(1.15); }

.cam-ctl { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.thumb-btn { width: 46px; height: 46px; border-radius: 14px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .3); transform: rotate(-6deg); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.shutter { -webkit-touch-callout: none; position: relative; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.shutter-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.shutter-ring circle { fill: none; stroke: var(--shutter, #fbbf24); stroke-width: 6; stroke-dasharray: 289; stroke-dashoffset: 0; }
.shutter.is-rec .shutter-ring circle { stroke: #ef4444; }
.shutter-core { width: 64px; height: 64px; border-radius: 50%; background: #fff; transition: transform .15s ease, border-radius .2s ease, background .2s; }
.shutter:active .shutter-core { transform: scale(.9); }
.shutter.is-rec .shutter-core { transform: scale(.55); border-radius: 14px; background: #ef4444; }
.history-btn { margin: 16px auto 0; display: inline-flex; align-self: center; align-items: center; gap: 7px; font-weight: 700; font-size: 16px; }
.history-btn b { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 8px; background: var(--gold); color: var(--ink); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }

.tabbar { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); backdrop-filter: blur(12px); }
.tabbar.inline { position: static; transform: none; }
.tabbar button { position: relative; width: 50px; height: 42px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.tabbar button.is-on { background: rgba(255, 255, 255, .14); color: #fff; }
.tabbar button b, .grid-nav b { position: absolute; top: 2px; right: 6px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--gold); color: var(--ink); font-size: 10px; display: flex; align-items: center; justify-content: center; }
.mini-shutter { width: 46px !important; height: 46px !important; border-radius: 50% !important; background: #fff !important; box-shadow: 0 0 0 3px var(--gold); }

/* ---------- Gửi ảnh ---------- */
.sc-preview { padding-left: 14px; padding-right: 14px; transform: translateY(16px); }
.sc-preview.is-on { transform: none; }
.sc-preview .top-bar { padding: 0; }
.pv-media { position: relative; margin-top: 8px; width: 100%; aspect-ratio: 1; border-radius: 44px; overflow: hidden; background: #1c1c1e; }
.pv-media img, .pv-media video { width: 100%; height: 100%; object-fit: contain; background: #111; }
.pv-input { margin: -58px auto 0; position: relative; display: block; width: 80%; height: 44px; padding: 0 18px; border-radius: 999px; border: 0; outline: none; background: rgba(0, 0, 0, .55); backdrop-filter: blur(10px); color: #fff; font-weight: 600; font-size: 14px; text-align: center; }
.pv-input::placeholder { color: rgba(255, 255, 255, .7); }
.send-btn { margin: 30px auto 0; width: 84px; height: 84px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(251, 191, 36, .25); }
.send-btn svg.lucide { width: 34px; height: 34px; }
.send-btn.sent { animation: sendFly .6s ease forwards; }
.pv-to { margin-top: 20px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pv-to button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 12.5px; font-weight: 600; }
.pv-to button.is-on { background: var(--gold); color: var(--ink); }
.pv-to img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

/* ---------- Lịch sử vuốt dọc ---------- */
.sc-feed { padding-top: 0; }
.feed-list { flex: 1; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.feed-list::-webkit-scrollbar { display: none; }
.feed-item { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; align-items: center; padding: 108px 14px 0; }
.post { position: relative; width: 100%; aspect-ratio: 1; border-radius: 40px; overflow: hidden; background: #1c1c1e; }
.post > img, .post > video { width: 100%; height: 100%; object-fit: cover; }
.post-cap { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); max-width: 82%; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .26); backdrop-filter: blur(10px); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-by { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.post-by img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.post-by small { color: var(--muted); font-weight: 500; }
.post.sponsor { background: radial-gradient(70% 60% at 50% 30%, #6b5212, #2a210c); display: flex; align-items: center; justify-content: center; }
.sp-tag { position: absolute; top: 16px; left: 16px; padding: 3px 9px; border-radius: 8px; background: rgba(0, 0, 0, .4); font-size: 11px; font-weight: 700; }
.sp-phone { position: relative; width: 44%; aspect-ratio: .52; border-radius: 22px; border: 4px solid var(--gold); background: #111; padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-content: start; }
.sp-phone i { aspect-ratio: 1; border-radius: 7px; background: #333; background-size: cover; background-position: center; }
.sp-gold { position: absolute; left: 10%; bottom: 26%; padding: 4px 12px; border-radius: 999px; background: linear-gradient(180deg, #ffe17a, #f5a90a); color: var(--ink); border: 2px solid var(--ink); font-weight: 900; font-size: 15px; transform: rotate(-12deg); }
.sp-heart { position: absolute; right: 10%; top: 16%; width: 54px !important; height: 54px !important; color: var(--gold); animation: bob 2.4s ease-in-out infinite; }
.sp-qr { position: absolute; right: 9%; bottom: 20%; width: 64px; height: 64px; padding: 4px; border-radius: 10px; background: #fff; }
.sp-qr img, .sp-qr canvas { width: 100%; height: 100%; }
.sp-cap { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .3); font-weight: 700; font-size: 13px; white-space: nowrap; }
.feed-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 14px 18px; background: linear-gradient(180deg, transparent, #0b0b0c 30%); }
.reply-bar { display: flex; align-items: center; gap: 4px; height: 48px; padding: 0 6px 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.reply-bar input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font-weight: 600; }
.reply-bar input::placeholder { color: var(--muted); }
.reply-bar button { width: 34px; height: 34px; border-radius: 50%; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.reply-bar button:active { transform: scale(1.3); }
.feed-nav { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; }
.react-burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 6; }
.react-burst span { position: absolute; bottom: 120px; font-size: 34px; animation: burst 1.4s ease-out forwards; }

/* ---------- Lưới ---------- */
.grid-list { flex: 1; overflow-y: auto; padding: 4px 10px 110px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-content: start; scrollbar-width: none; }
.grid-list::-webkit-scrollbar { display: none; }
.g-cell { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #1c1c1e; }
.g-cell img { width: 100%; height: 100%; object-fit: cover; }
.g-cell em { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); max-width: 90%; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .45); font-style: normal; font-size: 9.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-cell.sponsor { background: radial-gradient(70% 60% at 50% 40%, #6b5212, #2a210c); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10.5px; font-weight: 800; color: #fde68a; }
.g-cell.sponsor svg.lucide { width: 28px; height: 28px; color: var(--gold); }
.grid-nav { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 999px; background: rgba(40, 40, 42, .92); backdrop-filter: blur(12px); }
.grid-nav button { position: relative; width: 44px; height: 42px; display: flex; align-items: center; justify-content: center; color: #d6d3d1; }

/* ---------- Trò chuyện ---------- */
.chat-list { flex: 1; overflow-y: auto; padding: 4px 14px 110px; scrollbar-width: none; }
.chat-list::-webkit-scrollbar { display: none; }
.chat-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 0; text-align: left; }
.chat-row > img, .chat-row .gold-avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2.5px solid var(--gold); }
.gold-avatar { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #ffe17a, #f5a90a); color: #b45309; }
.chat-row div { flex: 1; min-width: 0; }
.chat-row b { display: flex; align-items: center; gap: 5px; font-size: 15px; }
.chat-row b small { font-weight: 500; color: var(--muted); font-size: 12px; }
.chat-row p { margin-top: 2px; font-size: 13px; color: #d6d3d1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row .chev { color: #57534e; }
.chat-row.unread p { color: #fff; font-weight: 700; }
.sponsor-tag { padding: 1px 6px; border-radius: 6px; background: rgba(251, 191, 36, .2); color: var(--gold); font-size: 10px; font-weight: 800; }
.chats-nav { position: absolute; left: 14px; right: 14px; bottom: 22px; display: flex; align-items: center; justify-content: space-between; }
.chats-nav > img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.pen-btn { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; }

.sc-chat .top-bar { border-bottom: 1px solid var(--line); }
.chat-who { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.chat-who img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none; }
.chat-body::-webkit-scrollbar { display: none; }
.chat-photo { align-self: center; width: 58%; aspect-ratio: 1; border-radius: 28px; overflow: hidden; position: relative; margin-bottom: 6px; flex-shrink: 0; }
.chat-photo img { width: 100%; height: 100%; object-fit: cover; }
.chat-photo em { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .45); font-style: normal; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.msg { max-width: 76%; padding: 9px 13px; border-radius: 20px; font-size: 14px; line-height: 1.4; animation: msgIn .25s ease; flex-shrink: 0; }
.msg.them { align-self: flex-start; background: #2f2f31; border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--gold); color: var(--ink); font-weight: 600; border-bottom-right-radius: 6px; }
.msg.card { max-width: 82%; padding: 10px; background: linear-gradient(180deg, #4a3810, #241c09); border: 1px solid var(--gold); align-self: flex-end; color: #fff; }
.msg-card-h { display: flex; align-items: center; gap: 8px; }
.msg-card-h span { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(160deg, #ffe17a, #f5a90a); color: #b45309; display: flex; align-items: center; justify-content: center; }
.msg-card-h b { display: block; font-size: 13px; }
.msg-card-h small { display: block; font-size: 10.5px; color: #d6d3d1; }
.msg-card-p { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.msg-card-p div { padding: 6px; border-radius: 10px; background: rgba(0, 0, 0, .3); text-align: center; }
.msg-card-p b { display: block; color: #fde68a; font-size: 15px; }
.msg-card-p small { font-size: 10px; color: #d6d3d1; }
.msg-card-z { margin-top: 8px; display: block; padding: 7px; border-radius: 10px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 12px; text-align: center; }
.typing { align-self: flex-start; padding: 10px 14px; border-radius: 20px; background: #2f2f31; display: flex; gap: 4px; flex-shrink: 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #a8a29e; animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.chat-input { display: flex; gap: 8px; padding: 10px 14px 20px; }
.chat-input input { flex: 1; height: 44px; padding: 0 16px; border-radius: 999px; border: 0; outline: none; background: rgba(255, 255, 255, .1); color: #fff; }
.chat-input button { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; }

/* ---------- Bảng kéo lên ---------- */
.sheet-backdrop { position: absolute; inset: 0; z-index: 40; background: rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.sheet-backdrop.is-on { opacity: 1; visibility: visible; transition: opacity .3s; }
.sheet { position: absolute; z-index: 45; left: 8px; right: 8px; bottom: 8px; height: 64%; display: flex; flex-direction: column; border-radius: 34px; background: #2a2a2c; transform: translateY(110%); transition: transform .38s cubic-bezier(.2, .8, .2, 1), height .3s ease; box-shadow: 0 -10px 40px rgba(0, 0, 0, .4); }
.sheet.tall { height: 80%; }
#shPicker { z-index: 47; }
.sheet.is-on { transform: translateY(0); }
.sheet.is-dragging { transition: none; }
.sheet-handle { flex-shrink: 0; padding: 10px 0 8px; cursor: grab; touch-action: none; }
.sheet-grip { display: block; width: 40px; height: 5px; margin: 0 auto; border-radius: 9px; background: rgba(255, 255, 255, .28); }
.sheet-body { flex: 1; overflow-y: auto; padding: 0 16px 90px; scrollbar-width: none; overscroll-behavior: contain; }
.sheet-body::-webkit-scrollbar { display: none; }

/* Bảng hiệu ứng */
.fx-note { text-align: center; font-size: 12px; color: var(--muted); margin: 2px 8px 12px; }
.fx-sec { margin-bottom: 18px; }
.fx-h { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 16px; margin-bottom: 10px; }
.fx-h .free { font-size: 11px; color: #34d399; font-weight: 700; }
.fx-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; }
.fx-it { text-align: center; }
.fx-it em { display: block; margin-top: 5px; font-style: normal; font-size: 10.5px; font-weight: 600; color: #e7e5e4; line-height: 1.25; }
.fx-it em small { display: block; color: var(--muted); font-weight: 500; }
.fx-tile { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #3a3a3c; font-size: 30px; border: 2px solid transparent; transition: transform .15s, border-color .15s; }
.fx-it:active .fx-tile { transform: scale(.94); }
.fx-it.is-on .fx-tile { border-color: var(--gold); }
.fx-tile img { width: 100%; height: 100%; object-fit: cover; }
.fx-tile .lock { position: absolute; right: 4px; top: 4px; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: var(--gold); }
.fx-tile.portrait { aspect-ratio: .82; font-size: 34px; }
.flame { background: radial-gradient(60% 60% at 50% 60%, #ffd34d, #f97316 60%, #c2410c); font-size: 26px; font-weight: 900; color: #fff; text-shadow: 0 2px 6px rgba(124, 45, 18, .6); }
.flame::before { content: ''; position: absolute; inset: 14% 22% 10%; border-radius: 50% 50% 46% 46%; background: rgba(255, 255, 255, .18); }
.flame span { position: relative; }
.booth-tile { padding: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.booth-tile i { border-radius: 5px; background: rgba(0, 0, 0, .35); }
.bt-locket { background: #1c1c1e; border-color: #57534e; }
.bt-gold { background: linear-gradient(160deg, #ffe17a, #f5a90a); }
.bt-blue { background: linear-gradient(160deg, #60a5fa, #1d4ed8); }
.bt-kpop { background: linear-gradient(160deg, #fbcfe8, #f472b6); }
.bt-strip { grid-template-columns: 1fr; padding: 6px 28%; }
.fx-it.is-on .booth-tile { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }
.color-tile { background-size: cover; background-position: center; }
.cap-input { width: 100%; height: 42px; margin-bottom: 8px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: #fff; font-weight: 600; outline: none; }
.cap-input:focus { border-color: var(--gold); }
.cap-styles { display: flex; gap: 6px; margin-bottom: 10px; }
.cap-styles button { flex: 1; height: 30px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.cap-styles button.is-on { outline: 2px solid #fff; }

.gold-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 46px; padding: 0 20px; border-radius: 999px; background: linear-gradient(180deg, #ffe17a, #f5a90a); color: var(--ink); font-weight: 800; font-size: 15px; box-shadow: 0 8px 24px -8px rgba(245, 169, 10, .7); white-space: nowrap; }
.gold-btn.wide { display: flex; width: 100%; }
.gold-btn.sm { height: 36px; padding: 0 14px; font-size: 12.5px; }
.gold-btn.dark { background: var(--ink); color: #fde68a; box-shadow: none; }
.gold-btn.float { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; }
.soft-btn { height: 46px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-weight: 700; }
.link-btn { display: block; margin: 16px auto 0; color: #fde68a; font-weight: 700; font-size: 13px; }

/* Thẻ quảng cáo Gold */
.upsell { background: linear-gradient(180deg, #3d3112 0%, #2a2a2c 40%); }
.ad-tag { display: inline-block; padding: 3px 9px; border-radius: 8px; background: rgba(0, 0, 0, .35); font-size: 11px; font-weight: 700; color: #d6d3d1; }
.up-hero { position: relative; width: 170px; height: 170px; margin: 4px auto 0; border-radius: 30px; padding: 5px; background: linear-gradient(160deg, #ffe17a, #b45309); box-shadow: 0 16px 40px -14px rgba(245, 169, 10, .7); }
.up-photo { width: 100%; height: 100%; border-radius: 25px; display: flex; align-items: center; justify-content: center; font-size: 84px; background: radial-gradient(70% 70% at 50% 35%, #7c2d12, #1c1300); }
.up-badge { position: absolute; left: -14px; bottom: 10px; padding: 5px 14px; border-radius: 999px; background: linear-gradient(180deg, #ffe17a, #f5a90a); color: var(--ink); font-weight: 900; font-size: 15px; transform: rotate(-10deg); border: 2.5px solid var(--ink); }
.up-heart { position: absolute; right: -18px; top: -16px; width: 52px !important; height: 52px !important; color: var(--gold); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); animation: bob 2.4s ease-in-out infinite; }
.up-title { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 21px; font-weight: 800; }
.up-coin { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(160deg, #ffe17a, #f5a90a); color: #b45309; display: inline-flex; align-items: center; justify-content: center; }
.up-coin svg.lucide { width: 15px; height: 15px; }
.up-sub { margin-top: 6px; text-align: center; font-size: 13px; color: #d6d3d1; line-height: 1.5; }
.up-list { list-style: none; margin-top: 14px; display: grid; gap: 9px; }
.up-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; }
.up-list svg.lucide { color: var(--gold); margin-top: 1px; }

/* Bảng giá + QR (dùng chung) */
.gold-h { margin: 20px 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gold-h span { font-weight: 800; font-size: 16px; }
.gold-h small { font-size: 11px; color: var(--muted); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 12px; border-radius: 20px; background: #1f1f21; border: 1px solid var(--line); text-align: left; }
.plan.is-best { background: linear-gradient(180deg, #4a3810, #241c09); border-color: var(--gold); }
.plan small { font-size: 12px; color: var(--muted); font-weight: 600; }
.plan b { margin-top: 2px; font-size: 30px; font-weight: 800; color: #fde68a; letter-spacing: -.02em; line-height: 1.1; }
.plan b em { font-style: normal; font-size: 16px; }
.plan span { font-size: 11px; color: #d6d3d1; line-height: 1.4; flex: 1; }
.plan .pick { margin-top: 10px; height: 32px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.plan.is-best .pick { background: var(--gold); color: var(--ink); }
.plan-tag { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--ink) !important; font-size: 10px !important; font-weight: 800; flex: none !important; }
.plans-note { margin-top: 10px; text-align: center; font-size: 12px; color: var(--muted); }
.plans-note b { color: #fde68a; }
.qr-title { margin: 20px 0 10px; text-align: center; font-weight: 800; font-size: 14px; }
.qr-box { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 20px; background: #1f1f21; border: 1px solid var(--line); }
.qr-img { width: 96px; height: 96px; padding: 6px; border-radius: 14px; background: #fff; flex-shrink: 0; }
.qr-img img, .qr-img canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.qr-box b { display: block; font-size: 22px; font-weight: 800; color: #fde68a; letter-spacing: .02em; }
.qr-box small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.qr-actions { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Bạn bè */
.fr-title { text-align: center; font-size: 22px; font-weight: 800; }
.fr-sub { text-align: center; font-size: 13px; color: var(--muted); margin-top: 2px; }
.fr-search { margin-top: 14px; width: 100%; height: 44px; border-radius: 999px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; color: #e7e5e4; }
.fr-gold { margin-top: 14px; padding: 12px; border-radius: 22px; background: linear-gradient(180deg, #4a3810, #241c09); border: 1px solid var(--gold); }
.fr-gold-h { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 14px; }
.fr-gold-h span { display: flex; align-items: center; gap: 6px; }
.fr-gold-h svg.lucide { color: var(--gold); width: 15px; height: 15px; }
.fr-gold-h b { font-size: 10px; padding: 2px 7px; border-radius: 6px; background: rgba(251, 191, 36, .2); color: var(--gold); }
.fr-gold-ic { margin: 12px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fr-gold-ic button span { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; background: rgba(0, 0, 0, .3); border: 2px solid var(--gold); font-size: 24px; }
.fr-gold-ic em { display: block; margin-top: 4px; font-style: normal; font-size: 10.5px; font-weight: 600; }
.fr-h { margin: 18px 0 6px; display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; color: #d6d3d1; }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.fr-row img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.fr-row .ring { position: relative; }
.fr-row .ring img { border: 2.5px solid var(--gold); }
.fr-row .ring::after { content: '♥'; position: absolute; right: -2px; bottom: -2px; width: 17px; height: 17px; border-radius: 50%; background: var(--gold); color: #b45309; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.fr-row b { flex: 1; font-size: 15px; }
.fr-row button { width: 30px; height: 30px; color: var(--muted); }

/* Hồ sơ */
.pf-head { text-align: center; }
.pf-avatar { position: relative; width: 104px; height: 104px; margin: 4px auto 0; border-radius: 50%; padding: 4px; background: #3a3a3c; }
.pf-avatar.gold { background: linear-gradient(160deg, #ffe17a, #f5a90a); }
.pf-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #2a2a2c; }
.pf-avatar .pf-badge { position: absolute; right: 2px; bottom: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #b45309; display: flex; align-items: center; justify-content: center; border: 3px solid #2a2a2c; }
.pf-avatar:not(.gold) .pf-badge { display: none; }
.pf-name { margin-top: 10px; font-size: 22px; font-weight: 800; }
.pf-link { margin-top: 2px; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.pf-actions { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pf-actions button span { width: 50px; height: 50px; margin: 0 auto; border-radius: 50%; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; }
.pf-actions em { display: block; margin-top: 5px; font-style: normal; font-size: 10.5px; color: #d6d3d1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-member { margin-top: 16px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; border: 1.5px solid var(--gold); background: linear-gradient(180deg, rgba(251, 191, 36, .12), rgba(251, 191, 36, .03)); text-align: left; }
.pf-member > span { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(160deg, #ffe17a, #f5a90a); color: #b45309; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pf-member div { flex: 1; }
.pf-member b { display: block; font-size: 15px; color: #fde68a; }
.pf-member small { font-size: 12px; color: #d6d3d1; }
.pf-h { margin: 20px 0 8px; display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 14px; color: #d6d3d1; }
.pf-h span { display: flex; align-items: center; gap: 6px; }
.pf-h small { font-size: 12px; color: var(--gold); font-weight: 700; }
.pf-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-widget { aspect-ratio: 1.05; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 800; }
.pf-widget.people { background: linear-gradient(180deg, #7c2d12, #431407); border: 2px solid #ea580c; }
.pf-widget.people .faces { display: flex; }
.pf-widget.people .faces img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-left: -10px; }
.pf-widget.people .faces img:first-child { margin-left: 0; }
.pf-widget.people small { font-size: 11px; color: #fed7aa; font-weight: 600; }
.pf-widget.add { background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .1); color: #d6d3d1; }
.pf-widget.add span { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.pf-list { border-radius: 18px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.pf-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; text-align: left; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
.pf-row:last-child { border-bottom: 0; }
.pf-row > svg.lucide:first-child { color: #d6d3d1; }
.pf-row.gold > svg.lucide:first-child { color: var(--gold); }
.pf-row span { flex: 1; }
.pf-row .chev { color: #57534e; }
.pf-row.danger, .pf-row.danger > svg.lucide:first-child { color: #f87171; }
.switch { width: 44px; height: 26px; border-radius: 999px; background: #57534e; position: relative; transition: background .2s; flex-shrink: 0; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--gold); }
.switch.on::after { transform: translateX(18px); }
.pf-foot { margin-top: 16px; text-align: center; font-size: 11px; color: #57534e; }

/* Bảng chọn (icon app, chủ đề máy ảnh) */
.pick-title { text-align: center; font-weight: 800; font-size: 17px; }
.pick-sub { text-align: center; font-size: 12.5px; color: var(--muted); margin: 2px 0 14px; }
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 10px; }
.pick-it { text-align: center; }
.pick-it img, .pick-it .theme-sw { width: 100%; aspect-ratio: 1; border-radius: 22%; object-fit: cover; border: 2px solid transparent; }
.pick-it .theme-sw { border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #1c1c1e; }
.pick-it .theme-sw i { width: 62%; height: 62%; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px var(--c); }
.pick-it.is-on img, .pick-it.is-on .theme-sw { border-color: var(--gold); }
.pick-it em { display: block; margin-top: 5px; font-style: normal; font-size: 10.5px; color: #d6d3d1; }

/* ---------- Trang Locket Gold ---------- */
.sc-gold { z-index: 50; transform: translateX(30px); }
.sc-gold.is-on { transform: none; }
.gold-scroll { flex: 1; overflow-y: auto; padding: 4px 16px 40px; scrollbar-width: none; }
.gold-scroll::-webkit-scrollbar { display: none; }
.gold-hero { position: relative; padding: 24px 18px 18px; border-radius: 30px; text-align: center; overflow: hidden; background: radial-gradient(80% 60% at 50% 0%, rgba(255, 225, 122, .6), transparent 70%), linear-gradient(180deg, #6b5212, #2a210c 65%, #1c1708); border: 1.5px solid rgba(251, 191, 36, .45); }
.gh-spark { position: absolute; color: #fde68a; animation: twinkle 1.6s ease-in-out infinite; }
.gh-spark.s1 { left: 22px; top: 30px; } .gh-spark.s2 { right: 26px; top: 64px; font-size: 12px; animation-delay: .6s; } .gh-spark.s3 { left: 40px; top: 120px; font-size: 10px; animation-delay: 1s; }
.gh-art { position: relative; width: 120px; height: 110px; margin: 0 auto; }
.gh-glow { position: absolute; inset: 10px 20px; border-radius: 26px; background: rgba(255, 236, 170, .35); box-shadow: 0 0 50px 14px rgba(255, 225, 122, .45); }
.gh-heart { position: absolute; left: 50%; top: 50%; width: 64px !important; height: 64px !important; margin: -36px 0 0 -32px; color: #fff7d1; filter: drop-shadow(0 0 16px rgba(255, 225, 122, .9)); animation: bob 3s ease-in-out infinite; }
.gh-heart-sm { position: absolute; left: 0; bottom: 18px; width: 34px !important; height: 34px !important; color: #fb923c; transform: rotate(-14deg); }
.gh-badge { position: absolute; right: -4px; bottom: 22px; padding: 3px 11px; border-radius: 999px; background: linear-gradient(180deg, #ffe17a, #f5a90a); color: var(--ink); font-weight: 900; font-size: 12px; transform: rotate(-8deg); border: 2px solid var(--ink); }
.gh-title { margin-top: 2px; font-family: 'Fraunces', serif; font-size: 30px; font-weight: 800; color: #fde68a; text-shadow: 0 0 20px rgba(251, 191, 36, .5); }
.gh-sub { margin-top: 6px; font-size: 12.5px; color: #e7e5e4; line-height: 1.5; }
.gh-chips { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gh-chips span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .35); font-size: 11px; font-weight: 600; }
.gh-chips svg.lucide { width: 12px; height: 12px; color: var(--gold); }
.gh-zalo { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 18px; background: linear-gradient(180deg, #ffe17a, #f5a90a); color: var(--ink); text-align: left; }
.gh-zalo small { display: block; font-size: 11px; font-weight: 600; opacity: .75; }
.gh-zalo b { font-size: 22px; letter-spacing: .02em; }
.gh-copy { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #fde68a; }
.gold-feats { margin-top: 18px; border-radius: 20px; background: #1a1a1c; overflow: hidden; }
.gold-feat { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.gold-feat:last-child { border-bottom: 0; }
.gold-feat > span { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(251, 191, 36, .15); color: var(--gold); flex-shrink: 0; }
.gold-feat div { flex: 1; }
.gold-feat b { display: block; font-size: 13.5px; }
.gold-feat small { display: block; font-size: 11.5px; color: var(--muted); }
.gold-feat .ok { color: var(--gold); }
.gold-foot { margin-top: 16px; text-align: center; font-size: 11px; color: #57534e; }

/* ---------- Thông báo ---------- */
.toast { position: absolute; z-index: 90; left: 50%; top: calc(var(--sb) + 8px); transform: translate(-50%, -20px); max-width: 86%; padding: 10px 16px; border-radius: 16px; background: rgba(40, 40, 42, .96); backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@keyframes raySpin { to { transform: rotate(360deg); } }
@keyframes rayIn { from { opacity: 0; scale: .6; } }
@keyframes iconPop { from { transform: scale(0) rotate(-20deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
@keyframes breathe { 50% { scale: 1.05; } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }
@keyframes countPop { 0% { transform: scale(.4); opacity: 0; } 30% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
@keyframes sendFly { 0% { transform: none; } 40% { transform: scale(.85); } 100% { transform: translate(120px, -260px) rotate(30deg) scale(.4); opacity: 0; } }
@keyframes burst { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 15% { opacity: 1; transform: translate(var(--dx), -40px) scale(1.2); } 100% { transform: translate(calc(var(--dx) * 2), -420px) scale(1); opacity: 0; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes typing { 50% { opacity: .3; transform: translateY(-2px); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Ô bộ lọc: ảnh thật + ô bóng nổi khối ---------- */
.fx-tile.photo { background-size: cover; background-position: center 20%; }
.fx-badge { position: absolute; left: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 9px; background: rgba(255, 255, 255, .9); font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.fx-tile.glossy { background: radial-gradient(90% 70% at 30% 20%, color-mix(in srgb, var(--tone) 55%, #fff) 0%, var(--tone) 55%, color-mix(in srgb, var(--tone) 60%, #000) 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -6px 12px rgba(0, 0, 0, .25), 0 6px 14px -6px rgba(0, 0, 0, .6); }
.fx-tile.glossy::after { content: ''; position: absolute; left: 10%; right: 10%; top: 6%; height: 36%; border-radius: 40%; background: linear-gradient(180deg, rgba(255, 255, 255, .35), transparent); pointer-events: none; }
.fx-emoji { font-size: 34px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); transform: translateY(2px); }
.fx-tile.booth-tile { display: grid; }
.up-photo { background-size: cover; background-position: center 20%; }
.up-photo span { position: absolute; left: 12px; top: 12px; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .92); font-size: 24px; display: flex; align-items: center; justify-content: center; }
.up-photo { position: relative; }
.sp-phone { width: 40%; margin-bottom: 26px; }

/* ---------- Kiểu iOS: font tròn của Locket, thanh trạng thái iPhone ---------- */
.ph-screen { font-family: ui-rounded, 'SF Pro Rounded', 'Nunito', -apple-system, system-ui, sans-serif; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
.ph-status { font-family: -apple-system, 'SF Pro Text', ui-rounded, 'Nunito', system-ui, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.02em; padding: 0 30px 0 34px; }
.ph-status-r { gap: 6px; }
.ios-ic { fill: #fff; }
.ios-batt { position: relative; width: 25px; height: 12px; border-radius: 4px; border: 1.3px solid rgba(255, 255, 255, .45); padding: 1.5px; margin-left: 1px; }
.ios-batt::after { content: ''; position: absolute; right: -4px; top: 3.5px; width: 2px; height: 4px; border-radius: 0 2px 2px 0; background: rgba(255, 255, 255, .45); }
.ios-batt i { display: block; width: 80%; height: 100%; border-radius: 2px; background: #fff; }
.demo-pill { font-family: inherit; font-weight: 900; font-size: 9.5px; }
.pill-btn, .history-btn, .bar-title, .fx-h, .fr-title, .pf-name, .up-title, .chat-row b, .post-by, .gold-h span { font-weight: 800; letter-spacing: -.015em; }
.fx-it em, .pf-row, .chat-row p { font-weight: 700; }
.pv-input, .reply-bar input, .chat-input input, .cap-input { font-family: inherit; }
.splash-sub, .splash-foot { font-weight: 700; }
.ph-status-l { display: flex; align-items: center; gap: 6px; }

/* ---------- Gợi ý + nút mua Gold trên màn camera ---------- */
.cam-tip { margin: 14px auto 0; max-width: 92%; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #a8a29e; text-align: center; transition: opacity .25s, transform .25s; }
.cam-tip svg.lucide { width: 14px; height: 14px; color: var(--gold); }
.cam-tip.is-out { opacity: 0; transform: translateY(4px); }
.cam-gold-cta { position: absolute; left: 22px; right: 22px; bottom: 88px; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 20px; text-align: left; background: linear-gradient(135deg, rgba(251, 191, 36, .16), rgba(251, 191, 36, .05)); border: 1px solid rgba(251, 191, 36, .32); transition: border-color .2s, transform .15s; }
.cam-gold-cta:hover { border-color: rgba(251, 191, 36, .6); }
.cam-gold-cta:active { transform: scale(.98); }
.cam-gold-cta .cg-ic { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #ffe17a, #f5a90a); color: #7a3d00; box-shadow: 0 6px 18px -6px rgba(245, 169, 10, .8); }
.cam-gold-cta .cg-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cam-gold-cta .cg-txt b { font-size: 14.5px; font-weight: 800; color: #fde68a; }
.cam-gold-cta .cg-txt small { font-size: 12px; font-weight: 600; color: #a8a29e; }
.cam-gold-cta > svg.lucide { color: var(--gold); }
.cam-tip.is-hidden, .cam-gold-cta.is-hidden { display: none; }

/* ---------- Cột giới thiệu bên trái (máy tính) ---------- */
.side-h { margin-top: 26px !important; font-size: 12px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #78716c !important; }
.side-tries { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-tries button { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; border-radius: 16px; text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: background .2s, border-color .2s, transform .15s; }
.side-tries button:hover { background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .35); transform: translateY(-1px); }
.side-tries span { grid-row: span 2; width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(251, 191, 36, .14); color: var(--gold); }
.side-tries b { font-size: 14px; font-weight: 800; }
.side-tries small { font-size: 12px; color: var(--muted); }
.side-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.side-actions .side-cta { margin-top: 0; box-shadow: 0 10px 28px -10px rgba(251, 191, 36, .7); transition: background .2s, transform .15s; }
.side-actions .side-cta:hover { background: var(--gold-2); transform: translateY(-1px); }
.side-ghost { padding: 12px 18px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); font-weight: 700; color: #e7e5e4; transition: background .2s; }
.side-ghost:hover { background: rgba(255, 255, 255, .06); }
.side-back { margin-top: 22px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #78716c; transition: color .2s; }
.side-back:hover { color: #fde68a; }
.stage-side { max-width: 380px; }
@media (max-height: 720px) { .stage-side h1 { font-size: 36px; margin-top: 18px; } .side-h { margin-top: 18px !important; } }

/* ---------- Danh mục filter thật (bảng hiệu ứng) ---------- */
.fx-nav { position: sticky; top: -1px; z-index: 3; display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 12px; padding: 8px 16px; background: linear-gradient(180deg, #2a2a2c 80%, rgba(42, 42, 44, 0)); scrollbar-width: none; }
.fx-nav::-webkit-scrollbar { display: none; }
.fx-nav button { flex-shrink: 0; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 12.5px; font-weight: 700; color: #d6d3d1; white-space: nowrap; transition: background .2s, color .2s; }
.fx-nav button small { margin-left: 2px; font-size: 11px; color: #78716c; font-weight: 700; }
.fx-nav button.is-on { background: var(--gold); color: var(--ink); }
.fx-nav button.is-on small { color: rgba(28, 19, 0, .6); }
.fx-group { margin: 6px 0 12px; padding: 12px 14px; border-radius: 16px; background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .2); display: flex; flex-direction: column; gap: 2px; }
.fx-group b { font-size: 15px; font-weight: 800; color: #6ee7b7; }
.fx-group span { font-size: 12px; color: var(--muted); font-weight: 600; }
.fx-group.gold { margin-top: 22px; background: linear-gradient(135deg, rgba(251, 191, 36, .14), rgba(251, 191, 36, .04)); border-color: rgba(251, 191, 36, .3); }
.fx-group.gold b { color: #fde68a; }
.fx-h .cnt { margin-left: auto; min-width: 26px; height: 20px; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 11px; font-weight: 800; color: #a8a29e; display: inline-flex; align-items: center; justify-content: center; }
.fx-sec.is-collapsed .fx-it.is-more { display: none; }
.fx-more { margin-top: 10px; width: 100%; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 13px; font-weight: 800; color: #fde68a; display: flex; align-items: center; justify-content: center; gap: 6px; }
.fx-more:active { background: rgba(255, 255, 255, .1); }
.fx-tile.real { background: #f5f5f4; }
.fx-tile.real img { width: 100%; height: 100%; object-fit: cover; }
.fx-tile.real .fx-emoji { font-size: 30px; }
.fx-tile .ai-tag { position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; border-radius: 6px; background: linear-gradient(135deg, #a78bfa, #ec4899); color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.fx-tile.real .lock { background: rgba(0, 0, 0, .6); }
.fx-it em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-photo.is-real { background-size: cover; background-position: center; background-color: #f5f5f4; }
.up-photo.is-real span { display: none; }

/* ---------- Khung iPhone (kiểu iPhone 15/16 Pro) ---------- */
:root { --sb: 54px; }
.phone { width: 380px; height: min(824px, calc(100vh - 40px)); border-radius: 64px; padding: 12px; background: #050505;
    box-shadow: 0 0 0 1.5px #1a1a1c, 0 0 0 4px #6b6b70, 0 0 0 5.5px #3b3b3f, 0 0 0 6.5px #8a8a90, 0 50px 100px -24px rgba(0, 0, 0, .85), 0 0 120px -30px rgba(251, 191, 36, .18); }
.phone::before { content: ''; position: absolute; inset: 3px; border-radius: 61px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ph-screen { border-radius: 52px; }
.ph-key { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #4a4a4f, #8a8a90 45%, #3a3a3e); }
.ph-action { left: -9px; top: 116px; height: 32px; border-radius: 2px 0 0 2px; }
.ph-vol-up { left: -9px; top: 174px; height: 58px; border-radius: 2px 0 0 2px; }
.ph-vol-down { left: -9px; top: 244px; height: 58px; border-radius: 2px 0 0 2px; }
.ph-power { right: -9px; top: 200px; height: 92px; border-radius: 0 2px 2px 0; background: linear-gradient(270deg, #4a4a4f, #8a8a90 45%, #3a3a3e); }

/* Thanh trạng thái iOS: giờ bên trái, sóng/wifi/pin bên phải, Dynamic Island ở giữa */
.ph-status { height: var(--sb); padding: 0; font-family: -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, system-ui, sans-serif; font-size: 16.5px; font-weight: 600; letter-spacing: -.2px; }
.ph-status-l, .ph-status-r { position: absolute; top: 0; height: 100%; width: calc(50% - 64px); display: flex; align-items: center; justify-content: center; padding-top: 4px; }
.ph-status-l { left: 0; gap: 6px; }
.ph-status-r { right: 0; gap: 6px; }
.ph-island { top: 11px; width: 124px; height: 36px; border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03); }
.ph-island::after { content: ''; position: absolute; right: 22px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3a55, #0b0f18 60%); }
.demo-pill { position: absolute; left: 50%; top: calc(100% - 2px); transform: translateX(-50%); padding: 1px 5px; font-size: 8px; border-radius: 4px; opacity: .9; }
.ph-status-l { flex-direction: column; gap: 0; }
.ios-batt { width: 27px; height: 13px; border-radius: 4.5px; border-color: rgba(255, 255, 255, .5); }
.ios-batt::after { top: 4px; }
.ph-home { position: absolute; z-index: 95; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: rgba(255, 255, 255, .85); pointer-events: none; }
.tabbar { bottom: 26px; }
.cam-gold-cta { bottom: 92px; }

/* Trên điện thoại thật: dùng thanh trạng thái thật của máy, không vẽ khung giả */
@media (max-width: 480px) {
    :root { --sb: max(12px, env(safe-area-inset-top)); }
    .phone { width: 100%; height: 100%; border-radius: 0; padding: 0; box-shadow: none; background: #0b0b0c; }
    .phone::before, .ph-key, .ph-status, .ph-home { display: none; }
    .ph-screen { border-radius: 0; }
    .tabbar { bottom: max(18px, env(safe-area-inset-bottom)); }
    .cam-gold-cta { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 66px); }
}
@media (max-height: 760px) and (min-width: 481px) { .ph-key { transform: scaleY(.85); } }

/* ---------- Quay video: viền vàng chạy quanh khung ảnh ---------- */
.vf-ring { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; }
.vf-ring path { fill: none; vector-effect: non-scaling-stroke; stroke-width: 8; stroke-linejoin: round; }
.vf-ring-track { stroke: rgba(255, 255, 255, .16); }
.vf-ring-bar { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset .1s linear; filter: drop-shadow(0 0 6px rgba(251, 191, 36, .85)); }
.viewfinder.is-rec { box-shadow: 0 0 0 1px rgba(251, 191, 36, .25), 0 0 40px -6px rgba(251, 191, 36, .45); }
.fx-group.gold { margin-top: 4px; }
/* Nhãn DEMO nằm gọn trong Dynamic Island, không đè nút */
.ph-status .demo-pill { display: none; }
.ph-island::before { content: 'DEMO'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-family: -apple-system, 'SF Pro Text', 'Segoe UI', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--gold); }
/* Đang quay: ẩn chữ thừa trên khung */
.viewfinder.is-rec .cam-cta, .viewfinder.is-rec .vf-sample-tag { opacity: 0; pointer-events: none; }

/* ---------- Gói VIP Filter (filter chỉ có ở gói này) ---------- */
.vip-card { display: block; width: calc(100% - 4px); margin: 18px 2px 4px; padding: 16px; border-radius: 22px; text-align: left; background: linear-gradient(135deg, rgba(167, 139, 250, .22), rgba(236, 72, 153, .12)); border: 1px solid rgba(196, 181, 253, .35); }
.vip-card .vc-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: linear-gradient(135deg, #a78bfa, #ec4899); color: #fff; font-size: 10.5px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.vip-card b { display: block; margin-top: 8px; font-size: 16px; font-weight: 800; color: #f5f3ff; }
.vip-card small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: #c4b5fd; }
.vip-card .vc-go { margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: #fde68a; }
.gh-sub b { color: #c4b5fd; }
.fx-note b { color: #c4b5fd; }
#shUpsell.is-vip .up-badge { background: linear-gradient(135deg, #a78bfa, #ec4899); color: #fff; }
#shUpsell.is-vip .up-hero { background: linear-gradient(160deg, #c4b5fd, #7c3aed); box-shadow: 0 16px 40px -14px rgba(139, 92, 246, .7); }
.fx-group.gold { background: linear-gradient(135deg, rgba(167, 139, 250, .18), rgba(236, 72, 153, .06)); border-color: rgba(196, 181, 253, .35); }
.fx-group.gold b { color: #ddd6fe; }
