/* =========================================================================
   VNPAY theme override (loads AFTER custom.css).
   Flips the legacy dark/blue public theme to a clean WHITE background with
   VNPAY RED as the primary colour, and adds the new home-page sections.
   Reversible: remove the <link> in public.hbs / auth.hbs to restore.
   ========================================================================= */

:root {
  --vnpay-red: #E11421;
  --vnpay-red-dark: #B30F19;
  --vnpay-red-soft: #FDECEC;
  --ink: #1A1A1A;
  --muted: #6B7280;
  --line: #ECECEC;
  --bg-soft: #F7F8FA;
  /* Nền hover/active trung tính (xám nhạt) — thay cho nền hồng red-soft trên các menu/list/row */
  --hover-soft: #F2F3F5;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --shadow-lg: 0 14px 38px rgba(0, 0, 0, .12);
  --radius: 14px;
}

/* ---------- 1. Base legibility: white page, dark text ---------------------- */
body {
  background: #fff;
  color: var(--ink);
}

a { color: var(--ink); }
a:hover { color: var(--vnpay-red); }

.color5,
.color-white,
.color2,
.color4 { color: var(--ink) !important; }

.color-red,
.text-danger { color: var(--vnpay-red) !important; }

h1, h2, h3, h4, h5, h6 { color: var(--ink); }

/* ---------- 2. Blue gradient boxes -> clean white cards -------------------- */
.bg1,
.bgopacity1 {
  background: #fff !important;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  color: var(--ink);
}
.bgopacity2 { background: var(--bg-soft); }
.bg2 { background-color: var(--vnpay-red); }
.boxstyle1 { background: var(--bg-soft); color: var(--ink); }

/* ---------- 3. Top nav / footer chrome (already light, just retune) -------- */
.menutop { border-bottom: 1px solid var(--line); }
.menutop .nav-link:hover { color: var(--vnpay-red) !important; }
.menutop .menu-top-left a:hover { color: var(--vnpay-red); }

footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
footer .top,
footer .bottom { border-color: var(--line) !important; }
footer .logo-line-left { color: var(--ink); }
footer a.color5:hover { color: var(--vnpay-red) !important; }
footer .logo-line-left .line { background: var(--vnpay-red); }

/* Footer dọn gọn: flex thay grid cố định -> tự cân khi ẩn cột CTA (đã đăng nhập),
   cột Liên kết 1 hàng, link đồng nhất kiểu chữ, không còn link lặp. */
.site-footer .footer-grid { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: flex-start; }
.site-footer .footer-col { flex: 1 1 190px; min-width: 0; }
.site-footer .footer-brand { flex: 2 1 300px; }
.site-footer .footer-cta { flex: 1.2 1 240px; }
.site-footer .footer-links { columns: 1; }
.site-footer .footer-links a,
.site-footer .footer-bottom-links a { text-transform: none; }

/* ---------- 4. Section headers (red bar + red title) ---------------------- */
.subtitlepage h1 {
  color: var(--ink);
  font-size: 22px;
}
.subtitlepage h1 .square {
  background-color: var(--vnpay-red);
  height: 22px;
  width: 5px;
  border-radius: 3px;
  margin-right: 12px;
  vertical-align: -2px;
}
.subtitlepage small { color: var(--muted); opacity: 1; }
.color2 { color: var(--vnpay-red) !important; }

/* ---------- 5. Buttons ----------------------------------------------------- */
.btn-style1 {
  background: var(--vnpay-red);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(225, 20, 33, .28);
}
.btn-style1:hover { background: var(--vnpay-red-dark); }

.btn-style2 { border-color: var(--vnpay-red); color: var(--vnpay-red); border-radius: 999px; }
.btn-style2:hover { background: var(--vnpay-red); color: #fff; }

.btn-style3 { border-color: var(--vnpay-red); color: var(--vnpay-red); }
.btn-style3:hover { background: var(--vnpay-red); color: #fff; }

.buttonS2 .border { border-color: var(--vnpay-red); }

/* ---------- 6. Challenge cards (.liststyle1 .item) ------------------------- */
.liststyle1 .item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 10px 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.liststyle1 .item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Event cards (home): tách card khỏi cột grid -> có khoảng cách (gutter) giữa các card.
   Cột chỉ là ô grid trong suốt; phần thân card nằm trong .event-card-inner. */
.liststyle1 .item.event-card {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  border-radius: 0; padding: 0 10px; margin-bottom: 22px;
}
.liststyle1 .item.event-card:hover { transform: none; box-shadow: none; }
.liststyle1 .item.event-card .event-card-inner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0 0 12px;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
  overflow: hidden;
}
.liststyle1 .item.event-card:hover .event-card-inner { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.liststyle1 .item.event-card .title { margin-top: 6px; padding: 0 10px; }
.liststyle1 .item.event-card .info1 { padding: 8px 10px 0; }
.liststyle1 .item.event-card .card-meta { padding: 0 10px; }
/* Nhiều icon môn trong badge: cách nhau cho dễ đọc, không dính sát */
.liststyle1 .iconinfo i + i { margin-left: 6px; }
.liststyle1 .iconinfo { display: inline-flex; align-items: center; }

/* Uniform card images: fixed aspect ratio so cards line up regardless of the
   source image's dimensions. Edge-to-edge, top corners match card border-radius. */
.liststyle1 .item .img {
  border-radius: 0;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f0f0f0;
  overflow: hidden;
}
.liststyle1 .item.event-card .img {
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
/* Cover: cắt đều, không có viền xám — đẹp hơn contain khi ảnh không đúng tỉ lệ */
.liststyle1 .item .img img { width: 100%; height: 100%; object-fit: cover; }
.liststyle1 .item .info1 { padding: 8px 6px 0; align-items: flex-start; }
/* Date can wrap to two lines without being clipped (was a fixed 24px height). */
/* Ngày gọn (dd/MM/yyyy), bỏ icon lịch nền + padding trái gây "khoảng trắng đầu thời gian" */
.liststyle1 .item .datetime { color: var(--muted); height: auto; min-height: 0; line-height: 1.4; font-size: 12px; padding-left: 0 !important; background: none !important; }
.liststyle1 .item .card-meta { color: var(--muted); font-size: 12px; margin-top: 6px; padding: 0 6px; display: flex; align-items: center; gap: 6px; }
.liststyle1 .item .card-meta i { color: var(--vnpay-red); font-size: 13px; }
.liststyle1 .item .iconinfo { white-space: nowrap; flex: 0 0 auto; }
/* Title cân bằng: luôn chiếm 2 dòng (clamp), các card canh đều nhau */
.liststyle1 .item .title {
  color: var(--ink); padding: 0 6px; line-height: 1.3; min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  /* Tiêu đề dịu hơn: semibold thay vì gilroy-bold/600, giãn chữ hoa nhẹ, size nhỏ lại */
  font-family: gilroy-semibold; font-weight: 400; letter-spacing: .02em; font-size: 15px;
}
.liststyle1 .item:hover .title { color: var(--vnpay-red); }
.info1 .iconinfo { background: var(--vnpay-red); }

/* ---------- 7. Tables (table.nobg) ---------------------------------------- */
table.nobg { color: var(--ink); }
table.nobg th { color: var(--muted); border-bottom: 1px solid var(--line); font-family: gilroy-bold; }
table.nobg td { border-color: var(--line); }
table.nobg a { color: var(--vnpay-red); }
table.nobg tbody tr:hover { background: var(--hover-soft); }
/* custom.css đặt color:#fff khi hover (di sản nền tối) khiến chữ trắng trên nền hồng nhạt -> mờ.
   Giữ chữ tối/đỏ khi hover để đọc rõ trên nền hồng nhạt. */
table.nobg tbody tr:hover,
table.nobg tbody tr:hover td,
table.nobg tbody tr:hover span { color: var(--ink) !important; }
table.nobg tbody tr:hover .text-primary,
table.nobg tbody tr:hover a { color: var(--vnpay-red) !important; }
.table-bordered.nobg,
.table-bordered.nobg td,
.table-bordered.nobg th { border-color: var(--line); }
.text-primary { color: var(--vnpay-red) !important; }
/* Compact status badge (e.g. "Kết thúc" column) — không phụ thuộc Font Awesome.
   Dùng font hệ thống để ký tự ✓/✕ luôn render (gilroy không có glyph này). */
.status-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 12px; line-height: 1; font-weight: 700;
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
}
.status-ic.done { background: var(--vnpay-red); color: #fff; }
.status-ic.live { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }

/* Challenge manager list: gọn hàng — ngày 1 dòng, cụm thao tác gom vào dropdown */
.nowrap { white-space: nowrap; }
.challenge-list td { vertical-align: middle; }
.challenge-list .dropdown-menu { font-size: 14px; min-width: 190px; }
.challenge-list .dropdown-item { padding: 8px 16px; color: var(--ink); }
.challenge-list .dropdown-item:hover { background: var(--hover-soft); color: var(--vnpay-red); }

/* ---------- 8. Left menu (race detail tabs) ------------------------------- */
.menuleft ul {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.menuleft ul li a { color: var(--ink); }
.menuleft ul li a:hover { color: var(--vnpay-red); background: var(--hover-soft); }
.menuleft ul li a.active {
  color: var(--vnpay-red);
  background: transparent;
  font-family: gilroy-bold;
  box-shadow: inset 3px 0 0 var(--vnpay-red);
}

/* ---------- 9. Horizontal tabs (#box-tab) --------------------------------- */
#box-tab .nav-tabs li a { color: var(--muted); }
#box-tab .nav-tabs li a.active,
#box-tab .nav-tabs li a:hover { color: var(--vnpay-red) !important; }
#box-tab .slider { background: var(--vnpay-red); }

/* ---------- 10. Forms ----------------------------------------------------- */
.form-control,
.custom-select {
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
}
.form-control:focus,
.custom-select:focus {
  border-color: var(--vnpay-red);
  box-shadow: 0 0 0 .15rem rgba(225, 20, 33, .15);
}
label { color: var(--ink); }
/* custom.css đặt `.form-group label { color:#fff }` (di sản nền tối) khiến mọi label
   trong form trắng trên nền trắng -> vô hình. Trả lại màu chữ tối trên nền trắng. */
.form-group label,
.form-group .custom-control-label { color: var(--ink); }
.alert-info { background: var(--vnpay-red-soft); border-color: #f5cccc; color: var(--vnpay-red-dark); }

/* ---------- 11. User dropdown + mobile sidebar menu ----------------------- */
.usercontrol .dropdown-menu,
.menutop .sm-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
}
.usercontrol .dropdown-menu a {
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 12px;
  line-height: 1.4;
}
.usercontrol .dropdown-menu a:hover { color: var(--vnpay-red); background: var(--hover-soft); }
/* Transparent bridge over the gap between toggle and menu so hover doesn't drop */
.usercontrol .dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
  height: 30px;
}
.usercontrol .dropdown-menu .linebar,
.menusizebar .linebar { border-bottom-color: var(--line); }

/* Sign-out link (legacy .color4 = gray-blue) -> red, distinguished */
.usercontrol .dropdown-menu a.color4,
.menusizebar a.color4 { color: var(--vnpay-red) !important; font-family: gilroy-bold; }

/* Mobile sidebar modal links (custom.css renders them white on white) */
.menusizebar .nav a,
.menusizebar .nav a.dropdown-item,
.dropdown-menu.show li a { color: var(--ink); }
.menusizebar .nav a:hover,
.menusizebar .nav a.dropdown-item:hover { color: var(--vnpay-red); }

/* =========================================================================
   NEW HOME-PAGE SECTIONS
   ========================================================================= */

/* ---------- Hero ---------------------------------------------------------- */
.vnpay-hero {
  background: linear-gradient(120deg, var(--vnpay-red-dark) 0%, var(--vnpay-red) 55%, #ff5a4d 100%);
  color: #fff;
  border-bottom: none;
  padding: 76px 0;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
/* Vòng tròn mờ trang trí cho hero đỡ phẳng */
.vnpay-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); pointer-events: none;
}
.vnpay-hero .container { position: relative; z-index: 1; }
.vnpay-hero .hero-eyebrow {
  display: inline-block;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .14);
  padding: 5px 14px; border-radius: 999px;
  font-family: gilroy-bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 16px;
}
.vnpay-hero h1 {
  font-family: gilroy-black, gilroy-bold, sans-serif;
  font-size: 50px;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 18px;
}
.vnpay-hero h1 .accent { color: #FFD56A; }
.vnpay-hero p.lead { color: rgba(255, 255, 255, .92); font-size: 17px; max-width: 520px; margin-bottom: 28px; }
.vnpay-hero .hero-actions .btn-style1 {
  padding: 12px 34px; font-size: 16px;
  background: #fff; color: var(--vnpay-red);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}
.vnpay-hero .hero-actions .btn-style1:hover { background: #FFD56A; color: var(--vnpay-red-dark); }
.vnpay-hero .hero-actions a.secondary {
  margin-left: 18px;
  color: #fff;
  font-family: gilroy-bold;
}
.vnpay-hero .hero-actions a.secondary:hover { color: #FFD56A; }
/* Banner SVG nền trong suốt hoà thẳng vào gradient hero -> không bo góc/đổ bóng
   (đổ bóng + nền riêng làm hoạ tiết thành "tấm thẻ tối" nổi cộm). */
.vnpay-hero .hero-img img {
  width: 100%;
  display: block;
}

/* ---------- Featured challenge banner ------------------------------------- */
.featured-challenge {
  display: flex; align-items: stretch; gap: 0;
  background: linear-gradient(135deg, #ed3437 0%, #9b1c1c 100%);
  border: 0; border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 8px 32px rgba(237,52,55,0.35); overflow: hidden; margin: 26px 0 8px;
  text-decoration: none; transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
/* Decorative circle accent */
.featured-challenge::after {
  content: ''; position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,0.06); pointer-events: none;
}
.featured-challenge:hover { transform: translateY(-4px); box-shadow: 0 14px 42px rgba(237,52,55,0.45); text-decoration: none; }
.featured-challenge .fc-img {
  flex: 0 0 42%; min-height: 230px; position: relative; overflow: hidden;
  background: rgba(0,0,0,0.15);
}
.featured-challenge .fc-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-challenge .fc-body {
  flex: 1 1 auto; padding: 32px 38px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 1;
}
.fc-tag {
  align-self: flex-start; background: rgba(255,255,255,0.2); color: #fff;
  font-family: gilroy-bold; font-size: 12px; padding: 4px 14px;
  border-radius: 999px; margin-bottom: 14px; letter-spacing: .5px;
}
.featured-challenge h3 {
  font-family: gilroy-black, gilroy-bold, sans-serif; font-size: 28px; color: #fff;
  margin: 0 0 12px; line-height: 1.2;
}
.featured-challenge .fc-meta {
  color: rgba(255,255,255,0.75); font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 24px;
}
.featured-challenge .fc-meta i { color: rgba(255,255,255,0.9); margin-right: 5px; }
.featured-challenge .fc-btn {
  align-self: flex-start; background: #fff; color: var(--vnpay-red);
  font-family: gilroy-bold; padding: 12px 28px; border-radius: 999px; font-size: 15px;
  transition: background .15s ease, color .15s ease;
}
.featured-challenge:hover .fc-btn { background: rgba(255,255,255,0.9); }
@media (max-width: 767px) {
  .featured-challenge { flex-direction: column; }
  .featured-challenge .fc-img { flex-basis: auto; min-height: 0; aspect-ratio: 16/9; }
  .featured-challenge .fc-body { padding: 22px 20px; }
  .featured-challenge h3 { font-size: 22px; }
}

/* ---------- Stats strip --------------------------------------------------- */
.vnpay-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 36px 0 8px;
}
.vnpay-stats .stat {
  flex: 1 1 0;
  min-width: 150px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  text-align: center;
}
/* Icon tròn nền hồng nhạt trên mỗi thẻ stats (home) cho sinh động */
.vnpay-stats .stat .ico {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--vnpay-red-soft);
  color: var(--vnpay-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.vnpay-stats .stat .num {
  font-family: gilroy-black, gilroy-bold, sans-serif;
  font-size: 34px;
  color: var(--vnpay-red);
  line-height: 1;
}
.vnpay-stats .stat .num .num-sub { font-size: 20px; color: var(--muted); font-family: gilroy-bold; }
.vnpay-stats .stat .label { color: var(--muted); font-size: 13px; margin-top: 8px; }
/* Stats trang xếp hạng: số có thể dài ("14 ngày 20:02:47") -> nhỏ hơn + không xuống dòng */
.result-stats .stat .num { font-size: 28px; white-space: nowrap; }
.result-stats .stat .num .num-sub { font-size: 17px; }

/* Tab cấp trang trên trang xếp hạng: Bảng xếp hạng / Thống kê */
#box-tab .page-tabs { border-bottom: 2px solid var(--line); margin-bottom: 18px; }
#box-tab .page-tabs .nav-item { margin-bottom: -2px; }
#box-tab .page-tabs .nav-link {
  padding: 10px 22px; font-size: 15px; font-family: gilroy-bold;
  color: var(--muted); border: none !important;
  border-bottom: 2px solid transparent !important; background: transparent;
}
#box-tab .page-tabs .nav-link:hover { color: var(--vnpay-red) !important; }
#box-tab .page-tabs .nav-link.active {
  color: var(--vnpay-red) !important; border-bottom-color: var(--vnpay-red) !important;
}

/* ---------- How it works (3 steps) --------------------------------------- */
.vnpay-steps { margin: 18px 0 8px; }
.vnpay-steps .step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  height: 100%;
  text-align: center;
}
.vnpay-steps .step .ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--vnpay-red-soft);
  color: var(--vnpay-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.vnpay-steps .step h5 { font-family: gilroy-bold; color: var(--ink); margin-bottom: 8px; }
.vnpay-steps .step p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Hall of fame teaser ------------------------------------------ */
.vnpay-hof {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--vnpay-red) 0%, var(--vnpay-red-dark) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin: 28px 0;
  color: #fff;
}
.vnpay-hof .ico { font-size: 40px; color: #ffd54a; }
.vnpay-hof h4 { color: #fff; font-family: gilroy-bold; margin: 0 0 4px; }
.vnpay-hof p { color: rgba(255, 255, 255, .85); margin: 0; }
.vnpay-hof .btn-white {
  background: #fff;
  color: var(--vnpay-red);
  border-radius: 999px;
  padding: 10px 28px;
  font-family: gilroy-bold;
  white-space: nowrap;
}
.vnpay-hof .btn-white:hover { color: var(--vnpay-red-dark); }

.section-link { color: var(--vnpay-red); font-family: gilroy-bold; font-size: 14px; }
.section-link:hover { color: var(--vnpay-red-dark); }

/* =========================================================================
   LOGIN PAGE — left becomes a RED brand panel, right a white card.
   ========================================================================= */
body.bodylogin { background: var(--bg-soft); }

.colleftlogin {
  background: linear-gradient(150deg, var(--vnpay-red) 0%, var(--vnpay-red-dark) 100%);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.colleftlogin .text0 { -webkit-text-stroke: 1px rgba(255, 255, 255, .65); color: transparent; }
.colleftlogin .text1,
.colleftlogin .text2 { color: #fff; }
.colleftlogin .color-white,
.colleftlogin .color-white p { color: rgba(255, 255, 255, .9) !important; }
.colleftlogin .linebreak { background: #fff; }

.colrightlogin {
  background: #fff !important;
  border: 1px solid var(--line);
  box-shadow: none;
  border-radius: var(--radius) 0 0 var(--radius);
}
.colrightlogin .textinside h1,
.colrightlogin .textinside .color-white { color: var(--ink) !important; }
.subtoplogin .btn-home { filter: none; }

/* =========================================================================
   SHARED COMPONENTS (Phase 0) — dùng lại trên mọi trang public + member.
   ========================================================================= */

/* ---------- Page header (thay cho .subtitlepage lặp) ---------------------- */
.vnpay-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 28px 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.vnpay-page-header .ph-text { min-width: 0; }
.vnpay-page-header h1 {
  font-family: gilroy-black, gilroy-bold, sans-serif;
  font-size: 26px;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
  display: flex;
  align-items: center;
}
.vnpay-page-header h1 .square {
  display: inline-block;
  background-color: var(--vnpay-red);
  height: 24px;
  width: 5px;
  border-radius: 3px;
  margin-right: 12px;
  flex: 0 0 auto;
}
.vnpay-page-header .ph-desc { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.vnpay-page-header .ph-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Generic card -------------------------------------------------- */
.vnpay-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 22px;
}
.vnpay-card.pad-sm { padding: 16px; }
.vnpay-card .card-title {
  font-family: gilroy-bold;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 14px;
}

/* ---------- Empty state --------------------------------------------------- */
.vnpay-empty {
  text-align: center;
  padding: 44px 20px;
  color: var(--muted);
}
.vnpay-empty .ico {
  font-size: 38px;
  color: var(--line);
  margin-bottom: 14px;
}
.vnpay-empty p { margin: 0; font-size: 15px; }

/* ---------- Responsive tables --------------------------------------------- */
/* Wrapper that scrolls horizontally when a table is too wide (leaderboards). */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-x table { margin-bottom: 0; }

/* .vnpay-table: clean themed table; on mobile collapses to a stacked card
   layout using data-label="" attributes on each <td>. */
.vnpay-table { width: 100%; color: var(--ink); border-collapse: collapse; }
.vnpay-table thead th {
  color: var(--muted);
  font-family: gilroy-bold;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}
.vnpay-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.vnpay-table tbody tr:hover { background: var(--hover-soft); }
.vnpay-table a { color: var(--vnpay-red); }
.vnpay-table .row-me,
.vnpay-table .row-me:hover { background: var(--vnpay-red); font-family: gilroy-bold; }
.vnpay-table .row-me td,
.vnpay-table .row-me a,
.vnpay-table .row-me b { color: #fff !important; }

/* ---------- Member layout (2-col, collapses on mobile) -------------------- */
.member-shell { display: flex; gap: 24px; align-items: flex-start; margin: 8px 0 24px; }
.member-shell .member-main { flex: 1 1 auto; min-width: 0; }
.member-nav {
  flex: 0 0 248px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.member-nav .member-card { padding: 22px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.member-nav .member-card .avatar img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 10px;
}
.member-nav .member-card .username { font-family: gilroy-bold; color: var(--ink); }
.member-nav ul { list-style: none; margin: 0; padding: 8px; }
.member-nav ul li a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
}
.member-nav ul li a:hover { color: var(--vnpay-red); background: var(--hover-soft); }
.member-nav ul li a.active {
  color: var(--vnpay-red);
  background: transparent;
  font-family: gilroy-bold;
  box-shadow: inset 3px 0 0 var(--vnpay-red);
}
/* Race sub-nav nằm ngang (pill) -> dùng thanh chỉ báo dưới thay vì bên trái */
.member-shell.race-shell .race-subnav ul li a.active {
  box-shadow: inset 0 -3px 0 var(--vnpay-red);
  border-radius: 0;
}
.member-nav ul li a.color4 { color: var(--vnpay-red); font-family: gilroy-bold; }

/* ---------- Member search autocomplete (race feed filter) ----------------- */
.member-ac { position: relative; max-width: 300px; flex: 1 1 240px; }
.member-ac-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); display: inline-flex; pointer-events: none;
}
.member-ac-caret {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 13px; pointer-events: none;
}
.member-ac-input {
  width: 100%; padding: 9px 30px 9px 36px;
  border: 1px solid var(--line); border-radius: 8px; color: var(--ink);
  font-size: 14px; background: #fff;
}
.member-ac-input:focus {
  outline: none; border-color: var(--vnpay-red);
  box-shadow: 0 0 0 .15rem rgba(225, 20, 33, .15);
}
.member-ac-list {
  position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg);
  max-height: 320px; overflow-y: auto; display: none;
}
.member-ac.open .member-ac-list { display: block; }
.member-ac-opt {
  padding: 9px 12px; border-radius: 7px; cursor: pointer;
  font-size: 14px; color: var(--ink); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.member-ac-opt:hover,
.member-ac-opt.active { background: var(--hover-soft); color: var(--vnpay-red); }
.member-ac-empty { padding: 10px 12px; font-size: 13px; color: var(--muted); }

/* Race pages: nav nằm ngang phía trên (thay cột trái) để nội dung dùng trọn chiều ngang. */
.member-shell.race-shell { flex-direction: column; gap: 16px; }
.member-shell.race-shell .member-main { width: 100%; }
.member-shell.race-shell .race-subnav {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.member-shell.race-shell .race-subnav ul {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 4px;
  padding: 6px;
  flex: 1 1 auto;
}
.member-shell.race-shell .race-subnav ul li { flex: 0 0 auto; }
.member-shell.race-shell .race-subnav ul li a { white-space: nowrap; padding: 9px 18px; }
/* "Vị trí của bạn" thu gọn nằm ngang ở bên phải thanh nav thay vì khối dọc dưới cột. */
.member-shell.race-shell .race-subnav .race-rank-card {
  border-top: none;
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 10px 18px;
}
.member-shell.race-shell .race-subnav .race-rank-card .title { flex: 1 0 100%; margin-bottom: 0; }
.member-shell.race-shell .race-subnav .race-rank-card .rank-num { font-size: 30px; }
.member-shell.race-shell .race-subnav .race-rank-card .stats { margin-top: 0; gap: 18px; }

/* ---------- "Vị trí của bạn" card (ranking sidebar) ----------------------- */
.race-rank-card { padding: 16px 18px; border-top: 1px solid var(--line); }
.race-rank-card .title {
  font-family: gilroy-bold; font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px;
}
.race-rank-card .rank-num {
  font-family: gilroy-black, gilroy-bold, sans-serif; font-size: 40px;
  line-height: 1; color: var(--vnpay-red);
}
.race-rank-card .rank-num small { font-size: 15px; color: var(--muted); font-family: gilroy-bold; }
.race-rank-card .stats { display: flex; gap: 10px; margin-top: 14px; }
.race-rank-card .stats .s { flex: 1 1 0; min-width: 0; }
.race-rank-card .stats .s .v {
  font-family: gilroy-bold; font-size: 15px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.race-rank-card .stats .s .l { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------- Ranking controls toolbar (rank tabs + filters + type tabs) ---- */
.race-toolbar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px;
}
/* Hàng trên: rank tabs (trái) + bộ lọc (phải, ml-auto — đồng nhất mọi challenge);
   hàng dưới: type tabs nếu có */
.race-toolbar .toolbar-row { gap: 10px 16px; }
#box-tab .race-toolbar .toolbar-row .type-tabs,
#box-tab .race-toolbar .rank-tabs { margin-bottom: 0; }
.race-toolbar .toolbar-row .race-filters { margin-bottom: 0; }
.race-toolbar .type-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; min-width: 0; }
.race-toolbar .type-tabs .nav-link { white-space: nowrap; }

/* Compact rank tabs (Cá nhân / Nam / Nữ) — gọn lại, bỏ slider JS bị lỗi.
   Tab active có gạch chân đỏ rõ ràng bằng CSS thay cho thanh trượt. */
#box-tab .race-toolbar .rank-tabs {
  display: inline-flex;
  gap: 4px;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  margin-bottom: 14px;
}
#box-tab .race-toolbar .rank-tabs .nav-item { margin-bottom: -2px; }
#box-tab .race-toolbar .rank-tabs .nav-link {
  padding: 9px 20px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent !important;
  transition: color .15s ease, border-color .15s ease;
}
#box-tab .race-toolbar .rank-tabs .nav-link:hover { color: var(--vnpay-red) !important; }
#box-tab .race-toolbar .rank-tabs .nav-link.active {
  color: var(--vnpay-red) !important;
  border-bottom-color: var(--vnpay-red) !important;
  font-family: gilroy-bold;
}

/* Type tabs (TOTAL / RUN / SWIM …) — same underline style as rank-tabs, override white-text
   from the old custom.css `#box-tab .nav-tabs li a { color:#fff }` rule. */
#box-tab .race-toolbar .toolbar-row .type-tabs .nav-link {
  padding: 9px 16px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent !important;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
#box-tab .race-toolbar .toolbar-row .type-tabs .nav-link:hover { color: var(--vnpay-red) !important; }
#box-tab .race-toolbar .toolbar-row .type-tabs .nav-link.active {
  color: var(--vnpay-red) !important;
  border-bottom-color: var(--vnpay-red) !important;
  font-family: gilroy-bold;
}

/* Bộ lọc tuần/đội/câu hỏi: dropdown nhỏ gọn, cùng một hàng */
.race-toolbar .race-filters .custom-select {
  height: auto;
  padding: 6px 28px 6px 12px;
  font-size: 13px;
  border-radius: 8px;
}

/* ---------- FAQ accordion ------------------------------------------------- */
.vnpay-faq .faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.vnpay-faq .faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  font-family: gilroy-bold;
  color: var(--ink);
  list-style: none;
}
.vnpay-faq .faq-q::-webkit-details-marker { display: none; }
.vnpay-faq .faq-q .chev { color: var(--vnpay-red); transition: transform .2s ease; flex: 0 0 auto; }
.vnpay-faq details[open] .faq-q .chev { transform: rotate(180deg); }
.vnpay-faq .faq-a { padding: 0 18px 18px; color: var(--muted); }
.vnpay-faq .faq-a img { max-width: 100%; height: auto; }

/* FAQ category pills */
.vnpay-pills { list-style: none; padding: 0; margin: 0; }
.vnpay-pills li a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 14px;
}
.vnpay-pills li a:hover { background: var(--hover-soft); color: var(--vnpay-red); }
.vnpay-pills li.active a { background: var(--vnpay-red); color: #fff; font-family: gilroy-bold; }

/* custom.css ép mọi text trong #event-info thành trắng !important (di sản nền tối)
   -> vô hình trên nền trắng. Trả lại màu chữ tối (cùng specificity + !important, nạp sau). */
#event-info div,
#event-info p,
#event-info ul,
#event-info li,
#event-info span { color: var(--ink) !important; }

/* ---------- Rich content body (static pages / event description) ---------- */
.race-body,
.event-body { color: var(--ink); line-height: 1.7; overflow-x: auto; }
.race-body img,
.event-body img { max-width: 100%; height: auto; border-radius: 8px; }
.race-body table,
.event-body table { max-width: 100%; border-collapse: collapse; }
.event-body table td,
.event-body table th { border: 1px solid var(--line); padding: 6px 10px; }
.race-body iframe,
.event-body iframe { max-width: 100%; }
.race-body h1, .race-body h2, .race-body h3,
.event-body h1, .event-body h2, .event-body h3 { color: var(--ink); margin: 1.3rem 0 .6rem; }
.event-body ul, .event-body ol { padding-left: 1.4rem; }
.race-body strong, .race-body b,
.event-body strong, .event-body b { font-family: gilroy-bold, Helvetica, sans-serif; font-weight: normal; }

/* ---------- Vertical form (contact, etc.) --------------------------------- */
.vnpay-form .form-group { margin-bottom: 18px; }
.vnpay-form label { display: block; font-family: gilroy-bold; font-size: 14px; margin-bottom: 6px; }
.vnpay-form .form-control { width: 100%; }

/* ---------- Member forms (dense config forms) ----------------------------- */
.bg1.radius4 label,
.boxcanhan label { font-weight: 600; font-size: 14px; }
.week-block hr,
.question-block hr { border-color: var(--line); }
/* Dense condition/answer rows: give each control room when they wrap. */
.condition-row > [class*="col-"] { margin-bottom: 6px; }
@media (max-width: 575px) {
  /* Full-width primary/secondary submit buttons are easier to tap on phones. */
  button[type="submit"].btn-style1,
  button[type="submit"].btn-style2 { width: 100%; }
  .form-row > [class*="col-"] { margin-bottom: 8px; }
  .form-inline .custom-select,
  .form-inline .form-control { width: 100%; }
}

/* ---------- Leaderboard (#box-tab wide tables) ---------------------------- */
#box-tab .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
#box-tab .table { margin-bottom: 0; }
#box-tab .table th, #box-tab .table td { white-space: nowrap; vertical-align: middle; }
#box-tab .table tbody tr:hover { background: var(--hover-soft); }
#box-tab .table tbody tr.row-me,
#box-tab .table tbody tr.row-me:hover { background: var(--vnpay-red); }
#box-tab .table tbody tr.row-me td,
#box-tab .table tbody tr.row-me a,
#box-tab .table tbody tr.row-me b { color: #fff !important; }

/* ---------- Pagination ---------------------------------------------------- */
.pagination .page-link { color: var(--vnpay-red); border-color: var(--line); border-radius: 8px; margin: 0 3px; }
.pagination .page-item.active .page-link,
.pagination .page-item .page-link:hover { background: var(--vnpay-red); border-color: var(--vnpay-red); color: #fff; }
.pagination .page-item.disabled .page-link { color: var(--muted); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 991px) {
  .vnpay-hero { padding: 40px 0; }
  .vnpay-hero h1 { font-size: 34px; }
  .vnpay-hero .hero-img { margin-top: 28px; }
  .colleftlogin,
  .colrightlogin { border-radius: var(--radius); }

  /* Race-page member-shell: nav stacks above content as a horizontal scroll bar */
  .member-shell { flex-direction: column; gap: 14px; }
  .member-shell .member-nav { flex-basis: auto; width: 100%; }
  .member-shell .member-nav .member-card { display: none; }
  .member-shell .member-nav ul { display: flex; gap: 6px; overflow-x: auto; padding: 8px; -webkit-overflow-scrolling: touch; }
  .member-shell .member-nav ul li a { white-space: nowrap; }
  /* "Vị trí của bạn" card: compact horizontal layout below the nav pills */
  .member-shell .member-nav .race-rank-card { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
  .member-shell .member-nav .race-rank-card .title { flex: 1 0 100%; margin-bottom: 0; }
  .member-shell .member-nav .race-rank-card .rank-num { flex: 0 0 auto; }
  .member-shell .member-nav .race-rank-card .stats { flex: 1 1 auto; margin-top: 0; }
}

/* Member dashboard sidebar lives inside a Bootstrap column; only collapse to a
   horizontal scroll bar on real phones (≤767), staying vertical on tablets. */
@media (max-width: 767px) {
  .member-sidebar .member-card { display: none; }
  .member-sidebar ul { display: flex; gap: 6px; overflow-x: auto; padding: 8px; -webkit-overflow-scrolling: touch; }
  .member-sidebar ul li a { white-space: nowrap; }
}

@media (max-width: 767px) {
  .vnpay-page-header { margin: 18px 0 16px; }
  .vnpay-page-header h1 { font-size: 21px; }
  .vnpay-card { padding: 16px; }
  .vnpay-hof { padding: 22px; }
  .vnpay-hof .btn-white { width: 100%; text-align: center; }

  /* Collapse .vnpay-table rows into stacked cards */
  .vnpay-table.stack thead { display: none; }
  .vnpay-table.stack,
  .vnpay-table.stack tbody,
  .vnpay-table.stack tr,
  .vnpay-table.stack td { display: block; width: 100%; }
  .vnpay-table.stack tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    padding: 6px 4px;
  }
  .vnpay-table.stack tbody tr:hover { background: #fff; }
  .vnpay-table.stack td {
    border: none;
    border-bottom: 1px dashed var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    text-align: right;
    padding: 9px 12px;
  }
  .vnpay-table.stack td:last-child { border-bottom: none; }
  .vnpay-table.stack td::before {
    content: attr(data-label);
    font-family: gilroy-bold;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .3px;
    text-align: left;
    flex: 0 0 auto;
  }
  /* "Dòng của bạn" (row-me) nền đỏ: nhãn + đường kẻ phải sáng để đọc được trên nền đỏ. */
  .vnpay-table.stack tr.row-me td::before { color: rgba(255, 255, 255, .8); }
  .vnpay-table.stack tr.row-me td { border-bottom-color: rgba(255, 255, 255, .35); }
}

@media (max-width: 575px) {
  .vnpay-hero h1 { font-size: 28px; }
  .vnpay-hero .hero-actions .btn-style1 { display: block; text-align: center; }
  .vnpay-hero .hero-actions a.secondary { display: inline-block; margin: 14px 0 0; }
  .vnpay-stats { gap: 12px; }
  .vnpay-stats .stat { min-width: calc(50% - 6px); padding: 16px 12px; }
  .vnpay-stats .stat .ico { width: 38px; height: 38px; font-size: 16px; margin-bottom: 8px; }
  .vnpay-stats .stat .num { font-size: 27px; }
  .menutop .menu-top-left { display: none; }
}

/* ---------- Athlete public profile (/athlete/:id) ------------------------- */
.profile-page { padding: 24px 0 40px; }
.profile-header { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-header .ph-avatar img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.profile-header .ph-avatar img.placeholder { background: var(--vnpay-red-soft); padding: 18px; }
.profile-header .ph-info { flex: 1; min-width: 200px; }
.profile-header .ph-info h1 {
  font-family: gilroy-black, gilroy-bold, sans-serif; font-size: 26px; color: var(--ink);
  margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.profile-header .ph-meta { color: var(--muted); font-size: 14px; }
.profile-header .ph-strava { display: inline-flex; align-items: center; gap: 5px; color: var(--vnpay-red); font-size: 14px; margin-top: 6px; }
.profile-header .ph-strava img { height: 16px; }
.profile-chip { background: var(--vnpay-red-soft); color: var(--vnpay-red); font-family: gilroy-bold; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.profile-header .ph-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-badge { background: #FBF3D6; color: #8A6D1A; border: 1px solid #EBD899; font-size: 12px; font-family: gilroy-bold; padding: 6px 12px; border-radius: 999px; }
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; }
.profile-stats .ps { text-align: center; }
.profile-stats .ps .v { font-family: gilroy-bold; font-size: 22px; color: var(--ink); line-height: 1.15; }
.profile-stats .ps .v small { font-size: 14px; color: var(--muted); font-family: gilroy-bold; }
.profile-stats .ps .v.accent { color: var(--vnpay-red); }
.profile-stats .ps .l { font-size: 12px; color: var(--muted); margin-top: 4px; }
.profile-section-title { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.profile-section-title .card-title { margin: 0; }
/* Bảng so sánh: cột chỉ số căn trái, hai cột giá trị căn giữa (header + data khớp nhau) */
.profile-compare thead th,
.profile-compare tbody td { text-align: center; }
.profile-compare thead th:first-child,
.profile-compare tbody td:first-child { text-align: left; }
/* Icon hoạt động (SVG fill trắng) -> đặt trong badge tròn đỏ để hiện rõ trên nền trắng */
.activity-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--vnpay-red); flex: 0 0 auto;
}
.activity-ic img { width: 16px; height: 16px; }

/* ---------- Bảng xếp hạng (Bảng vàng / Thành viên tích cực) --------------- */
.hof-table .rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink); font-family: gilroy-bold; font-size: 14px;
}
.hof-table .rank-badge.gold { background: linear-gradient(135deg, #FFE08A, #F6C700); color: #5b4a00; font-size: 16px; }
.hof-table .hof-champion,
.hof-table .hof-champion:hover { background: linear-gradient(90deg, #FFF8DE 0%, #fff 60%); }
.hof-table .hof-champion td { font-family: gilroy-bold; }
.hof-athlete { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: var(--ink); }
.hof-athlete img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.hof-noava { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-soft); display: inline-block; flex: 0 0 auto; }
.hof-tag { background: #F6C700; color: #5b4a00; font-family: gilroy-bold; font-size: 11px; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.hof-table th.col-active { background: rgba(246, 199, 0, .14); }
.hof-table td.col-active { background: rgba(246, 199, 0, .08); font-family: gilroy-bold; color: var(--ink); }
.strava-link { color: #FC4C02; font-family: gilroy-bold; text-decoration: none; white-space: nowrap; }
.strava-link::after { content: " \2197"; }
.strava-link:hover { color: #FC4C02; text-decoration: underline; }

/* ---------- Mobile utility additions (v26) --------------------------------- */
/* Sticky first column for wide tables that use scroll-x (e.g. leaderboard).   */
.vnpay-table .col-sticky {
  position: sticky;
  left: 0;
  z-index: 1;
  background: inherit;
}
/* Bootstrap 4 doesn't ship gap utilities — add the ones we need for flex forms */
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
/* Flex-shrink helper for form inputs inside flex-wrap forms */
.flex-shrink-0 { flex-shrink: 0 !important; }
/* Activity image in member area — responsive height */
.activity-img { width: 100%; max-height: 130px; height: auto; object-fit: cover; }
