/* Khối chia sẻ cho bạn bè (includes/site-tpv/chia-se.php): bài dự đoán XSMB + các trang công cụ tra cứu. Dùng biến --pg-* nên tự đổi theo giao diện sáng/tối. */
:root { --sh-ok: #7fd6b0; --sh-bg: rgba(255,255,255,.045); }
html.tpv-light { --sh-ok: #156534; --sh-bg: #fffdf8; }
.tpv-sh__k { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pg-violet); margin-bottom: 4px; }
.tpv-sh__t { margin: 0 0 6px; font-size: 22px; line-height: 1.3; }
.tpv-sh__priv { display: block; margin-top: 4px; font-size: 12.5px; opacity: .85; }
.tpv-sh { margin: 28px 0; padding: 22px 22px 18px; border-radius: 18px; border: 1px solid var(--pg-line); background: var(--sh-bg); text-align: center; }
.tpv-sh__h p { margin: 0 auto 16px; max-width: 520px; font-size: 14.5px; line-height: 1.65; color: var(--pg-muted); }
.tpv-sh .tpv-sh__t { margin-bottom: 6px; }
.tpv-sh__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tpv-sh .tpv-sh__b { box-sizing: border-box; height: 46px; margin: 0; text-transform: none; letter-spacing: 0; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--pg-line); background: var(--pg-card-2); color: var(--pg-text); font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.tpv-sh__b[hidden] { display: none; }
.tpv-sh__b:hover { transform: translateY(-1px); border-color: var(--pg-gold); color: var(--pg-text); }
.tpv-sh__b:focus-visible, .tpv-sh-fab:focus-visible, .tpv-xs__chip--share:focus-visible { outline: 2px solid var(--pg-gold-2); outline-offset: 2px; }
.tpv-sh__ic { flex: none; }
.tpv-sh__b--native { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--pg-gold), var(--pg-violet)); }
.tpv-sh__b--native:hover { color: #fff; filter: brightness(1.1); }
.tpv-sh__b--zalo .tpv-sh__ic { color: #0068ff; } .tpv-sh__b--facebook .tpv-sh__ic { color: #1877f2; } .tpv-sh__b--messenger .tpv-sh__ic { color: #0a7cff; } .tpv-sh__b--telegram .tpv-sh__ic { color: #2aabee; }
.tpv-sh__b.is-done { border-color: var(--sh-ok); color: var(--sh-ok); }
.tpv-sh__st { min-height: 1.4em; margin: 12px 0 0; font-size: 13.5px; color: var(--sh-ok); }
.tpv-sh.is-pulse { animation: tpvShPulse 1.2s ease 1; }
@keyframes tpvShPulse { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 6px rgba(160, 120, 255, .35); } }
.tpv-sh-fab { position: fixed; left: 14px; margin: 0; text-transform: none; letter-spacing: 0; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: none; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; background: linear-gradient(135deg, var(--pg-gold), var(--pg-violet)); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.tpv-sh-fab.is-on { opacity: 1; transform: none; }
@media (max-width: 768px) { .tpv-sh-fab:not([hidden]) { display: inline-flex; } .tpv-sh__row { gap: 8px; } .tpv-sh__b { flex: 1 1 calc(50% - 8px); justify-content: center; padding: 0 12px; } .tpv-sh__b--native { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .tpv-sh-fab, .tpv-sh__b { transition: none; } .tpv-sh.is-pulse { animation: none; } }
