/* Bản 18.9 - Trang link bio (hồ sơ công khai). Chủ ý 1 giao diện / chủ đề do streamer chọn (không theo sáng/tối của site).
   Chủ đề: .lb-t-vie | neon | gold | violet | forest | light - màu nhấn qua --ac. */
:root { color-scheme: dark; }
.lb-body { --bg: #0b0a0d; --card: rgba(255, 255, 255, .06); --line: rgba(255, 255, 255, .12); --fg: #f4f0f2; --muted: #a8a0ab; --ac: #e6141f;
    margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5;
    -webkit-tap-highlight-color: transparent; }
.lb-t-neon { --bg: #071315; } .lb-t-gold { --bg: #120e06; } .lb-t-violet { --bg: #0e0a18; } .lb-t-forest { --bg: #06130b; }
.lb-t-light { --bg: #f6f4f2; --card: #fff; --line: rgba(20, 10, 15, .1); --fg: #1d1418; --muted: #6b6168; color-scheme: light; }
.lb-body * { box-sizing: border-box; }
.lb-bgblur { position: fixed; inset: -40px; background: center / cover no-repeat; filter: blur(40px) saturate(1.2); opacity: .35; z-index: 0; pointer-events: none; }
.lb-t-light .lb-bgblur { opacity: .25; }
.lb-preview { position: sticky; top: 0; z-index: 5; padding: 9px 16px; padding-top: calc(9px + env(safe-area-inset-top, 0px)); background: #f5c451; color: #2a1d00; font-size: 13px; font-weight: 600; text-align: center; }
.lb-preview a { color: #2a1d00; }
.lb { position: relative; z-index: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 0 16px calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; }
.lb-head { display: grid; justify-items: center; text-align: center; gap: 4px; }
.lb-cover { width: calc(100% + 32px); margin: 0 -16px; height: 150px; background: radial-gradient(120% 140% at 20% 0%, color-mix(in srgb, var(--ac) 55%, transparent), transparent 60%), linear-gradient(135deg, color-mix(in srgb, var(--ac) 30%, var(--bg)), var(--bg)); background-size: cover; background-position: center; border-radius: 0 0 26px 26px; }
@media (min-width: 520px) { .lb { padding-top: 18px; } .lb-cover { width: 100%; margin: 0; border-radius: 22px; } }
.lb-av-wrap { position: relative; margin-top: -54px; border-radius: 50%; padding: 4px; background: var(--bg); }
.lb-av-wrap.is-live { background: conic-gradient(from 0deg, var(--ac), #ff8a3d, var(--ac)); animation: lbSpin 3s linear infinite; }
.lb-av-wrap.is-live .lb-av { animation: lbSpin 3s linear infinite reverse; }
@keyframes lbSpin { to { transform: rotate(360deg); } }
.lb-av { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; object-fit: cover; font-size: 40px; font-weight: 800; color: #fff; border: 3px solid var(--bg); }
.lb-live-tag { position: absolute; left: 50%; bottom: -6px; translate: -50% 0; padding: 1px 9px; border-radius: 6px; background: var(--ac); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; border: 2px solid var(--bg); }
.lb-name { margin: 8px 0 0; font-size: 24px; font-weight: 800; line-height: 1.2; display: inline-flex; align-items: center; gap: 6px; text-wrap: balance; }
.lb-verified { display: inline-grid; flex: none; line-height: 0; } .lb-verified svg { display: block; overflow: visible; }
.lb-user { margin: 0; color: var(--muted); font-size: 14px; }
.lb-role { font-weight: 700; }
.lb-headline { margin: 6px 0 0; font-weight: 700; }
.lb-bio { margin: 2px 0 0; color: var(--muted); max-width: 40ch; overflow-wrap: anywhere; }
.lb-livebar { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 16px; border-radius: 999px; background: color-mix(in srgb, var(--ac) 18%, transparent); border: 1px solid var(--ac); color: var(--fg); font-weight: 700; text-decoration: none; }
.lb-livebar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 0 var(--ac); animation: lbPing 1.6s infinite; }
@keyframes lbPing { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.lb-links { display: grid; gap: 10px; }
.lb-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 48px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--fg); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .12s, border-color .15s, background .15s; position: relative; }
.lb-btn svg { position: absolute; left: 18px; }
.lb-btn:hover { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 10%, var(--card)); }
.lb-btn:active { transform: scale(.985); }
.lb-btn:focus-visible, .lb-mini:focus-visible, .lb-amounts button:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.lb-btn-tiktok svg { color: #25f4ee; } .lb-btn-youtube svg { color: #ff3b3b; } .lb-btn-facebook svg { color: #4b8bff; }
.lb-btn-solid { background: var(--ac); border-color: var(--ac); color: #fff; }
.lb-t-gold .lb-btn-solid, .lb-t-neon .lb-btn-solid, .lb-t-forest .lb-btn-solid { color: #0b0a0d; }
.lb-btn-solid:hover { background: var(--ac); filter: brightness(1.08); }
.lb-btn-ghost { background: transparent; }
.lb-btn-momo svg { color: #d82d8b; }
.lb-card { padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lb-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 17px; }
.lb-card h2 svg { color: var(--ac); }
.lb-card h2 small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.lb-donate { display: grid; gap: 12px; }
.lb-donate h2 { margin-bottom: 0; }
.lb-vq { display: grid; gap: 12px; justify-items: center; }
.lb-qrbox { position: relative; width: min(260px, 72vw); aspect-ratio: 1; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.lb-qrbox canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.lb-qrlogo { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; translate: -50% -50%; border-radius: 6px; background: #fff; padding: 2px; }
.lb-amounts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.lb-amounts button { min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; font-variant-numeric: tabular-nums; }
.lb-amounts button.on { background: var(--ac); border-color: var(--ac); color: #fff; }
.lb-t-gold .lb-amounts button.on, .lb-t-neon .lb-amounts button.on, .lb-t-forest .lb-amounts button.on { color: #0b0a0d; }
.lb-acct { width: 100%; margin: 0; display: grid; gap: 6px; }
.lb-acct div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--fg) 5%, transparent); }
.lb-acct dt { color: var(--muted); font-size: 13px; }
.lb-acct dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.lb-acct b { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.lb-mini { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 10px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: none; }
.lb-qrimg { margin: 0; display: grid; justify-items: center; gap: 8px; }
.lb-qrimg figcaption { color: var(--muted); font-size: 13px; }
.lb-qrimg img { width: min(260px, 72vw); border-radius: 16px; background: #fff; }
.lb-note { margin: 0; color: var(--muted); font-size: 12.5px; text-align: center; }
.lb-beta { padding: 8px 10px; border-radius: 10px; border: 1px dashed #f5c451; color: #f5c451; }
.lb-t-light .lb-beta { color: #8a5a00; border-color: #c08a00; }
.lb-sched { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lb-sched li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 12px; border-radius: 12px; font-variant-numeric: tabular-nums; }
.lb-sched li.is-off { color: var(--muted); }
.lb-sched li.is-today { background: color-mix(in srgb, var(--ac) 16%, transparent); border: 1px solid color-mix(in srgb, var(--ac) 50%, transparent); }
.lb-sched em { grid-column: 1 / -1; color: var(--muted); font-style: normal; font-size: 12.5px; }
.lb-gids { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb-gids li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--fg) 5%, transparent); }
.lb-gids span { color: var(--muted); font-size: 13px; min-width: 90px; }
.lb-gids code { font-size: 13px; }
.lb-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--bc) 60%, transparent); background: color-mix(in srgb, var(--bc) 14%, transparent); font-size: 13px; font-weight: 600; }
.lb-badge img { width: 18px; height: 18px; object-fit: contain; }
.lb-foot { display: grid; gap: 10px; justify-items: center; padding-top: 4px; text-align: center; }
.lb-foot .lb-btn { width: 100%; }
.lb-join { color: var(--fg); font-size: 14px; text-decoration: none; padding: 10px 14px; border-radius: 14px; border: 1px dashed var(--line); }
.lb-join b { color: var(--ac); }
.lb-brand { color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.lb-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 9; max-width: 90vw; padding: 10px 16px; border-radius: 14px; background: #1f1b26; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); text-align: center; }
@media (prefers-reduced-motion: reduce) { .lb-av-wrap.is-live, .lb-av-wrap.is-live .lb-av, .lb-livebar i { animation: none; } }
/* Bản 19.1 - V-Doc: nút trong link bio + trang fan donate.php (cùng chủ đề màu của link bio) */
/* Bản 20.4 - nút V-Doc làm nổi bật hẳn (hero) để fan bấm đúng chỗ, không nhầm với QR chuyển khoản thường bên dưới. */
.lb-btn-live { background: linear-gradient(135deg, var(--ac), color-mix(in srgb, var(--ac) 55%, #000)); border: 2px solid color-mix(in srgb, var(--ac) 70%, #fff); color: #fff; flex-direction: column; gap: 3px; min-height: 76px; padding: 16px 20px; border-radius: 18px; box-shadow: 0 10px 28px color-mix(in srgb, var(--ac) 40%, transparent); animation: lbLivePulse 2.2s ease-in-out infinite; }
.lb-btn-live svg { position: static; width: 24px; height: 24px; }
.lb-btn-live span { text-align: center; font-size: 18px; font-weight: 800; letter-spacing: .2px; }
.lb-btn-live small { font-weight: 500; font-size: 13px; opacity: .92; text-align: center; }
.lb-btn-live:hover { background: linear-gradient(135deg, var(--ac), color-mix(in srgb, var(--ac) 55%, #000)); filter: brightness(1.08); transform: translateY(-1px); }
@keyframes lbLivePulse { 0%, 100% { box-shadow: 0 10px 28px color-mix(in srgb, var(--ac) 40%, transparent); } 50% { box-shadow: 0 10px 34px color-mix(in srgb, var(--ac) 62%, transparent); } }
@media (prefers-reduced-motion: reduce) { .lb-btn-live { animation: none; } }
/* Khối chuyển khoản thường = lựa chọn phụ, thụt vào cho fan thấy rõ nó không đọc lời nhắn. */
.lb-donate .lb-note + .lb-vq { opacity: .96; }
.lb-donate > .lb-note:first-of-type { margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.dn-form { display: grid; gap: 8px; }
.dn-l { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.dn-l small { font-weight: 500; font-variant-numeric: tabular-nums; }
.dn-in { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 5%, transparent); color: var(--fg); font: inherit; font-size: 16px; }
.dn-in:focus { outline: 2px solid var(--ac); outline-offset: 1px; border-color: transparent; }
textarea.dn-in { resize: vertical; min-height: 84px; }
.dn-amount { font-weight: 800; font-size: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.dn-amts { margin-bottom: 2px; }
.dn-form .lb-btn { margin-top: 6px; }
.dn-err { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(230, 20, 31, .14); border: 1px solid rgba(230, 20, 31, .5); font-size: 14px; }
.dn-empty { margin: 0 0 12px; text-align: center; color: var(--muted); }
.dn-pay { display: grid; gap: 12px; }
.dn-pay h2 { justify-content: center; }
.dn-code { border: 1px dashed var(--ac); }
.dn-code b { color: var(--ac); font-size: 17px; letter-spacing: .06em; }
.dn-state { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--fg) 6%, transparent); font-weight: 700; }
.dn-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ac); animation: dnSpin .9s linear infinite; }
@keyframes dnSpin { to { transform: rotate(360deg); } }
.dn-new { justify-self: center; }
.dn-done { display: grid; gap: 10px; justify-items: center; text-align: center; }
.dn-done h2 { justify-content: center; margin: 0; }
.dn-tick { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; }
.dn .lb-foot { grid-auto-flow: row; }
@media (prefers-reduced-motion: reduce) { .dn-spin { animation: none; } }

/* 21.0 - Bảng vàng fan (gửi từ app Vie Studio) */
.lb-fanboard h2 small { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.lb-fb-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: auto; gap: 4px; margin: 0 0 10px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 6%, transparent); }
.lb-fb-tabs button { min-width: 0; padding: 6px 2px; white-space: nowrap; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.lb-fb-tabs button[aria-selected="true"] { background: var(--ac); border-color: var(--ac); color: #fff; }
.lb-fb-tabs button:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.lb-fanboard [hidden] { display: none !important; } /* 23/10: thẻ ẩn bị display:grid đè → cả 4 bảng xổ dài */
.lb-fb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb-fb-list li { display: grid; grid-template-columns: 26px 34px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; background: color-mix(in srgb, var(--fg) 4%, transparent); }
.lb-fb-list li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.lb-fb-list li em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: color-mix(in srgb, var(--ac) 18%, transparent); color: var(--fg); }
.lb-fb-rk { font-weight: 800; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.lb-fb-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--ac) 30%, var(--bg)); color: #fff; font-weight: 800; }
.lb-fb-v { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--fg); white-space: nowrap; }
.lb-fb-list li.r1 { background: linear-gradient(90deg, rgba(245, 196, 81, .22), transparent); } .lb-fb-list li.r1 .lb-fb-rk { color: #f5c451; }
.lb-fb-list li.r2 .lb-fb-rk { color: #cfd6de; } .lb-fb-list li.r3 .lb-fb-rk { color: #e09a5f; }
.lb-fb-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); } .lb-fb-note a { color: inherit; }
@media (max-width: 420px) { .lb-fb-tabs button { font-size: 12px; } }
@media (max-width: 380px) { .lb-fb-list li { grid-template-columns: 22px 30px minmax(0, 1fr) auto; } .lb-fb-list li em { display: none; } }
