/* Giao diện chung cho Trang chủ / Donate / Bảng vàng */
:root {
  --bg: #0f0f14; --card: #1a1a23; --card2: #13131b; --line: #2c2c3a; --text: #f2f2f7; --muted: #9a9aae;
  --pink: #fe2c55; --cyan: #25f4ee; --gold: #ffd84d; --ok: #2ecc71;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text);
  background: radial-gradient(circle at 15% -10%, #3a0f22 0, transparent 45%),
              radial-gradient(circle at 110% 20%, #0b3333 0, transparent 40%), var(--bg);
  background-attachment: fixed; min-height: 100vh;
}
a { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ---- Thanh menu ---- */
.site-header {
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(15, 15, 20, .78); border-bottom: 1px solid var(--line);
}
.site-header .in { max-width: 960px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; margin-right: auto; }
.ava {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--pink), var(--cyan));
}
.ava img { width: 100%; height: 100%; object-fit: cover; }
.nav { display: flex; gap: 4px; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.nav a { text-decoration: none; padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a.on { background: var(--pink); color: #fff; }
@media (max-width: 520px) {
  .nav { width: 100%; }
  .nav a { flex: 1; text-align: center; padding: 8px 4px; }
}

/* ---- Khung nội dung ---- */
.page { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
.narrow { max-width: 460px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.card h2 { font-size: 17px; margin: 0 0 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px;
  padding: 13px 20px; font-size: 16px; font-weight: 700; color: #fff; cursor: pointer; text-decoration: none;
  background: linear-gradient(90deg, var(--pink), #ff5f7e); font-family: inherit;
}
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn:disabled { opacity: .6; cursor: default; }

.site-footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 16px 32px; }

/* ---- Danh sách donate (dùng ở Trang chủ + Bảng vàng) ---- */
.dlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dlist li { display: flex; gap: 12px; align-items: flex-start; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.dlist .who { flex: 1; min-width: 0; }
.dlist .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlist .who small { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; word-wrap: break-word; }
.dlist .amt { color: var(--gold); font-weight: 800; white-space: nowrap; }
.dlist .time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 18px 8px; font-size: 14px; }
