:root {
  /* Màu thương hiệu lấy từ logo HVC */
  --brand: #0858c8;          /* xanh HVC */
  --brand-strong: #0747a6;
  --brand-ink: #ffffff;
  --brand-soft: #e6effb;
  --orange: #f07850;         /* cam HVC */
  --orange-strong: #e2602f;
  --orange-ink: #ffffff;
  --orange-soft: #fdebe4;
  --navy: #0a2a5e;

  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --text: #0f1b33;
  --muted: #5b6b85;
  --border: #dbe3ef;

  /* --accent giữ tên cũ = màu chính (xanh HVC) để trang admin/thanh toán tự đổi theo */
  --accent: var(--brand);
  --accent-ink: var(--brand-ink);
  --accent-soft: var(--brand-soft);

  --ok: #15803d;
  --ok-soft: #dcf3e4;
  --warn: #b45309;
  --warn-soft: #fdf0dc;
  --danger: #b91c1c;
  --danger-soft: #fde2e2;
  --info: var(--brand);
  --info-soft: var(--brand-soft);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(10, 42, 94, .06), 0 4px 14px rgba(10, 42, 94, .06);
  --shadow-lg: 0 10px 30px rgba(10, 42, 94, .16);
  color-scheme: light;
}
@media all { /* luôn dùng giao diện tối */
  :root {
    --brand: #4d8ff0;
    --brand-strong: #6ea4f4;
    --brand-ink: #06142e;
    --brand-soft: #13284a;
    --orange: #ff8a5c;
    --orange-strong: #ff9d76;
    --orange-ink: #2b0d00;
    --orange-soft: #3a1d12;
    --navy: #07152f;
    --bg: #0b1220;
    --surface: #121b2e;
    --surface-2: #19243b;
    --text: #e7eef9;
    --muted: #93a3be;
    --border: #26334d;
    --ok: #34c46a;
    --ok-soft: #163a24;
    --warn: #f0a845;
    --warn-soft: #3a2a12;
    --danger: #f27474;
    --danger-soft: #3d1717;
    --shadow: none;
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.4rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.hidden { display: none !important; }

.wrap { max-width: 960px; margin: 0 auto; padding: 16px; }
.wrap.narrow { max-width: 560px; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface); border-bottom: 3px solid var(--orange);
  box-shadow: 0 2px 10px rgba(10, 42, 94, .06);
}
.topbar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.05rem; text-decoration: none; color: var(--brand); margin-right: auto; text-transform: uppercase; letter-spacing: .3px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.logo { height: 28px; width: auto; display: block; }
.logo-lg { height: 44px; display: inline-block; }
.pay-header { text-align: center; padding-bottom: 0; }
@media all { /* luôn dùng giao diện tối */
  /* logo nền trắng → đặt trong ô sáng cho dễ đọc ở dark mode */
  .logo { background: #fff; border-radius: 6px; padding: 3px 6px; box-sizing: content-box; }
}
.nav a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.nav a { font-weight: 600; }
.nav a.active, .nav a:hover { color: var(--brand); background: var(--brand-soft); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

button, .btn {
  font: inherit; cursor: pointer; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); padding: 8px 14px; min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  transition: background .15s, border-color .15s;
}
button:hover, .btn:hover { background: var(--surface-2); }
button:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

.btn-cta { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); font-weight: 700; }
.btn-cta:hover { background: var(--orange-strong); border-color: var(--orange-strong); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-danger { color: var(--danger); }
.btn-sm { min-height: 32px; padding: 4px 10px; font-size: .85rem; border-radius: 8px; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-block { width: 100%; }

input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 12px; min-height: 40px; width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
label.field { display: block; }
label.field > span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }

.badge {
  display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }

.alert { border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: .9rem; }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.info { background: var(--info-soft); color: var(--info); }
.alert code { word-break: break-all; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
th { font-size: .8rem; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 12px;
  min-height: 36px; cursor: pointer; user-select: none;
}
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }

.progress { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--brand), var(--orange)); border-radius: inherit; transition: width .3s; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.stat .label { font-size: .8rem; color: var(--muted); }
.stat .value { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.session-item { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.session-item:hover h3 { color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 100;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2); max-width: calc(100% - 32px); font-size: .9rem;
}
.toast.err { background: var(--danger); color: #fff; }

.expense-row { display: grid; grid-template-columns: 1fr 140px 40px; gap: 8px; margin-bottom: 8px; }
.part-row { display: grid; grid-template-columns: 1fr 130px 40px; gap: 8px; align-items: center; margin-bottom: 6px; }

/* ── Trang thanh toán công khai ── */
.person {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--surface); margin-bottom: 8px; cursor: pointer; user-select: none;
}
.person.selected { border-color: var(--accent); background: var(--accent-soft); }
.person.disabled { cursor: default; opacity: .75; }
.person .check {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border); flex: none;
  display: grid; place-items: center; font-size: 14px; color: var(--accent-ink);
}
.person.selected .check { background: var(--accent); border-color: var(--accent); }
.person .name { flex: 1; font-weight: 600; }

.paybar {
  position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.paybar { padding-left: 0; padding-right: 0; }
.paybar .wrap { padding-top: 0; padding-bottom: 0; display: flex; align-items: center; gap: 12px; }
.done-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.done-list .badge { font-size: .8rem; padding: 3px 10px; }

.qr-box { text-align: center; }
.qr-box img { width: 100%; max-width: 300px; aspect-ratio: 1; background: #fff; border-radius: 12px; padding: 8px; border: 1px solid var(--border); }
.qr-placeholder {
  width: 260px; height: 260px; margin: 0 auto; border: 2px dashed var(--border); border-radius: 12px;
  display: grid; place-items: center; color: var(--muted); padding: 16px;
}
/* Màn QR */
.pay-card { display: flex; flex-direction: column; gap: 16px; }
.pay-head { text-align: center; }
.pay-head .big-amount { margin: 2px 0 8px; }
.people-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.qr-frame { display: flex; justify-content: center; }
.qr-frame img {
  width: 100%; max-width: 280px; aspect-ratio: 1; object-fit: contain; background: #fff;
  border-radius: 16px; padding: 10px; border: 1px solid var(--border);
}
.qr-actions { display: flex; justify-content: center; }
.qr-actions button { min-width: 180px; }
.info-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.info-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 52px;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: 0; }
.info-row .k { color: var(--muted); font-size: .85rem; width: 108px; flex: none; }
.info-row .v { flex: 1; font-weight: 600; word-break: break-all; text-align: right; }
.info-row .v.code { color: var(--accent); font-size: 1.1rem; letter-spacing: .5px; }
.info-row.highlight { background: var(--accent-soft); }
.copy-btn {
  flex: none; min-height: 32px; padding: 4px 10px; font-size: .8rem; border-radius: 8px; gap: 4px;
}
.copy-btn.done { color: var(--accent); border-color: var(--accent); }
.pay-hint { margin: -4px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.waiting {
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .9rem; color: var(--muted);
  background: var(--surface-2); border-radius: 10px; padding: 10px;
}

.kv { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 12px; align-items: center; text-align: left; }
.kv .k { color: var(--muted); font-size: .85rem; }
.kv .v { font-weight: 600; word-break: break-all; }
.big-amount { font-size: 1.8rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.success-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff;
  display: grid; place-items: center; font-size: 40px; margin: 8px auto 12px;
}
.spinner {
  width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .wrap { padding: 12px; }
  .expense-row { grid-template-columns: 1fr 110px 36px; }
  .part-row { grid-template-columns: 1fr 100px 36px; }
  .hide-sm { display: none; }
}

/* ── Trang chủ ── */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
.home-nav { display: flex; gap: 2px; }

/* Banner chia đôi: trái khối navy chứa chữ, phải ảnh thật cắt chéo + đường cam.
   Dùng màu cố định (không theo dark mode) để banner luôn giống nhau. */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #061a3d 0%, #0a2a5e 60%, #0b3a85 100%);
  padding: 64px 0 96px;
}
.hero.has-photo { min-height: 440px; display: flex; align-items: center; }
.hero-photo {
  position: absolute; top: 0; bottom: 0; right: -20%; width: 66%;
  transform: skewX(-12deg); transform-origin: top left; overflow: hidden;
  border-left: 10px solid #f07850; box-shadow: -12px 0 40px rgba(0, 0, 0, .35);
}
.hero-photo > div {
  position: absolute; inset: 0 -30% 0 -10%;
  background: var(--hero) center / cover no-repeat; transform: skewX(12deg);
}
/* làm mềm mép ảnh sát khối chữ */
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 26, 61, .45), rgba(6, 26, 61, 0) 35%);
}
.hero-inner { width: 100%; position: relative; z-index: 1; }
.hero.has-photo .hero-inner > * { max-width: min(520px, 46%); }
.hero.has-photo h1 { max-width: min(560px, 50%); }
.hero-kicker {
  display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 4px; margin-bottom: 14px;
  background: var(--orange); color: #fff;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; margin: 0 0 12px;
  text-transform: uppercase; letter-spacing: .5px; font-weight: 900; max-width: 720px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}
.hero-tagline { font-size: 1.1rem; margin: 0 0 24px; opacity: .95; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { min-height: 46px; padding: 10px 20px; font-weight: 700; }
.hero .btn:not(.btn-cta) { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); backdrop-filter: blur(4px); }
.hero .btn:not(.btn-cta):hover { background: rgba(255, 255, 255, .22); }

/* Dải số liệu nổi đè lên mép dưới banner */
.stats-bar { position: relative; z-index: 2; margin-top: -52px; padding-top: 0; padding-bottom: 0; }
.stats-bar-inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid var(--border);
}
.hero-stat { padding: 16px 18px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.hero-stat:first-child { border-left: 0; }
.hs-value { font-weight: 900; font-size: 1.35rem; color: var(--brand); }
.hs-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; }

.section { padding: 40px 0 28px; }
.section.alt { background: var(--surface-2); }
.section-title {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .5px;
  font-weight: 900; color: var(--text); display: flex; align-items: center; gap: 10px;
}
.section-title::before { content: ""; width: 6px; height: 1.1em; background: var(--orange); border-radius: 2px; flex: none; }
.section-sub { color: var(--muted); margin: 0 0 20px; }
.prose { font-size: 1.02rem; }
.prose p { margin: 0 0 12px; }
.prose p:last-child { margin-bottom: 0; }

.pay-grid, .sched-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pay-grid .card, .sched-grid .card { margin-bottom: 0; }

/* Thẻ buổi cần thanh toán */
.pay-session {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; padding: 0; overflow: hidden;
  transition: box-shadow .15s, transform .15s; border-top: 4px solid var(--brand);
}
.pay-session:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pay-session .ps-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.pay-session .ps-date { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--orange-strong); }
.pay-session h3 { font-size: 1.1rem; margin: 2px 0 12px; }
.pay-amount { font-size: 1.6rem; font-weight: 900; color: var(--brand); line-height: 1.1; }
.pay-session .btn-cta { margin-top: 16px; }

/* Thẻ lịch thi đấu — 2 thẻ chia đôi bề ngang, thấp gọn */
.sched-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.sched-card { display: flex; padding: 0; overflow: hidden; }
.sched-side {
  flex: none; width: 150px; background: linear-gradient(160deg, #0858c8, #0a2a5e); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 12px 12px; text-align: center;
}
.sched-side .sd-icon { font-size: 1.2rem; }
.sched-side .sd-day { font-weight: 900; text-transform: uppercase; font-size: .85rem; line-height: 1.25; letter-spacing: .3px; }
.sched-main { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.sched-time { font-size: 1.3rem; font-weight: 900; color: var(--text); }
.sched-venue { font-weight: 700; }
.sched-note { color: var(--orange-strong); font-weight: 600; }

/* Bộ ảnh dạng lưới đều, khung dọc 3:4 (hợp ảnh chụp điện thoại) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery-item {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  background: var(--surface); cursor: zoom-in; min-height: 0; aspect-ratio: 3 / 4; box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-size: .85rem; font-weight: 600;
  color: #fff; text-align: left; background: linear-gradient(transparent, rgba(10, 42, 94, .85));
}

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(5, 15, 35, .94);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 90px); border-radius: 8px; }
.lightbox figcaption { color: #dde6f5; margin-top: 8px; font-size: .9rem; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%;
  width: 44px; height: 44px; min-height: 44px; font-size: 1.5rem; padding: 0;
}
.lightbox button:hover { background: var(--orange); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

.site-footer { background: var(--navy); color: #dbe6f7; padding: 32px 0 36px; border-top: 4px solid var(--orange); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 10px; }
.site-footer .ft-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; text-transform: uppercase; color: #fff; }
.site-footer .ft-brand .logo { background: #fff; border-radius: 6px; padding: 3px 6px; box-sizing: content-box; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.site-footer .ft-muted { color: #9fb3d4; font-size: .85rem; }

/* Màn hẹp: ảnh phủ toàn banner, lớp tối trung tính (không ám xanh) */
@media (max-width: 820px) {
  .hero-photo { right: 0; width: 100%; transform: none; border-left: 0; box-shadow: none; }
  .hero-photo > div { inset: 0; transform: none; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(4, 14, 32, .55) 0%, rgba(4, 14, 32, .82) 100%); }
  .hero.has-photo .hero-inner > *, .hero.has-photo h1 { max-width: 100%; }
}
@media (max-width: 560px) {
  .home-nav { display: none; }
  .hero { padding: 44px 0 84px; }
  .hero.has-photo { min-height: 380px; }
  .sched-side { width: 104px; }
  .stats-bar { margin-top: -44px; }
  .stats-bar-inner { grid-template-columns: repeat(3, 1fr); }
  .hero-stat { padding: 12px 10px; }
  .hs-value { font-size: 1.05rem; }
  .hs-label { font-size: .62rem; letter-spacing: .4px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* Admin: quản lý ảnh trang chủ */
.photo-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.photo-admin .ph { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.photo-admin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-admin .ph-body { padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.photo-admin .ph-body input { min-height: 32px; padding: 4px 8px; font-size: .85rem; }
.photo-admin .ph-actions { display: flex; gap: 4px; }
.photo-admin .ph-actions button { flex: 1; min-height: 30px; padding: 2px 6px; font-size: .8rem; }
.sched-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; }
.sched-row .full { grid-column: 1 / -1; }
.sched-row .row-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

/* ── Font chữ: Be Vietnam Pro (nội dung) + Barlow Condensed (tiêu đề, con số — chất thể thao) ── */
:root { --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-display: "Barlow Condensed", "Be Vietnam Pro", system-ui, sans-serif; }
body { font-family: var(--font-body); font-size: 15px; }
button, .btn, input, select, textarea { font-family: var(--font-body); }
h1, h2, .brand, .section-title, .hero h1, .hero-kicker, .hs-value, .hs-label, .pay-amount, .big-amount,
.sched-time, .sched-side .sd-day, .ps-date, .stat .value {
  font-family: var(--font-display);
}
h1, h2 { letter-spacing: .3px; }
.brand { font-size: 1.3rem; font-weight: 800; letter-spacing: .6px; }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 4.4rem); font-weight: 800; letter-spacing: .8px; line-height: 1; }
.hero-kicker { font-size: .85rem; font-weight: 700; letter-spacing: 2px; }
.section-title { font-size: clamp(1.7rem, 4.5vw, 2.3rem); font-weight: 800; letter-spacing: .8px; }
.hs-value { font-size: 1.75rem; font-weight: 800; letter-spacing: .3px; }
.hs-label { font-size: .8rem; font-weight: 700; letter-spacing: 1.2px; }
.pay-amount { font-size: 2.2rem; font-weight: 800; }
.big-amount { font-size: 2.6rem; font-weight: 800; }
.sched-time { font-size: 1.7rem; font-weight: 800; letter-spacing: .3px; }
.sched-side .sd-day { font-size: 1.15rem; font-weight: 800; letter-spacing: .6px; }
.pay-session .ps-date { font-size: 1rem; font-weight: 700; letter-spacing: 1px; }
.stat .value { font-size: 1.5rem; font-weight: 800; }
@media (max-width: 560px) {
  .brand { font-size: 1.15rem; }
  .hs-value { font-size: 1.3rem; }
  .hs-label { font-size: .68rem; letter-spacing: .6px; }
}

/* ── Dải số liệu: nổi bật như bảng tỉ số ── */
.stats-bar .stats-bar-inner {
  background: linear-gradient(180deg, #16294f 0%, #0f1d3b 100%);
  border: 1px solid rgba(255, 255, 255, .1); border-top: 4px solid #f07850;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .45);
}
.stats-bar .hero-stat { padding: 18px 22px; border-left-color: rgba(255, 255, 255, .1); gap: 4px; }
.stats-bar .hs-value { color: #fff; font-size: 2.1rem; line-height: 1; text-shadow: 0 2px 12px rgba(77, 143, 240, .35); }
.stats-bar .hero-stat:first-child .hs-value { color: #ffb08f; }
.stats-bar .hs-label { color: #f07850; font-size: .85rem; letter-spacing: 1.6px; }
@media (max-width: 560px) {
  .stats-bar .hero-stat { padding: 12px 10px; }
  .stats-bar .hs-value { font-size: 1.35rem; }
  .stats-bar .hs-label { font-size: .7rem; letter-spacing: .8px; }
}

.sched-side .sd-day { text-wrap: balance; }

/* ── Nút Zalo xin gia nhập ── */
.zalo-btn { background: #fff; color: #0068ff; border-color: #fff; font-weight: 700; min-height: 44px; padding: 8px 16px 8px 10px; }
.zalo-btn:hover { background: #e8f1ff; }
.zalo-btn img { width: 24px; height: 24px; }
.zalo-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px;
  background: #0068ff; color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem;
  box-shadow: 0 8px 24px rgba(0, 104, 255, .45); transition: transform .15s, box-shadow .15s;
  animation: zalo-pulse 2.4s ease-out infinite;
}
.zalo-float:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 104, 255, .55); }
.zalo-float img { width: 40px; height: 40px; background: #fff; border-radius: 50%; padding: 5px; box-sizing: border-box; }
@keyframes zalo-pulse {
  0% { box-shadow: 0 8px 24px rgba(0, 104, 255, .45), 0 0 0 0 rgba(0, 104, 255, .5); }
  70% { box-shadow: 0 8px 24px rgba(0, 104, 255, .45), 0 0 0 14px rgba(0, 104, 255, 0); }
  100% { box-shadow: 0 8px 24px rgba(0, 104, 255, .45), 0 0 0 0 rgba(0, 104, 255, 0); }
}
@media (prefers-reduced-motion: reduce) { .zalo-float { animation: none; } }
/* chừa chỗ để nút nổi không che nội dung cuối trang */
.site-footer { padding-bottom: 88px; }
@media (max-width: 560px) {
  .zalo-float { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding-right: 14px; font-size: .9rem; }
  .zalo-float img { width: 36px; height: 36px; }
}
.site-footer .zalo-btn { color: #0068ff; }

/* ── Font tiêu đề: Exo 2 nghiêng (thay Barlow Condensed) — chữ rộng hơn nên giảm cỡ ── */
:root { --font-display: "Exo 2", "Be Vietnam Pro", system-ui, sans-serif; }
h1, h2, .brand, .section-title, .hero h1, .hero-kicker, .hs-value, .hs-label, .pay-amount, .big-amount,
.sched-time, .sched-side .sd-day, .ps-date, .stat .value { font-style: italic; }
.brand { color: #fff; font-size: 1.12rem; font-weight: 800; letter-spacing: .4px; }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); font-weight: 900; letter-spacing: .3px; line-height: 1.05; }
.hero-kicker { font-size: .78rem; font-weight: 800; letter-spacing: 1.2px; }
.section-title { font-size: clamp(1.4rem, 3.6vw, 1.85rem); font-weight: 900; letter-spacing: .3px; }
.stats-bar .hs-value { font-size: 1.7rem; font-weight: 900; }
.stats-bar .hs-label { font-size: .74rem; letter-spacing: 1.1px; }
.pay-amount { font-size: 1.85rem; font-weight: 900; }
.big-amount { font-size: 2.1rem; font-weight: 900; }
.sched-time { font-size: 1.35rem; font-weight: 900; }
.sched-side .sd-day { font-size: .95rem; font-weight: 800; letter-spacing: .3px; }
.pay-session .ps-date { font-size: .8rem; font-weight: 800; letter-spacing: .6px; }
.stat .value { font-size: 1.3rem; font-weight: 900; }
h1 { font-weight: 900; }
@media (max-width: 560px) {
  .brand { font-size: 1rem; }
  .stats-bar .hs-value { font-size: 1.15rem; }
  .stats-bar .hs-label { font-size: .64rem; letter-spacing: .5px; }
}

/* ── Tiêu đề: Exo 2 đứng thẳng, viết thường, nét vừa (nhẹ & hiện đại). Số liệu vẫn nghiêng. ── */
h1, h2, h3, .brand, .hero h1, .section-title, .sched-time, .pay-session h3 { font-style: normal; }
h1 { font-weight: 700; }
h2 { font-weight: 600; }
.brand { text-transform: uppercase; font-weight: 700; letter-spacing: .6px; }
.hero h1 { text-transform: none; font-weight: 700; letter-spacing: 0; line-height: 1.08; font-size: clamp(2.2rem, 5.8vw, 3.7rem); }
.section-title { text-transform: none; font-weight: 600; letter-spacing: 0; font-size: clamp(1.5rem, 3.8vw, 2rem); }
.sched-time { font-weight: 600; }
.pay-session h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }

/* ── Ủng hộ CLB & Bảng vinh danh ── */
.donate-grid { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 16px; align-items: start; }
.donate-grid .card { margin-bottom: 0; }
.donate-cta-card { text-align: center; border-top: 4px solid #f07850; }
.donate-cta-card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin: 6px 0; }
.donate-hero-icon { font-size: 2.6rem; line-height: 1; }
.donate-hero { text-align: center; border-top: 4px solid #f07850; }
.donate-hero h1 { font-family: var(--font-display); font-size: 2rem; margin: 6px 0 8px; }

.honor-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 12px; margin-bottom: 12px;
  background: linear-gradient(120deg, #3a2a0c, #6b4a12 55%, #8a6116); border: 1px solid rgba(255, 210, 120, .35);
}
.honor-total { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 2rem; color: #ffd27a; line-height: 1; }
.honor-sub { color: #f3e2bd; font-size: .9rem; margin-top: 4px; }
.honor-trophy { font-size: 2.6rem; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.honor-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.honor-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.honor-item.top { border-left: 4px solid; }
.honor-item.top-1 { border-left-color: #ffd27a; background: linear-gradient(90deg, rgba(255, 210, 122, .14), var(--surface-2) 60%); }
.honor-item.top-2 { border-left-color: #d6dde8; background: linear-gradient(90deg, rgba(214, 221, 232, .10), var(--surface-2) 60%); }
.honor-item.top-3 { border-left-color: #e3a06b; background: linear-gradient(90deg, rgba(227, 160, 107, .12), var(--surface-2) 60%); }
.honor-rank { width: 34px; text-align: center; font-size: 1.4rem; flex: none; font-family: var(--font-display); font-weight: 800; color: var(--muted); }
.honor-item:not(.top) .honor-rank { font-size: 1rem; font-style: italic; }
.honor-body { flex: 1; min-width: 0; }
.honor-name { font-weight: 700; }
.honor-item.top-1 .honor-name { color: #ffd27a; }
.honor-msg { font-size: .85rem; color: var(--muted); font-style: italic; margin-top: 2px; overflow-wrap: anywhere; }
.honor-amount { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.15rem; color: #ffb08f; flex: none; }

.field-label { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amount-chip {
  min-height: 48px; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.15rem;
  background: var(--surface-2); border: 2px solid var(--border);
}
.amount-chip.on { border-color: #f07850; background: rgba(240, 120, 80, .15); color: #ffb08f; }
.amount-custom { min-height: 48px; text-align: center; font-weight: 600; border-width: 2px; }
.amount-custom.on { border-color: #f07850; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; min-height: 0; accent-color: #f07850; }
.donate-submit { min-height: 52px; font-size: 1.05rem; }
.thanks-card { text-align: center; border-top: 4px solid #ffd27a; }
.thanks-card h1 { font-family: var(--font-display); font-size: 2rem; margin: 4px 0; }
.thanks-burst { font-size: 4rem; animation: pop .6s ease-out; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }

@media (max-width: 760px) {
  .donate-grid { grid-template-columns: 1fr; }
  .honor-total { font-size: 1.6rem; }
}

/* Ô "Quỹ CLB" trong dải số liệu — bấm được, nhảy tới bảng vinh danh */
.stats-bar a.hero-stat { text-decoration: none; color: inherit; transition: background .15s; }
.stats-bar a.hero-stat:hover { background: rgba(255, 210, 122, .08); }
.stats-bar .hs-fund .hs-value { color: #ffd27a; text-shadow: 0 2px 12px rgba(255, 210, 122, .3); }
@media (max-width: 560px) {
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-bar .hero-stat:nth-child(3) { border-left: 0; }
  .stats-bar .hero-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
}
@media (min-width: 561px) {
  /* các ô co giãn theo độ dài nội dung → "Thứ 6 hàng tuần" nằm 1 dòng */
  .stats-bar .stats-bar-inner { display: flex; }
  .stats-bar .hero-stat { flex: 1 1 auto; }
  .stats-bar .hs-value { white-space: nowrap; }
}

/* ── Hoa văn icon vợt & cầu nhỏ rải ngẫu nhiên trên nền (2 lớp kích thước khác nhau → khó thấy lặp) ── */
.section, .section.alt, .site-footer {
  background-image: url("/assets/deco/pattern-a.svg"), url("/assets/deco/pattern-b.svg");
  background-size: 360px 360px, 250px 250px;
  background-position: 0 0, 137px 91px;
  background-repeat: repeat, repeat;
}
.section.alt { background-position: 180px 40px, 23px 160px; }
/* Banner: thêm hoa văn icon nhỏ lên khối navy (ảnh bên phải vẫn phủ lên trên) */
.hero {
  background-image:
    url("/assets/deco/pattern-a.svg"), url("/assets/deco/pattern-b.svg"),
    linear-gradient(135deg, #061a3d 0%, #0a2a5e 60%, #0b3a85 100%);
  background-size: 360px 360px, 250px 250px, auto;
  background-position: 60px 30px, 190px 120px, 0 0;
  background-repeat: repeat, repeat, no-repeat;
}
/* Admin: log giao dịch ngân hàng của khoản ủng hộ */
.bank-tx { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--ok-soft); color: var(--text); font-size: .8rem; border-left: 3px solid var(--ok); }
.bank-tx code { font-size: .78rem; }
/* Chân trang: dòng cuối 2 bên — trái: HVC Group · Quản lý, phải: bản quyền */
.site-footer .ft-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 16px;
  margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.site-footer .ft-credit { margin-left: auto; }
.site-footer .ft-credit strong { color: #fff; font-weight: 600; }
@media (max-width: 560px) { .site-footer .ft-credit { margin-left: 0; } }
/* Admin: Thu chi */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.seg-btn { border: 0; background: transparent; font-weight: 700; }
.seg-btn.on.out { background: var(--danger-soft); color: var(--danger); }
.seg-btn.on.in { background: var(--ok-soft); color: var(--ok); }
.cat-bars { display: flex; flex-direction: column; gap: 12px; }
.cat-bar .progress { margin-top: 4px; height: 8px; }
.cat-bar .progress > div { background: linear-gradient(90deg, #f07850, #ffb08f); }
.ledger-table td { vertical-align: top; }

/* ── Banner trình chiếu nhiều ảnh: mờ dần + zoom chậm (Ken Burns) ── */
.hero-photo > .hp-slide {
  position: absolute; inset: 0 -30% 0 -10%; background-position: center; background-size: cover; background-repeat: no-repeat;
  transform: skewX(12deg) scale(1.08); opacity: 0;
  transition: opacity 1.2s ease, transform 6s ease-out;
}
.hero-photo > .hp-slide.active { opacity: 1; transform: skewX(12deg) scale(1); }
.hp-dots { position: absolute; z-index: 2; right: 28px; bottom: 74px; display: flex; gap: 8px; }
.hp-dot {
  width: 10px; height: 10px; min-height: 0; padding: 0; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, .45); box-shadow: 0 1px 4px rgba(0, 0, 0, .4); transition: width .3s, background .3s;
}
.hp-dot:hover { background: rgba(255, 255, 255, .8); }
.hp-dot.on { width: 26px; background: #f07850; }
@media (max-width: 820px) {
  .hero-photo > .hp-slide { inset: 0; transform: scale(1.08); }
  .hero-photo > .hp-slide.active { transform: scale(1); }
  .hp-dots { right: 50%; transform: translateX(50%); bottom: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo > .hp-slide, .hero-photo > .hp-slide.active { transition: opacity .6s; transform: skewX(12deg); }
}
.stack > label.check { display: flex; }
