/* HOG Kingdom of Jordan Chapter - design system (IT.JO, 2026-11). Sits on Bootstrap 5.3. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(fonts/inter-700.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(fonts/inter-800.woff2) format("woff2"); }
@font-face { font-family: Oswald; font-weight: 500; font-display: swap; src: url(fonts/oswald-500.woff2) format("woff2"); }
@font-face { font-family: Oswald; font-weight: 600; font-display: swap; src: url(fonts/oswald-600.woff2) format("woff2"); }
@font-face { font-family: Oswald; font-weight: 700; font-display: swap; src: url(fonts/oswald-700.woff2) format("woff2"); }
@font-face { font-family: Cairo; font-weight: 400; font-display: swap; src: url(fonts/cairo-400.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Cairo; font-weight: 700; font-display: swap; src: url(fonts/cairo-700.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --hx-orange: #F26522; --hx-orange-600: #D9531A; --hx-orange-50: #FFF1E9; --hx-orange-100: #FFE0CC;
  --hx-ink: #0E0E10; --hx-ink-2: #17171A; --hx-ink-3: #232328; --hx-line-dark: #2C2C33;
  --hx-bg: #F5F4F2; --hx-surface: #FFFFFF; --hx-line: #E7E4DF; --hx-text: #16161A; --hx-muted: #6B6A70;
  --hx-green: #1F8F4E; --hx-green-50: #E8F6EE; --hx-amber: #C98500; --hx-amber-50: #FFF6DE; --hx-red: #C0392B; --hx-red-50: #FDECEA;
  --hx-radius: 14px; --hx-radius-sm: 10px; --hx-shadow: 0 1px 2px rgba(16,16,20,.05), 0 4px 16px rgba(16,16,20,.05);
  --hx-side-w: 256px; --hx-top-h: 64px;
  --bs-body-font-family: Inter, Cairo, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: var(--hx-text); --bs-body-bg: var(--hx-bg); --bs-border-color: var(--hx-line);
  --bs-link-color: var(--hx-orange-600); --bs-link-color-rgb: 217,83,26; --bs-link-hover-color: #B8440F;
  --bs-primary: var(--hx-orange); --bs-primary-rgb: 242,101,34;
  --bs-border-radius: var(--hx-radius-sm); --bs-border-radius-lg: var(--hx-radius);
  --bs-focus-ring-color: rgba(242,101,34,.25);
}
html { -webkit-text-size-adjust: 100%; }
body.hx { background: var(--hx-bg); color: var(--hx-text); font-size: 15px; line-height: 1.5; min-height: 100vh; }
[dir=rtl] body, body[dir=rtl], :lang(ar) { font-family: Cairo, Inter, system-ui, sans-serif; }
h1, h2, h3, .hx-h, .card-title { font-family: Oswald, Inter, sans-serif; letter-spacing: .01em; }
h1, h2, h3, h4, h5, .card-title { color: var(--hx-text); font-weight: 600; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.btn, .nav-link, .hx-nav a, .hx-tab, .list-group-item-action { text-decoration: none !important; }
::selection { background: var(--hx-orange-100); }

/* ---------- shell ---------- */
.hx-side { position: fixed; inset: 0 auto 0 0; width: var(--hx-side-w); background: var(--hx-ink); color: #D9D7D3; display: flex; flex-direction: column; z-index: 1040; transition: transform .25s ease; }
.hx-brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; color: #fff !important; }
.hx-brand img { width: 52px; height: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.hx-brand b { display: block; font-family: Oswald, sans-serif; font-weight: 600; font-size: 17px; letter-spacing: .04em; line-height: 1.1; text-transform: uppercase; }
.hx-brand small { display: block; color: var(--hx-orange); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.hx-nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; }
.hx-nav .hx-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #77757C; padding: 16px 12px 6px; }
.hx-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0; border-radius: 10px; color: #CFCDC8; font-weight: 500; font-size: 14.5px; }
.hx-nav a .mdi { font-size: 20px; color: #8D8B92; width: 22px; text-align: center; }
.hx-nav a:hover { background: var(--hx-ink-3); color: #fff; }
.hx-nav a.on { background: linear-gradient(90deg, rgba(242,101,34,.22), rgba(242,101,34,.06)); color: #fff; box-shadow: inset 3px 0 0 var(--hx-orange); }
.hx-nav a.on .mdi { color: var(--hx-orange); }
.hx-nav .hx-count { margin-left: auto; background: var(--hx-orange); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 20px; }
.hx-side-foot { padding: 14px 18px; border-top: 1px solid var(--hx-line-dark); font-size: 12px; color: #77757C; }
.hx-side-foot a { color: #A9A7AE; }
.hx-main { margin-left: var(--hx-side-w); min-height: 100vh; display: flex; flex-direction: column; }
.hx-top { position: sticky; top: 0; z-index: 1030; height: var(--hx-top-h); display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: rgba(245,244,242,.86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--hx-line); }
.hx-top .hx-title { font-family: Oswald, sans-serif; font-weight: 600; font-size: 20px; letter-spacing: .02em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-burger { display: none; border: 0; background: transparent; font-size: 26px; line-height: 1; padding: 6px; margin-left: -6px; color: var(--hx-text); }
.hx-top .hx-sp { flex: 1; }
.hx-user { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 4px 6px 4px 4px; border-radius: 40px; color: var(--hx-text); }
.hx-user:hover { background: rgba(0,0,0,.05); }
.hx-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--hx-orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; overflow: hidden; flex: 0 0 auto; }
.hx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hx-avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.hx-avatar.dark { background: var(--hx-ink-3); }
.hx-user .meta { text-align: left; line-height: 1.15; }
.hx-user .meta b { display: block; font-size: 14px; font-weight: 600; }
.hx-user .meta small { color: var(--hx-muted); font-size: 12px; }
.hx-content { flex: 1; padding: 24px; max-width: 1400px; width: 100%; }
.hx-content > .container, .hx-content > .container-fluid { padding-left: 0; padding-right: 0; max-width: none; }
.hx-shade { display: none; }
.hx-imp { background: var(--hx-ink); color: #fff; padding: 8px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 3px solid var(--hx-orange); font-size: 14px; }
.hx-tabbar { display: none; }

@media (max-width: 991.98px) {
  .hx-side { transform: translateX(-100%); box-shadow: 0 0 40px rgba(0,0,0,.4); }
  body.hx-open .hx-side { transform: none; }
  body.hx-open .hx-shade { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1035; }
  .hx-main { margin-left: 0; }
  .hx-burger { display: inline-flex; }
  .hx-top { padding: 0 14px; height: 58px; }
  .hx-top .hx-title { font-size: 18px; }
  .hx-user .meta { display: none; }
  .hx-content { padding: 16px 14px 20px; }
  body.hx:not(.hx-auth) { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .hx-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: var(--hx-ink); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hx-line-dark); }
  .hx-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #A3A1A8; font-size: 11px; font-weight: 600; padding: 4px 2px; border-radius: 10px; }
  .hx-tab .mdi { font-size: 23px; line-height: 1.1; }
  .hx-tab.on { color: #fff; } .hx-tab.on .mdi { color: var(--hx-orange); }
}

/* ---------- page header ---------- */
.hx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hx-head h1 { font-size: 28px; margin: 0; text-transform: uppercase; letter-spacing: .03em; }
.hx-head p { margin: 4px 0 0; color: var(--hx-muted); }
.hx-head .hx-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hx-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--hx-orange-600); }
@media (max-width: 575.98px) { .hx-head h1 { font-size: 23px; } .hx-head .hx-actions { width: 100%; } .hx-head .hx-actions .btn { flex: 1; } }

/* ---------- cards / panels ---------- */
.card { background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: var(--hx-radius); box-shadow: var(--hx-shadow); }
.card.mt-3, .card.card-body.mt-3 { margin-top: 0 !important; margin-bottom: 1rem; }
.card-body { padding: 20px; }
.card + .card { margin-top: 0; }
.card-title { font-size: 19px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .03em; }
.card hr { border-color: var(--hx-line); opacity: 1; margin: 12px 0 16px; }
.hx-panel { background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: var(--hx-radius); box-shadow: var(--hx-shadow); padding: 20px; margin-bottom: 18px; }
.hx-panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.hx-panel-h h2 { font-size: 18px; margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.hx-panel-h a.more { font-size: 13px; font-weight: 600; }
@media (max-width: 575.98px) { .hx-panel, .card-body { padding: 16px; } }

/* stats */
.hx-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.hx-stat { background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: var(--hx-radius); padding: 16px 18px; box-shadow: var(--hx-shadow); display: flex; gap: 14px; align-items: center; color: inherit; }
a.hx-stat:hover { border-color: var(--hx-orange); text-decoration: none; }
.hx-stat .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--hx-orange-50); color: var(--hx-orange-600); display: flex; align-items: center; justify-content: center; font-size: 24px; flex: 0 0 auto; }
.hx-stat .ic.g { background: var(--hx-green-50); color: var(--hx-green); } .hx-stat .ic.a { background: var(--hx-amber-50); color: var(--hx-amber); }
.hx-stat .ic.r { background: var(--hx-red-50); color: var(--hx-red); } .hx-stat .ic.k { background: #EDEBE7; color: var(--hx-ink); }
.hx-stat .v { font-family: Oswald, sans-serif; font-size: 28px; font-weight: 600; line-height: 1; }
.hx-stat .l { color: var(--hx-muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 575.98px) { .hx-stats { grid-template-columns: 1fr 1fr; gap: 10px; } .hx-stat { padding: 12px; gap: 10px; } .hx-stat .ic { width: 38px; height: 38px; font-size: 20px; } .hx-stat .v { font-size: 22px; } .hx-stat .l { font-size: 12px; } }

/* hero (dark) */
.hx-hero { position: relative; overflow: hidden; border-radius: 18px; background: radial-gradient(120% 160% at 100% 0%, #3A2216 0%, #17171A 45%, #0B0B0C 100%); color: #fff; padding: 24px; margin-bottom: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.hx-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; background: url(img/logo.png) center/contain no-repeat; opacity: .08; pointer-events: none; }
.hx-hero h1, .hx-hero h2, .hx-hero h3 { color: #fff; }
.hx-hero .hx-kicker { color: var(--hx-orange); }
.hx-hero p, .hx-hero .muted { color: #B9B6B0; }
.hx-hero .btn-light { background: #fff; color: var(--hx-ink); border: 0; }
.hx-hero-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 14px; }
.hx-hero-facts div { min-width: 90px; }
.hx-hero-facts b { display: block; font-family: Oswald, sans-serif; font-size: 22px; font-weight: 600; line-height: 1.1; }
.hx-hero-facts small { color: #A9A6A0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; }

/* ride cards */
.hx-rides { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.hx-ride { display: flex; flex-direction: column; background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: var(--hx-radius); overflow: hidden; color: inherit; box-shadow: var(--hx-shadow); transition: border-color .15s, transform .15s, box-shadow .15s; }
a.hx-ride:hover { text-decoration: none; border-color: var(--hx-orange); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.hx-ride-top { display: flex; gap: 14px; padding: 16px; align-items: flex-start; }
.hx-date { flex: 0 0 auto; width: 58px; text-align: center; border-radius: 12px; background: var(--hx-ink); color: #fff; padding: 6px 0 8px; line-height: 1; }
.hx-date small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--hx-orange); text-transform: uppercase; }
.hx-date b { display: block; font-family: Oswald, sans-serif; font-size: 26px; font-weight: 600; margin-top: 4px; }
.hx-date i { display: block; font-style: normal; font-size: 10.5px; color: #9C9A97; margin-top: 3px; }
.hx-date.past { background: #E9E6E1; color: #6B6A70; } .hx-date.past small { color: #8E8C91; }
.hx-ride h3 { font-size: 18px; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.2; }
.hx-ride .route { color: var(--hx-muted); font-size: 13.5px; }
.hx-ride-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; padding: 10px 16px 14px; border-top: 1px dashed var(--hx-line); font-size: 13px; color: var(--hx-muted); margin-top: auto; }
.hx-ride-meta span { display: inline-flex; align-items: center; gap: 4px; }
.hx-ride-meta .mdi { font-size: 16px; color: var(--hx-orange-600); }

/* chips / badges */
.badge { font-weight: 600; letter-spacing: .02em; padding: .42em .7em; border-radius: 20px; }
.hx-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: #EDEBE7; color: #4B4A50; white-space: nowrap; }
.hx-chip.on { background: var(--hx-green-50); color: var(--hx-green); } .hx-chip.due { background: var(--hx-amber-50); color: #8A5B00; }
.hx-chip.off { background: var(--hx-red-50); color: var(--hx-red); } .hx-chip.or { background: var(--hx-orange-50); color: var(--hx-orange-600); }
.hx-chip.dark { background: var(--hx-ink); color: #fff; }
.bg-success { background-color: var(--hx-green) !important; } .bg-danger { background-color: var(--hx-red) !important; }
.bg-warning { background-color: #F3B21B !important; } .bg-secondary { background-color: #8A8890 !important; }
.text-success { color: var(--hx-green) !important; } .text-danger { color: var(--hx-red) !important; }

/* buttons */
.btn { font-weight: 600; border-radius: 10px; padding: .55rem 1rem; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-sm { padding: .35rem .7rem; border-radius: 8px; font-size: 13px; }
.btn-lg { padding: .8rem 1.3rem; border-radius: 12px; }
.btn .mdi { font-size: 1.15em; line-height: 1; }
.btn-primary { --bs-btn-bg: var(--hx-orange); --bs-btn-border-color: var(--hx-orange); --bs-btn-hover-bg: var(--hx-orange-600); --bs-btn-hover-border-color: var(--hx-orange-600);
  --bs-btn-active-bg: #B8440F; --bs-btn-active-border-color: #B8440F; --bs-btn-disabled-bg: var(--hx-orange); --bs-btn-disabled-border-color: var(--hx-orange); --bs-btn-color: #fff; --bs-btn-hover-color: #fff; }
.btn-dark, .btn-success, .btn-info { --bs-btn-bg: var(--hx-ink); --bs-btn-border-color: var(--hx-ink); --bs-btn-hover-bg: #2A2A30; --bs-btn-hover-border-color: #2A2A30; --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #000; }
.btn-outline-dark, .btn-outline-secondary, .btn-light { --bs-btn-color: var(--hx-text); --bs-btn-border-color: #D6D2CC; --bs-btn-bg: #fff; --bs-btn-hover-bg: #F2EFEA; --bs-btn-hover-border-color: #C9C4BD; --bs-btn-hover-color: var(--hx-text); --bs-btn-active-bg: #E8E4DE; --bs-btn-active-color: var(--hx-text); --bs-btn-active-border-color: #C9C4BD; }
.btn-outline-danger { --bs-btn-color: var(--hx-red); --bs-btn-border-color: #F0C4BF; --bs-btn-hover-bg: var(--hx-red); --bs-btn-hover-border-color: var(--hx-red); }
.btn-danger { --bs-btn-bg: var(--hx-red); --bs-btn-border-color: var(--hx-red); --bs-btn-hover-bg: #A93226; --bs-btn-hover-border-color: #A93226; }
.btn-outline-primary { --bs-btn-color: var(--hx-orange-600); --bs-btn-border-color: var(--hx-orange); --bs-btn-hover-bg: var(--hx-orange); --bs-btn-hover-border-color: var(--hx-orange); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--hx-orange-600); }
.btn-group > .btn, .btn-group > form > .btn { border-radius: 0; }
.btn-group > :first-child, .btn-group > :first-child > .btn { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.btn-group > :last-child, .btn-group > :last-child > .btn { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.hx-iconbtn { width: 36px; height: 36px; padding: 0; border-radius: 10px; }

/* forms */
.form-label, label { font-weight: 600; font-size: 13.5px; color: #3C3B40; margin-bottom: 6px; }
.form-control, .form-select { border-radius: 10px; border-color: #DAD6D0; padding: .6rem .8rem; font-size: 15px; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--hx-orange); box-shadow: 0 0 0 .22rem rgba(242,101,34,.18); }
.form-control::placeholder { color: #A3A0A8; }
.form-group, .mb-3.form-group { margin-bottom: 1rem; }
.form-text, small.text-muted { color: var(--hx-muted) !important; }
.form-check-input:checked { background-color: var(--hx-orange); border-color: var(--hx-orange); }
.input-group-text { border-radius: 10px; border-color: #DAD6D0; background: #F6F4F1; }
.hx-form-actions, .form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.invalid-feedback, .text-danger.small { font-size: 13px; }

/* tables */
.table { --bs-table-bg: transparent; --bs-table-border-color: var(--hx-line); margin-bottom: 0; vertical-align: middle; font-size: 14.5px; }
.table > thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--hx-muted); font-weight: 700; background: #FAF9F7; border-bottom-width: 1px; white-space: nowrap; padding: 10px 12px; }
.table > tbody td, .table > tbody th { padding: 11px 12px; }
.table-bordered { border: 1px solid var(--hx-line); border-radius: 12px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.table-bordered > :not(caption) > * > * { border-width: 0 0 1px 0; }
.table-bordered > tbody > tr:last-child > * { border-bottom-width: 0; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #FBF7F3; }
.table-responsive { border-radius: 12px; }
.hx-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hx-person .hx-avatar { width: 34px; height: 34px; font-size: 13px; }
.hx-person b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-person small { color: var(--hx-muted); font-size: 12.5px; }

/* alerts & toasts */
.alert { border-radius: 12px; border: 1px solid transparent; padding: 12px 16px; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--hx-green-50); border-color: #BFE5CF; color: #145C33; }
.alert-danger { background: var(--hx-red-50); border-color: #F3C6C0; color: #8E2A20; }
.alert-warning { background: var(--hx-amber-50); border-color: #F2DDA0; color: #6E4A00; }
.alert-info { background: #EEF3FB; border-color: #CFDCF2; color: #23406F; }
.alert.text-center { justify-content: center; }
.hx-flash { position: fixed; top: 14px; right: 14px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 28px)); }
.hx-flash .alert { box-shadow: 0 10px 30px rgba(0,0,0,.16); margin: 0; animation: hxIn .25s ease; }
.hx-flash .btn-close { margin-left: auto; font-size: 11px; }
@keyframes hxIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* lists, tabs, empty states */
.list-group-item { border-color: var(--hx-line); }
.nav-tabs, .nav-pills { gap: 6px; border: 0; }
.nav-pills .nav-link, .nav-tabs .nav-link, .hx-seg a { border: 1px solid var(--hx-line); background: #fff; color: var(--hx-text); border-radius: 30px; padding: 6px 14px; font-weight: 600; font-size: 13.5px; }
.nav-pills .nav-link.active, .nav-tabs .nav-link.active, .hx-seg a.on { background: var(--hx-ink); border-color: var(--hx-ink); color: #fff; }
.hx-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.hx-seg a .n { opacity: .7; margin-left: 4px; font-weight: 500; }
.hx-empty { text-align: center; padding: 34px 16px; color: var(--hx-muted); }
.hx-empty > .mdi { font-size: 44px; color: #C9C5BE; display: block; margin-bottom: 6px; }
.hx-empty b { display: block; color: var(--hx-text); font-size: 16px; margin-bottom: 4px; }
.dropdown-menu { border-radius: 12px; border-color: var(--hx-line); box-shadow: 0 14px 34px rgba(0,0,0,.14); padding: 6px; }
.dropdown-item { border-radius: 8px; padding: 8px 12px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.dropdown-item:active { background: var(--hx-orange); }
.modal-content { border-radius: 16px; border: 0; }
.progress { height: 8px; border-radius: 10px; background: #ECE9E4; }
.progress-bar { background: var(--hx-orange); }

/* leaderboard */
.hx-board { list-style: none; padding: 0; margin: 0; }
.hx-board li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--hx-line); }
.hx-board li:last-child { border-bottom: 0; }
.hx-board .rk { width: 30px; text-align: center; font-family: Oswald, sans-serif; font-size: 18px; color: var(--hx-muted); flex: 0 0 auto; }
.hx-board li.top1 .rk { color: #C9A227; } .hx-board li.top2 .rk { color: #9AA0A6; } .hx-board li.top3 .rk { color: #B87333; }
.hx-board .km { margin-left: auto; text-align: right; font-family: Oswald, sans-serif; font-size: 19px; line-height: 1; }
.hx-board .km small { display: block; font-family: Inter, sans-serif; font-size: 11.5px; color: var(--hx-muted); margin-top: 2px; }
.hx-board li.me { background: var(--hx-orange-50); border-radius: 10px; }
.hx-podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: end; margin-bottom: 14px; }
.hx-podium > div { text-align: center; background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: 14px; padding: 14px 8px; }
.hx-podium .p1 { padding-top: 22px; border-color: #E8CF7A; background: linear-gradient(#FFF9E6, #fff); }
.hx-podium .hx-avatar { margin: 0 auto 6px; }
.hx-podium b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-podium .k { font-family: Oswald, sans-serif; font-size: 20px; }
.hx-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.hx-badge { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--hx-line); background: #fff; font-size: 13px; font-weight: 600; }
.hx-badge .mdi { font-size: 22px; color: var(--hx-orange); }
.hx-badge.locked { opacity: .45; filter: grayscale(1); }

/* announcements */
.hx-news { border-left: 3px solid var(--hx-orange); padding: 4px 0 4px 14px; margin-bottom: 14px; }
.hx-news:last-child { margin-bottom: 0; }
.hx-news h3 { font-family: Inter, sans-serif; font-size: 15.5px; font-weight: 700; text-transform: none; letter-spacing: 0; margin: 0 0 2px; }
.hx-news small { color: var(--hx-muted); }
.hx-news p { margin: 6px 0 0; white-space: pre-line; }
.hx-news.pin { border-left-color: var(--hx-ink); }

/* key/value facts (old views) */
.ride-facts .fact, .hx-fact { background: #FAF9F7; border: 1px solid var(--hx-line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; height: 100%; }
.ride-facts .fact-label, .hx-fact small { font-size: 11px; text-transform: uppercase; color: var(--hx-muted); letter-spacing: .1em; font-weight: 700; }
.ride-facts .fact-value, .hx-fact b { font-weight: 700; color: var(--hx-text); font-size: 15px; }

/* auth pages */
body.hx-auth { min-height: 100vh; display: flex; background: var(--hx-ink); }
.hx-auth-art { flex: 1.1; position: relative; background: #000 center/cover no-repeat; display: flex; align-items: flex-end; padding: 40px; color: #fff; }
.hx-auth-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.85) 100%); }
.hx-auth-art > div { position: relative; max-width: 520px; }
.hx-auth-art h2 { color: #fff; font-size: 40px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; margin: 8px 0 10px; }
.hx-auth-art p { color: #D7D4CE; font-size: 16px; margin: 0; }
.hx-auth-box { flex: 0 0 480px; background: var(--hx-bg); display: flex; flex-direction: column; justify-content: center; padding: 40px 48px; }
.hx-auth-box .logo { width: 110px; display: block; margin: 0 auto 14px; }
.hx-auth-box h1 { font-size: 28px; text-transform: uppercase; text-align: center; margin: 0 0 4px; letter-spacing: .03em; }
.hx-auth-box .sub { text-align: center; color: var(--hx-muted); margin-bottom: 22px; }
.hx-auth-switch { display: grid; grid-template-columns: 1fr 1fr; background: #E9E6E1; border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.hx-auth-switch a { text-align: center; padding: 8px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--hx-muted); }
.hx-auth-switch a.on { background: #fff; color: var(--hx-text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.hx-auth-box .btn-primary { width: 100%; padding: .8rem; font-size: 16px; }
.hx-auth-foot { text-align: center; color: var(--hx-muted); font-size: 12.5px; margin-top: 24px; }
.hx-pw { position: relative; } .hx-pw .form-control { padding-right: 44px; }
.hx-pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--hx-muted); font-size: 20px; padding: 4px 8px; }
@media (max-width: 991.98px) {
  body.hx-auth { flex-direction: column; background: var(--hx-bg); }
  .hx-auth-art { flex: 0 0 auto; min-height: 210px; padding: 22px 20px; }
  .hx-auth-art h2 { font-size: 26px; } .hx-auth-art p { font-size: 14px; }
  .hx-auth-box { flex: 1; padding: 24px 18px 30px; border-radius: 20px 20px 0 0; margin-top: -18px; position: relative; }
  .hx-auth-box .logo { width: 84px; margin-top: -64px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
}

/* public pages (QR check-in, verify card) */
body.hx-public { background: var(--hx-ink); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.hx-public-card { width: 100%; max-width: 460px; background: var(--hx-bg); border-radius: 20px; padding: 26px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.5); text-align: center; }
.hx-public-card .logo { width: 96px; margin: -70px auto 10px; display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.hx-public-card h1 { font-size: 24px; text-transform: uppercase; margin: 0 0 6px; }

/* utilities */
.hx-muted { color: var(--hx-muted); }
.hx-num { font-family: Oswald, sans-serif; font-weight: 600; }
.hx-grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1099.98px) { .hx-grid-2 { grid-template-columns: 1fr; } }
.hx-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.min-w-0 { min-width: 0; }
.page-breadcrumb { display: none; }
@media print { .hx-side, .hx-top, .hx-tabbar, .hx-flash, .no-print { display: none !important; } .hx-main { margin: 0; } .hx-content { padding: 0; } body.hx { background: #fff; } }
