:root {
  --bg: #f6f7f9; --card: #fff; --text: #1b1f27; --muted: #5d6675; --line: #e3e6ec;
  --brand: #0b6b57; --brand-ink: #fff; --ok: #0b7a43; --warn: #9a6200; --bad: #b3261e;
  --brand-soft: #dcf1ea; --brand-soft-hover: #c9e9df; --brand-strong: #0a5a49;
  --new-bg: #e3edff; --new-fg: #1d4ba8;
  --callout-bg: #fff6df; --callout-line: #f1dfae;
  --ok-bg: #e4f5ec; --warn-bg: #fdf1d6; --bad-bg: #fde8e6; --chip: #eef1f5;
  --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05);
}
/* Giao diện tối: theo hệ thống (mặc định), hoặc do người dùng chọn qua nút ở đầu trang (data-theme). */
:root[data-theme="dark"] {
    --bg: #12151a; --card: #1a1f27; --text: #e9ecf1; --muted: #9aa4b2; --line: #2a313c;
    --brand: #37c29e; --brand-ink: #06231b; --ok: #5fd39a; --warn: #f0be5a; --bad: #ff8d84;
    --brand-soft: #163b32; --brand-soft-hover: #1c4a3f; --brand-strong: #6fe0c0;
    --new-bg: #1b2b4d; --new-fg: #8db4ff;
    --callout-bg: #3a3015; --callout-line: #5b4b1f;
    --ok-bg: #12301f; --warn-bg: #352a10; --bad-bg: #3a1916; --chip: #232a34;
    --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12151a; --card: #1a1f27; --text: #e9ecf1; --muted: #9aa4b2; --line: #2a313c;
    --brand: #37c29e; --brand-ink: #06231b; --ok: #5fd39a; --warn: #f0be5a; --bad: #ff8d84;
    --brand-soft: #163b32; --brand-soft-hover: #1c4a3f; --brand-strong: #6fe0c0;
    --new-bg: #1b2b4d; --new-fg: #8db4ff;
    --callout-bg: #3a3015; --callout-line: #5b4b1f;
    --ok-bg: #12301f; --warn-bg: #352a10; --bad-bg: #3a1916; --chip: #232a34;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--brand); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
html { scrollbar-gutter: stable; }
header.top { background: var(--card); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
nav.main { display: flex; gap: 4px; margin-left: auto; }
nav.main a { padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; }
nav.main a[aria-current="page"] { background: var(--chip); color: var(--text); }
.tagline { color: var(--muted); margin: 16px 0 4px; }
.announce { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); padding: 10px 14px; margin: 12px 0; }
.toolbar { display: grid; gap: 10px; margin: 12px 0 16px; }
.toolbar .row { display: flex; gap: 8px; flex-wrap: wrap; }
input[type=search], input[type=text], input[type=email], input[type=url], input[type=number], input[type=date], input[type=password], select, textarea {
  font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; min-width: 0;
}
input[type=search] { flex: 1 1 200px; }
textarea { width: 100%; resize: vertical; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 6px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .9rem; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); padding-bottom: 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-size: 1.05rem; }
.card .meta { color: var(--muted); font-size: .9rem; display: grid; gap: 2px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); font-weight: 600; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.btn { font: inherit; font-weight: 600; border-radius: 8px; padding: 9px 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; text-decoration: none; display: inline-block; }
.btn.primary { background: var(--brand-soft); border-color: transparent; color: var(--brand-strong); }
.btn.primary:hover { background: var(--brand-soft-hover); }
.btn.danger { color: var(--bad); }
.btn.small { padding: 5px 10px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.timer { font-size: .9rem; font-weight: 600; }
.timer.ready { color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 48px 12px; }
dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100% - 24px)); background: var(--card); color: var(--text); box-shadow: 0 10px 40px rgba(0,0,0,.35); max-height: calc(100% - 24px); }
dialog::backdrop { background: rgba(0,0,0,.5); }
.dlg-head { display: flex; align-items: flex-start; gap: 8px; padding: 16px 16px 8px; }
.dlg-head h2 { margin: 0; flex: 1; font-size: 1.2rem; }
.dlg-body { padding: 0 16px 16px; display: grid; gap: 12px; }
table.kv { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.kv th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 12px 6px 0; vertical-align: top; width: 38%; }
table.kv td { padding: 6px 0; border-bottom: 1px solid var(--line); }
table.kv tr:last-child td { border-bottom: 0; }
ul.plain { margin: 0; padding-left: 20px; }
.note-bad { background: var(--bad-bg); color: var(--bad); border-radius: 8px; padding: 8px 12px; }
.src { font-size: .8rem; color: var(--muted); }
footer.site { color: var(--muted); font-size: .85rem; padding: 24px 0 40px; border-top: 1px solid var(--line); margin-top: 16px; }
/* Hướng dẫn */
.guide-list { display: grid; gap: 12px; margin: 16px 0 32px; }
.guide-card { display: block; text-decoration: none; color: inherit; }
.guide-card h3 { margin: 0 0 4px; }
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0 32px; overflow-wrap: anywhere; }
.article img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.article h1 { margin-top: 0; }
.article table { border-collapse: collapse; display: block; overflow-x: auto; }
.article th, .article td { border: 1px solid var(--line); padding: 6px 10px; }
.article blockquote { margin: 12px 0; padding: 4px 14px; border-left: 4px solid var(--brand); color: var(--muted); }
.article code { background: var(--chip); padding: 1px 5px; border-radius: 4px; }
/* Admin */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
label.field { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
label.field small { font-weight: 400; color: var(--muted); }
label.field.wide, .wide { grid-column: 1 / -1; }
.checks { display: flex; gap: 12px; flex-wrap: wrap; font-weight: 400; }
.checks label { display: flex; gap: 6px; align-items: center; }
table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th, table.list td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 50; max-width: 90%; }
.toast.err { background: var(--bad); color: #fff; }
.split { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.thumbs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.thumb { border: 1px solid var(--line); border-radius: 8px; padding: 6px; display: grid; gap: 6px; font-size: .8rem; }
.thumb img { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; }
.hidden { display: none !important; }
/* Đăng nhập admin */
.login-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 380px; margin: 48px auto; text-align: center; box-shadow: var(--shadow); }
.login-card h2 { margin: 0 0 16px; }
.login-form { display: grid; gap: 14px; justify-items: center; }
.login-form input { width: 100%; text-align: center; }
.login-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; width: auto; line-height: 1.2; padding: 10px 28px; }
/* Logo site */
.card-head { display: flex; align-items: center; gap: 10px; }
.card-head h3 { min-width: 0; overflow-wrap: anywhere; }
.logo { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: var(--chip); flex: none; }
.logo.sm { width: 32px; height: 32px; border-radius: 8px; }
.logo-fallback { display: inline-grid; place-items: center; font-weight: 700; color: var(--brand); }
.dlg-head h2 { display: flex; align-items: center; gap: 10px; }
.logo-edit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lbl { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
/* Thẻ gọn: coin dạng huy hiệu, ví + mức rút tối thiểu */
.coins { display: flex; gap: 4px; flex-wrap: wrap; }
.coin { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 9px; font-weight: 700; letter-spacing: -.2px; color: #fff; line-height: 1; cursor: default; }
.coin-more { background: var(--chip); color: var(--muted); font-size: 11px; }
.every { color: var(--muted); font-size: .9rem; }
.wallets { display: grid; gap: 2px; font-size: .92rem; }
.wallets-title { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.wallet { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.wallet:last-child { border-bottom: 0; }
.actions .btn, .actions .btn.small { font-size: 1rem; padding: 9px 14px; }
img.coin { display: block; background: none; object-fit: contain; }
.coin-names { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.coin-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .9rem; }
.coin-chip .coin { width: 18px; height: 18px; font-size: 6px; }
/* Chỉnh thẻ lần 3: icon coin nhỏ, nút Claim rộng nền nhạt, ví có logo */
.coin { width: 20px; height: 20px; font-size: 7px; }
.coin-more { font-size: 10px; }
.coin-chip .coin { width: 16px; height: 16px; font-size: 5px; }
.every { font-size: .92rem; color: var(--text); }
.actions { display: flex; gap: 8px; }
.actions .claim { flex: 1; text-align: center; min-width: 0; }
.claim.waiting { background: var(--chip); color: var(--muted); }
.w-name { display: inline-flex; align-items: center; gap: 6px; }
.w-ico { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.wallet-line { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
/* Lần 4: dòng Claim cùng cột với ví, thẻ đang chờ mờ đi, nút đã bấm xám cố định */
.wallet { padding: 5px 0; }
.claim-val { font-variant-numeric: tabular-nums; }
.card.waiting { opacity: .55; }
.claim.waiting, .claim.waiting:hover { background: var(--chip); color: var(--muted); }
/* Lần 5: tag Mới / Hoạt động cạnh tên faucet */
.card-head h3 { flex: 1 1 auto; min-width: 0; }
.tags { margin-left: auto; display: flex; gap: 4px; flex: none; }
.tag { font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--chip); color: var(--muted); white-space: nowrap; }
.tag-new { background: var(--new-bg); color: var(--new-fg); }
.tag-active { background: var(--ok-bg); color: var(--ok); }
.tag-issues { background: var(--bad-bg); color: var(--bad); }
.pay-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
/* Lần 6: chữ/icon to hơn, wordmark ví, đường kẻ dưới tiêu đề */
.wallets { font-size: 1rem; }
.w-ico { width: 20px; height: 20px; }
.w-mark { height: 26px; width: auto; display: block; }
.w-pic { display: inline-flex; }
.pay-row { justify-content: flex-start; flex-wrap: wrap; align-items: center; gap: 6px 20px; border-bottom: 0; }
.wallet-line { gap: 6px; }
.card-sep { height: 1px; background: var(--line); opacity: .75; margin: 0; }
/* Lần 7: tên faucet bấm được, dòng Thanh toán, trang chi tiết */
.name-btn { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.name-btn:hover { text-decoration: underline; }
.w-mark { height: 20px; }
.pay-row { justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.pay-vals { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px 14px; margin-left: auto; }
.page-head { display: flex; align-items: center; gap: 14px; margin: 8px 0 14px; }
.page-head h1 { margin: 0; font-size: 1.6rem; flex: 1 1 auto; min-width: 0; }
.page-card { max-width: 560px; }
.page-body { max-width: 560px; display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0 32px; }
.wallet-line { display: grid; gap: 2px; margin-bottom: 8px; }
.wallet-line:last-child { margin-bottom: 0; }
.wallet-min { color: var(--muted); font-size: .92rem; }
/* Lần 8: popup gọn cùng kiểu dòng với thẻ */
.dlg-head h2 { flex: 1 1 auto; min-width: 0; }
.m-name { min-width: 0; overflow-wrap: anywhere; }
.coins-all { gap: 6px; }
.dlg-body .wallets { gap: 0; }
.pay-detail { display: grid; }
.wallet.sub { padding-left: 28px; font-size: .95rem; }
.wallet .min { color: var(--muted); }
.wallet .min b { color: var(--text); }
.status-val { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.status-val .upd { color: var(--muted); font-size: .9rem; }
.actions.center { justify-content: center; }
/* Lần 9: trang chi tiết dạng bài viết có mục I, II, III... */
.page-title { flex: 1 1 auto; min-width: 0; }
.page-title h1 { margin: 0; font-size: 1.6rem; }
.page-sub { color: var(--muted); font-size: .9rem; }
.faucet-article { max-width: 720px; margin: 18px 0 40px; line-height: 1.6; overflow-wrap: anywhere; }
.faucet-article h2 { font-size: 1.2rem; margin: 30px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.faucet-article h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
.faucet-article p { margin: 8px 0; }
.faucet-article ul, .faucet-article ol { margin: 8px 0; padding-left: 22px; }
.faucet-article li { margin: 4px 0; }
.faucet-article blockquote { margin: 14px 0; padding: 10px 14px; background: var(--callout-bg); border: 1px solid var(--callout-line); border-radius: 10px; color: var(--text); }
.faucet-article blockquote p { margin: 0; }
.faucet-article table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: .93rem; margin: 12px 0; }
.faucet-article th, .faucet-article td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.faucet-article img.coin { border: 0; border-radius: 50%; display: inline-block; vertical-align: middle; margin: 2px 3px 2px 0; }
.faucet-article table.coin-table { display: table; width: min(100%, 460px); margin: 14px auto; }
.faucet-article table.coin-table th, .faucet-article table.coin-table td { vertical-align: middle; }
.faucet-article table.coin-table th, .faucet-article table.coin-table td:last-child { text-align: center; }
.faucet-article table.coin-table td:first-child { text-align: left; }
.faucet-article table.coin-table th:first-child, .faucet-article table.coin-table td:first-child { width: 62%; }
.faucet-article .red { color: var(--bad); font-weight: 600; }
.faucet-article th[align="center"] { text-align: center; }
.faucet-article td[align="right"] { text-align: right; white-space: nowrap; }
.faucet-article th { background: var(--chip); font-weight: 600; }
@media (max-width: 640px) {
  .faucet-article table.stack { display: block; overflow: visible; }
  .faucet-article table.stack thead { display: none; }
  .faucet-article table.stack tbody, .faucet-article table.stack tr { display: block; }
  .faucet-article table.stack tr { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; background: var(--card); }
  .faucet-article table.stack td { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; border: 0; padding: 3px 0; }
  .faucet-article table.stack td:first-child { display: block; font-weight: 700; padding-bottom: 4px; }
  .faucet-article table.stack td[align="right"], .faucet-article table.stack td[align="center"] { text-align: left; white-space: normal; }
  .faucet-article table.stack td:empty { display: none; }
  .faucet-article table.stack td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
}
/* Lần 10: cột giữa đều chiều rộng, mục I/II/III có nền */
.detail-col { max-width: 760px; margin: 0 auto; }
.page-card { max-width: none; }
.page-body { max-width: none; }
.faucet-article { max-width: none; margin: 18px 0 40px; }
.faucet-article h2 { display: flex; align-items: center; gap: 10px; background: var(--brand-soft); color: var(--brand-strong); border: 0; border-left: 4px solid var(--brand); border-radius: 10px; padding: 10px 14px; margin: 28px 0 12px; font-size: 1.15rem; }
.faucet-article h2:first-of-type { margin-top: 8px; padding-top: 10px; }
.faucet-article h2 .rn { flex: none; min-width: 2.4em; text-align: center; background: var(--brand); color: var(--brand-ink); border-radius: 8px; padding: 1px 9px; font-size: .95rem; }

/* Lần 11: trang chi tiết hai cột (cột trái dính theo khi cuộn), nút đổi giao diện, wordmark theo giao diện */
.detail-grid { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 12px; }
.detail-side { position: sticky; top: 16px; display: grid; gap: 12px; }
.detail-side .page-head { margin: 0; }
.detail-side .page-title h1 { font-size: 1.35rem; }
.page-card .actions { justify-content: center; }
.page-card .actions .claim { flex: 0 1 auto; padding: 8px 36px; }
.faucet-article { margin-top: 0; }
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .detail-side { position: static; }
}
/* Thanh Claim cố định ở đầu màn hình (chỉ điện thoại/máy tính bảng), hiện khi nút Claim trong thẻ đã cuộn khuất */
.claim-bar { display: none; }
@media (max-width: 900px) {
  .claim-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 14px 8px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.10); transform: translateY(-115%); transition: transform .2s ease; }
  .claim-bar.show { transform: none; }
  .claim-bar .bar-name { flex: 1 1 auto; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .claim-bar .bar-val { flex: none; color: var(--muted); font-weight: 600; font-size: .9rem; }
  .claim-bar .claim { flex: none; padding: 8px 26px; }
}
.logo.xs { width: 28px; height: 28px; border-radius: 7px; font-size: .85rem; }
.theme-toggle { margin-left: 4px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.theme-toggle:hover { background: var(--chip); }
.theme-toggle svg { width: 20px; height: 20px; }
.w-mark.dark { display: none; }
:root[data-theme="dark"] .w-mark.light { display: none; }
:root[data-theme="dark"] .w-mark.dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .w-mark.light { display: none; }
  :root:not([data-theme="light"]) .w-mark.dark { display: block; }
}

/* Sự kiện (Happy Hour): thẻ thông báo đầu trang chủ + viền nổi bật cho faucet đang có sự kiện */
.events { display: grid; gap: 10px; margin: 12px 0; }
.event-banner { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius); background: var(--warn-bg); border: 1px solid var(--warn); color: var(--text); }
.event-banner.live { background: var(--ok-bg); border-color: var(--ok); }
.event-banner .ev-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.event-banner .ev-title { font-size: 1.05rem; }
.event-banner .ev-name { font-size: .95rem; }
.event-banner .ev-sub { white-space: nowrap; color: var(--muted); font-size: .92rem; }
.event-banner .ev-clock { color: var(--text); font-variant-numeric: tabular-nums; }
.event-banner .claim { flex: none; }
.card.event { border: 2px solid var(--ok); box-shadow: 0 0 0 4px var(--ok-bg), var(--shadow); }

/* Ảnh minh họa trong bài chi tiết */
.faucet-article p > img:only-child { display: block; width: 100%; max-width: 560px; height: auto; margin: 14px auto; border-radius: 14px; }

/* Thẻ giới thiệu ví FaucetPay ở trang chủ (không phải faucet: không có Claim) */
.wallet-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card); }
.wallet-card .wc-text { min-width: 0; flex: 1 1 260px; }
.wallet-card .wc-logo { display: inline-flex; }
.wallet-card .wc-text { display: grid; gap: 6px; }
.wallet-card .wc-sub { color: var(--text); font-size: .98rem; }
.wallet-card .wc-how { color: var(--muted); font-size: .92rem; }
.wallet-card .wc-how b { color: var(--text); }
.wallet-card .wc-actions { display: flex; gap: 8px; }
.faucet-article a.cta { display: block; width: fit-content; margin: 16px auto; padding: 12px 28px; text-decoration: none; font-size: 1.05rem; }
.faucet-article.guide-body p > img:only-child { max-width: 340px; }
.faucet-article.guide-body table { width: auto; margin: 14px auto; }
/* Sơ đồ nhỏ trên thẻ FaucetPay ở trang chủ: Faucet -> FaucetPay -> Ví crypto */
.wc-flow { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 4px auto 2px; }
.wc-flow .step { display: grid; gap: 0; text-align: center; padding: 3px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); min-width: 0; }
.wc-flow .step b { font-size: .8rem; }
.wc-flow .step small { color: var(--muted); font-size: .66rem; }
.wc-flow .step.main { border-color: var(--brand); }
.wc-flow .arr { color: var(--brand); font-weight: 700; }
@media (max-width: 640px) { .wallet-card .wc-actions { width: 100%; justify-content: flex-end; } }
.signup-card { align-items: center; text-align: center; }
.signup-card .wc-sub { margin: 0; color: var(--text); }
.signup-bar .bar-name { display: flex; align-items: center; }

/* Nội dung dựng sẵn từ máy chủ (cho công cụ tìm kiếm) tạm ẩn khi có script, hiện lại sau 2,5 giây nếu script lỗi */
.js .ssr-pending { visibility: hidden; animation: ssr-reveal 0s 2.5s forwards; }
@keyframes ssr-reveal { to { visibility: visible; } }
/* Icon coin trong bài có kích cỡ chuẩn ngay cả trước khi script chạy */
.faucet-article img[src^="/assets/coins/"] { width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; }
.faucet-article.guide-body p > img:only-child, .faucet-article p > img:only-child { max-width: 340px; }
/* Hộp thoại xác nhận có tài khoản FaucetPay */
.fp-body { padding: 4px 16px 16px; display: grid; gap: 10px; }
.fp-body p { margin: 0; }
.fp-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.fp-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.fp-more { font-size: .92rem; text-align: right; }
/* Thanh toán: nhãn một dòng, logo ví xuống dòng dưới (canh phải) để các thẻ luôn thẳng hàng dù có 1 hay 2 ví */
.grid .pay-row > .w-name { flex: 0 0 100%; }
.grid .pay-row > .pay-vals { flex: 0 0 100%; justify-content: flex-end; margin-left: 0; min-height: 30px; }
/* Bảng "Hoạt động" trong bài: cả bảng nằm giữa, các cột cân đối; tiêu đề canh giữa, nội dung canh trái (điện thoại dùng dạng thẻ) */
@media (min-width: 641px) {
  .faucet-article table.act-table { display: table; table-layout: fixed; width: min(100%, 680px); margin: 14px auto; }
  .faucet-article table.act-table th:nth-child(1) { width: 22%; }
  .faucet-article table.act-table th:nth-child(2) { width: 38%; }
  .faucet-article table.act-table th:nth-child(3) { width: 40%; }
  .faucet-article table.act-table td { text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
}
