/* =====================================================================
   VTPay — giao diện "Pay": ví thanh toán nền đen xanh, chữ trắng, xanh hành động, xanh tiền.
   Nạp SAU CÙNG trên mọi trang (sau style.css, sticker.css, theme-dark.css). Mặc định TỐI (theme.js);
   người dùng vẫn chuyển sang sáng được. Overlay OBS không nạp tệp này.
   Luật màu: --orange (giữ tên biến cũ) = xanh hành động/tín hiệu; --cobalt = xanh tiền; --ink = chữ.
   ===================================================================== */

:root {
  color-scheme: light;
  --ground: #F3F6FD;
  --plate: #FFFFFF;
  --plate-2: #E7ECF8;
  --slot: #FFFFFF;
  --line: #D2DAEC;
  --ink: #0A1024;
  --ink-2: #2E3A57;
  --ink-3: #56627F;
  --surface: #FFFFFF;
  --panel: #0A1024;
  --on-ink: #FFFFFF;
  --orange: #1F5BFF;
  --orange-deep: #1747D1;
  --orange-face: #1A4FE0;
  --cobalt: #0B7FD0;
  --led-amber: #6FB2FF;
  --led-blue: #59D5FF;
  --on-accent: #FFFFFF;
  --accent-glow: rgba(31, 91, 255, 0.28);
  --pay-radius: 18px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #05070D;
  --plate: #0B1020;
  --plate-2: #131A2E;
  --slot: #070B16;
  --line: #1E2942;
  --ink: #F3F6FF;
  --ink-2: #B7C2DD;
  --ink-3: #8693B3;
  --surface: #0E1426;
  --panel: #03050A;
  --on-ink: #05070D;
  --orange: #2F6BFF;
  --orange-deep: #8DB0FF;
  --orange-face: #2458E6;
  --cobalt: #3CC8FF;
  --accent-glow: rgba(47, 107, 255, 0.4);
}

/* Vùng "vốn tối" của giao diện cũ (chân trang, CTA, khung hướng dẫn...) từng bị ép về bảng sáng trong chế độ tối: trả lại bảng tối. */
:root[data-theme="dark"] .foot, :root[data-theme="dark"] .secret-box, :root[data-theme="dark"] .result,
:root[data-theme="dark"] .led-chip, :root[data-theme="dark"] .cta, :root[data-theme="dark"] .guide-stage {
  --plate: #0B1020; --plate-2: #131A2E; --line: #1E2942; --surface: #0E1426;
  --ink: #F3F6FF; --ink-2: #B7C2DD; --ink-3: #8693B3; --cobalt: #3CC8FF; --orange-deep: #8DB0FF;
}

/* ---------- Nền: html giữ màu nền, body trong suốt để lưới sóng (bg-wave.js) hiện phía sau ---------- */
html { background: var(--ground); scrollbar-color: #2A3756 var(--ground); }
body, .theme-sticker, .theme-sticker.page-auth, .theme-sticker.donate-page { background: transparent; }
.vtp-bg { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; display: block; }
::selection { background: var(--orange); color: #fff; }
:root[data-theme="dark"] ::selection { color: #fff; }

/* ---------- Bảng màu sticker cũ → các sắc navy của ví ---------- */
.theme-sticker {
  --stk-ink: var(--ink);
  --stk-paper: transparent;
  --stk-sky: transparent;
  --stk-mist: transparent;
  --stk-lav: var(--plate);
  --stk-mint: var(--plate-2);
  --stk-sun: var(--orange);
  --stk-blue: var(--orange);
  --stk-violet: var(--cobalt);
  --stk-line: 1px solid var(--line);
}
:root[data-theme="dark"] .theme-sticker {
  --stk-ink: var(--ink); --stk-paper: transparent; --stk-sky: transparent; --stk-mist: transparent;
  --stk-lav: var(--plate); --stk-mint: var(--plate-2); --stk-blue: var(--orange); --stk-violet: var(--cobalt);
  --stk-line: 1px solid var(--line);
}
/* Sticker trang trí và ruy băng pastel không thuộc thế giới ví. */
.stk-layer, .stk-ribbon { display: none !important; }

/* ---------- Nút: viên thuốc; nút chính xanh chữ trắng, có quầng sáng nhẹ khi rê chuột ---------- */
.btn { border-radius: 999px; }
.btn-primary, .theme-sticker .btn-primary,
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .theme-sticker .btn-primary {
  background: var(--orange); color: var(--on-accent); border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 24px -12px var(--accent-glow);
}
.btn-primary:hover, .theme-sticker .btn-primary:hover,
:root[data-theme="dark"] .btn-primary:hover, :root[data-theme="dark"] .theme-sticker .btn-primary:hover {
  background: #4A80FF; color: #fff; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 16px 30px -12px var(--accent-glow);
}
.btn-primary:active, .theme-sticker .btn-primary:active { transform: translateY(1px); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3); }
.theme-sticker .btn-ink, :root[data-theme="dark"] .theme-sticker .btn-ink { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.theme-sticker .btn-ink:hover, :root[data-theme="dark"] .theme-sticker .btn-ink:hover { background: var(--orange); color: #fff; transform: translateY(-2px); }
.btn-outline, .theme-sticker .btn-outline { background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line); border: 0; color: var(--ink); }
.btn-outline:hover, .theme-sticker .btn-outline:hover,
:root[data-theme="dark"] .theme-sticker .btn-outline:hover { background: var(--plate-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--orange); transform: translateY(-2px); }
.theme-sticker .btn-federated:hover, :root[data-theme="dark"] .theme-sticker .btn-federated:hover { background: var(--plate-2); color: var(--ink); }
.motion-toggle, .icon-btn, .theme-sticker .motion-toggle, .theme-sticker .icon-btn {
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); box-shadow: none; color: var(--ink);
}
:root[data-theme="dark"] .btn-ink:hover, :root[data-theme="dark"] .motion-toggle:hover { background: var(--plate-2); color: var(--ink); }
:focus-visible { outline-color: var(--orange); }

/* ---------- Thanh đầu trang: kính tối mảnh khi cuộn ---------- */
.bar { background: transparent; }
.bar.is-scrolled, .theme-sticker .bar.is-scrolled { background: transparent; box-shadow: none; }
.bar.is-scrolled .bar-inner, .theme-sticker .bar.is-scrolled .bar-inner,
:root[data-theme="dark"] .theme-sticker .bar.is-scrolled .bar-inner {
  background: color-mix(in srgb, var(--ground) 78%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 999px; padding-inline: 18px; margin-top: 8px; min-height: 60px;
}

/* ---------- Khối, thẻ, ô nhập: mặt navy, đường mảnh, bo 18–28px ---------- */
.theme-sticker .hero, .theme-sticker .mech, .theme-sticker .compare, .theme-sticker .guide, .theme-sticker .cta { background: transparent; border-color: var(--line); }
.theme-sticker .diagram, :root[data-theme="dark"] .diagram { background: color-mix(in srgb, var(--plate) 88%, transparent); border: 1px solid var(--line); box-shadow: none; }
.theme-sticker .lane-wallet { background: color-mix(in srgb, var(--plate) 88%, transparent); border: 1px solid var(--line); }
.theme-sticker .lane-vt, :root[data-theme="dark"] .theme-sticker .lane-vt { background: color-mix(in srgb, var(--plate-2) 92%, transparent); border: 1px solid var(--orange); --cobalt: #3CC8FF; --ink-3: var(--ink-3); --ink-2: var(--ink-2); }
.theme-sticker .lane-vt .step > div > span, :root[data-theme="dark"] .theme-sticker .lane-vt .step > div > span { color: var(--ink-3); }
.theme-sticker .guide-step.is-active { background: var(--plate); border: 1px solid var(--line); }
.theme-sticker .guide-step.is-active .guide-num, :root[data-theme="dark"] .theme-sticker .guide-step.is-active .guide-num { background: var(--orange); color: #fff; }
.theme-sticker .spec-key { background: var(--plate); border: 1px solid var(--line); }
.theme-sticker .spec.is-active .spec-key, .theme-sticker .spec:nth-child(n).is-active .spec-key,
:root[data-theme="dark"] .theme-sticker .spec:nth-child(n).is-active .spec-key { background: var(--orange); color: #fff; }
.theme-sticker .username-field { background: var(--slot); border: 1px solid var(--line); }
.theme-sticker .foot-label { border: 1px solid var(--line); }
.theme-sticker .auth-plate, .auth-plate { background: color-mix(in srgb, var(--plate) 92%, transparent); border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.7); }
.form-field input, .form-field select, .form-field textarea,
.theme-sticker .form-field input, .theme-sticker .form-field select, .theme-sticker .form-field textarea { background: var(--slot); border: 1px solid var(--line); box-shadow: none; color: var(--ink); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus,
.theme-sticker .form-field input:focus, .theme-sticker .form-field select:focus, .theme-sticker .form-field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.theme-sticker .h2 .under { color: var(--cobalt); }
.foot { background: color-mix(in srgb, var(--panel) 90%, transparent); border-top: 1px solid var(--line); }

/* Trang donate công khai */
.theme-sticker .vp-hero, .theme-sticker .vp .auth-plate, .theme-sticker .vp-card, .theme-sticker .vp-dialog { background: color-mix(in srgb, var(--plate) 94%, transparent); border: 1px solid var(--line); }
.theme-sticker .vp-tabs, .theme-sticker .vp-seg { background: var(--slot); border: 1px solid var(--line); }
.theme-sticker .vp-tab[aria-selected="true"], .theme-sticker .vp-seg button[aria-pressed="true"] { background: var(--orange); color: #fff; }
.theme-sticker .amount-preset { background: var(--slot); border: 1px solid var(--line); color: var(--ink); }
.theme-sticker .amount-preset:hover, .theme-sticker .amount-preset[aria-pressed="true"], .theme-sticker .amount-preset.is-active,
:root[data-theme="dark"] .theme-sticker .amount-preset:hover, :root[data-theme="dark"] .theme-sticker .amount-preset[aria-pressed="true"], :root[data-theme="dark"] .theme-sticker .amount-preset.is-active { background: var(--orange); color: #fff; border-color: var(--orange); }
.theme-sticker .vp-goal { background: var(--plate-2); border: 1px solid var(--line); }
.theme-sticker .vp-goal-bar, :root[data-theme="dark"] .theme-sticker .vp-goal-bar { background: var(--slot); border: 1px solid var(--line); }
.theme-sticker .vp-goal-bar i { background: linear-gradient(90deg, var(--orange), var(--cobalt)); }
.theme-sticker .vp-bubble { background: var(--plate-2); border: 1px solid var(--line); }

/* Trang quản lý: thẻ nổi nhẹ trên lưới sóng */
.dash-main .settings-card, .dash-main .pe-card, .pe-card, .dash-card { background: color-mix(in srgb, var(--plate) 94%, transparent); border-color: var(--line); }

/* Chip "5 GIÂY" trong tiêu đề: viên xanh đặc chữ trắng thay kính nước */
.hero-title .led-chip, .theme-sticker .hero-title .led-chip, :root[data-theme="dark"] .led-chip {
  background: var(--orange); color: #fff; border: 0; text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 18px 40px -18px var(--accent-glow);
  -webkit-text-fill-color: #fff;
}

/* ======================= Điện thoại demo ở trang chủ ======================= */
.pd-stage { position: relative; display: grid; place-items: center; padding: clamp(10px, 2vw, 24px) 0 clamp(20px, 3vw, 40px); }
.pd-phone {
  --pd-h: min(700px, 82svh); position: relative; height: var(--pd-h); aspect-ratio: 9 / 19.2; border-radius: calc(var(--pd-h) * 0.075);
  padding: calc(var(--pd-h) * 0.016); background: linear-gradient(160deg, #2A3247, #0B0F1A 40%, #1A2133);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 60px 90px -50px rgba(0, 0, 0, 0.9), 0 30px 80px -40px var(--accent-glow);
  animation: pd-float 7s ease-in-out infinite;
}
.pd-phone::after { content: ''; position: absolute; top: calc(var(--pd-h) * 0.03); left: 50%; width: 30%; height: calc(var(--pd-h) * 0.036); transform: translateX(-50%); border-radius: 99px; background: #000; z-index: 5; }
@keyframes pd-float { 50% { translate: 0 -10px; } }
.pd-screen { position: relative; height: 100%; border-radius: calc(var(--pd-h) * 0.062); overflow: hidden; background: #070A14; color: #EAF0FF; font-family: var(--font-text); font-size: calc(var(--pd-h) * 0.0205); line-height: 1.35; container-type: inline-size; }
.pd-status { display: flex; justify-content: space-between; align-items: center; padding: 3.4% 7% 0; font-weight: 600; font-size: 0.92em; height: 7%; }
.pd-status i { display: inline-block; width: 1.5em; height: 0.75em; border-radius: 3px; border: 1px solid #EAF0FF; position: relative; }
.pd-status i::after { content: ''; position: absolute; inset: 1.5px 30% 1.5px 1.5px; background: #EAF0FF; border-radius: 1px; }
.pd-views { position: absolute; inset: 7% 0 0; }
.pd-view { position: absolute; inset: 0; padding: 0 5.5% 5%; display: flex; flex-direction: column; gap: 0.7em; transition: transform 0.6s var(--ease-out), opacity 0.45s; }
.pd-view.is-off { opacity: 0; transform: translateX(14%); pointer-events: none; }
.pd-view.is-left { opacity: 0; transform: translateX(-14%); }
.pd-cover { height: 15%; margin: 0 -6.5%; flex: none; background: radial-gradient(120% 140% at 80% 0%, #2F6BFF 0%, #102660 45%, #070A14 80%); position: relative; }
.pd-cover::after { content: 'Trang mẫu'; position: absolute; right: 6%; top: 14%; font-size: 0.72em; font-weight: 600; letter-spacing: 0.04em; padding: 0.2em 0.7em; border-radius: 99px; background: rgba(5, 7, 13, 0.55); color: #B7C2DD; }
.pd-prof { display: flex; align-items: center; gap: 0.7em; margin-top: -9%; position: relative; }
.pd-ava { width: 3.4em; height: 3.4em; border-radius: 50%; border: 3px solid #070A14; background: linear-gradient(135deg, #3CC8FF, #2F6BFF); display: grid; place-items: center; font: 800 1.3em/1 var(--font-display); color: #fff; flex: none; }
.pd-prof b { display: block; font-size: 1.12em; margin-top: 1.1em; }
.pd-prof small { color: #8693B3; font-size: 0.82em; }
.pd-tabs, .pd-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.3em; padding: 0.25em; border-radius: 99px; background: #0E1426; border: 1px solid #1E2942; font-size: 0.86em; font-weight: 600; }
.pd-tabs span, .pd-seg span { text-align: center; padding: 0.45em 0; border-radius: 99px; color: #8693B3; transition: background 0.3s, color 0.3s; }
.pd-tabs span.is-on, .pd-seg span.is-on { background: #2F6BFF; color: #fff; }
.pd-seg { width: 58%; }
.pd-label { font-size: 0.78em; color: #8693B3; font-weight: 600; }
.pd-amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4em; }
.pd-amts span { text-align: center; padding: 0.55em 0; border-radius: 0.8em; background: #0E1426; border: 1px solid #1E2942; font-weight: 700; font-size: 0.9em; font-variant-numeric: tabular-nums; transition: background 0.25s, border-color 0.25s, transform 0.25s; }
.pd-amts span.is-on { background: #2F6BFF; border-color: #2F6BFF; color: #fff; transform: scale(1.04); }
.pd-field { padding: 0.6em 0.8em; border-radius: 0.8em; background: #0B1020; border: 1px solid #1E2942; min-height: 2.6em; font-size: 0.9em; color: #EAF0FF; }
.pd-field.is-typing::after { content: ''; display: inline-block; width: 1.5px; height: 1em; background: #3CC8FF; vertical-align: -0.15em; margin-left: 1px; animation: pd-caret 0.8s steps(1) infinite; }
@keyframes pd-caret { 50% { opacity: 0; } }
.pd-unlocks { display: grid; gap: 0.35em; }
.pd-unlock { display: flex; align-items: center; gap: 0.6em; padding: 0.45em 0.7em; border-radius: 0.8em; background: #0B1020; border: 1px solid #1E2942; font-size: 0.84em; color: #8693B3; transition: border-color 0.35s, color 0.35s, background 0.35s; }
.pd-unlock svg { width: 1.2em; height: 1.2em; flex: none; }
.pd-unlock .pd-ok { display: none; }
.pd-unlock em { margin-left: auto; font-style: normal; font-size: 0.86em; font-variant-numeric: tabular-nums; }
.pd-unlock.is-open { color: #EAF0FF; border-color: rgba(60, 200, 255, 0.5); background: rgba(60, 200, 255, 0.08); }
.pd-unlock.is-open .pd-lock { display: none; }
.pd-unlock.is-open .pd-ok { display: block; color: #3CC8FF; }
.pd-unlock.is-pop { animation: pd-pop 0.6s var(--ease-out); }
@keyframes pd-pop { 30% { transform: scale(1.05); box-shadow: 0 0 0 4px rgba(60, 200, 255, 0.18); } }
.pd-fx { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35em; opacity: 0.18; transform: translateY(4px) scale(0.97); filter: grayscale(1); transition: opacity 0.4s, transform 0.5s var(--ease-out), filter 0.4s; }
.pd-fx.is-open { opacity: 1; transform: none; filter: none; }
.pd-fx span { aspect-ratio: 1; border-radius: 0.7em; background: #0E1426 center / 82% no-repeat; border: 1px solid #1E2942; transition: border-color 0.3s, transform 0.3s; }
.pd-fx span.is-on { border-color: #3CC8FF; transform: scale(1.06); box-shadow: 0 0 0 2px rgba(60, 200, 255, 0.25); }
.pd-cta { margin-top: auto; text-align: center; padding: 0.8em; border-radius: 99px; background: #2F6BFF; color: #fff; font-weight: 700; transition: transform 0.2s; }
.pd-cta.is-press { transform: scale(0.95); background: #4A80FF; }
.pd-pay-title { font: 800 1.25em/1.2 var(--font-display); margin-top: 0.4em; }
.pd-qr { align-self: center; width: 62%; aspect-ratio: 1; border-radius: 1em; background: #fff; padding: 6%; position: relative; overflow: hidden; }
.pd-qr svg { width: 100%; height: 100%; display: block; }
.pd-qr::after { content: ''; position: absolute; left: 0; right: 0; height: 3px; top: 10%; background: #2F6BFF; box-shadow: 0 0 12px 2px rgba(47, 107, 255, 0.6); animation: pd-scan 2s ease-in-out infinite; }
@keyframes pd-scan { 50% { top: 88%; } }
.pd-rows { display: grid; gap: 0.35em; font-size: 0.86em; }
.pd-rows div { display: flex; justify-content: space-between; padding: 0.45em 0.7em; border-radius: 0.7em; background: #0B1020; border: 1px solid #1E2942; }
.pd-rows span { color: #8693B3; }
.pd-rows b { font-variant-numeric: tabular-nums; }
.pd-rows .is-money b { color: #3CC8FF; }
.pd-wait { display: flex; align-items: center; justify-content: center; gap: 0.6em; color: #8693B3; font-size: 0.88em; font-weight: 600; }
.pd-wait i { width: 1em; height: 1em; border-radius: 50%; border: 2px solid #1E2942; border-top-color: #3CC8FF; animation: pd-spin 0.8s linear infinite; }
@keyframes pd-spin { to { transform: rotate(360deg); } }
.pd-paid { display: none; flex-direction: column; align-items: center; gap: 0.5em; text-align: center; font-weight: 700; }
.pd-paid svg { width: 3.4em; height: 3.4em; color: #3CC8FF; }
.pd-view.is-paid .pd-wait, .pd-view.is-paid .pd-qr { display: none; }
.pd-view.is-paid .pd-paid { display: flex; animation: pd-pop 0.7s var(--ease-out); }
/* Thẻ thông báo bắn ra cạnh máy (giống overlay trên live) */
.pd-toast {
  position: absolute; left: -6%; bottom: 18%; display: flex; align-items: center; gap: 0.8em; padding: 0.8em 1.1em 0.8em 0.8em; border-radius: 18px;
  background: color-mix(in srgb, #0B1020 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid #1E2942;
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.9); color: #EAF0FF; font-size: 15px; z-index: 6;
  opacity: 0; transform: translate(-12px, 12px) scale(0.92); transition: opacity 0.4s, transform 0.6s var(--ease-out);
}
.pd-toast.is-on { opacity: 1; transform: none; }
.pd-toast-ico { width: 46px; height: 46px; border-radius: 14px; background: #131A2E center / 84% no-repeat; flex: none; display: grid; place-items: center; }
.pd-toast b { display: block; font-size: 1.05em; }
.pd-toast b span { color: #3CC8FF; font-variant-numeric: tabular-nums; }
.pd-toast small { color: #8693B3; }
.pd-chipfloat { position: absolute; right: -4%; top: 14%; padding: 0.55em 0.95em; border-radius: 99px; background: #2F6BFF; color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 18px 36px -16px var(--accent-glow); z-index: 6; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.6s var(--ease-out); }
.pd-chipfloat.is-on { opacity: 1; transform: none; }
.hero-stage .sticker { margin-top: 18px; }
@media (max-width: 960px) {
  .pd-phone { --pd-h: min(620px, 78svh); }
  .pd-toast { left: 0; bottom: 6%; font-size: 13px; }
  .pd-chipfloat { right: 2%; }
}
[data-motion="off"] .pd-phone, [data-motion="off"] .pd-qr::after, [data-motion="off"] .pd-wait i { animation: none; }
@media (prefers-reduced-motion: reduce) { .pd-phone, .pd-qr::after, .pd-wait i, .pd-field.is-typing::after { animation: none; } }
.pd-qr svg { color: #05070D; }
/* Khung điện thoại ôm sát máy để thẻ nổi bám cạnh máy; vừa trong một màn hình cùng thanh đầu trang. */
.hero-stage:has(.pd-stage) { margin-right: 0; padding: 0; display: grid; justify-items: center; align-content: center; }
.pd-stage { width: max-content; padding: 0; }
.pd-phone { --pd-h: min(640px, calc(100svh - 150px)); }
@media (max-width: 960px) { .pd-phone { --pd-h: min(600px, 74svh); } }
.hero-stage:has(.pd-stage) .sticker { position: static; transform: rotate(-2deg); margin: 18px 0 0; }
.cta-desc, .cta .cta-desc { color: var(--ink-2); }
.cta { color: var(--ink); }
/* Loa (giữ ở các trang ngoài trang chủ) theo bảng xanh: phím xanh nhạt chữ trắng, đèn xanh băng, lưới lỗ navy. */
.loa-key { background: #5B8CFF; color: #fff; box-shadow: inset 0 0.4cqw 0 rgba(255, 255, 255, 0.45), inset 0 -0.7cqw 0.9cqw -0.3cqw rgba(10, 30, 110, 0.45), 0 0.7cqw 1cqw -0.4cqw rgba(0, 0, 0, 0.5); }
.loa-led { background: #0B2A7A; }
.loa-led::after { background: radial-gradient(circle at 36% 30%, #FFFFFF, #BFE9FF 45%, #3CC8FF 100%); }
.loa-grille { --dot: #0A1A4A; --dot-lit: #CFE6FF; }

/* ---------- Gỡ trang phục còn sót của thế giới cũ (theo rà soát) ---------- */
/* Chip "5 GIÂY" / "100.000 VND": bỏ dải bóng kính. */
.led-chip::before, .led-chip::after { display: none !important; }
/* Số tiền kết quả: chữ đặc màu tiền, không gradient, không quầng. */
.result-amount { background: none; -webkit-text-fill-color: currentColor; color: var(--cobalt); filter: none; font-variant-numeric: tabular-nums; }
.result-unknown .result-amount { color: var(--ink-3); }
.result-note { color: var(--ink-3); }
.result { background: var(--panel); border: 1px solid var(--line); box-shadow: 0 24px 40px -30px rgba(0, 0, 0, 0.8); }
/* Ô "ví trung gian" trong sơ đồ: mặt navy viền đứt thay khối xám. */
.dgm .ghost-box { fill: var(--plate-2); stroke: var(--line); opacity: 1; }
.dgm .ln-ghost, .dgm .ghost-ic { stroke: var(--ink-3); }
/* Nhãn dán xoay chữ nén → chú thích phẳng, đường mảnh, chữ thường của thế giới ví. */
.sticker, .theme-sticker .sticker, .sticker-tape {
  transform: none !important; border-radius: 999px; background: color-mix(in srgb, var(--plate) 85%, transparent); border: 1px solid var(--line); box-shadow: none;
  font: 600 0.9rem/1.2 var(--font-text); letter-spacing: 0; text-transform: none; color: var(--ink-2); padding: 8px 14px;
}
.hero-stage:has(.pd-stage) .sticker { margin: 14px 0 0; }
/* Dòng "Hướng dẫn cho người xem": không còn là nhãn kicker, thành dòng dẫn thường. */
.guide-eyebrow { display: block; font: 500 1rem/1.5 var(--font-text); letter-spacing: 0; text-transform: none; color: var(--ink-3); margin: 0 0 10px; }
.guide-eyebrow::before { content: none; }
/* Chân trang: tiêu đề PHÁP LÝ và ô mạng xã hội đọc được trên nền tối. */
:root[data-theme="dark"] .foot-legal .foot-heading { color: var(--ink-3); }
:root[data-theme="dark"] .foot-social .key { background: var(--plate-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .foot-social .key:hover { background: var(--orange); color: #fff; }

/* ---------- Hero: kéo điện thoại về phía chữ, một chuyển động chính ---------- */
@media (min-width: 961px) {
  .hero-grid:has(.pd-stage) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-stage:has(.pd-stage) { justify-items: start; padding-left: clamp(0px, 4vw, 80px); }
}
.pd-phone { animation: none; }
/* Nhãn "Trang mẫu" trên mọi màn của điện thoại. */
.pd-cover::after { content: none; }
.pd-screen::before { content: 'Trang mẫu'; position: absolute; right: 7%; top: 9.5%; z-index: 4; font-size: 0.72em; font-weight: 600; padding: 0.2em 0.7em; border-radius: 99px; background: rgba(5, 7, 13, 0.6); color: #B7C2DD; }
/* Màn đã nhận: tiêu đề đổi, khối "đã nhận" chiếm chỗ QR, số tiền đếm lên. */
.pd-pay-title .is-paid-t { display: none; }
.pd-view.is-paid .pd-pay-title .is-wait-t { display: none; }
.pd-view.is-paid .pd-pay-title .is-paid-t { display: inline; }
.pd-paid { flex: 1; justify-content: center; }
.pd-paid strong { font: 800 2.1em/1 var(--font-display); color: #3CC8FF; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pd-paid span { color: #B7C2DD; font-weight: 600; }
.pd-screen::before { top: 3.4%; right: 17%; }
@media (min-width: 961px) { .pd-toast { left: auto; right: calc(100% - 9%); bottom: 22%; white-space: nowrap; } }
.pd-screen::before { right: 13.5%; font-size: 0.64em; padding: 0.15em 0.6em; }
@media (max-width: 640px) {
  .motion-toggle, .theme-sticker .motion-toggle, .motion-toggle.lang-toggle, .motion-toggle.theme-toggle { background: var(--plate-2); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8); }
}
.guide-head .guide-eyebrow { margin: 14px 0 0; font-weight: 600; color: var(--ink-2); }
.pd-screen::before { font-size: 0.78em; padding: 0.2em 0.7em; right: 12%; top: 3%; background: rgba(47, 107, 255, 0.22); color: #CFE0FF; }
/* Nhãn chữ hoa nhỏ trên tiêu đề (trang pháp lý, hướng dẫn SePay): dòng chú thích thường, không phải kicker. */
.lg-eyebrow, .gd-eyebrow { font: 600 0.95rem/1.4 var(--font-text) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink-3) !important; }
.lg-eyebrow::before, .gd-eyebrow::before { content: none !important; }
/* Thanh mục tiêu: một màu tiền, không pha hai sắc xanh. */
.theme-sticker .vp-goal-bar i { background: var(--cobalt); }
@media (max-width: 640px) {
  .motion-toggle { transition: opacity 0.3s, transform 0.3s var(--ease-out); }
  .pd-in-view .motion-toggle { opacity: 0; transform: translateY(12px); pointer-events: none; }
}
/* Mọi chip số trong tiêu đề (5 GIÂY, 100.000 VND), cả chế độ sáng: viên xanh đặc chữ trắng. */
.led-chip, .theme-sticker .led-chip {
  background: var(--orange); color: #fff; -webkit-text-fill-color: #fff; border: 0; text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 18px 40px -18px var(--accent-glow);
}

/* ======================= Bảng vinh danh (trang chủ, dưới điện thoại) ======================= */
.hof { position: relative; z-index: 1; margin-top: clamp(28px, 4vw, 56px); padding: clamp(18px, 2.4vw, 28px); border-radius: 28px;
  background: color-mix(in srgb, var(--plate) 88%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hof-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hof-title { margin: 0; font: 800 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--font-display); letter-spacing: -0.03em; font-stretch: 92%; color: var(--ink); }
.hof-periods { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 999px; background: var(--slot); border: 1px solid var(--line); }
.hof-periods button { appearance: none; border: 0; cursor: pointer; padding: 8px 18px; border-radius: 999px; background: transparent; color: var(--ink-3); font: 600 0.95rem/1 var(--font-text); transition: background 0.2s, color 0.2s; }
.hof-periods button:hover { color: var(--ink); }
.hof-periods button[aria-selected="true"] { background: var(--orange); color: #fff; }
.hof-periods button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.hof-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.hof-col { min-width: 0; padding: 14px; border-radius: 20px; background: var(--slot); border: 1px solid var(--line); }
.hof-col-title { margin: 2px 6px 12px; font: 700 1.05rem/1.3 var(--font-text); color: var(--ink-2); }
.hof-list { list-style: none; margin: 0; padding: 0 4px 0 0; display: grid; gap: 6px; max-height: 452px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #2A3756 transparent; }
.hof-row { display: grid; grid-template-columns: 34px 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; background: var(--plate); border: 1px solid transparent; }
.hof-row.is-top { border-color: color-mix(in srgb, var(--orange) 45%, transparent); background: color-mix(in srgb, var(--orange) 9%, var(--plate)); }
.hof-row.is-top-1 { border-color: var(--cobalt); background: color-mix(in srgb, var(--cobalt) 12%, var(--plate)); }
.hof-rank { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 0.9rem/1 var(--font-text); font-variant-numeric: tabular-nums; color: var(--ink-3); background: var(--plate-2); }
.hof-row.is-top .hof-rank { background: var(--orange); color: #fff; }
.hof-row.is-top-1 .hof-rank { background: var(--cobalt); color: #05070D; }
.hof-ava { position: relative; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #3CC8FF, #2F6BFF); }
.hof-ava i { font: 800 1rem/1 var(--font-display); font-style: normal; color: #fff; }
.hof-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hof-who { min-width: 0; display: grid; gap: 2px; color: var(--ink); text-decoration: none; }
a.hof-who:hover .hof-name { color: var(--cobalt); }
.hof-name { display: flex; align-items: center; gap: 6px; font: 700 0.98rem/1.25 var(--font-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hof-verified { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--orange); color: #fff; }
.hof-verified svg { width: 11px; height: 11px; }
.hof-who small { color: var(--ink-3); font-size: 0.82rem; }
.hof-total { font: 800 1rem/1 var(--font-text); font-variant-numeric: tabular-nums; color: var(--cobalt); white-space: nowrap; }
.hof-empty { padding: 28px 12px; text-align: center; color: var(--ink-3); font-size: 0.95rem; }
.hof-col.is-loading .hof-list::after { content: ''; display: block; width: 22px; height: 22px; margin: 12px auto; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--cobalt); animation: pd-spin 0.8s linear infinite; }
@media (max-width: 760px) {
  .hof-cols { grid-template-columns: minmax(0, 1fr); }
  .hof-list { max-height: 380px; }
  .hof-row { grid-template-columns: 28px 36px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; }
  .hof-ava { width: 36px; height: 36px; }
}
[data-motion="off"] .hof-col.is-loading .hof-list::after { animation: none; }
/* Hero có bảng vinh danh: xếp dọc (hàng 1 chữ + điện thoại, hàng 2 bảng vinh danh trải hết bề ngang). */
.hero:has(.hof) { flex-direction: column; align-items: stretch; justify-content: center; }
.hero:has(.hof) > .wrap { width: 100%; }
/* Điện thoại: menu thả xuống (tài khoản, tin nhắn, thông báo) cố định dưới thanh đầu trang, cách đều 2 mép, không tràn khỏi màn hình. */
@media (max-width: 640px) {
  .dropdown-panel, .dropdown-panel.acct-panel {
    position: fixed; top: 72px; left: 12px; right: 12px; width: auto; max-height: calc(100svh - 88px); overflow-y: auto; overscroll-behavior: contain;
    transform-origin: top center;
  }
}
/* Trang donate: nút Lời nhắn / Ghi âm (và VND / USD) đang chọn là viên xanh chữ trắng; khung tên hiển thị không lấn mép phải khi tên dài. */
.cur-opt { color: var(--ink-2); }
.cur-opt.is-active { background: var(--orange); color: #fff; }
.cur-opt:focus-visible { outline-color: var(--orange); }
.msg-mode { margin: 4px 0 14px; }
.donor-name-row { min-width: 0; max-width: 100%; }
.donor-name-row strong { flex: 1 1 auto; }
#donateForm .form-field { min-width: 0; }
/* Trang donate (chủ dự án 2026-10-16): "Thay đổi" cạnh tiêu đề Tên hiển thị; chữ tiêu đề và nút trong khung donate còn 2/3.
   Chữ trong ô nhập giữ 16px (dưới 16px iPhone tự phóng to trang khi chạm vào ô). */
.donor-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.donor-label-row .donor-label { margin: 0; }
.donor-label-row .donor-name-change { font-size: calc(16px * 2 / 3); font-weight: 600; }
.vp-tab { font-size: calc(14.4px * 2 / 3); }
#donateForm .form-field > label, #donateForm .donor-label, .rec-head strong, .wow-box-head strong { font-size: calc(14.72px * 2 / 3); }
#donateForm .donor-label, #donateForm .form-field > label { letter-spacing: 0.01em; }
.rec-head strong, .wow-box-head strong { font-size: calc(16px * 2 / 3); }
.donor-anon { font-size: calc(14.72px * 2 / 3); }
.cur-opt { font-size: calc(16px * 2 / 3); }
.amount-preset { font-size: calc(15px * 2 / 3); }
#donateForm .btn-submit { font-size: calc(16px * 2 / 3); }
#recStart, #recStop, #recDelete { font-size: calc(14px * 2 / 3); }
.donor-name-row strong { font-size: calc(16px * 2 / 3); }
/* "Thay đổi" sát ngay sau "Tên hiển thị"; chữ "Ẩn Danh" thẳng hàng giữa với ô tích. */
.donor-label-row { justify-content: flex-start; gap: 10px; align-items: center; }
.donor-anon { display: inline-flex !important; align-items: center; gap: 8px; line-height: 1; margin-top: 10px; }
.donor-anon input { margin: 0; flex: none; }
.donor-anon span { line-height: 1.2; }
/* Khung mục tiêu riêng trên trang donate (không còn nằm trong form). */
.vp-goal-card { padding: 18px; }
.vp-goal-card .vp-goal { margin: 0; padding: 0; background: none; box-shadow: none; border: 0; }
/* Khung mục tiêu trang donate: mẫu streamer chọn, căn giữa, co theo bề ngang khung (không phóng to quá cỡ gốc). */
.vp-goal-card { padding: 18px; overflow: hidden; }
.vp-goal-stage { position: relative; width: 100%; }
.vp-goal-fit { position: absolute; left: 50%; top: 0; width: max-content; transform-origin: top center; translate: -50% 0; }
.vp-goal-card, .theme-sticker .vp-goal-card { background: none !important; border: 0 !important; box-shadow: none !important; padding: 4px 0 !important; backdrop-filter: none; }
/* Ảnh đại diện tách nền (PNG/WebP trong suốt): không tô nền màu phía sau, để lộ nền web thật. Ô chỉ có chữ cái vẫn giữ nền màu. */
img.dash-avatar, img.acct-avatar, img.avatar-preview, .avatar-preview,
.vp-avatar img, .creator-avatar img, .hof-ava img, .msg-ava img, .vp-ava img { background: transparent !important; }
img.dash-avatar, img.acct-avatar, img.avatar-preview { box-shadow: none; }
.hof-ava:has(img), .vp-ava:has(img), .msg-ava:has(img), .chat-mini-ava:has(img) { background: transparent !important; }
.hof-ava:has(img) i { display: none; }
/* Trang quản lý (Thiết lập trang donate + Cá nhân, body[data-dash]): toàn bộ chữ và khung còn 80% (chủ dự án 2026-10-16).
   Không áp cho trang chủ, giới thiệu, pháp lý (không có data-dash). Thanh đầu trang giữ nguyên cỡ. */
body[data-dash] .dash { zoom: 0.8; }
/* Điện thoại: trang quản lý chỉ thu nhẹ 0,85 (80% vẫn nhỏ để đọc và bấm); nút nổi (tạm dừng/ngôn ngữ) đặt trên thanh Cập nhật. */
@media (max-width: 760px) {
  body[data-dash] .dash { zoom: 0.85; }
  body[data-dash] .motion-toggle { bottom: 96px; }
}
/* Nút gạt bật/tắt (tài khoản ngân hàng, cài đặt…): TẮT = rãnh trắng mờ + núm trắng (thấy rõ trên nền tối); BẬT = rãnh xanh + núm trắng. */
.switch { background: rgba(255, 255, 255, 0.28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.switch span { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); }
.switch[aria-checked="true"] { background: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.switch:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.switch[aria-checked="true"]:hover { box-shadow: inset 0 0 0 1px #6F9BFF; }
.switch { background: #EEF2FA; box-shadow: inset 0 0 0 1px #FFFFFF; }
.switch span { background: #7C88A6; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.switch[aria-checked="true"] span { background: #fff; }
.switch:hover { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18); }
.switch[aria-checked="true"]:hover { box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.3); }
/* Trang chủ: 2 điểm nổi bật dưới tiêu đề (nhãn viên thuốc, biểu tượng xanh tiền). */
.hero-perks { list-style: none; margin: 18px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-perks li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--plate-2) 85%, transparent); border: 1px solid var(--line); font: 600 clamp(0.98rem, 1.2vw, 1.1rem)/1.2 var(--font-text); color: var(--ink); }
.hero-perks .ic { width: 22px; height: 22px; flex: none; padding: 4px; box-sizing: content-box; border-radius: 50%; color: var(--cobalt); background: rgba(60, 200, 255, 0.12); }
.hero-perks + .hero-desc { margin-top: 14px; }
/* Điện thoại demo về giữa cột phải (cân hai bên, bớt khoảng trống bên phải). */
@media (min-width: 961px) { .hero-stage:has(.pd-stage) { justify-items: center; padding-left: 0; } }
/* Tiêu đề trang chủ: "5 giây" chữ xanh cùng cỡ/font với tiêu đề, số đếm 1→5 (hero-count.js), gạch chân sáng. */
.hero-count { position: relative; display: inline-flex; align-items: baseline; color: var(--orange); white-space: nowrap; }
.hero-count::after { content: ''; position: absolute; left: 0.04em; right: 0.04em; bottom: 0.02em; height: 0.09em; border-radius: 99px;
  background: linear-gradient(90deg, var(--orange), var(--cobalt)); box-shadow: 0 0 18px var(--accent-glow); }
.hero-count .hc-num { display: inline-block; min-width: 0.62em; text-align: center; font-variant-numeric: tabular-nums; color: var(--cobalt); text-shadow: 0 0 28px rgba(60, 200, 255, 0.45); }
.hero-count .hc-num.is-tick { animation: hc-tick 0.32s var(--ease-out); }
@keyframes hc-tick { 0% { transform: translateY(0.18em) scale(0.82); opacity: 0.35; } 100% { transform: none; opacity: 1; } }
[data-motion="off"] .hero-count .hc-num { animation: none; }
@media (prefers-reduced-motion: reduce) { .hero-count .hc-num { animation: none; } }
.hero-count .hc-unit { margin-left: 0.22em; }
.hero-count::after { bottom: -0.1em; height: 0.07em; }
.hero-perks .ic.is-free { width: 44px; height: 24px; padding: 0; border-radius: 6px; background: none; color: var(--cobalt); filter: drop-shadow(0 0 8px rgba(60, 200, 255, 0.45)); }
.hero-perks .ic.is-free rect { fill: var(--cobalt); stroke: none; }
.hero-perks .ic.is-free text { fill: #05070D; stroke: none; font-family: 'Be Vietnam Pro', system-ui, sans-serif; font-weight: 700; }
/* Đếm xong 5: vệt sáng trắng quét ngang qua "5 giây" (chữ tô bằng nền chạy, quầng sáng dời sang drop-shadow của khối). */
.hero-count.is-shine { filter: drop-shadow(0 0 16px rgba(60, 200, 255, 0.45)); }
.hero-count.is-shine .hc-num, .hero-count.is-shine .hc-unit {
  color: transparent; text-shadow: none; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(105deg, var(--hc-base) 0%, var(--hc-base) 38%, #FFFFFF 50%, var(--hc-base) 62%, var(--hc-base) 100%);
  background-size: 300% 100%; background-repeat: no-repeat; animation: hc-shine 1.25s cubic-bezier(.45, 0, .2, 1) both;
}
.hero-count .hc-num { --hc-base: var(--cobalt); } .hero-count .hc-unit { --hc-base: var(--orange); }
.hero-count.is-shine .hc-unit { animation-delay: 0.12s; }
@keyframes hc-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
[data-motion="off"] .hero-count.is-shine .hc-num, [data-motion="off"] .hero-count.is-shine .hc-unit { animation: none; color: inherit; background: none; }
.hero-count.is-shine .hc-num, .hero-count.is-shine .hc-unit {
  background-image: linear-gradient(105deg, var(--hc-base) 0%, var(--hc-base) 30%, #BFEFFF 42%, #FFFFFF 50%, #BFEFFF 58%, var(--hc-base) 70%, var(--hc-base) 100%);
}
/* Ảnh bìa trống (trang donate công khai + xem trước Hồ sơ trang): logo VTPay lặp khắp khung, nghiêng, mờ, tối dần xuống dưới (kiểu Zypage). */
.vp-cover:not(.has-image), .pv-cover.is-empty, .pv-cover:not([style*="url"]) {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #2A3045 0%, #1C2133 55%, #0E1222 100%) !important;
}
.vp-cover:not(.has-image)::before, .pv-cover.is-empty::before, .pv-cover:not([style*="url"])::before {
  content: ''; position: absolute; inset: -60%; z-index: -1; pointer-events: none; opacity: 0.09; filter: blur(1.5px);
  background-image: url('vtpay-tile.webp?v=2'), url('vtpay-tile.webp?v=2');
  background-size: 300px auto, 300px auto; background-repeat: repeat;
  background-position: 0 0, 150px 68px; transform: rotate(-14deg);
}
.vp-cover:not(.has-image)::after, .pv-cover.is-empty::after, .pv-cover:not([style*="url"])::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 7, 13, 0.55));
}

/* ---- Trang chủ: Donate gần đây + Streamer nổi bật (home-feed.js), dưới Bảng vinh danh, dùng lại khung .hof-col ---- */
.hfeed { margin-top: clamp(18px, 3vw, 28px); }
.hfeed .hof-list { max-height: 600px; } /* ~10 dòng, cuộn trong khung tới 50 */
.hfeed-row { display: block; padding: 0; }
.hfeed-link { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 6px;
  padding: 9px 12px; border-radius: 14px; color: var(--ink); text-decoration: none; }
a.hfeed-link:hover { background: color-mix(in srgb, var(--cobalt) 8%, transparent); }
a.hfeed-link:hover .hfeed-to { color: var(--cobalt); }
a.hfeed-link:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.hfeed-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hfeed-to { font-weight: 700; color: var(--ink-2); }
.hfeed-msg { grid-column: 2 / -1; margin: 0; padding: 7px 10px; border-radius: 10px; background: var(--plate-2); color: var(--ink-2); font-size: 0.9rem; line-height: 1.4; overflow-wrap: anywhere; }
.hfeed-msg span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hfeed-followers { display: grid; justify-items: end; gap: 2px; }
.hfeed-followers small { font: 500 0.75rem/1 var(--font-text); color: var(--ink-3); }

/* ============ Viền avatar STREAMER + tích xanh (trang công khai u.html, Bảng vinh danh, Streamer nổi bật) ============
   .sv-ring: viền gradient xanh VTPay (xanh dương → xanh ngọc) + khe tối mảnh giữa ảnh và viền, theo đúng hình (tròn / bo 28px).
   .sv-ring.is-verified: gradient xoay chậm (6 giây/vòng) + quầng sáng nhẹ; reduced-motion thì đứng yên.
   .sv-check: huy hiệu tròn ✓ góc dưới phải, viền tối tách khỏi ảnh. */
@property --sv-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.sv-ring { --sv-w: 3px; --sv-gw: 2px; --sv-gap: #05070D; position: relative; isolation: isolate; }
.sv-ring::before { content: ''; position: absolute; inset: calc((var(--sv-w) + var(--sv-gw)) * -1); z-index: -1; border-radius: calc(var(--sv-r, 50%));
  background: conic-gradient(from var(--sv-ang), #1F5BFF, #3CC8FF, #2DD4BF, #3CC8FF, #1F5BFF);
  /* chỉ giữ VÀNH dày --sv-w (khoét phần giữa) — không phủ lên ảnh/nền chữ của avatar */
  padding: var(--sv-w); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.sv-ring.is-verified::before { animation: sv-spin 6s linear infinite; box-shadow: 0 0 14px -2px rgba(60, 200, 255, 0.6); }
@keyframes sv-spin { to { --sv-ang: 360deg; } }
@media (prefers-reduced-motion: reduce) { .sv-ring.is-verified::before { animation: none; } }
.sv-check { position: absolute; right: -4px; bottom: -4px; z-index: 2; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, #3CC8FF, #1F5BFF); color: #fff; box-shadow: 0 0 0 2px #05070D; }
.sv-check svg { width: 62%; height: 62%; }
/* Icon ✓ ngay sau tên streamer (trang công khai) */
.sv-name-check { display: inline-grid; place-items: center; width: 0.82em; height: 0.82em; margin-left: 0.28em; vertical-align: 0.02em; border-radius: 50%;
  background: linear-gradient(135deg, #3CC8FF, #1F5BFF); color: #fff; }
.sv-name-check svg { width: 62%; height: 62%; }

/* Danh sách (40px tròn): viền 2.5px, khe tối 1.5px quanh ảnh */
.hof-ava.sv-ring { --sv-w: 2.5px; --sv-gw: 2px; overflow: visible; } /* khe 2px trong suốt = nền dòng tối */
.hof-ava.sv-ring img { border-radius: 50%; }
/* Trang công khai: thay viền trắng 5px bằng khe tối mảnh; viền gradient nằm ngoài khe (cùng bo 28px / 22px điện thoại) */
.vp-avatar.sv-ring { --sv-r: 33px; --sv-gw: 0px; } /* khe tối = viền 3px của ảnh */
.vp-avatar.sv-ring .avatar-preview, .vp-avatar.sv-ring .avatar-fallback { border: 3px solid var(--sv-gap); box-shadow: none; }
.vp-avatar.sv-ring { --sv-w: 5px; }
.vp-avatar.sv-ring .sv-check { width: 30px; height: 30px; right: -8px; bottom: -8px; box-shadow: 0 0 0 3px #05070D; }
@media (max-width: 900px) {
  .vp-avatar.sv-ring { --sv-r: 26px; --sv-w: 4px; }
  .vp-avatar.sv-ring .sv-check { width: 24px; height: 24px; right: -6px; bottom: -6px; }
}
/* Bảng vinh danh trang chủ chỉ theo tháng: nhãn "Tháng này" thay cho nút Ngày/Tháng/Tổng */
.hof-month { padding: 8px 16px; border-radius: 999px; background: var(--slot); border: 1px solid var(--line); color: var(--ink-2); font: 600 0.95rem/1 var(--font-text); }
/* Sửa 2026-10-23: máy tính (≥901px) public-page.css phóng ảnh lên 150px bo 32px nhưng chỉ đặt chiều RỘNG khung bọc → viền ngắn, lệch lên.
   Khung bọc phải vuông đúng cỡ ảnh để viền ôm khít. */
@media (min-width: 901px) {
  .vp-avatar.sv-ring { width: 150px; height: 150px; --sv-r: 37px; }
}
/* Liên kết nhanh cạnh logo (Tin tức, Hướng dẫn). Điện thoại hẹp: ẩn để đầu trang không tràn. */
.bar-inner { justify-content: flex-start; }
.bar-inner .bar-end { margin-left: auto; }
.bar-nav { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.bar-nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.bar-nav a:hover, .bar-nav a[aria-current="page"] { color: var(--ink); background: var(--plate); }
@media (max-width: 640px) { .bar-nav { display: none; } }
