/* Hiệp hội Du lịch tỉnh Gia Lai — phong cách glassmorphism (DentaCare) */

:root {
  --cyan: #2BB5D8;
  --cyan-soft: #7ED6EE;
  --cyan-pale: #D7F3FA;
  --blue: #2E6FB0;
  --blue-deep: #245E96;
  --navy: #1E3A5F;
  --navy-2: #2A4A73;
  --muted: #5E7A94;
  --text: #1E3A5F;
  --white: #FFFFFF;
  --ok: #1FA971;
  --ok-bg: #E5F8EF;
  --warn: #C47A12;
  --glass: rgba(255, 255, 255, 0.48);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);
  --shadow: 0 10px 30px rgba(46, 111, 176, 0.12);
  --shadow-soft: 0 8px 24px rgba(30, 58, 95, 0.08);
  --radius: 24px;
  --radius-sm: 18px;
  --font: "Be Vietnam Pro", "Segoe UI", sans-serif;
  --tab-h: 70px;
  --tab-gap: 10px;
  --color-scheme: light;
  --theme-color: #D4ECFA;
  --bg-0: #EAF6FD;
  --bg-1: #D4ECFA;
  --bg-2: #C5E2F6;
  --orb-a: rgba(255, 255, 255, 0.9);
  --orb-b: rgba(43, 181, 216, 0.28);
  --orb-c: rgba(46, 111, 176, 0.18);
  --orb-d: rgba(126, 214, 238, 0.35);
  --page-bg:
    radial-gradient(ellipse 80% 50% at 10% 0%, var(--orb-a) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 10%, var(--orb-b) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 80% 90%, var(--orb-c) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 80%, var(--orb-d) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 40%, var(--bg-2) 100%);
  --input-bg: rgba(255, 255, 255, 0.78);
  --input-border: var(--glass-border);
  --logo-tile-bg: #ffffff;
  --scrim: rgba(30, 58, 95, 0.32);
  --row-line: rgba(30, 58, 95, 0.08);
  --glass-blur: blur(18px) saturate(1.4);
  --glass-strong-blur: blur(20px) saturate(1.5);
  --text-shadow: none;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: var(--color-scheme);
}

body {
  font-family: var(--font);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  background: var(--page-bg);
  background-attachment: fixed;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea {
  font-family: inherit;
  font-size: 16px; /* iOS không tự zoom khi focus */
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
}
.bg-orbs span:nth-child(1) {
  width: 220px; height: 220px; top: -40px; right: -40px;
  background: radial-gradient(circle, #fff 0%, rgba(43,181,216,0.35) 70%, transparent 100%);
}
.bg-orbs span:nth-child(2) {
  width: 160px; height: 160px; bottom: 20%; left: -50px;
  background: radial-gradient(circle, rgba(255,255,255,0.8), rgba(46,111,176,0.2) 70%, transparent);
}
.bg-orbs span:nth-child(3) {
  width: 90px; height: 90px; top: 42%; right: 18px;
  background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(43,181,216,0.3));
}

.app-shell, .splash {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  margin: 0 auto;
  min-height: 100dvh;
}

/* ===== Glass ===== */
.glass {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
}

.glass-strong {
  background: var(--glass-strong);
  backdrop-filter: var(--glass-strong-blur);
  -webkit-backdrop-filter: var(--glass-strong-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

/* ===== Buttons ===== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 12px 22px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 100%);
  box-shadow: 0 10px 22px rgba(43, 181, 216, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-cta:active { transform: scale(0.98); }

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}
.icon-btn svg { width: 20px; height: 20px; }

/* Wordmark: Gia|Lai */
.wordmark {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
}
.wordmark .accent { color: var(--cyan); }

.badge-mau {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--warn);
  background: #FFF4E0;
  border: 1px dashed #E0B15A;
  border-radius: 999px;
  padding: 3px 8px;
  line-height: 1.3;
  margin-top: 6px;
}
.badge-xacnhan {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #8A5A10;
  background: #F8E7B8;
  border-radius: 999px;
  padding: 3px 8px;
  margin-top: 6px;
  line-height: 1.3;
}
.badge-now {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--blue-deep);
  background: var(--cyan-pale);
  border-radius: 999px;
  padding: 3px 8px;
  margin-top: 6px;
}

/* ===== Splash ===== */
.splash {
  display: flex;
  flex-direction: column;
  padding: 20px 24px 28px;
  text-align: center;
  min-height: 100dvh;
}
.splash[hidden], .app-shell[hidden] { display: none !important; }

.splash-logo {
  width: min(62vw, 200px);
  height: auto;
  margin: 8px auto 12px;
  border-radius: 0;
  background: transparent;
  display: block;
  color: inherit;
  box-shadow: none;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  overflow: visible;
  line-height: 0;
}

.splash-art {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 4px 0 8px;
  max-height: 42dvh;
}
.splash-art img, .splash-art svg { width: min(100%, 300px); height: auto; max-height: 42dvh; object-fit: contain; }
.splash .btn-cta { margin-top: auto; flex-shrink: 0; }

.splash h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 4px 0 8px;
}
.splash .sub {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.splash .slogan {
  font-size: 14.5px;
  color: var(--navy-2);
  max-width: 22em;
  margin: 0 auto 22px;
  line-height: 1.55;
}

/* ===== App header ===== */
.app-shell { padding: 14px 18px calc(var(--tab-h) + var(--tab-gap, 10px) + 24px + var(--safe-bottom, env(safe-area-inset-bottom, 0px))); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.topbar .brand {
  text-align: left;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.topbar .brand .brand-text { min-width: 0; }
.topbar .brand .logo-hhdl-tile {
  width: 42px;
  height: 32px;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.topbar .brand .wordmark { font-size: 1.22rem; line-height: 1.15; }
.topbar .brand .tiny {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  margin-bottom: 16px;
  color: var(--muted);
}
.search svg { width: 18px; height: 18px; flex-shrink: 0; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  color: var(--navy);
}
.search input::placeholder { color: #8AA0B5; font-size: 16px; }


/* Association logo — transparent mark, no white tile (v67) */
.logo-hhdl-tile {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  flex-shrink: 0;
  line-height: 0;
  box-shadow: none;
}
.logo-hhdl-tile picture,
.logo-hhdl-tile img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  max-width: none;
}
.logo-hhdl-tile.is-icon {
  width: 42px;
  height: 32px;
}
.logo-hhdl-tile.is-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.hero-logo {
  width: 108px;
  margin: 0 0 10px;
  border-radius: 0;
}
.chat-login-logo {
  width: 148px;
  margin: 0 auto 12px;
  border-radius: 0;
}
.toi-app-logo {
  width: 124px;
  margin: 0 auto 12px;
  border-radius: 0;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 18px;
  min-height: 176px;
  margin-bottom: 18px;
}
.hero-copy { width: 58%; position: relative; z-index: 2; }
.hero-copy .hello {
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hero-copy h2 {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 8px;
}
.hero-copy p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  right: -18px;
  bottom: -16px;
  width: 54%;
  z-index: 1;
  pointer-events: none;
}

/* ===== Tiles ===== */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px 10px;
  border-radius: 20px;
  text-align: center;
  color: var(--navy);
  min-height: 96px;
}
.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), var(--cyan-pale));
  color: var(--cyan);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(43, 181, 216, 0.18);
}
.tile-icon svg { width: 24px; height: 24px; }
.tile span {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
  max-width: 100%;
  hyphens: manual;
}

/* ===== Section heads ===== */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 12px;
}
.sec-head h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sec-head a, .sec-head button {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
}

/* ===== Person / appointment cards ===== */
.people { display: grid; gap: 10px; }

.person {
  display: grid;
  grid-template-columns: 52px 1fr 22px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  text-align: left;
  color: inherit;
  width: 100%;
}
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #BFEAF6, #6EB8E4);
  display: grid;
  place-items: center;
  color: var(--white);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(46, 111, 176, 0.2);
}
.avatar.mau {
  background: linear-gradient(145deg, #E6EEF4, #C5D3DE);
}
.avatar svg { width: 28px; height: 28px; }
.avatar.has-photo {
  padding: 0;
  background: #d5e6f0;
}
.avatar.has-photo picture,
.avatar.has-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 32%;
}
.portrait-wide {
  overflow: hidden;
  padding: 0;
  margin: 0 0 16px;
}
.portrait-wide img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.portrait-wide figcaption {
  padding: 10px 14px 12px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--navy-2);
}
.person-body { min-width: 0; }
.person-body h4,
.person-body .hv-name,
.bch-ds-body .hv-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.person .hv-name-text,
.hv-card .hv-name-text,
.bch-ds-body .hv-name-text {
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  line-height: 1.25;
}
.person-body p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.person-body p.bch-chuc,
.person-body p.bch-roles {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  word-break: break-word;
}
.person-body p.bch-roles,
.hv-card p.bch-roles,
.bch-ds-body .bch-roles {
  font-size: 12px !important;
  font-weight: 500;
  color: var(--muted) !important;
}
.chev { color: var(--muted); }
.person.current { border-color: rgba(43, 181, 216, 0.45); }

/* ===== Footer note ===== */
.page-foot {
  margin: 22px 2px 8px;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* ===== Tab bar ===== */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-gap, 10px) + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
  transform: translateX(-50%);
  width: min(calc(100% - 16px), 430px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 9px 5px;
  height: auto;
  min-height: 0;
  z-index: 30;
  border-radius: 22px;
}
.tabbar a, .tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 9px;
  font-weight: 650;
  color: var(--muted);
  padding: 6px 1px;
  border-radius: 16px;
  min-width: 0;
  white-space: nowrap;
  letter-spacing: -0.03em;
  position: relative;
  overflow: visible;
}
.tabbar svg { width: 26px; height: 26px; flex-shrink: 0; display: block; overflow: visible; }
.tabbar .active {
  color: var(--blue-deep);
  background: var(--cyan-pale);
}
.tabbar .soon { opacity: 0.45; }

/* ===== Detail ===== */
.detail-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.detail-top h1 {
  flex: 1;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  min-width: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.stat {
  text-align: center;
  padding: 12px 6px;
  border-radius: 18px;
  min-width: 0;
}
.stat b {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.2;
  word-break: break-word;
}
.stat span {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.lead {
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--navy-2);
}

.checks { list-style: none; display: grid; gap: 8px; margin-bottom: 16px; }
.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  font-size: 13.5px;
}
.check-ic {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.check-ic svg { width: 12px; height: 12px; }
.checks li.mau-item .check-ic {
  background: #FFF4E0;
  color: var(--warn);
}

/* Timeline (history) — kept class names for any leftover markup */
.timeline { list-style: none; display: grid; gap: 12px; margin: 4px 0 16px; }
.t-item { padding: 14px 16px; }
.t-moc, .tl-moc {
  font-size: 12px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.02em;
}
.t-item h3, .tl-card h3 {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  margin: 2px 0 8px;
}
.t-item p, .tl-card p { font-size: 13.5px; color: var(--navy-2); }
.t-thieu { margin-top: 8px; font-size: 12.5px; color: var(--warn); }
.sources { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.sources a { font-weight: 700; }

/* Org */
.org { display: grid; gap: 10px; margin-bottom: 14px; }
.org-node { padding: 14px 16px; }
.org-node h3 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.org-node p { font-size: 13px; color: var(--navy-2); }
.org-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.org-node.cap-1 {
  background: linear-gradient(135deg, rgba(43,181,216,0.2), rgba(46,111,176,0.18));
  border-color: rgba(43,181,216,0.35);
}
.dieule-box { padding: 14px 16px; margin-bottom: 12px; font-size: 13px; }
.dieule-box h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 8px;
}
.dieule-box li { margin: 0 0 6px 1.1em; }

/* Board placeholders */
.slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.slot-card {
  padding: 14px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.slot-card .avatar { width: 48px; height: 48px; }
.slot-card strong { font-size: 12.5px; }
.slot-card span { font-size: 11px; color: var(--muted); }

.uv-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.uv-cell {
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #E6EEF4, #C5D3DE);
  display: grid;
  place-items: center;
  color: #7A90A4;
}
.uv-cell svg { width: 55%; height: 55%; }

.note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  background: rgba(255, 244, 224, 0.7);
  border-left: 3px solid #E0B15A;
  padding: 8px 10px;
  border-radius: 0 12px 12px 0;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(30, 58, 95, 0.28);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.drawer[hidden] { display: none !important; }
.drawer-panel {
  width: min(100%, 430px);
  margin-top: 0;
  padding: 22px 18px 28px;
  border-radius: 0 0 28px 28px;
}
.drawer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4px 0 14px;
  text-align: center;
}
.drawer-brand .logo-hhdl-tile {
  width: 72px;
  height: 54px;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.drawer-panel h3 { font-size: 1.1rem; margin: 8px 0 14px; }
.drawer-brand h3.wordmark { margin: 10px 0 0; }
.drawer-panel a, .drawer-panel button.linkish {
  display: flex;
  width: 100%;
  text-align: left;
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid rgba(30,58,95,0.08);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  z-index: 50;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  width: max-content;
  max-width: min(90vw, 360px);
  text-align: center;
}
.toast[hidden] { display: none !important; }

.status { padding: 24px 8px; text-align: center; color: var(--muted); }

#search-results { margin-bottom: 16px; }
#search-results[hidden] { display: none !important; }

@media (min-width: 480px) {
  .app-shell, .splash { padding-left: 20px; padding-right: 20px; }
}

/* force hidden even when a display utility is set */
[hidden] { display: none !important; }

/* ===== Tab bar: 5 tabs — Home, Hoạt Động, Hội Viên, Quyền Lợi, Tôi ===== */
.tabbar { grid-template-columns: repeat(5, 1fr); }

/* ===== Hoạt động ===== */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  margin: 0 -2px 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  color: var(--navy-2);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}
.chip[aria-pressed="true"], .chip.active {
  color: var(--white);
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-color: transparent;
  box-shadow: 0 8px 16px rgba(43, 181, 216, 0.3);
}

.month-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.month-strip::-webkit-scrollbar { display: none; }
.month-card {
  flex: 0 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 72px;
  border-radius: 18px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  color: var(--navy);
  padding: 6px 4px;
}
.month-card b {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.month-card span {
  font-size: 9.5px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.month-card .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan);
  margin-top: 2px;
}
.month-card.empty .dot { background: transparent; }
.month-card[aria-pressed="true"], .month-card.active {
  color: var(--white);
  background: linear-gradient(180deg, var(--cyan) 0%, var(--blue) 100%);
  border-color: transparent;
}
.month-card[aria-pressed="true"] span,
.month-card[aria-pressed="true"] .dot,
.month-card.active span { color: rgba(255,255,255,0.85); }
.month-card[aria-pressed="true"] .dot,
.month-card.active .dot { background: #fff; }

.date-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px 10px 10px;
  margin-bottom: 8px;
  color: inherit;
}
.date-num {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--cyan-pale), #fff);
  border: 1px solid var(--glass-border);
  color: var(--navy);
  flex-shrink: 0;
}
.date-num b { font-size: 1.15rem; font-weight: 800; line-height: 1; }
.date-num span { font-size: 9.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.date-body { min-width: 0; }
.date-body h4 {
  font-size: 13.5px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.date-body p {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hd-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 12px 12px 10px;
  margin-bottom: 8px;
  color: inherit;
}
.hd-ico {
  width: 48px; height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--cyan-pale);
  color: var(--blue-deep);
  flex-shrink: 0;
}
.hd-ico svg { width: 22px; height: 22px; }
.hd-body { min-width: 0; }
.hd-body h4 {
  font-size: 13.5px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hd-body p {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge-stt {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  margin-top: 5px;
  line-height: 1.3;
}
.stt-sap-toi { color: var(--blue-deep); background: var(--cyan-pale); }
.stt-dang-dien-ra { color: #0F7A4A; background: var(--ok-bg); }
.stt-da-dien-ra, .stt-da-hop { color: var(--muted); background: rgba(94,122,148,0.12); }

.btn-cta.secondary {
  background: var(--glass-strong);
  color: var(--navy);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  margin-top: 8px;
}
.detail-copy {
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--navy-2);
}
.detail-copy p + p { margin-top: 10px; }
.meta-row {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--navy-2);
}
.meta-row p { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.meta-row strong { color: var(--muted); font-weight: 650; font-size: 12px; }

.empty-filter {
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 12px;
}

.tiles-3 { grid-template-columns: repeat(3, 1fr); }


/* Sự kiện / cuộc họp đã kết thúc — chỉ dùng trong tab Hoạt động */
.hd-card.is-past,
.date-card.is-past {
  filter: grayscale(1);
  opacity: 0.55;
  color: var(--muted);
}
.hd-card.is-past h4,
.date-card.is-past h4,
.hd-card.is-past p,
.date-card.is-past p {
  color: var(--muted);
}
.date-card.is-past .date-num,
.hd-card.is-past .hd-ico {
  background: rgba(94, 122, 148, 0.16);
  color: var(--muted);
}


/* Official org tree — vertical frosted glass */
.org-tree {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 4px 0 18px;
}
.ot-chart-title {
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin: 4px 0 14px;
  padding: 0 8px;
}
.ot-stem {
  width: 2px;
  height: 16px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(43,181,216,0.15), #2BB5D8 40%, #2E6FB0);
  border-radius: 2px;
}
.ot-node {
  display: block;
  text-align: center;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
}
.ot-node h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 2px;
  line-height: 1.35;
}
.ot-node p {
  font-size: 12px;
  color: var(--navy-2);
  margin: 0;
  line-height: 1.4;
}
.ot-node.ot-root {
  background: linear-gradient(135deg, rgba(43,181,216,0.22), rgba(46,111,176,0.16));
  border-color: rgba(43,181,216,0.4);
}
.ot-node.ot-tap {
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.08);
}
.ot-node.ot-tap:active {
  transform: scale(0.99);
}
.ot-hint {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
}
.ot-eq {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #2BB5D8;
  line-height: 1;
  padding: 4px 0 2px;
}
.ot-pair-note {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy-2);
  margin-top: 2px;
}
.ot-label {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 10px 0 8px;
}
.ot-row {
  display: grid;
  gap: 8px;
  width: 100%;
}
.ot-row.two { grid-template-columns: 1fr 1fr; }
.ot-row.two .ot-node h3 { font-size: 13.5px; }
.ot-clubs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.ot-club {
  font-size: 11px;
  font-weight: 650;
  color: var(--navy);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ot-clubs-detail { justify-content: flex-start; margin: 0 0 16px; }
.ot-clubs-detail .ot-club { font-size: 12.5px; padding: 8px 12px; }
.ot-note { margin-top: 6px; font-size: 12.5px; color: var(--navy-2); }


.dang-cap-nhat {
  margin: 2px 0 14px;
  padding: 12px 4px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ===== Hội viên ===== */
.hv-search { margin: 4px 0 14px; }
.hv-list { display: flex; flex-direction: column; gap: 10px; }
.hv-card {
  display: flex;
  align-items: center;
  overflow: visible;
  gap: 10px;
  padding: 10px 12px 10px 10px;
  text-decoration: none;
  color: inherit;
}
.hv-ava-wrap { position: relative; flex-shrink: 0; }
.hv-ava {
  width: 56px; height: 56px; border-radius: 18px;
  object-fit: cover;
  background: var(--cyan-pale);
  display: grid; place-items: center;
  font-size: 16px; font-weight: 800; color: var(--blue);
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-soft);
}
.hv-ava.lg { width: 88px; height: 88px; border-radius: 26px; font-size: 22px; }
.hv-ava.ph { overflow: hidden; }
.hv-logo {
  position: absolute; right: -6px; bottom: -4px;
  width: 28px; height: 28px; border-radius: 9px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 2px 8px rgba(30,58,95,0.18);
  border: 2px solid #fff;
}
.hv-body { min-width: 0; flex: 1; }
.hv-body h4, .hv-hero h2, .hv-block h4 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.hv-card .hv-body h4,
.hv-card .hv-name {
  font-size: 15px;
  font-weight: 800;
}
.hv-body p, .hv-hero p { margin: 0; font-size: 13px; color: var(--blue); font-weight: 600; }
.hv-body .hv-chuc {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: normal;
  max-width: 100%;
  min-width: 0;
  line-height: 1.35;
  color: var(--blue);
  margin: 1px 0 0;
}
.hv-chuc-text {
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.hv-card .hv-cty {
  color: var(--muted) !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  margin-top: 2px !important;
  line-height: 1.35;
}
.hv-chev { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.hv-chev svg { width: 18px; height: 18px; }
.hv-chip {
  display: inline-flex; align-items: center;
  margin-top: 8px;
  padding: 2px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
}
.hv-hero {
  display: flex; gap: 16px; align-items: center;
  padding: 16px; margin-bottom: 16px;
}
.hv-contacts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.hv-contact {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; text-decoration: none; color: inherit;
}
.hv-contact span { font-size: 12px; color: var(--muted); font-weight: 600; }
.hv-contact b { font-size: 14.5px; font-weight: 650; color: var(--navy); word-break: break-word; }
.hv-block { padding: 14px 16px; margin-bottom: 10px; }
.hv-block-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.hv-block-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--logo-tile-bg); }
.hv-desc { font-size: 13.5px; color: var(--navy-2); line-height: 1.5; margin: 0 0 6px; }
.hv-meta { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }
.hv-price { font-size: 16px; font-weight: 800; color: var(--navy); margin: 6px 0; }
.hv-cover {
  width: 100%; height: 140px; object-fit: cover;
  border-radius: 14px; margin-bottom: 10px;
  background: var(--cyan-pale);
}
.hv-buy { display: inline-flex; margin-top: 8px; }
.hv-link { font-size: 13px; font-weight: 650; }

.hv-connect-bar {
  position: static;
  width: 100%;
  margin-top: 12px;
}
.hv-sheet-empty {
  margin: 0 8px 12px;
  font-size: 14px;
  color: var(--muted);
}
.hv-sheet-back {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(30, 58, 95, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  align-items: end;
  padding: 16px 12px calc(var(--tab-h) + var(--tab-gap, 10px) + 16px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
}
.hv-sheet {
  width: min(100%, 430px);
  margin: 0 auto;
  border-radius: 24px;
  padding: 18px 16px 14px;
}
.hv-sheet h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 8px 12px;
}
.hv-sheet-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-bottom: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--navy);
  text-decoration: none;
}
.hv-sheet-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
}

.hv-name {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 0 0 2px;
}
.hv-hero .hv-name {
  margin-bottom: 8px;
  align-items: flex-start;
  gap: 8px;
  font-size: 18px;
  line-height: 1.25;
}
.hv-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hv-hero .hv-name-text {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.25;
}
.hv-rank {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
}
.hv-rank svg,
.hv-rank img {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  object-fit: contain;
  pointer-events: none;
}
.hv-card .hv-rank,
.hv-card .hv-rank-ct,
.hv-card .hv-rank-pct-tt,
.hv-card .hv-rank-pct,
.hv-card .hv-rank-tb,
.hv-card .hv-rank-ptb,
.hv-card .hv-rank-uv,
.hv-card .hv-rank-ch { width: 22px; height: 22px; }
.hv-hero .hv-name .hv-rank,
.hv-hero .hv-name .hv-rank-ct,
.hv-hero .hv-name .hv-rank-pct-tt,
.hv-hero .hv-name .hv-rank-pct,
.hv-hero .hv-name .hv-rank-tb,
.hv-hero .hv-name .hv-rank-ptb,
.hv-hero .hv-name .hv-rank-uv,
.hv-hero .hv-name .hv-rank-ch { width: 28px; height: 28px; margin-top: 0; }
/* Chủ tịch (Master): ~1.8–2× other medals, glowing sparkle. Other ranks unchanged. */
.hv-name .hv-rank-ct,
.hv-card .hv-name .hv-rank-ct,
.person .hv-name .hv-rank-ct,
.bch-ds-body .hv-name .hv-rank-ct {
  width: 40px;
  height: 40px;
  margin: 0;
}
.hv-hero .hv-name .hv-rank-ct,
.hv-pro-hero .hv-name .hv-rank-ct {
  width: 52px;
  height: 52px;
  margin: 0;
}
.hv-hero .hv-name,
.hv-pro-hero .hv-name {
  align-items: center;
}
.hv-rank-ct {
  position: relative;
  z-index: 1;
  overflow: visible;
  flex-shrink: 0;
}
.hv-rank-ct img {
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 0 2px rgba(255, 236, 170, 0.55))
    drop-shadow(0 0 3px rgba(240, 193, 75, 0.4));
  animation: hv-ct-glow 2.4s ease-in-out infinite;
}
/* Tiny edge sparkles only — 0×0 so box-shadows are dots, not a second halo. */
.hv-name .hv-rank-ct::before,
.hv-name .hv-rank-pct-tt::before,
.hv-name .hv-rank-pct::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: none;
  border-radius: 0;
  transform: none;
  pointer-events: none;
  z-index: 3;
  animation: hv-edge-sparkle 1.8s ease-in-out infinite;
}
.hv-rank-ct::after,
.hv-rank-pct-tt::after,
.hv-rank-pct::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    125deg,
    transparent 26%,
    rgba(255, 244, 210, 0.12) 36%,
    rgba(255, 255, 255, 0.85) 48%,
    rgba(255, 214, 120, 0.55) 55%,
    transparent 68%
  );
  background-size: 250% 250%;
  background-position: 120% 40%;
  animation: hv-ct-sheen 2.8s ease-in-out infinite;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.hv-rank-ct::after {
  -webkit-mask-image: url("../assets/rank/master.webp?v=58");
  mask-image: url("../assets/rank/master.webp?v=58");
}
@keyframes hv-ct-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 2px rgba(255, 236, 170, 0.45))
      drop-shadow(0 0 2px rgba(240, 193, 75, 0.32));
  }
  50% {
    filter:
      drop-shadow(0 0 2px rgba(255, 252, 230, 0.7))
      drop-shadow(0 0 3px rgba(240, 193, 75, 0.5));
  }
}
@keyframes hv-ct-sheen {
  0%, 100% { background-position: 120% 40%; }
  50% { background-position: -20% 60%; }
}
/* Dots sit on / just past the emblem edge (≤ ~3px), not out over the name. */
@keyframes hv-edge-sparkle {
  0%, 100% {
    box-shadow:
      15px -10px 0 0.7px rgba(255,255,255,0.95),
      -14px -5px 0 0.55px rgba(255,233,163,0.25),
      15px 7px 0 0.55px rgba(255,255,255,0.2),
      -11px 11px 0 0.7px rgba(255,246,210,0.85);
  }
  35% {
    box-shadow:
      15px -10px 0 0.45px rgba(255,255,255,0.2),
      -14px -5px 0 0.7px rgba(255,233,163,0.95),
      15px 7px 0 0.7px rgba(255,255,255,0.95),
      -11px 11px 0 0.45px rgba(255,246,210,0.2);
  }
  65% {
    box-shadow:
      15px -10px 0 0.7px rgba(255,255,255,0.85),
      -14px -5px 0 0.45px rgba(255,233,163,0.25),
      15px 7px 0 0.45px rgba(255,255,255,0.2),
      -11px 11px 0 0.7px rgba(255,246,210,0.95);
  }
}
/* Phó Chủ tịch: Gold (thường trực) + Gem — glow/sparkle, ~1.4×, milder than Chủ tịch. */
.hv-name .hv-rank-pct-tt,
.hv-card .hv-name .hv-rank-pct-tt,
.person .hv-name .hv-rank-pct-tt,
.bch-ds-body .hv-name .hv-rank-pct-tt,
.hv-name .hv-rank-pct,
.hv-card .hv-name .hv-rank-pct,
.person .hv-name .hv-rank-pct,
.bch-ds-body .hv-name .hv-rank-pct {
  width: 31px;
  height: 31px;
  margin: 0;
}
.hv-hero .hv-name .hv-rank-pct-tt,
.hv-pro-hero .hv-name .hv-rank-pct-tt,
.hv-hero .hv-name .hv-rank-pct,
.hv-pro-hero .hv-name .hv-rank-pct {
  width: 39px;
  height: 39px;
  margin: 0;
}
.hv-rank-pct-tt,
.hv-rank-pct {
  position: relative;
  z-index: 1;
  overflow: visible;
  flex-shrink: 0;
  animation: none;
  filter: none;
}
.hv-rank-pct-tt img,
.hv-rank-pct img {
  position: relative;
  z-index: 1;
}
.hv-rank-pct-tt img {
  filter:
    drop-shadow(0 0 2px rgba(255, 236, 170, 0.5))
    drop-shadow(0 0 3px rgba(240, 193, 75, 0.35));
  animation: hv-pct-tt-glow 2.6s ease-in-out infinite;
}
.hv-rank-pct img {
  filter:
    drop-shadow(0 0 2px rgba(240, 190, 255, 0.55))
    drop-shadow(0 0 3px rgba(180, 90, 200, 0.35));
  animation: hv-pct-glow 2.6s ease-in-out infinite;
}
.hv-rank-pct-tt::after {
  -webkit-mask-image: url("../assets/rank/gold.webp?v=58");
  mask-image: url("../assets/rank/gold.webp?v=58");
}
.hv-rank-pct::after {
  background: linear-gradient(
    125deg,
    transparent 26%,
    rgba(245, 220, 255, 0.12) 36%,
    rgba(255, 255, 255, 0.85) 48%,
    rgba(220, 170, 255, 0.5) 55%,
    transparent 68%
  );
  -webkit-mask-image: url("../assets/rank/gem.webp?v=58");
  mask-image: url("../assets/rank/gem.webp?v=58");
}
@keyframes hv-pct-tt-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 2px rgba(255, 236, 170, 0.4))
      drop-shadow(0 0 2px rgba(240, 193, 75, 0.3));
  }
  50% {
    filter:
      drop-shadow(0 0 2px rgba(255, 252, 230, 0.65))
      drop-shadow(0 0 3px rgba(240, 193, 75, 0.45));
  }
}
@keyframes hv-pct-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 2px rgba(240, 190, 255, 0.45))
      drop-shadow(0 0 2px rgba(180, 90, 200, 0.3));
  }
  50% {
    filter:
      drop-shadow(0 0 2px rgba(255, 230, 255, 0.65))
      drop-shadow(0 0 3px rgba(180, 90, 200, 0.45));
  }
}
.hv-rank-tb {
  filter: drop-shadow(0 0 2px rgba(212, 160, 40, 0.4));
}
.hv-rank-ptb {
  filter: drop-shadow(0 1px 1px rgba(80, 90, 100, 0.28));
}
.hv-rank-uv {
  filter: drop-shadow(0 0 2px rgba(58, 123, 213, 0.45));
}
.hv-rank-ch {
  filter: drop-shadow(0 1px 1px rgba(122, 74, 24, 0.3));
}
@keyframes hv-wing-pulse {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(224, 178, 42, 0.55)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 8px rgba(240, 193, 75, 0.85)); transform: scale(1.06); }
}

.hv-name .hv-rank-ct,
.hv-name .hv-rank-pct-tt,
.hv-name .hv-rank-pct { margin-left: 4px; }
.hv-name-text {
  position: relative;
  z-index: 2;
}
.person-body .bch-chuc,
.hv-card .hv-chuc,
.bch-ds-body .bch-chuc,
.hv-hero .hv-chuc,
.hv-pro-hero .hv-chuc,
.person-body .bch-roles,
.hv-card p.bch-roles,
.hv-hero .hv-meta,
.hv-pro-hero .hv-meta {
  position: relative;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .hv-name .hv-rank-ct::before,
  .hv-name .hv-rank-pct-tt::before,
  .hv-name .hv-rank-pct::before,
  .hv-rank-ct img,
  .hv-rank-ct::after,
  .hv-rank-pct-tt img,
  .hv-rank-pct-tt::after,
  .hv-rank-pct img,
  .hv-rank-pct::after { animation: none; }
  .hv-rank-ct img {
    filter:
      drop-shadow(0 0 2px rgba(255, 236, 170, 0.55))
      drop-shadow(0 0 3px rgba(240, 193, 75, 0.4));
  }
  .hv-rank-pct-tt img {
    filter:
      drop-shadow(0 0 2px rgba(255, 236, 170, 0.5))
      drop-shadow(0 0 3px rgba(240, 193, 75, 0.35));
  }
  .hv-rank-pct img {
    filter:
      drop-shadow(0 0 2px rgba(240, 190, 255, 0.55))
      drop-shadow(0 0 3px rgba(180, 90, 200, 0.35));
  }
  .hv-rank-ct::after,
  .hv-rank-pct-tt::after,
  .hv-rank-pct::after { background-position: 40% 40%; }
  .hv-name .hv-rank-ct::before,
  .hv-name .hv-rank-pct-tt::before,
  .hv-name .hv-rank-pct::before {
    box-shadow:
      15px -10px 0 0.6px rgba(255,255,255,0.7),
      -11px 11px 0 0.5px rgba(255,233,163,0.6);
  }
}
.hv-more { flex-shrink: 0; font-weight: 700; color: var(--muted); }
.hv-hero-copy { min-width: 0; flex: 1; }
.hv-chuc-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hv-chuc-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  align-items: center;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.35;
}
.hv-chuc-list li span { min-width: 0; text-align: left; }
.hv-chuc-list .hv-rank,
.hv-chuc-list .hv-rank-ct,
.hv-chuc-list .hv-rank-pct-tt,
.hv-chuc-list .hv-rank-pct,
.hv-chuc-list .hv-rank-tb,
.hv-chuc-list .hv-rank-ptb,
.hv-chuc-list .hv-rank-uv,
.hv-chuc-list .hv-rank-ch {
  width: 40px;
  height: 40px;
  margin: 0;
  display: grid;
  place-items: center;
}
.hv-chuc-list .hv-rank img {
  width: 28px;
  height: 28px;
}
.hv-chuc-list .hv-rank-ct,
.hv-chuc-list .hv-name .hv-rank-ct { animation: none; box-shadow: none; }
.hv-chuc-list .hv-rank-ct::before,
.hv-chuc-list .hv-rank-ct::after,
.hv-chuc-list .hv-rank-pct-tt::before,
.hv-chuc-list .hv-rank-pct-tt::after,
.hv-chuc-list .hv-rank-pct::before,
.hv-chuc-list .hv-rank-pct::after { display: none; }


.hv-sec {
  margin: 8px 0 16px;
  padding: 16px 12px 14px;
  border-radius: 24px;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow-soft);
}
.hv-sec-head { margin: 0 4px 14px; }
.hv-sec-head h2 {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hv-sec-lanh-dao {
  background: rgba(255, 226, 233, 0.72);
  border: 1.5px solid rgba(224, 118, 140, 0.55);
}
.hv-sec-lanh-dao .hv-sec-head h2 { color: #9B2C4A; }
.hv-sec-lanh-dao .hv-card.glass-strong {
  background: rgba(255, 244, 247, 0.88);
  border-color: rgba(232, 150, 168, 0.5);
}
.hv-sec-lanh-dao .hv-ava.ph { background: #F8D5DE; color: #9B2C4A; }
.hv-sec-lanh-dao .hv-ban-chip {
  background: rgba(196, 70, 100, 0.12);
  color: #9B2C4A;
}
.hv-sec-lanh-dao .empty-filter,
.hv-sec-lanh-dao .dang-cap-nhat { color: #9B2C4A; }
.hv-sec-thanh-vien {
  background: rgba(206, 236, 248, 0.72);
  border: 1.5px solid rgba(43, 181, 216, 0.5);
}
.hv-sec-thanh-vien .hv-sec-head h2 { color: var(--blue); }
.hv-sec-thanh-vien .hv-card.glass-strong {
  background: rgba(245, 252, 255, 0.88);
  border-color: rgba(43, 181, 216, 0.4);
}
.hv-sec-thanh-vien .empty-filter,
.hv-sec-thanh-vien .dang-cap-nhat { color: var(--blue); }

.hv-sec-phan-loai {
  background: color-mix(in srgb, var(--hv-sec-mau, #2E6FB0) 18%, rgba(255,255,255,0.78));
  border: 1.5px solid color-mix(in srgb, var(--hv-sec-mau, #2E6FB0) 50%, transparent);
}
.hv-sec-phan-loai .hv-sec-head h2 {
  color: color-mix(in srgb, var(--hv-sec-mau, #2E6FB0) 78%, #1E3A5F);
}
.hv-sec-phan-loai .hv-card.glass-strong {
  background: color-mix(in srgb, var(--hv-sec-mau, #2E6FB0) 6%, rgba(255,255,255,0.9));
  border-color: color-mix(in srgb, var(--hv-sec-mau, #2E6FB0) 35%, transparent);
}
.hv-sec-phan-loai .hv-ava.ph {
  background: color-mix(in srgb, var(--hv-sec-mau, #2E6FB0) 22%, #fff);
  color: color-mix(in srgb, var(--hv-sec-mau, #2E6FB0) 78%, #1E3A5F);
}
.hv-sec-phan-loai .hv-ban-chip {
  background: color-mix(in srgb, var(--hv-sec-mau, #2E6FB0) 14%, transparent);
  color: color-mix(in srgb, var(--hv-sec-mau, #2E6FB0) 78%, #1E3A5F);
}
.hv-sec-phan-loai .empty-filter,
.hv-sec-phan-loai .dang-cap-nhat {
  color: color-mix(in srgb, var(--hv-sec-mau, #2E6FB0) 78%, #1E3A5F);
}
.hv-ban-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-top: 6px;
  max-width: 100%;
  overflow: hidden;
}
.hv-ban-chip {
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(46, 111, 176, 0.12);
  color: var(--blue);
  white-space: nowrap;
}
.hv-ban-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hv-ban-item {
  padding: 12px 14px;
}
.hv-ban-item b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.hv-ban-item span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
}
.hv-demo-tag {
  position: absolute;
  top: -7px;
  left: -7px;
  z-index: 3;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #E2A01A, #C47A12);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 6px rgba(196, 122, 18, 0.35);
}
.hv-demo-banner {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #E2A01A, #C47A12);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.hv-card.is-demo { border-color: rgba(196, 122, 18, 0.45); }
.hv-gy-jump {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.hv-gop-y {
  scroll-margin-top: 16px;
  margin: 8px 0 12px;
  padding: 18px 16px 16px;
}
.hv-gop-y h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.hv-gy-lead {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.hv-gy-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
}
.hv-gy-field span {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.hv-gy-field span em {
  font-style: normal;
  font-weight: 500;
  color: #8AA0B5;
}
.hv-gy-field input,
.hv-gy-field textarea {
  width: 100%;
  border: 1px solid var(--glass-border);
  background: var(--input-bg);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--navy);
  outline: none;
  box-shadow: var(--shadow-soft);
}
.hv-gy-field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.45;
}
.hv-gy-field input:focus,
.hv-gy-field textarea:focus {
  border-color: rgba(43, 181, 216, 0.65);
  box-shadow: 0 0 0 3px rgba(43, 181, 216, 0.18);
}
.hv-gy-count {
  display: block;
  text-align: right;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-top: -4px;
}
.hv-gy-msg {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.4;
}
.hv-gy-msg.ok { color: #0F7A4A; background: var(--ok-bg); }
.hv-gy-msg.err { color: #9B2C2C; background: #FDECEC; }
#hv-gy-submit:disabled { opacity: 0.72; pointer-events: none; }
.hv-gy-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}
#hv-gop-y { position: relative; }
.hv-gy-fab {
  position: fixed;
  right: max(18px, calc(50% - 215px + 18px));
  bottom: calc(var(--tab-h) + var(--tab-gap, 10px) + 14px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
  z-index: 26;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
  box-shadow: var(--shadow);
}
.hv-gy-fab[hidden] { display: none !important; }
#hv-gop-y-wrap { padding-bottom: 8px; }

/* ===== v24 — trang thông tin hội viên ===== */
.hv-pro {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hv-pro-hero {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 18px 24px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(215,243,250,0.64) 100%);
}
.hv-pro-hero-glow {
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 180px;
  background:
    radial-gradient(ellipse at 28% 40%, rgba(43,181,216,0.3), transparent 62%),
    radial-gradient(ellipse at 82% 10%, rgba(46,111,176,0.2), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hv-pro-hero > *:not(.hv-pro-hero-glow) { position: relative; z-index: 1; }
.hv-pro-hero .hv-ava.lg {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  font-size: 2.05rem;
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.92),
    0 12px 28px rgba(46,111,176,0.18);
}
.hv-pro-copy { width: 100%; }
.hv-pro-hero .hv-name {
  justify-content: center;
  align-items: center;
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 1.28rem;
  flex-wrap: nowrap;
  gap: 8px;
}
.hv-pro-hero .hv-name-text {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.hv-pro-lead {
  margin: 0 auto;
  max-width: 22em;
  color: var(--blue);
  font-weight: 650;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}
.hv-pro-hero .hv-cty { margin-top: 6px; }
.hv-pro-sec .hv-sec-head { margin: 0 4px 12px; }
.hv-pro-sec .hv-sec-head h2 {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.hv-pro-chuc { margin: 0; }
.hv-pro-ban {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.hv-pro-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 16px;
}
.hv-pro-chip-ten {
  font-weight: 750;
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.3;
}
.hv-pro-chip-vt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
}
.hv-dn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hv-dn-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius-sm);
}
.hv-dn-mark {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: -0.03em;
  color: var(--blue-deep);
  background: linear-gradient(180deg, #fff, var(--cyan-pale));
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 4px 12px rgba(46,111,176,0.08);
}
img.hv-dn-logo {
  object-fit: contain;
  object-position: center;
  padding: 5px;
  background: var(--logo-tile-bg);
}
img.hv-dn-logo.is-nen {
  padding: 0;
  background: transparent;
  object-fit: cover;
}
img.hv-dn-logo.is-nen-ngang {
  object-fit: contain;
}
img.hv-dn-logo.is-nen-toi {
  background: #0d1118;
}
img.hv-dn-logo.is-nen-trang {
  padding: 3px;
  background: #fff;
  object-fit: contain;
}
.hv-dn-body { min-width: 0; flex: 1; }
.hv-dn-ten {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
a.hv-dn-ten { color: var(--blue-deep); }
.hv-dn-role {
  margin: 3px 0 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--blue);
  line-height: 1.35;
}
.hv-dn-rel {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.hv-pro-bio { padding: 14px 16px; }
.hv-share-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-sm);
}
.hv-share-qr {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  padding: 6px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(30,58,95,0.08);
}
.hv-share-qr svg { width: 100%; height: 100%; display: block; }
.hv-share-copy { min-width: 0; flex: 1; }
.hv-share-hint {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}
.hv-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.hv-share-btn {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.2;
}
.hv-share-btn-ghost {
  background: rgba(46,111,176,0.1);
  color: var(--blue);
}
.hv-share-msg {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--ok);
  font-weight: 600;
}
.hv-share-msg[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hv-pro-hero-glow { filter: none; }
}

/* ===== v26 — trang doanh nghiệp ===== */
a.hv-dn-card {
  text-decoration: none;
  color: inherit;
  position: relative;
}
a.hv-dn-card .hv-dn-go {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 12px;
  color: var(--muted);
  opacity: 0.7;
}
a.hv-dn-card .hv-dn-go svg { width: 18px; height: 18px; }
.dn-pro { display: flex; flex-direction: column; gap: 18px; }
.dn-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 18px 22px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(215,243,250,0.64) 100%);
}
.dn-hero > *:not(.hv-pro-hero-glow) { position: relative; z-index: 1; }
.dn-logo-wrap {
  width: 100%;
  max-width: 280px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  background: var(--logo-tile-bg);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(46,111,176,0.1);
}
.dn-logo-wrap.is-nen {
  padding: 0;
  background: transparent;
  overflow: hidden;
}
.dn-logo-wrap.is-nen-toi { background: #0d1118; }
.dn-logo-wrap.is-nen-trang {
  padding: 10px 8px;
  background: #fff;
  overflow: hidden;
}
.dn-logo-wrap.is-nen-trang .dn-logo { max-height: 180px; object-fit: contain; }
.dn-logo-wrap.is-nen .dn-logo { max-height: 180px; }
.dn-logo { width: 100%; height: auto; max-height: 96px; object-fit: contain; display: block; }
.dn-logo-ph {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--blue-deep);
  background: var(--cyan-pale);
}
.dn-ten-ngan {
  margin: 14px 0 0;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.dn-block { padding: 14px 16px; border-radius: var(--radius-sm); }
.dn-block h3 {
  margin: 14px 0 6px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.01em;
}
.dn-block h3:first-child { margin-top: 0; }
.dn-block .dang-cap-nhat,
.dn-block .detail-copy { margin: 0 0 4px; }
.dn-dl { margin: 0; }
.dn-row {
  display: grid;
  grid-template-columns: 7.6em 1fr;
  gap: 8px 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(46,111,176,0.1);
}
.dn-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.dn-row dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
}
.dn-row dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--navy);
  line-height: 1.45;
  word-break: break-word;
}
.dn-row dd.dn-empty { color: var(--muted); font-weight: 500; font-style: italic; }
.dn-sp-list { display: flex; flex-direction: column; gap: 10px; }
.dn-sp-card { padding: 14px; border-radius: var(--radius-sm); }
.dn-sp-anh {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 10px;
}
.dn-sp-anh.is-banner {
  max-height: none;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  padding: 0;
  background: transparent;
}
.dn-sp-anh.is-banner.is-teal { background: rgb(61, 197, 211); }
.dn-sp-anh.is-banner.is-navy { background: rgb(36, 37, 98); }
.dn-sp-anh.is-vuong {
  max-height: 220px;
  object-fit: contain;
  padding: 0;
  background: transparent;
}
.dn-sp-anh.is-vuong.is-trang {
  background: #fff;
  padding: 8px;
}
html[data-theme="trang"] .dn-sp-anh.is-vuong.is-trang,
html[data-theme="night"] .dn-sp-anh.is-vuong.is-trang { background: #fff; }
html[data-theme="night"] .dn-sp-anh.is-banner.is-teal { background: rgb(61, 197, 211); }
html[data-theme="night"] .dn-sp-anh.is-banner.is-navy { background: rgb(36, 37, 98); }
.dn-sp-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}
.dn-sp-card p { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.45; }
.dn-sp-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--blue);
  text-decoration: none;
  word-break: break-all;
}
.dn-connect-bar { margin-top: 14px; }

/* ===== v28 — ưu đãi hội viên trên trang doanh nghiệp ===== */
.dn-ud-list { display: flex; flex-direction: column; gap: 10px; }
.dn-ud-card { padding: 14px 16px; border-radius: var(--radius-sm); }
.dn-ud-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.dn-ud-card .dn-row dt { min-width: 0; }
.dn-ud-note {
  margin: 8px 2px 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.4;
}
.dn-hero .hv-demo-banner { margin-top: 10px; margin-bottom: 0; }

/* ===== v29 — mã hội viên trên trang cá nhân ===== */
.hv-ma {
  margin: 8px 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}
.hv-ma-val {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.hv-pro-hero .hv-ma { margin-top: 8px; }

/* ===== v30 — ảnh bìa, thư viện và lightbox doanh nghiệp ===== */
.dn-hero {
  padding: 0 0 20px;
  overflow: hidden;
}
.dn-hero .hv-pro-hero-glow { display: none; }
.dn-cover {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(160deg, #F4FBFE 0%, #D7F3FA 48%, #B9D8F0 100%);
}
.dn-cover.is-gradient {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(165deg,
      #E4F4FC 0%,
      color-mix(in srgb, var(--dn-mau, #2E6FB0) 38%, #C5E6F7) 46%,
      color-mix(in srgb, var(--dn-mau, #2E6FB0) 78%, #163A63) 100%);
}
.dn-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  pointer-events: none;
}
.dn-cover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(232,244,252,0.55) 45%, rgba(232,244,252,0.96) 100%);
  pointer-events: none;
  z-index: 1;
}

.dn-cover-demo,
.dn-gal-demo {
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: auto;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #E2A01A, #C47A12);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(196, 122, 18, 0.35);
  pointer-events: none;
}
.dn-hero-body {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 18px;
}
.dn-hero-body .dn-logo-wrap {
  box-shadow: 0 10px 24px rgba(46,111,176,0.16);
}
.dn-gal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dn-gal-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: rgba(255,255,255,0.7);
  -webkit-tap-highlight-color: transparent;
}
.dn-gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.dn-lb[hidden] { display: none; }
.dn-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  touch-action: manipulation;
}
.dn-lb-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(12, 28, 48, 0.78);
  cursor: pointer;
}
.dn-lb-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-height: 100%;
  padding-top: 52px;
}
.dn-lb-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  object-fit: contain;
  border-radius: 14px;
  background: #0b1a2c;
  touch-action: pan-y;
  pointer-events: auto;
}
.dn-lb-cap {
  margin: 10px 8px 0;
  text-align: center;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.4;
}
.dn-lb-cap[hidden] { display: none; }
.dn-lb-close {
  position: absolute;
  top: calc(8px + env(safe-area-inset-top, 0px));
  right: 12px;
  z-index: 3;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
}
.dn-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.dn-lb-nav svg { width: 20px; height: 20px; }
.dn-lb-prev { left: 4px; }
.dn-lb-next { right: 4px; }
.dn-lb-nav[hidden] { display: none; }


/* ===== v31 Tin tức địa phương — featured + thumbnail cards ===== */
.tn-feat {
  display: block;
  overflow: hidden;
  margin-bottom: 12px;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.56) 0%, rgba(215,243,250,0.42) 100%);
}
.tn-media {
  overflow: hidden;
  background: linear-gradient(145deg, var(--cyan-pale), #c5eaf6 60%, #8fd4ea);
  color: var(--blue-deep);
}
.tn-media.is-featured {
  aspect-ratio: 16 / 9;
}
.tn-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.tn-feat-body {
  padding: 12px 14px 14px;
}
.tn-feat-body h4 {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tn-feat-body p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tn-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px 8px 8px;
  margin-bottom: 8px;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.56) 0%, rgba(215,243,250,0.38) 100%);
}
.tn-card .tn-media {
  width: 92px;
  height: 72px;
  border-radius: 14px;
  flex-shrink: 0;
}
.tn-card .tn-media img,
.tn-feat .tn-media.is-featured img {
  border-radius: 0;
}
.tn-fallback {
  display: grid;
  place-items: center;
}
.tn-fallback svg { width: 28px; height: 28px; color: rgba(255,255,255,0.92); }
.tn-card .tn-fallback svg { width: 22px; height: 22px; }
.tn-body { min-width: 0; }
.tn-body h4 {
  font-size: 13.5px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tn-body p {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tn-hero {
  margin: 0 0 14px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, var(--cyan-pale), #c5eaf6);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--glass-border);
}
.tn-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.tn-hero.tn-fallback {
  aspect-ratio: 16 / 9;
  place-items: center;
  display: grid;
}
.tn-hero.tn-fallback svg { width: 40px; height: 40px; color: rgba(255,255,255,0.92); }

.tn-feat.is-past,
.tn-card.is-past,
.tn-hero.is-past {
  color: var(--muted);
}
.tn-feat.is-past .tn-media img,
.tn-card.is-past .tn-media img,
.tn-hero.is-past img,
.hd-card.is-past .tn-media img,
.date-card.is-past .tn-media img {
  filter: grayscale(0.85);
  opacity: 0.72;
}
.tn-feat.is-past h4,
.tn-card.is-past h4,
.tn-feat.is-past p,
.tn-card.is-past p {
  color: var(--muted);
}

/* ===== v31 Lịch sử — vertical time tree ===== */
.tl-tree {
  list-style: none;
  position: relative;
  margin: 6px 0 22px;
  padding: 4px 0 8px;
}
.tl-tree::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(
    180deg,
    rgba(126, 214, 238, 0.15) 0%,
    var(--cyan-soft) 8%,
    var(--cyan) 45%,
    var(--blue) 78%,
    var(--navy) 100%
  );
  box-shadow: 0 0 10px rgba(43, 181, 216, 0.28);
}
.tl-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
  position: relative;
  margin: 0 0 14px;
  opacity: 0;
  transform: translateY(14px);
}
.tl-item.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.tl-node {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.tl-year {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(145deg, var(--cyan), var(--blue));
  box-shadow:
    0 0 0 4px rgba(215, 243, 250, 0.95),
    0 4px 12px rgba(30, 58, 95, 0.2);
}
.tl-dot {
  width: 14px;
  height: 14px;
  margin-top: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(215, 243, 250, 0.85);
}
.tl-card {
  padding: 13px 15px 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(215,243,250,0.55) 100%);
}
.tl-card h3 { color: var(--navy); }
.tl-card p + p { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .tl-item,
  .tl-item.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* v40 — tappable stats, BCH sheet, news carousel, company titles */
button.stat {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: block;
}
.stat.is-tap { position: relative; padding-bottom: 16px; }
.stat-chev, i.stat-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  color: var(--blue);
  opacity: 0.7;
}
.stat-chev svg, i.stat-chev svg { width: 12px; height: 12px; }
.stat.is-tap .stat-chev { display: block; margin-left: auto; margin-right: auto; }

.bch-ds[hidden] { display: none; }
.bch-ds {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.bch-ds-scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.bch-ds-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  border-radius: 24px 24px 0 0;
  padding: 8px 0 0;
}
.bch-ds-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--glass-border);
}
.bch-ds-head h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}
.bch-ds-x {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}
.bch-ds-list {
  overflow: auto;
  padding: 8px 12px calc(var(--tab-h) + var(--tab-gap, 10px) + 16px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bch-ds-row {
  display: grid;
  grid-template-columns: 44px 1fr 16px;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.45);
}
.bch-ds-row.is-static { grid-template-columns: 44px 1fr; }
.bch-ds-ava, .bch-ds-img, .bch-ds-img.ph {
  width: 44px; height: 44px; border-radius: 14px;
  object-fit: cover;
  background: var(--cyan-pale);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--blue-deep);
  font-size: 12px;
}
.bch-ds-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bch-ds-body b { font-size: 15px; color: var(--navy); font-weight: 800; }
.bch-ds-body span { font-size: 12px; color: var(--muted); font-weight: 600; }
.bch-ds-note {
  margin: 8px 6px 4px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.tn-hero {
  position: relative;
  margin: 0 0 14px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, var(--cyan-pale), #c5eaf6);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--glass-border);
  aspect-ratio: 16 / 9;
}
.tn-hero img,
.tn-slide img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
}
.tn-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tn-track::-webkit-scrollbar { display: none; }
.tn-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  height: 100%;
  cursor: zoom-in;
  display: block;
  touch-action: pan-x;
  -webkit-user-select: none;
  user-select: none;
}
.tn-hero:not(.is-carousel) .tn-slide { width: 100%; height: 100%; }
.tn-dots {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
  pointer-events: auto;
  width: max-content;
  margin: 0 auto;
  padding: 6px 10px;
  background: rgba(16, 32, 54, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
}
.tn-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 0 0 1px rgba(30,58,95,0.15);
  cursor: pointer;
}
.tn-dot.is-on { background: #fff; width: 16px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  .tn-track { scroll-behavior: auto; }
}

.tn-lb[hidden] { display: none; }
.tn-lb {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
}
.tn-lb-scrim {
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 54, 0.78);
}
.tn-lb-frame {
  position: relative;
  z-index: 1;
  width: min(100vw, 100%);
  max-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
}
.tn-lb-img {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
}
.tn-lb-close {
  position: absolute;
  top: 10px; right: 12px;
  appearance: none;
  border: 0;
  background: rgba(0,0,0,0.45);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
}
.tn-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.85);
  color: var(--navy);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.tn-lb-nav svg { width: 18px; height: 18px; }
.tn-lb-prev { left: 8px; transform: translateY(-50%) rotate(180deg); }
.tn-lb-next { right: 8px; }
body.tn-lb-open, body.sheet-open { overflow: hidden; }

.hv-search { margin-top: 2px; }
.hv-dn-phap, .dn-ten-phap {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}
.dn-ten-ngan {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Chat nhóm hội viên */
.hv-chat-entry {
  display: grid;
  grid-template-columns: 48px 1fr 18px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  margin: 0 0 14px;
  color: inherit;
}
.hv-chat-ico {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #E8F7FC, #7ED6EE 55%, #2E6FB0);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.hv-chat-ico svg { width: 26px; height: 26px; }
.hv-chat-entry-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hv-chat-entry-copy strong {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--navy);
}
.hv-chat-entry-copy span {
  font-size: 12.5px;
  color: var(--muted);
}
.hv-chat-entry .chev { width: 18px; height: 18px; color: var(--muted); }

.chat-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 120px);
  gap: 12px;
}
.chat-status {
  padding: 22px 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.55;
}
.chat-status.is-locked { color: #9A3B3B; }
.chat-login {
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-login h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}
.chat-login-lead { font-size: 13.5px; color: var(--muted); }
.chat-login label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--navy-2);
}
.chat-login input {
  border: 1px solid var(--glass-border);
  background: var(--input-bg);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--navy);
}
.chat-login-err { font-size: 13px; color: #9A3B3B; }
.chat-stream {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 4px 2px 8px;
  min-height: 180px;
  max-height: calc(100dvh - 260px);
  -webkit-overflow-scrolling: touch;
}
.chat-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: end;
  max-width: 92%;
}
.chat-row.is-mine {
  margin-left: auto;
  grid-template-columns: 1fr;
}
.chat-ava {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #D7F3FA;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.chat-ava img { width: 100%; height: 100%; object-fit: cover; }
.chat-col { min-width: 0; }
.chat-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0 2px 4px;
}
.chat-bubble {
  padding: 10px 12px;
  border-radius: 18px;
  width: fit-content;
  max-width: 100%;
}
.chat-row.is-mine .chat-bubble {
  margin-left: auto;
  background: rgba(43, 181, 216, 0.18);
}
.chat-text {
  font-size: 14.5px;
  color: var(--navy);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.chat-photo {
  display: block;
  padding: 0;
  margin: 0 0 6px;
  border: 0;
  background: none;
  border-radius: 14px;
  overflow: hidden;
  max-width: 240px;
  cursor: zoom-in;
}
.chat-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.chat-time {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin: 4px 2px 0;
}
.chat-row.is-mine .chat-time { text-align: right; }
.chat-composer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 8px;
  align-items: end;
  padding: 10px 10px 10px;
  margin-top: auto;
}
.chat-icon-btn, .chat-send {
  height: 40px;
  border-radius: 14px;
  color: var(--navy);
}
.chat-icon-btn { width: 40px; display: grid; place-items: center; }
.chat-icon-btn svg { width: 22px; height: 22px; }
.chat-send {
  padding: 0 14px;
  font-weight: 750;
  background: linear-gradient(180deg, #2BB5D8, #2E6FB0);
  color: #fff;
}
.chat-composer textarea {
  resize: none;
  max-height: 120px;
  border: 0;
  background: rgba(255,255,255,0.55);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--navy);
  line-height: 1.4;
}
.chat-compose-msg {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: #9A3B3B;
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .chat-stream { scroll-behavior: auto; }
}

.chat-login-note {
  margin: 4px 0 0;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
}
.chat-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 0;
}
.chat-logout {
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  padding: 4px 2px;
}
.chat-bubble.is-deleted .chat-text {
  font-style: italic;
  color: var(--muted);
}
.chat-more {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 650;
  color: var(--navy-2);
  border-radius: 14px;
}
.chat-more[hidden] { display: none; }


.bch-chuc,
.hv-card .hv-chuc,
.bch-ds-body .bch-ds-chuc {
  color: var(--blue) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  margin-top: 2px;
  display: block;
  line-height: 1.35;
  -webkit-line-clamp: unset;
  white-space: normal;
}
.bch-roles,
.hv-chuc-phu,
.hv-card .bch-roles,
.bch-ds-body .bch-roles {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 2px;
  display: block;
  overflow: visible;
  word-break: break-word;
}
.bch-ds-body .hv-name,
.bch-ds-body b.hv-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.hv-cafe-entry { margin-top: 0; }
.hv-cafe-ico {
  background: linear-gradient(160deg, #FFF3E0, #E0A15A 55%, #A15A18);
}
.hv-qc-ico {
  background: linear-gradient(160deg, #F3E8FF, #9B6AD6 55%, #5A2E9A);
}

.cafe-page, .qc-page { display: flex; flex-direction: column; gap: 14px; }
.cafe-intro, .qc-intro, .qc-form-wrap, .cafe-empty, .qc-empty, .qc-login-note, .qc-submitted {
  padding: 18px 16px;
}
.cafe-intro h2, .qc-intro h2, .qc-form-wrap h3, .qc-mine h3, .qc-submitted h3, .cafe-past-head {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}
.cafe-lead, .qc-lead { font-size: 14px; color: var(--navy-2); line-height: 1.5; margin: 0; }
.cafe-empty, .qc-empty { text-align: center; font-weight: 650; color: var(--navy); }
.cafe-list { display: flex; flex-direction: column; gap: 10px; }
.cafe-card { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.cafe-card h3 { font-size: 15.5px; font-weight: 800; color: var(--navy); margin: 0; }
.cafe-meta, .cafe-desc, .cafe-count { font-size: 13px; color: var(--navy-2); margin: 0; line-height: 1.45; }
.cafe-card.is-past { opacity: 0.62; filter: grayscale(0.25); }
.cafe-card.is-past .cafe-btn { display: none; }
.cafe-btn, .qc-form-wrap .btn-cta { margin-top: 8px; }
.cafe-btn.is-cancel { background: transparent; color: var(--navy); border: 1px solid var(--glass-border); }
.cafe-msg, .qc-form-err { font-size: 13px; color: #9A3B3B; }
.cafe-past-head { margin: 18px 4px 8px; font-size: 1rem; }

.qc-fee {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(240, 193, 75, 0.18);
  color: var(--navy);
  font-weight: 800;
  font-size: 15px;
  text-align: center;
}
.qc-fee-note { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; text-align: center; }
.qc-fee-submit { margin: 8px 0 4px; }
.qc-form-wrap form, .chat-pw { display: flex; flex-direction: column; gap: 12px; }
.qc-form-wrap label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--navy-2);
}
.qc-form-wrap input, .qc-form-wrap textarea {
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.7);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--navy);
  font: inherit;
}
.qc-flow {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 10px 0;
}
.qc-flow li {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
}
.qc-flow li.is-current { color: var(--navy); background: rgba(240, 193, 75, 0.28); }
.qc-flow li.is-done { color: var(--blue); }
.qc-pay { padding: 14px; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.qc-pay h3 { font-size: 14px; margin: 0 0 4px; }
.qc-pay p { display: flex; justify-content: space-between; gap: 10px; margin: 0; font-size: 13px; }
.qc-pay-empty { color: var(--muted); font-weight: 650; }
.qc-qr img { width: 160px; height: 160px; object-fit: contain; margin-top: 8px; }
.qc-mine { display: flex; flex-direction: column; gap: 10px; }
.qc-bai { padding: 14px; }
.qc-bai h4 { margin: 0 0 4px; font-size: 15px; color: var(--navy); }
.qc-bai-time { font-size: 12px; color: var(--muted); margin: 0; }
.qc-bai-stt { font-size: 13px; font-weight: 750; color: var(--blue); margin: 4px 0 0; }
.qc-login-note a { font-weight: 750; }

.cafe-cover { width: 100%; height: 140px; object-fit: cover; border-radius: 14px; }
.cafe-stt { font-size: 12px; font-weight: 750; color: var(--blue); margin: 0; }
.cafe-people { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cafe-person { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--navy); }
.cafe-person-ava, .cafe-person-ava img, .qc-sender-ava {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #d5e6f0;
  display: grid; place-items: center; font-size: 10px; font-weight: 800; overflow: hidden; flex-shrink: 0;
}
.cafe-person em { font-style: normal; color: var(--muted); font-weight: 600; }
.qc-public, .qc-mine { display: flex; flex-direction: column; gap: 10px; }
.qc-public h3, .qc-mine h3 { margin: 0 4px; }
.qc-sender { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 0 0 6px; color: var(--navy-2); }
.qc-bai.is-expired { opacity: 0.62; filter: grayscale(0.2); }
.qc-desc, .qc-uudai { font-size: 13.5px; line-height: 1.45; color: var(--navy-2); margin: 4px 0; }
.qc-uudai { font-weight: 700; color: var(--blue); }
.qc-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.qc-thumbs img, .qc-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }
.qc-thumb { position: relative; }
.qc-thumb-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #9A3B3B; color: #fff; font-weight: 800; }
.qc-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qc-edit-note { font-size: 13px; color: var(--blue); font-weight: 650; line-height: 1.4; }
.qc-mine-actions, .qc-form-actions { display: flex; gap: 8px; margin-top: 8px; }
.qc-form-wrap select { border: 1px solid var(--glass-border); background: rgba(255,255,255,0.7); border-radius: 14px; padding: 12px 14px; color: var(--navy); font: inherit; }
.qc-imgs p { font-size: 13px; font-weight: 650; color: var(--navy-2); margin: 0 0 6px; }

.hv-eco-sec { margin-top: 2px; }
.hv-eco-list .hv-dn-card { padding: 12px 14px; }
.hv-eco-list .hv-dn-ten {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
  font-size: 0.95rem;
}
.hv-eco-list .hv-dn-rel { margin-top: 4px; }

/* ===== Header / tab unread badge ===== */
.tb-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 8px;
  background: #E11D48;
  box-shadow: 0 0 0 2px var(--glass-strong, #fff);
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}
.tabbar a .tb-badge {
  top: 4px;
  right: calc(50% - 14px);
}

/* ===== Thông Báo ===== */
.tb-page { display: grid; gap: 12px; padding-bottom: 8px; }
.tb-intro { padding: 16px 16px 14px; }
.tb-intro h2 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.tb-lead { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.tb-list-wrap { display: grid; gap: 10px; }
.tb-empty {
  margin: 0;
  padding: 22px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.tb-item { padding: 14px 16px; display: grid; gap: 4px; }
.tb-item-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.tb-item-day { margin: 0; font-size: 12px; color: var(--muted); }
.tb-item-body { margin: 0; font-size: 13px; line-height: 1.45; color: var(--navy); }
.tb-item-past { opacity: 0.55; }
.tb-item-past .tb-item-title,
.tb-item-past .tb-item-body { color: var(--muted); }

/* ===== Báo cáo (tab Hội viên) ===== */
.hv-sec-bao-cao {
  background: rgba(232, 244, 252, 0.72);
  border: 1.5px solid rgba(46, 111, 176, 0.22);
  display: grid;
  gap: 16px;
}
.hv-sec-bao-cao .hv-sec-head { margin-bottom: 0; }
.hv-sec-bao-cao .hv-sec-head h2 { color: var(--blue-deep, #1E3A5F); }
.bc-block { display: grid; gap: 10px; }
.bc-sub {
  margin: 0 4px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.bc-ky {
  margin: 0 4px;
  font-size: 12px;
  color: var(--muted);
}
.bc-ky-wrap { margin: 0 0 10px; }
.bc-ky-label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  margin: 0 4px 6px;
}
.bc-ky-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: var(--radius, 16px);
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  color: var(--navy);
  background: var(--input-bg, #fff);
  box-shadow: var(--shadow-soft, none);
}
.bc-ky-msg {
  margin: 8px 4px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.bc-ky-msg.is-error { color: var(--navy); font-weight: 650; }
.bc-figs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bc-fig {
  padding: 12px 12px 11px;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.bc-fig-label {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.bc-fig-val {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.25;
  word-break: break-word;
}
.bc-fig.is-pending .bc-fig-val {
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
#bc-new-members { margin-top: 2px; }
.bc-hd-list { display: grid; gap: 8px; }
.bc-hd-item {
  display: grid;
  grid-template-columns: 1fr 18px;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
}
.bc-hd-body { min-width: 0; display: grid; gap: 3px; }
.bc-hd-body h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.35;
}
.bc-hd-body p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.bc-hd-item .chev { width: 16px; height: 16px; color: var(--muted); }
.bc-hd-item.is-past { opacity: 0.55; }
.bc-hd-item.is-past h4 { color: var(--muted); }
.bc-empty {
  margin: 0;
  padding: 14px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Tổ chức xã hội – nghề nghiệp on member profiles */
.hv-to-chuc-sec { margin-top: 2px; }
.hv-to-chuc-sec .hv-dn-ten {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

/* Báo cáo entry + sub-page */
.hv-bc-entry { margin-top: 0; }
.hv-bc-ico {
  background: linear-gradient(160deg, #E8F4EC, #5AAF7A 55%, #1E6B45);
}
.bc-page { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.bc-intro { padding: 16px 16px 14px; }
.bc-intro h2 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.bc-lead { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.bc-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
}
.bc-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
  padding: 10px 8px;
  border-radius: 14px;
  cursor: pointer;
}
.bc-tab.is-on {
  color: var(--blue-deep, #1E3A5F);
  background: var(--cyan-pale, #E8F7FC);
}
.bc-panel { display: grid; gap: 10px; }

/* ===== Profile hero: one centered axis for name, title, company ===== */
.hv-pro-hero {
  align-items: center;
  text-align: center;
}
.hv-pro-hero .hv-pro-copy,
.hv-pro-hero .hv-hero-copy {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hv-pro-hero .hv-name {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  gap: 0;
  margin-left: 0;
  margin-right: 0;
}
.hv-pro-hero .hv-name-text {
  display: inline;
  width: auto;
  max-width: 100%;
  text-align: center;
  overflow: visible;
  white-space: normal;
}
.hv-pro-hero .hv-pro-meta,
.hv-pro-hero p.hv-pro-meta,
.hv-pro-hero .hv-pro-lead,
.hv-pro-hero .hv-title,
.hv-pro-hero .hv-cty {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
  float: none;
}
.hv-pro-hero .hv-pro-meta {
  margin-top: 2px;
  color: var(--blue);
  font-weight: 650;
  font-size: 0.9rem;
  line-height: 1.4;
}
.hv-pro-hero .hv-ma,
.hv-pro-hero .hv-chip {
  margin-left: auto;
  margin-right: auto;
}
.hv-pro-lead {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  text-wrap: balance;
}

/* ===== Tab Tôi ===== */
.toi-page { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.toi-intro, .toi-card, .toi-app { padding: 16px; }
.toi-intro h2, .toi-card h2, .toi-app h3, .toi-block h3 {
  margin: 0 0 6px;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.toi-intro h2 { font-size: 20px; }
.toi-lead, .toi-chuc, .toi-ver, .toi-empty { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.toi-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.toi-ava, .toi-card .hv-ava, .toi-ava-ph {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--cyan-pale);
  color: var(--blue-deep);
}
.toi-actions { display: grid; gap: 8px; }
.toi-btn-ghost { width: 100%; }
.toi-block h3 { font-size: 15px; font-weight: 750; }
.toi-cafe-item {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 8px;
}
.toi-cafe-item strong { font-size: 14px; color: var(--navy); }
.toi-cafe-item span { font-size: 12px; color: var(--muted); }
.toi-empty { padding: 14px; text-align: center; }

/* Thông Báo entry on Hội viên tab */
.hv-tb-entry { margin-top: 0; position: relative; }
.hv-tb-ico {
  position: relative;
  background: linear-gradient(160deg, #FFF6E8, #E0A15A 55%, #B15A12);
}
.hv-tb-ico .tb-badge,
.hv-tb-entry .tb-badge {
  top: 2px;
  right: 2px;
  left: auto;
}

.tb-tabs { margin: 0; }
.tb-tabs .bc-tab { font-size: 13px; padding: 10px 6px; }
.tb-panel { display: grid; gap: 10px; }
.tb-k { font-weight: 650; color: var(--muted); }
.tb-item-file { margin: 6px 0 0; font-size: 13px; }
.tb-item-file a { font-weight: 650; }

/* ===== v54: name+medal stay together and center as a unit ===== */
.hv-name {
  display: block;
  min-width: 0;
}
.hv-name-text {
  display: inline;
  overflow: visible;
  white-space: normal;
  text-overflow: unset;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  word-break: normal;
  position: relative;
  z-index: 2;
}
.person .hv-name-text,
.hv-card .hv-name-text,
.bch-ds-body .hv-name-text {
  display: inline;
  overflow: visible;
  -webkit-line-clamp: unset;
  word-break: normal;
}
.hv-name-tail {
  white-space: nowrap;
  display: inline;
}
.hv-pro-hero .hv-name .hv-name-tail .hv-rank,
.hv-pro-hero .hv-name .hv-name-tail .hv-rank-ct,
.hv-pro-hero .hv-name .hv-name-tail .hv-rank-pct-tt,
.hv-pro-hero .hv-name .hv-name-tail .hv-rank-pct,
.hv-pro-hero .hv-name .hv-name-tail .hv-rank-tb,
.hv-pro-hero .hv-name .hv-name-tail .hv-rank-ptb,
.hv-pro-hero .hv-name .hv-name-tail .hv-rank-uv,
.hv-pro-hero .hv-name .hv-name-tail .hv-rank-ch,
.hv-hero .hv-name .hv-name-tail .hv-rank,
.hv-hero .hv-name .hv-name-tail .hv-rank-ct,
.hv-hero .hv-name .hv-name-tail .hv-rank-pct-tt,
.hv-hero .hv-name .hv-name-tail .hv-rank-pct,
.hv-card .hv-name .hv-name-tail .hv-rank,
.hv-card .hv-name .hv-name-tail .hv-rank-ct,
.hv-card .hv-name .hv-name-tail .hv-rank-pct-tt,
.hv-card .hv-name .hv-name-tail .hv-rank-pct,
.hv-card .hv-name .hv-name-tail .hv-rank-tb,
.hv-card .hv-name .hv-name-tail .hv-rank-ptb,
.hv-card .hv-name .hv-name-tail .hv-rank-uv,
.hv-card .hv-name .hv-name-tail .hv-rank-ch,
.person .hv-name .hv-name-tail .hv-rank,
.person .hv-name .hv-name-tail .hv-rank-ct,
.person .hv-name .hv-name-tail .hv-rank-pct-tt,
.person .hv-name .hv-name-tail .hv-rank-pct,
.bch-ds-body .hv-name .hv-name-tail .hv-rank,
.bch-ds-body .hv-name .hv-name-tail .hv-rank-ct,
.bch-ds-body .hv-name .hv-name-tail .hv-rank-pct-tt,
.bch-ds-body .hv-name .hv-name-tail .hv-rank-pct {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 0 12px;
  flex-shrink: 0;
}
.hv-card .hv-body h4.hv-name,
.hv-card .hv-name,
.person-body h4.hv-name,
.person-body .hv-name,
.bch-ds-body b.hv-name,
.bch-ds-body .hv-name {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
}
.hv-pro-hero .hv-name {
  display: block;
  text-align: center;
  font-size: 1.28rem;
  margin-top: 14px;
  margin-bottom: 6px;
  width: 100%;
}
.hv-pro-hero .hv-name-text,
.hv-hero .hv-name-text {
  display: inline;
  width: auto;
  white-space: normal;
  overflow: visible;
}

/* ===== v54: CT kim tuyến glitter (distinct) + milder PCT twinkle ===== */
.hv-name-tail,
.hv-name .hv-rank,
.hv-name .hv-rank-ct,
.hv-name .hv-rank-pct-tt,
.hv-name .hv-rank-pct {
  overflow: visible;
}
.hv-rank-ct {
  position: relative;
  overflow: visible;
}

/* CT: hide the shared edge-dot twinkle so kim tuyến can stand apart from PCT. */
.hv-name .hv-rank-ct::before,
.hv-pro-hero .hv-name .hv-rank-ct::before,
.hv-hero .hv-name .hv-rank-ct::before,
.hv-card .hv-name .hv-rank-ct::before,
.person .hv-name .hv-rank-ct::before,
.bch-ds-body .hv-name .hv-rank-ct::before {
  display: none;
  animation: none;
}

/* Soft metallic sheen stays on the CT emblem (no extra halo). */
.hv-rank-ct::after {
  background: linear-gradient(
    125deg,
    transparent 22%,
    rgba(255, 248, 220, 0.15) 34%,
    rgba(255, 255, 255, 0.9) 47%,
    rgba(255, 214, 110, 0.7) 54%,
    transparent 70%
  );
  animation: hv-ct-sheen 3s ease-in-out infinite;
}

.hv-glitter {
  position: absolute;
  inset: -8px;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}
.hv-glitter i {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: 0;
  padding: 0;
  font-style: normal;
  display: block;
  pointer-events: none;
  background: linear-gradient(135deg, #ffffff 0%, #fff4c8 40%, #ffd45a 72%, #fff 100%);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 1px rgba(255, 250, 220, 0.95));
  opacity: 0;
  transform: scale(0.35) rotate(0deg);
  animation: hv-ct-glint 1.8s ease-in-out infinite;
}
.hv-glitter i:nth-child(odd) {
  background: linear-gradient(135deg, #fff 0%, #ffe9a0 45%, #ffcc44 100%);
}
.hv-glitter i:nth-child(even) {
  width: 5px;
  height: 5px;
  background: linear-gradient(135deg, #fff 0%, #fff8e6 50%, #ffe083 100%);
}
/* Positions hug the medal rim — confetti around, not a halo. */
.hv-glitter i:nth-child(1) { left: 10%; top: 16%; animation-duration: 1.7s; animation-delay: 0s; }
.hv-glitter i:nth-child(2) { right: 6%; top: 10%; animation-duration: 2s; animation-delay: 0.22s; }
.hv-glitter i:nth-child(3) { right: -2%; top: 44%; animation-duration: 1.6s; animation-delay: 0.45s; width: 7px; height: 7px; }
.hv-glitter i:nth-child(4) { right: 12%; bottom: 8%; animation-duration: 1.9s; animation-delay: 0.7s; }
.hv-glitter i:nth-child(5) { left: 2%; bottom: 14%; animation-duration: 1.75s; animation-delay: 0.95s; }
.hv-glitter i:nth-child(6) { left: 22%; top: 0; animation-duration: 2.1s; animation-delay: 1.15s; width: 4px; height: 4px; }
.hv-glitter i:nth-child(7) { left: -2%; top: 46%; animation-duration: 1.85s; animation-delay: 1.35s; }
.hv-glitter i:nth-child(8) { right: 28%; top: 2%; animation-duration: 1.65s; animation-delay: 0.15s; width: 4px; height: 4px; }

@keyframes hv-ct-glint {
  0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  18% { opacity: 1; transform: scale(1) rotate(18deg); }
  36% { opacity: 0.12; transform: scale(0.45) rotate(36deg); }
  55% { opacity: 0.95; transform: scale(0.9) rotate(8deg); }
  74% { opacity: 0; transform: scale(0.25) rotate(0deg); }
}

/* PCT: mild edge twinkle only — gold (thường trực) and gem. No kim tuyến stars. */
.hv-name .hv-rank-pct-tt::before,
.hv-name .hv-rank-pct::before,
.hv-card .hv-name .hv-rank-pct-tt::before,
.hv-card .hv-name .hv-rank-pct::before,
.person .hv-name .hv-rank-pct-tt::before,
.person .hv-name .hv-rank-pct::before,
.bch-ds-body .hv-name .hv-rank-pct-tt::before,
.bch-ds-body .hv-name .hv-rank-pct::before,
.hv-pro-hero .hv-name .hv-rank-pct-tt::before,
.hv-pro-hero .hv-name .hv-rank-pct::before,
.hv-hero .hv-name .hv-rank-pct-tt::before,
.hv-hero .hv-name .hv-rank-pct::before {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: none;
  border-radius: 0;
  pointer-events: none;
  z-index: 3;
  animation: hv-pct-twinkle 2.2s ease-in-out infinite;
}
.hv-name .hv-rank-pct-tt::before,
.hv-card .hv-name .hv-rank-pct-tt::before,
.person .hv-name .hv-rank-pct-tt::before,
.bch-ds-body .hv-name .hv-rank-pct-tt::before,
.hv-pro-hero .hv-name .hv-rank-pct-tt::before,
.hv-hero .hv-name .hv-rank-pct-tt::before {
  animation-name: hv-pct-tt-twinkle;
}
@keyframes hv-pct-tt-twinkle {
  0%, 100% {
    box-shadow:
      11px -8px 0 0.5px rgba(255, 255, 255, 0.8),
      -10px 8px 0 0.45px rgba(255, 230, 170, 0.3),
      9px 10px 0 0.4px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      11px -8px 0 0.35px rgba(255, 255, 255, 0.15),
      -10px 8px 0 0.55px rgba(255, 230, 170, 0.85),
      9px 10px 0 0.55px rgba(255, 255, 255, 0.8);
  }
}
@keyframes hv-pct-twinkle {
  0%, 100% {
    box-shadow:
      11px -8px 0 0.5px rgba(255, 255, 255, 0.8),
      -10px 8px 0 0.45px rgba(230, 190, 255, 0.35),
      9px 10px 0 0.4px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      11px -8px 0 0.35px rgba(255, 255, 255, 0.15),
      -10px 8px 0 0.55px rgba(230, 190, 255, 0.85),
      9px 10px 0 0.55px rgba(255, 255, 255, 0.8);
  }
}
.hv-pro-hero .hv-name .hv-rank-pct-tt::before,
.hv-pro-hero .hv-name .hv-rank-pct::before,
.hv-hero .hv-name .hv-rank-pct-tt::before,
.hv-hero .hv-name .hv-rank-pct::before {
  /* slightly larger medals: keep dots on the rim */
}

@media (prefers-reduced-motion: reduce) {
  .hv-glitter i {
    animation: none;
    opacity: 0;
  }
  .hv-glitter i:nth-child(1),
  .hv-glitter i:nth-child(3),
  .hv-glitter i:nth-child(5) {
    opacity: 0.75;
    transform: scale(0.85) rotate(12deg);
  }
  .hv-name .hv-rank-pct-tt::before,
  .hv-name .hv-rank-pct::before,
  .hv-card .hv-name .hv-rank-pct-tt::before,
  .hv-card .hv-name .hv-rank-pct::before,
  .person .hv-name .hv-rank-pct-tt::before,
  .person .hv-name .hv-rank-pct::before,
  .bch-ds-body .hv-name .hv-rank-pct-tt::before,
  .bch-ds-body .hv-name .hv-rank-pct::before,
  .hv-pro-hero .hv-name .hv-rank-pct-tt::before,
  .hv-pro-hero .hv-name .hv-rank-pct::before {
    animation: none;
    box-shadow:
      11px -8px 0 0.5px rgba(255, 255, 255, 0.7),
      -10px 8px 0 0.45px rgba(255, 230, 180, 0.55);
  }
  .hv-rank-ct::after,
  .hv-rank-pct-tt::after,
  .hv-rank-pct::after {
    animation: none;
    background-position: 40% 40%;
  }
  .hv-rank-ct img,
  .hv-rank-pct-tt img,
  .hv-rank-pct img {
    animation: none;
  }
}

/* ===== v55: bigger equal tabs; pill hugs content; safe-area outside ===== */
.tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: stretch;
  justify-items: stretch;
  bottom: calc(var(--tab-gap, 10px) + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
  padding: 9px 5px;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
}
.tabbar a,
.tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 2px 1px;
  border-radius: 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.15;
  box-sizing: border-box;
  white-space: nowrap;
}
.tabbar svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: block;
  overflow: visible;
}
.tabbar .active {
  color: var(--blue-deep);
  background: var(--cyan-pale);
}
@media (max-width: 360px) {
  .tabbar a,
  .tabbar span {
    font-size: 10px;
    letter-spacing: -0.045em;
  }
}

/* ===== v55: Tôi — iOS-style grouped list, light glass ===== */
.toi-page { display: flex; flex-direction: column; gap: 18px; padding-bottom: 8px; }
.toi-sub { padding-bottom: 8px; }
.toi-sub-body { display: grid; gap: 14px; }
.toi-intro, .toi-app { padding: 16px; }
.toi-intro h2, .toi-app h3 {
  margin: 0 0 6px;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.toi-intro h2 { font-size: 20px; }
.toi-lead, .toi-ver, .toi-empty, .toi-meta, .toi-the-chuc, .toi-the-ma {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.toi-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 16px 18px;
}
.toi-hero-copy { width: 100%; }
.toi-hero h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.toi-meta {
  margin: 4px 0 0;
  text-wrap: balance;
  color: var(--blue-deep);
  font-weight: 650;
}
.toi-verified {
  display: inline-block;
  margin: 8px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(46, 140, 110, 0.14);
  color: #1c6b4a;
  font-size: 12px;
  font-weight: 700;
}
.toi-ava, .toi-hero .hv-ava, .toi-ava-ph, .toi-the .toi-ava, .toi-the .hv-ava {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--cyan-pale);
  color: var(--blue-deep);
}
.toi-the-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blue-deep);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}
.toi-the-btn-ico {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #fff;
}
.toi-the-btn-ico svg { width: 20px; height: 20px; display: block; }
.toi-group { display: grid; gap: 8px; }
.toi-group-label {
  margin: 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.toi-list {
  padding: 2px 0;
  overflow: hidden;
}
.toi-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  box-sizing: border-box;
  border: 0;
  background: none;
  text-align: left;
  text-decoration: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  position: relative;
}
.toi-row + .toi-row::before {
  content: "";
  position: absolute;
  left: 58px;
  right: 14px;
  top: 0;
  height: 1px;
  background: rgba(30, 58, 95, 0.08);
}
.toi-row-ico {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--cyan-pale);
  color: var(--blue-deep);
}
.toi-row-ico svg { width: 18px; height: 18px; display: block; }
.toi-row-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1px;
}
.toi-row-copy strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.toi-row-sub {
  font-size: 12px;
  color: var(--muted);
}
.toi-row-hint {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.toi-row-chev {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
}
.toi-row-chev svg { width: 16px; height: 16px; display: block; }
.toi-row-danger .toi-row-copy strong { color: #b42318; }
.toi-row-danger .toi-row-ico {
  background: rgba(180, 35, 24, 0.1);
  color: #b42318;
}
.toi-row-static { cursor: default; }
.toi-app p { margin: 0; color: var(--navy); font-size: 14px; }
.toi-cafe-item {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 8px;
}
.toi-cafe-item strong { font-size: 14px; color: var(--navy); }
.toi-cafe-item span { font-size: 12px; color: var(--muted); }
.toi-empty { padding: 16px; text-align: center; }
.toi-the {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 24px 18px 22px;
}
.toi-the-org {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.toi-the h2 {
  margin: 6px 0 0;
  color: var(--navy);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.toi-the-qr {
  width: 168px;
  height: 168px;
  margin-top: 10px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}
.toi-the-qr svg { width: 100%; height: 100%; display: block; }

/* ===== v56: CT glow + kim tuyến visible on iOS Safari, including Reduce Motion =====
   Root causes on iPhone:
   1) Glints animated from opacity 0; iOS Low Power / Reduce Motion pauses CSS
      animations at 0%, so sparkles vanish. Reduced-motion rules also set most
      glints to opacity: 0.
   2) Glow was only a 2–3px low-opacity filter:drop-shadow on <img>, faint on
      light glass and unreliable for WebP on iOS Safari.
   3) Stars used unprefixed clip-path; WebKit needs -webkit-clip-path. Hero
      overflow:hidden could clip rim glints.
*/
.hv-card,
.hv-body,
.hv-name,
.hv-name-text,
.hv-name-tail,
.hv-rank.hv-rank-ct,
.hv-glitter,
.hv-pro-hero .hv-name,
.hv-pro-hero .hv-name-text,
.hv-pro-hero .hv-name-tail {
  overflow: visible;
}
.hv-rank-ct,
.hv-card .hv-name .hv-rank-ct,
.person .hv-name .hv-rank-ct,
.bch-ds-body .hv-name .hv-rank-ct,
.hv-pro-hero .hv-name .hv-rank-ct,
.hv-hero .hv-name .hv-rank-ct {
  position: relative;
  overflow: visible;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Always-on tight gold glow behind the emblem (no animation required). */
.hv-name .hv-rank-ct::before,
.hv-pro-hero .hv-name .hv-rank-ct::before,
.hv-hero .hv-name .hv-rank-ct::before,
.hv-card .hv-name .hv-rank-ct::before,
.person .hv-name .hv-rank-ct::before,
.bch-ds-body .hv-name .hv-rank-ct::before {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92%;
  height: 92%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(255, 228, 140, 0.85) 0%,
    rgba(255, 196, 70, 0.55) 36%,
    rgba(240, 170, 40, 0.22) 58%,
    transparent 72%
  );
  box-shadow:
    0 0 4px 1px rgba(255, 220, 130, 0.55),
    0 0 8px 2px rgba(240, 180, 50, 0.28);
  animation: none;
  filter: none;
  -webkit-filter: none;
}

.hv-rank-ct img,
.hv-card .hv-name .hv-rank-ct img,
.person .hv-name .hv-rank-ct img,
.hv-pro-hero .hv-name .hv-rank-ct img,
.hv-hero .hv-name .hv-rank-ct img {
  position: relative;
  z-index: 1;
  -webkit-filter:
    drop-shadow(0 0 1px rgba(255, 244, 200, 0.95))
    drop-shadow(0 0 3px rgba(255, 210, 90, 0.8))
    drop-shadow(0 0 6px rgba(240, 176, 50, 0.5));
  filter:
    drop-shadow(0 0 1px rgba(255, 244, 200, 0.95))
    drop-shadow(0 0 3px rgba(255, 210, 90, 0.8))
    drop-shadow(0 0 6px rgba(240, 176, 50, 0.5));
  animation: hv-ct-glow 2.4s ease-in-out infinite;
}
@keyframes hv-ct-glow {
  0%, 100% {
    -webkit-filter:
      drop-shadow(0 0 1px rgba(255, 244, 200, 0.9))
      drop-shadow(0 0 3px rgba(255, 210, 90, 0.75))
      drop-shadow(0 0 6px rgba(240, 176, 50, 0.45));
    filter:
      drop-shadow(0 0 1px rgba(255, 244, 200, 0.9))
      drop-shadow(0 0 3px rgba(255, 210, 90, 0.75))
      drop-shadow(0 0 6px rgba(240, 176, 50, 0.45));
  }
  50% {
    -webkit-filter:
      drop-shadow(0 0 1px rgba(255, 252, 230, 1))
      drop-shadow(0 0 4px rgba(255, 220, 110, 0.9))
      drop-shadow(0 0 7px rgba(240, 180, 50, 0.55));
    filter:
      drop-shadow(0 0 1px rgba(255, 252, 230, 1))
      drop-shadow(0 0 4px rgba(255, 220, 110, 0.9))
      drop-shadow(0 0 7px rgba(240, 180, 50, 0.55));
  }
}

.hv-glitter {
  position: absolute;
  inset: -12px;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}
.hv-glitter i {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: 0;
  padding: 0;
  font-style: normal;
  display: block;
  pointer-events: none;
  background: radial-gradient(circle, #fff 0 28%, #ffe9a0 48%, #ffd056 100%);
  border-radius: 50%;
  -webkit-clip-path: polygon(50% 0, 63% 36%, 100% 50%, 63% 64%, 50% 100%, 37% 64%, 0 50%, 37% 36%);
  clip-path: polygon(50% 0, 63% 36%, 100% 50%, 63% 64%, 50% 100%, 37% 64%, 0 50%, 37% 36%);
  -webkit-filter: drop-shadow(0 0 2px rgba(255, 250, 220, 1)) drop-shadow(0 0 4px rgba(255, 210, 90, 0.85));
  filter: drop-shadow(0 0 2px rgba(255, 250, 220, 1)) drop-shadow(0 0 4px rgba(255, 210, 90, 0.85));
  /* Visible at rest — iOS may pause animation at 0%. */
  opacity: 0.95;
  transform: scale(1) rotate(12deg);
  animation: hv-ct-glint 1.8s ease-in-out infinite;
}
/* Cross rays so the glint stays a star even if clip-path is ignored. */
.hv-glitter i::before,
.hv-glitter i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: linear-gradient(90deg, transparent, #fffef2 30%, #ffe08a 50%, #fff 70%, transparent);
  border-radius: 1px;
  pointer-events: none;
}
.hv-glitter i::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.hv-glitter i::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, transparent, #fffef2 30%, #ffe08a 50%, #fff 70%, transparent);
}
.hv-pro-hero .hv-glitter i,
.hv-hero .hv-glitter i {
  width: 11px;
  height: 11px;
}
.hv-pro-hero .hv-glitter i::before,
.hv-hero .hv-glitter i::before { width: 18px; height: 2.2px; }
.hv-pro-hero .hv-glitter i::after,
.hv-hero .hv-glitter i::after { width: 2.2px; height: 18px; }
.hv-card .hv-glitter i,
.person .hv-glitter i,
.bch-ds-body .hv-glitter i {
  width: 8px;
  height: 8px;
}
.hv-glitter i:nth-child(even) {
  width: 7px;
  height: 7px;
}
.hv-glitter i:nth-child(1) { left: 8%; top: 14%; animation-duration: 1.7s; animation-delay: 0s; }
.hv-glitter i:nth-child(2) { right: 4%; top: 8%; animation-duration: 2s; animation-delay: 0.22s; }
.hv-glitter i:nth-child(3) { right: -4%; top: 42%; animation-duration: 1.6s; animation-delay: 0.45s; }
.hv-glitter i:nth-child(4) { right: 10%; bottom: 6%; animation-duration: 1.9s; animation-delay: 0.7s; }
.hv-glitter i:nth-child(5) { left: 0; bottom: 12%; animation-duration: 1.75s; animation-delay: 0.95s; }
.hv-glitter i:nth-child(6) { left: 20%; top: -2%; animation-duration: 2.1s; animation-delay: 1.15s; }
.hv-glitter i:nth-child(7) { left: -4%; top: 44%; animation-duration: 1.85s; animation-delay: 1.35s; }
.hv-glitter i:nth-child(8) { right: 26%; top: 0; animation-duration: 1.65s; animation-delay: 0.15s; }

@keyframes hv-ct-glint {
  0%, 100% { opacity: 0.75; transform: scale(0.9) rotate(0deg); }
  25% { opacity: 1; transform: scale(1.2) rotate(18deg); }
  50% { opacity: 0.6; transform: scale(0.85) rotate(8deg); }
  75% { opacity: 1; transform: scale(1.15) rotate(-12deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hv-rank-ct img,
  .hv-card .hv-name .hv-rank-ct img,
  .person .hv-name .hv-rank-ct img,
  .hv-pro-hero .hv-name .hv-rank-ct img,
  .hv-hero .hv-name .hv-rank-ct img,
  .hv-rank-ct::after,
  .hv-glitter i {
    animation: none !important;
  }
  .hv-rank-ct img,
  .hv-card .hv-name .hv-rank-ct img,
  .person .hv-name .hv-rank-ct img,
  .hv-pro-hero .hv-name .hv-rank-ct img,
  .hv-hero .hv-name .hv-rank-ct img {
    -webkit-filter:
      drop-shadow(0 0 1px rgba(255, 244, 200, 0.95))
      drop-shadow(0 0 3px rgba(255, 210, 90, 0.8))
      drop-shadow(0 0 6px rgba(240, 176, 50, 0.5));
    filter:
      drop-shadow(0 0 1px rgba(255, 244, 200, 0.95))
      drop-shadow(0 0 3px rgba(255, 210, 90, 0.8))
      drop-shadow(0 0 6px rgba(240, 176, 50, 0.5));
  }
  .hv-name .hv-rank-ct::before,
  .hv-pro-hero .hv-name .hv-rank-ct::before,
  .hv-card .hv-name .hv-rank-ct::before,
  .person .hv-name .hv-rank-ct::before,
  .bch-ds-body .hv-name .hv-rank-ct::before {
    display: block;
    opacity: 1;
  }
  .hv-glitter i,
  .hv-glitter i:nth-child(n) {
    opacity: 0.95 !important;
    transform: scale(1) rotate(12deg) !important;
  }
  .hv-glitter i:nth-child(even) {
    transform: scale(0.9) rotate(-8deg) !important;
  }
  .hv-rank-ct::after { background-position: 40% 40%; }
}

/* ===== v57: gap so medal glow/glints never overlap the name =====
   The v56 CT glow (::before 8px blur + 2px spread, drop-shadow ~6px,
   glints at inset -12px) extends past the medal box. A 7px margin was
   not enough; "Anh" sat under the glow. */
.hv-name-tail .hv-rank,
.hv-name-tail .hv-rank-ct,
.hv-name-tail .hv-rank-pct-tt,
.hv-name-tail .hv-rank-pct,
.hv-name-tail .hv-rank-tb,
.hv-name-tail .hv-rank-ptb,
.hv-name-tail .hv-rank-uv,
.hv-name-tail .hv-rank-ch,
.hv-pro-hero .hv-name .hv-name-tail .hv-rank,
.hv-pro-hero .hv-name .hv-name-tail .hv-rank-ct,
.hv-pro-hero .hv-name .hv-name-tail .hv-rank-pct-tt,
.hv-pro-hero .hv-name .hv-name-tail .hv-rank-pct,
.hv-hero .hv-name .hv-name-tail .hv-rank,
.hv-hero .hv-name .hv-name-tail .hv-rank-ct,
.hv-hero .hv-name .hv-name-tail .hv-rank-pct-tt,
.hv-hero .hv-name .hv-name-tail .hv-rank-pct,
.hv-card .hv-name .hv-name-tail .hv-rank,
.hv-card .hv-name .hv-name-tail .hv-rank-ct,
.hv-card .hv-name .hv-name-tail .hv-rank-pct-tt,
.hv-card .hv-name .hv-name-tail .hv-rank-pct,
.person .hv-name .hv-name-tail .hv-rank,
.person .hv-name .hv-name-tail .hv-rank-ct,
.person .hv-name .hv-name-tail .hv-rank-pct-tt,
.person .hv-name .hv-name-tail .hv-rank-pct,
.bch-ds-body .hv-name .hv-name-tail .hv-rank,
.bch-ds-body .hv-name .hv-name-tail .hv-rank-ct,
.bch-ds-body .hv-name .hv-name-tail .hv-rank-pct-tt,
.bch-ds-body .hv-name .hv-name-tail .hv-rank-pct {
  margin-left: 12px;
}

/* CT: extra room for the glow disc + drop-shadow (~8–10px past the box).
   Target ~10–12px clear air between the last letter and the visible glow. */
.hv-name-tail .hv-rank-ct,
.hv-pro-hero .hv-name .hv-name-tail .hv-rank-ct,
.hv-hero .hv-name .hv-name-tail .hv-rank-ct,
.hv-card .hv-name .hv-name-tail .hv-rank-ct,
.person .hv-name .hv-name-tail .hv-rank-ct,
.bch-ds-body .hv-name .hv-name-tail .hv-rank-ct {
  margin-left: 22px;
}

/* Keep left-side kim tuyến on the emblem rim, not over the name. */
.hv-glitter i:nth-child(5) { left: 8%; }
.hv-glitter i:nth-child(7) { left: 10%; }


/* ===== v58: tighten CT halo — crisp glow, not a hazy wash =====
   v56 made the effect visible on iOS by using a large soft radial disc
   (92% + 8px/2px box-shadow) and 6–7px drop-shadows. That reads as a
   blurry yellow-white fog ("ánh sáng toả bị mù"). Keep a tight warm
   rim light + sharp kim tuyến; keep the v57 name gap and centering. */
.hv-name .hv-rank-ct::before,
.hv-pro-hero .hv-name .hv-rank-ct::before,
.hv-hero .hv-name .hv-rank-ct::before,
.hv-card .hv-name .hv-rank-ct::before,
.person .hv-name .hv-rank-ct::before,
.bch-ds-body .hv-name .hv-rank-ct::before {
  width: 68%;
  height: 68%;
  background: radial-gradient(
    circle,
    rgba(255, 220, 120, 0.42) 0%,
    rgba(255, 196, 70, 0.2) 40%,
    rgba(240, 170, 40, 0.08) 54%,
    transparent 64%
  );
  box-shadow: 0 0 2px 0 rgba(255, 210, 100, 0.35);
  filter: none;
  -webkit-filter: none;
  animation: none;
  opacity: 1;
  display: block;
}

.hv-rank-ct img,
.hv-card .hv-name .hv-rank-ct img,
.person .hv-name .hv-rank-ct img,
.hv-pro-hero .hv-name .hv-rank-ct img,
.hv-hero .hv-name .hv-rank-ct img {
  -webkit-filter:
    drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.95))
    drop-shadow(0 0 1.6px rgba(255, 196, 70, 0.65));
  filter:
    drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.95))
    drop-shadow(0 0 1.6px rgba(255, 196, 70, 0.65));
}
@keyframes hv-ct-glow {
  0%, 100% {
    -webkit-filter:
      drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.9))
      drop-shadow(0 0 1.4px rgba(255, 196, 70, 0.55));
    filter:
      drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.9))
      drop-shadow(0 0 1.4px rgba(255, 196, 70, 0.55));
  }
  50% {
    -webkit-filter:
      drop-shadow(0 0 0.6px rgba(255, 252, 230, 1))
      drop-shadow(0 0 2.1px rgba(255, 210, 90, 0.75));
    filter:
      drop-shadow(0 0 0.6px rgba(255, 252, 230, 1))
      drop-shadow(0 0 2.1px rgba(255, 210, 90, 0.75));
  }
}

/* Small crisp 4-point stars — no soft 4px bloom. */
.hv-glitter {
  inset: -8px;
}
.hv-glitter i {
  width: 5px;
  height: 5px;
  border-radius: 0;
  background: #fff8d4;
  -webkit-clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  -webkit-filter: drop-shadow(0 0 0.55px rgba(255, 250, 220, 1));
  filter: drop-shadow(0 0 0.55px rgba(255, 250, 220, 1));
  opacity: 0.95;
}
.hv-glitter i::before {
  width: 9px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff 22%, #ffe28a 50%, #fff 78%, transparent);
  border-radius: 0;
}
.hv-glitter i::after {
  width: 1px;
  height: 9px;
  background: linear-gradient(180deg, transparent, #fff 22%, #ffe28a 50%, #fff 78%, transparent);
  border-radius: 0;
}
.hv-pro-hero .hv-glitter i,
.hv-hero .hv-glitter i {
  width: 6px;
  height: 6px;
}
.hv-pro-hero .hv-glitter i::before,
.hv-hero .hv-glitter i::before { width: 11px; height: 1.15px; }
.hv-pro-hero .hv-glitter i::after,
.hv-hero .hv-glitter i::after { width: 1.15px; height: 11px; }
.hv-card .hv-glitter i,
.person .hv-glitter i,
.bch-ds-body .hv-glitter i {
  width: 5px;
  height: 5px;
}
.hv-glitter i:nth-child(even) {
  width: 4px;
  height: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .hv-rank-ct img,
  .hv-card .hv-name .hv-rank-ct img,
  .person .hv-name .hv-rank-ct img,
  .hv-pro-hero .hv-name .hv-rank-ct img,
  .hv-hero .hv-name .hv-rank-ct img {
    -webkit-filter:
      drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.95))
      drop-shadow(0 0 1.6px rgba(255, 196, 70, 0.65));
    filter:
      drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.95))
      drop-shadow(0 0 1.6px rgba(255, 196, 70, 0.65));
  }
  .hv-name .hv-rank-ct::before,
  .hv-pro-hero .hv-name .hv-rank-ct::before,
  .hv-hero .hv-name .hv-rank-ct::before,
  .hv-card .hv-name .hv-rank-ct::before,
  .person .hv-name .hv-rank-ct::before,
  .bch-ds-body .hv-name .hv-rank-ct::before {
    display: block;
    opacity: 1;
  }
  .hv-glitter i,
  .hv-glitter i:nth-child(n) {
    opacity: 0.95 !important;
  }
}

/* ===== v58: PCT tight static glow + sharp glints, visible on iOS / Reduce Motion =====
   PCT previously relied on faint img drop-shadows and 0×0 box-shadow edge dots
   that animate (and collapse under Reduce Motion / Low Power). Same iOS issues
   as the CT medal. Use a crisp static halo in each medal's tone plus a few
   always-visible sharp glints — milder and distinct from Chủ tịch kim tuyến. */
.hv-rank-pct-tt,
.hv-rank-pct,
.hv-card .hv-name .hv-rank-pct-tt,
.hv-card .hv-name .hv-rank-pct,
.person .hv-name .hv-rank-pct-tt,
.person .hv-name .hv-rank-pct,
.bch-ds-body .hv-name .hv-rank-pct-tt,
.bch-ds-body .hv-name .hv-rank-pct,
.hv-pro-hero .hv-name .hv-rank-pct-tt,
.hv-pro-hero .hv-name .hv-rank-pct,
.hv-hero .hv-name .hv-rank-pct-tt,
.hv-hero .hv-name .hv-rank-pct {
  position: relative;
  overflow: visible;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hv-name .hv-rank-pct-tt::before,
.hv-pro-hero .hv-name .hv-rank-pct-tt::before,
.hv-hero .hv-name .hv-rank-pct-tt::before,
.hv-card .hv-name .hv-rank-pct-tt::before,
.person .hv-name .hv-rank-pct-tt::before,
.bch-ds-body .hv-name .hv-rank-pct-tt::before,
.hv-name .hv-rank-pct::before,
.hv-pro-hero .hv-name .hv-rank-pct::before,
.hv-hero .hv-name .hv-rank-pct::before,
.hv-card .hv-name .hv-rank-pct::before,
.person .hv-name .hv-rank-pct::before,
.bch-ds-body .hv-name .hv-rank-pct::before {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66%;
  height: 66%;
  border-radius: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  animation: none;
  filter: none;
  -webkit-filter: none;
  opacity: 1;
}

.hv-name .hv-rank-pct-tt::before,
.hv-pro-hero .hv-name .hv-rank-pct-tt::before,
.hv-hero .hv-name .hv-rank-pct-tt::before,
.hv-card .hv-name .hv-rank-pct-tt::before,
.person .hv-name .hv-rank-pct-tt::before,
.bch-ds-body .hv-name .hv-rank-pct-tt::before {
  background: radial-gradient(
    circle,
    rgba(255, 220, 120, 0.36) 0%,
    rgba(240, 190, 70, 0.14) 42%,
    transparent 64%
  );
  box-shadow: 0 0 2px 0 rgba(255, 210, 100, 0.28);
}

.hv-name .hv-rank-pct::before,
.hv-pro-hero .hv-name .hv-rank-pct::before,
.hv-hero .hv-name .hv-rank-pct::before,
.hv-card .hv-name .hv-rank-pct::before,
.person .hv-name .hv-rank-pct::before,
.bch-ds-body .hv-name .hv-rank-pct::before {
  background: radial-gradient(
    circle,
    rgba(232, 186, 255, 0.38) 0%,
    rgba(180, 90, 210, 0.16) 42%,
    transparent 64%
  );
  box-shadow: 0 0 2px 0 rgba(200, 130, 230, 0.3);
}

.hv-rank-pct-tt img,
.hv-card .hv-name .hv-rank-pct-tt img,
.person .hv-name .hv-rank-pct-tt img,
.hv-pro-hero .hv-name .hv-rank-pct-tt img,
.hv-hero .hv-name .hv-rank-pct-tt img {
  position: relative;
  z-index: 1;
  -webkit-filter:
    drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.9))
    drop-shadow(0 0 1.4px rgba(240, 193, 75, 0.55));
  filter:
    drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.9))
    drop-shadow(0 0 1.4px rgba(240, 193, 75, 0.55));
}
.hv-rank-pct img,
.hv-card .hv-name .hv-rank-pct img,
.person .hv-name .hv-rank-pct img,
.hv-pro-hero .hv-name .hv-rank-pct img,
.hv-hero .hv-name .hv-rank-pct img {
  position: relative;
  z-index: 1;
  -webkit-filter:
    drop-shadow(0 0 0.5px rgba(250, 236, 255, 0.95))
    drop-shadow(0 0 1.4px rgba(180, 90, 210, 0.55));
  filter:
    drop-shadow(0 0 0.5px rgba(250, 236, 255, 0.95))
    drop-shadow(0 0 1.4px rgba(180, 90, 210, 0.55));
}

/* Four small sharp glints — always on, never opacity 0. */
.hv-glitter-pct {
  position: absolute;
  inset: -7px;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}
.hv-glitter-pct i {
  position: absolute;
  width: 4px;
  height: 4px;
  margin: 0;
  padding: 0;
  font-style: normal;
  display: block;
  pointer-events: none;
  border-radius: 0;
  background: #fff6d0;
  -webkit-clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  -webkit-filter: drop-shadow(0 0 0.45px rgba(255, 250, 220, 1));
  filter: drop-shadow(0 0 0.45px rgba(255, 250, 220, 1));
  opacity: 0.95;
  -webkit-transform: rotate(12deg);
  transform: rotate(12deg);
  animation: none;
}
.hv-rank-pct .hv-glitter-pct i {
  background: #f4e4ff;
  -webkit-filter: drop-shadow(0 0 0.45px rgba(245, 230, 255, 1));
  filter: drop-shadow(0 0 0.45px rgba(245, 230, 255, 1));
}
.hv-glitter-pct i::before,
.hv-glitter-pct i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: linear-gradient(90deg, transparent, #fff 22%, #ffe28a 50%, #fff 78%, transparent);
  border-radius: 0;
  pointer-events: none;
}
.hv-glitter-pct i::before {
  width: 7px;
  height: 1px;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
.hv-glitter-pct i::after {
  width: 1px;
  height: 7px;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, transparent, #fff 22%, #ffe28a 50%, #fff 78%, transparent);
}
.hv-rank-pct .hv-glitter-pct i::before {
  background: linear-gradient(90deg, transparent, #fff 22%, #e8c4ff 50%, #fff 78%, transparent);
}
.hv-rank-pct .hv-glitter-pct i::after {
  background: linear-gradient(180deg, transparent, #fff 22%, #e8c4ff 50%, #fff 78%, transparent);
}
.hv-pro-hero .hv-glitter-pct i,
.hv-hero .hv-glitter-pct i {
  width: 5px;
  height: 5px;
}
.hv-pro-hero .hv-glitter-pct i::before,
.hv-hero .hv-glitter-pct i::before { width: 8px; height: 1px; }
.hv-pro-hero .hv-glitter-pct i::after,
.hv-hero .hv-glitter-pct i::after { width: 1px; height: 8px; }
/* Rim positions, clear of the name (12px gap stays). */
.hv-glitter-pct i:nth-child(1) { left: 14%; top: 8%; }
.hv-glitter-pct i:nth-child(2) { right: 6%; top: 16%; }
.hv-glitter-pct i:nth-child(3) { right: 8%; bottom: 12%; }
.hv-glitter-pct i:nth-child(4) { left: 12%; bottom: 18%; }

@media (prefers-reduced-motion: reduce) {
  .hv-rank-pct-tt img,
  .hv-rank-pct img,
  .hv-pro-hero .hv-name .hv-rank-pct-tt img,
  .hv-pro-hero .hv-name .hv-rank-pct img,
  .hv-card .hv-name .hv-rank-pct-tt img,
  .hv-card .hv-name .hv-rank-pct img {
    animation: none !important;
    -webkit-filter:
      drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.9))
      drop-shadow(0 0 1.4px rgba(240, 193, 75, 0.55));
    filter:
      drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.9))
      drop-shadow(0 0 1.4px rgba(240, 193, 75, 0.55));
  }
  .hv-rank-pct img,
  .hv-pro-hero .hv-name .hv-rank-pct img,
  .hv-card .hv-name .hv-rank-pct img {
    -webkit-filter:
      drop-shadow(0 0 0.5px rgba(250, 236, 255, 0.95))
      drop-shadow(0 0 1.4px rgba(180, 90, 210, 0.55));
    filter:
      drop-shadow(0 0 0.5px rgba(250, 236, 255, 0.95))
      drop-shadow(0 0 1.4px rgba(180, 90, 210, 0.55));
  }
  .hv-name .hv-rank-pct-tt::before,
  .hv-name .hv-rank-pct::before,
  .hv-pro-hero .hv-name .hv-rank-pct-tt::before,
  .hv-pro-hero .hv-name .hv-rank-pct::before,
  .hv-card .hv-name .hv-rank-pct-tt::before,
  .hv-card .hv-name .hv-rank-pct::before,
  .person .hv-name .hv-rank-pct-tt::before,
  .person .hv-name .hv-rank-pct::before,
  .bch-ds-body .hv-name .hv-rank-pct-tt::before,
  .bch-ds-body .hv-name .hv-rank-pct::before {
    display: block;
    opacity: 1;
    animation: none !important;
  }
  .hv-glitter-pct i,
  .hv-glitter-pct i:nth-child(n) {
    opacity: 0.95 !important;
    animation: none !important;
  }
}

/* Logged-out Tôi hub */
.toi-hero-guest h2 {
  color: var(--navy);
}
.toi-hero-guest .toi-ava-ph {
  color: var(--blue-deep);
  font-size: 32px;
  font-weight: 700;
}

/* Keep the v57 12px PCT name gap (do not inherit the 22px CT gap). */
.hv-name-tail .hv-rank-pct-tt,
.hv-name-tail .hv-rank-pct,
.hv-pro-hero .hv-name .hv-name-tail .hv-rank-pct-tt,
.hv-pro-hero .hv-name .hv-name-tail .hv-rank-pct,
.hv-hero .hv-name .hv-name-tail .hv-rank-pct-tt,
.hv-hero .hv-name .hv-name-tail .hv-rank-pct,
.hv-card .hv-name .hv-name-tail .hv-rank-pct-tt,
.hv-card .hv-name .hv-name-tail .hv-rank-pct,
.person .hv-name .hv-name-tail .hv-rank-pct-tt,
.person .hv-name .hv-name-tail .hv-rank-pct,
.bch-ds-body .hv-name .hv-name-tail .hv-rank-pct-tt,
.bch-ds-body .hv-name .hv-name-tail .hv-rank-pct {
  margin-left: 12px;
}


/* ===== v60: visible blink + sheen + twinkling glints on CT and all PCT =====
   Anh Long (t159u/t160u): the 2 PCT thường trực still read as "nhấp nháy" because
   their gold img still runs `hv-pct-tt-glow` (2.6s ease-in-out) and the gold
   tone makes that pulse obvious. Regular PCT / CT lost a clearly visible motion
   after v58 (static ::before halo, glitter-pct animation:none, tightened CT
   filter). Reuse that 2.6s pulse, add a light sweep on the masked ::after, and
   twinkle the glints — noticeable on iPhone, crisp not hazy, CT more special.
   Resting keyframes never use opacity 0 (iOS Low Power / Reduce Motion may
   freeze at 0%). Gaps stay CT 22px / PCT 12px. */

@keyframes hv-v60-sheen {
  0%, 100% { background-position: 125% 38%; }
  50% { background-position: -25% 62%; }
}
@keyframes hv-v60-halo {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}
@keyframes hv-v60-ct-glow {
  0%, 100% {
    -webkit-filter:
      drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.95))
      drop-shadow(0 0 1.6px rgba(255, 196, 70, 0.65));
    filter:
      drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.95))
      drop-shadow(0 0 1.6px rgba(255, 196, 70, 0.65));
  }
  50% {
    -webkit-filter:
      drop-shadow(0 0 0.7px rgba(255, 252, 230, 1))
      drop-shadow(0 0 2.4px rgba(255, 214, 90, 0.9));
    filter:
      drop-shadow(0 0 0.7px rgba(255, 252, 230, 1))
      drop-shadow(0 0 2.4px rgba(255, 214, 90, 0.9));
  }
}
/* Same 2.6s gold pulse the PCT thường trực already used (hv-pct-tt-glow),
   with -webkit-filter so iOS actually animates it. */
@keyframes hv-v60-pct-tt-glow {
  0%, 100% {
    -webkit-filter:
      drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.9))
      drop-shadow(0 0 1.4px rgba(240, 193, 75, 0.55));
    filter:
      drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.9))
      drop-shadow(0 0 1.4px rgba(240, 193, 75, 0.55));
  }
  50% {
    -webkit-filter:
      drop-shadow(0 0 0.7px rgba(255, 252, 230, 1))
      drop-shadow(0 0 2.2px rgba(240, 193, 75, 0.85));
    filter:
      drop-shadow(0 0 0.7px rgba(255, 252, 230, 1))
      drop-shadow(0 0 2.2px rgba(240, 193, 75, 0.85));
  }
}
@keyframes hv-v60-pct-glow {
  0%, 100% {
    -webkit-filter:
      drop-shadow(0 0 0.5px rgba(250, 236, 255, 0.95))
      drop-shadow(0 0 1.4px rgba(180, 90, 210, 0.55));
    filter:
      drop-shadow(0 0 0.5px rgba(250, 236, 255, 0.95))
      drop-shadow(0 0 1.4px rgba(180, 90, 210, 0.55));
  }
  50% {
    -webkit-filter:
      drop-shadow(0 0 0.7px rgba(255, 245, 255, 1))
      drop-shadow(0 0 2.2px rgba(200, 120, 230, 0.85));
    filter:
      drop-shadow(0 0 0.7px rgba(255, 245, 255, 1))
      drop-shadow(0 0 2.2px rgba(200, 120, 230, 0.85));
  }
}
@keyframes hv-v60-glint {
  0%, 100% {
    opacity: 0.7;
    -webkit-transform: scale(0.88) rotate(0deg);
    transform: scale(0.88) rotate(0deg);
  }
  28% {
    opacity: 1;
    -webkit-transform: scale(1.28) rotate(18deg);
    transform: scale(1.28) rotate(18deg);
  }
  55% {
    opacity: 0.58;
    -webkit-transform: scale(0.82) rotate(8deg);
    transform: scale(0.82) rotate(8deg);
  }
  78% {
    opacity: 1;
    -webkit-transform: scale(1.18) rotate(-14deg);
    transform: scale(1.18) rotate(-14deg);
  }
}

/* Tight halo breathes — never off. */
.hv-name .hv-rank-ct::before,
.hv-pro-hero .hv-name .hv-rank-ct::before,
.hv-hero .hv-name .hv-rank-ct::before,
.hv-card .hv-name .hv-rank-ct::before,
.person .hv-name .hv-rank-ct::before,
.bch-ds-body .hv-name .hv-rank-ct::before,
.hv-name .hv-rank-pct-tt::before,
.hv-pro-hero .hv-name .hv-rank-pct-tt::before,
.hv-hero .hv-name .hv-rank-pct-tt::before,
.hv-card .hv-name .hv-rank-pct-tt::before,
.person .hv-name .hv-rank-pct-tt::before,
.bch-ds-body .hv-name .hv-rank-pct-tt::before,
.hv-name .hv-rank-pct::before,
.hv-pro-hero .hv-name .hv-rank-pct::before,
.hv-hero .hv-name .hv-rank-pct::before,
.hv-card .hv-name .hv-rank-pct::before,
.person .hv-name .hv-rank-pct::before,
.bch-ds-body .hv-name .hv-rank-pct::before {
  display: block;
  opacity: 0.85;
  -webkit-animation: hv-v60-halo 2.6s ease-in-out infinite;
  animation: hv-v60-halo 2.6s ease-in-out infinite;
}

/* Masked light sweep across the emblem (CT brighter / a bit faster). */
.hv-rank-ct::after,
.hv-rank-pct-tt::after,
.hv-rank-pct::after {
  -webkit-animation: hv-v60-sheen 2.6s ease-in-out infinite;
  animation: hv-v60-sheen 2.6s ease-in-out infinite;
}
.hv-rank-ct::after {
  background: linear-gradient(
    125deg,
    transparent 18%,
    rgba(255, 248, 220, 0.28) 32%,
    rgba(255, 255, 255, 0.95) 47%,
    rgba(255, 214, 110, 0.8) 56%,
    transparent 72%
  );
  background-size: 250% 250%;
  -webkit-animation-duration: 2.2s;
  animation-duration: 2.2s;
}
.hv-rank-pct-tt::after,
.hv-rank-pct::after {
  background-size: 250% 250%;
  -webkit-animation-duration: 2.8s;
  animation-duration: 2.8s;
}

/* Img pulse: CT uses a tighter gold pulse; PCT-TT reuses the familiar 2.6s gold blink; PCT gem in purple. */
.hv-rank-ct img,
.hv-card .hv-name .hv-rank-ct img,
.person .hv-name .hv-rank-ct img,
.hv-pro-hero .hv-name .hv-rank-ct img,
.hv-hero .hv-name .hv-rank-ct img {
  -webkit-animation: hv-v60-ct-glow 2.4s ease-in-out infinite;
  animation: hv-v60-ct-glow 2.4s ease-in-out infinite;
}
.hv-rank-pct-tt img,
.hv-card .hv-name .hv-rank-pct-tt img,
.person .hv-name .hv-rank-pct-tt img,
.hv-pro-hero .hv-name .hv-rank-pct-tt img,
.hv-hero .hv-name .hv-rank-pct-tt img {
  -webkit-animation: hv-v60-pct-tt-glow 2.6s ease-in-out infinite;
  animation: hv-v60-pct-tt-glow 2.6s ease-in-out infinite;
}
.hv-rank-pct img,
.hv-card .hv-name .hv-rank-pct img,
.person .hv-name .hv-rank-pct img,
.hv-pro-hero .hv-name .hv-rank-pct img,
.hv-hero .hv-name .hv-rank-pct img {
  -webkit-animation: hv-v60-pct-glow 2.6s ease-in-out infinite;
  animation: hv-v60-pct-glow 2.6s ease-in-out infinite;
}

/* CT kim tuyến: more sparkle (8 glints, slightly snappier). Min opacity 0.7. */
.hv-glitter i,
.hv-glitter i:nth-child(n) {
  -webkit-animation: hv-v60-glint 1.7s ease-in-out infinite;
  animation: hv-v60-glint 1.7s ease-in-out infinite;
}
.hv-glitter i:nth-child(1) { -webkit-animation-duration: 1.55s; animation-duration: 1.55s; -webkit-animation-delay: 0s; animation-delay: 0s; }
.hv-glitter i:nth-child(2) { -webkit-animation-duration: 1.85s; animation-duration: 1.85s; -webkit-animation-delay: 0.18s; animation-delay: 0.18s; }
.hv-glitter i:nth-child(3) { -webkit-animation-duration: 1.5s; animation-duration: 1.5s; -webkit-animation-delay: 0.36s; animation-delay: 0.36s; }
.hv-glitter i:nth-child(4) { -webkit-animation-duration: 1.75s; animation-duration: 1.75s; -webkit-animation-delay: 0.55s; animation-delay: 0.55s; }
.hv-glitter i:nth-child(5) { -webkit-animation-duration: 1.6s; animation-duration: 1.6s; -webkit-animation-delay: 0.72s; animation-delay: 0.72s; }
.hv-glitter i:nth-child(6) { -webkit-animation-duration: 1.95s; animation-duration: 1.95s; -webkit-animation-delay: 0.9s; animation-delay: 0.9s; }
.hv-glitter i:nth-child(7) { -webkit-animation-duration: 1.7s; animation-duration: 1.7s; -webkit-animation-delay: 1.08s; animation-delay: 1.08s; }
.hv-glitter i:nth-child(8) { -webkit-animation-duration: 1.45s; animation-duration: 1.45s; -webkit-animation-delay: 0.12s; animation-delay: 0.12s; }

/* All PCT (thường trực + others): same blink language, milder / fewer glints. */
.hv-glitter-pct i,
.hv-glitter-pct i:nth-child(n) {
  -webkit-animation: hv-v60-glint 2.2s ease-in-out infinite;
  animation: hv-v60-glint 2.2s ease-in-out infinite;
}
.hv-glitter-pct i:nth-child(1) { -webkit-animation-duration: 2.05s; animation-duration: 2.05s; -webkit-animation-delay: 0s; animation-delay: 0s; }
.hv-glitter-pct i:nth-child(2) { -webkit-animation-duration: 2.35s; animation-duration: 2.35s; -webkit-animation-delay: 0.4s; animation-delay: 0.4s; }
.hv-glitter-pct i:nth-child(3) { -webkit-animation-duration: 2.15s; animation-duration: 2.15s; -webkit-animation-delay: 0.8s; animation-delay: 0.8s; }
.hv-glitter-pct i:nth-child(4) { -webkit-animation-duration: 2.4s; animation-duration: 2.4s; -webkit-animation-delay: 1.15s; animation-delay: 1.15s; }

@media (prefers-reduced-motion: reduce) {
  .hv-rank-ct img,
  .hv-rank-pct-tt img,
  .hv-rank-pct img,
  .hv-pro-hero .hv-name .hv-rank-ct img,
  .hv-pro-hero .hv-name .hv-rank-pct-tt img,
  .hv-pro-hero .hv-name .hv-rank-pct img,
  .hv-card .hv-name .hv-rank-ct img,
  .hv-card .hv-name .hv-rank-pct-tt img,
  .hv-card .hv-name .hv-rank-pct img,
  .hv-rank-ct::after,
  .hv-rank-pct-tt::after,
  .hv-rank-pct::after,
  .hv-name .hv-rank-ct::before,
  .hv-name .hv-rank-pct-tt::before,
  .hv-name .hv-rank-pct::before,
  .hv-pro-hero .hv-name .hv-rank-ct::before,
  .hv-pro-hero .hv-name .hv-rank-pct-tt::before,
  .hv-pro-hero .hv-name .hv-rank-pct::before,
  .hv-card .hv-name .hv-rank-ct::before,
  .hv-card .hv-name .hv-rank-pct-tt::before,
  .hv-card .hv-name .hv-rank-pct::before,
  .person .hv-name .hv-rank-ct::before,
  .person .hv-name .hv-rank-pct-tt::before,
  .person .hv-name .hv-rank-pct::before,
  .bch-ds-body .hv-name .hv-rank-ct::before,
  .bch-ds-body .hv-name .hv-rank-pct-tt::before,
  .bch-ds-body .hv-name .hv-rank-pct::before,
  .hv-glitter i,
  .hv-glitter i:nth-child(n),
  .hv-glitter-pct i,
  .hv-glitter-pct i:nth-child(n) {
    -webkit-animation: none !important;
    animation: none !important;
  }
  .hv-name .hv-rank-ct::before,
  .hv-name .hv-rank-pct-tt::before,
  .hv-name .hv-rank-pct::before,
  .hv-pro-hero .hv-name .hv-rank-ct::before,
  .hv-pro-hero .hv-name .hv-rank-pct-tt::before,
  .hv-pro-hero .hv-name .hv-rank-pct::before,
  .hv-card .hv-name .hv-rank-ct::before,
  .hv-card .hv-name .hv-rank-pct-tt::before,
  .hv-card .hv-name .hv-rank-pct::before,
  .person .hv-name .hv-rank-ct::before,
  .person .hv-name .hv-rank-pct-tt::before,
  .person .hv-name .hv-rank-pct::before,
  .bch-ds-body .hv-name .hv-rank-ct::before,
  .bch-ds-body .hv-name .hv-rank-pct-tt::before,
  .bch-ds-body .hv-name .hv-rank-pct::before {
    display: block;
    opacity: 1 !important;
  }
  .hv-glitter i,
  .hv-glitter i:nth-child(n),
  .hv-glitter-pct i,
  .hv-glitter-pct i:nth-child(n) {
    opacity: 0.95 !important;
    -webkit-transform: scale(1) rotate(12deg) !important;
    transform: scale(1) rotate(12deg) !important;
  }
  .hv-rank-ct::after,
  .hv-rank-pct-tt::after,
  .hv-rank-pct::after {
    background-position: 40% 40%;
  }
  .hv-rank-ct img,
  .hv-pro-hero .hv-name .hv-rank-ct img,
  .hv-card .hv-name .hv-rank-ct img {
    -webkit-filter:
      drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.95))
      drop-shadow(0 0 1.6px rgba(255, 196, 70, 0.65));
    filter:
      drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.95))
      drop-shadow(0 0 1.6px rgba(255, 196, 70, 0.65));
  }
  .hv-rank-pct-tt img,
  .hv-pro-hero .hv-name .hv-rank-pct-tt img,
  .hv-card .hv-name .hv-rank-pct-tt img {
    -webkit-filter:
      drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.9))
      drop-shadow(0 0 1.4px rgba(240, 193, 75, 0.55));
    filter:
      drop-shadow(0 0 0.5px rgba(255, 248, 210, 0.9))
      drop-shadow(0 0 1.4px rgba(240, 193, 75, 0.55));
  }
  .hv-rank-pct img,
  .hv-pro-hero .hv-name .hv-rank-pct img,
  .hv-card .hv-name .hv-rank-pct img {
    -webkit-filter:
      drop-shadow(0 0 0.5px rgba(250, 236, 255, 0.95))
      drop-shadow(0 0 1.4px rgba(180, 90, 210, 0.55));
    filter:
      drop-shadow(0 0 0.5px rgba(250, 236, 255, 0.95))
      drop-shadow(0 0 1.4px rgba(180, 90, 210, 0.55));
  }
}

/* Gaps unchanged: CT 22px, PCT 12px. */
.hv-name-tail .hv-rank-ct,
.hv-pro-hero .hv-name .hv-name-tail .hv-rank-ct,
.hv-hero .hv-name .hv-name-tail .hv-rank-ct,
.hv-card .hv-name .hv-name-tail .hv-rank-ct,
.person .hv-name .hv-name-tail .hv-rank-ct,
.bch-ds-body .hv-name .hv-name-tail .hv-rank-ct {
  margin-left: 22px;
}
.hv-name-tail .hv-rank-pct-tt,
.hv-name-tail .hv-rank-pct,
.hv-pro-hero .hv-name .hv-name-tail .hv-rank-pct-tt,
.hv-pro-hero .hv-name .hv-name-tail .hv-rank-pct,
.hv-hero .hv-name .hv-name-tail .hv-rank-pct-tt,
.hv-hero .hv-name .hv-name-tail .hv-rank-pct,
.hv-card .hv-name .hv-name-tail .hv-rank-pct-tt,
.hv-card .hv-name .hv-name-tail .hv-rank-pct,
.person .hv-name .hv-name-tail .hv-rank-pct-tt,
.person .hv-name .hv-name-tail .hv-rank-pct,
.bch-ds-body .hv-name .hv-name-tail .hv-rank-pct-tt,
.bch-ds-body .hv-name .hv-name-tail .hv-rank-pct {
  margin-left: 12px;
}

/* ===== v61: CT medal only — thinner, slower blink (t162u) =====
   Anh Long: "Ánh sáng nhấp nháy chổ anh Việt Anh, mõng và chạy chậm lại".
   Overrides the v60 CT pulse / sheen / glints only. PCT (including
   thường trực) stay on the v60 timings and intensities. Crisp, still
   clearly special vs PCT. Resting keyframes never use opacity 0. */

@keyframes hv-v61-ct-sheen {
  0%, 16% { background-position: 130% 38%; }
  58% { background-position: -30% 62%; }
  68%, 100% { background-position: -30% 62%; }
}
@keyframes hv-v61-ct-halo {
  0%, 100% { opacity: 0.84; }
  50% { opacity: 0.96; }
}
@keyframes hv-v61-ct-glow {
  0%, 100% {
    -webkit-filter:
      drop-shadow(0 0 0.4px rgba(255, 248, 210, 0.85))
      drop-shadow(0 0 1.2px rgba(255, 196, 70, 0.42));
    filter:
      drop-shadow(0 0 0.4px rgba(255, 248, 210, 0.85))
      drop-shadow(0 0 1.2px rgba(255, 196, 70, 0.42));
  }
  50% {
    -webkit-filter:
      drop-shadow(0 0 0.5px rgba(255, 252, 230, 0.95))
      drop-shadow(0 0 1.8px rgba(255, 214, 90, 0.62));
    filter:
      drop-shadow(0 0 0.5px rgba(255, 252, 230, 0.95))
      drop-shadow(0 0 1.8px rgba(255, 214, 90, 0.62));
  }
}
@keyframes hv-v61-ct-glint {
  0%, 100% {
    opacity: 0.75;
    -webkit-transform: scale(0.94) rotate(0deg);
    transform: scale(0.94) rotate(0deg);
  }
  28% {
    opacity: 1;
    -webkit-transform: scale(1.1) rotate(10deg);
    transform: scale(1.1) rotate(10deg);
  }
  55% {
    opacity: 0.7;
    -webkit-transform: scale(0.92) rotate(4deg);
    transform: scale(0.92) rotate(4deg);
  }
  78% {
    opacity: 0.98;
    -webkit-transform: scale(1.08) rotate(-8deg);
    transform: scale(1.08) rotate(-8deg);
  }
}

/* Halo on CT only — slower, smaller opacity swing. */
.hv-name .hv-rank-ct::before,
.hv-pro-hero .hv-name .hv-rank-ct::before,
.hv-hero .hv-name .hv-rank-ct::before,
.hv-card .hv-name .hv-rank-ct::before,
.person .hv-name .hv-rank-ct::before,
.bch-ds-body .hv-name .hv-rank-ct::before {
  -webkit-animation: hv-v61-ct-halo 4.8s ease-in-out infinite;
  animation: hv-v61-ct-halo 4.8s ease-in-out infinite;
}

/* Narrower, softer sheen band; 4.5s with a pause between sweeps. */
.hv-rank-ct::after {
  background: linear-gradient(
    125deg,
    transparent 38%,
    rgba(255, 248, 220, 0.16) 44%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 214, 110, 0.38) 55%,
    transparent 62%
  );
  background-size: 250% 250%;
  -webkit-animation: hv-v61-ct-sheen 4.5s ease-in-out infinite;
  animation: hv-v61-ct-sheen 4.5s ease-in-out infinite;
}

/* Lighter, thinner glow pulse — ~4.8s. */
.hv-rank-ct img,
.hv-card .hv-name .hv-rank-ct img,
.person .hv-name .hv-rank-ct img,
.hv-pro-hero .hv-name .hv-rank-ct img,
.hv-hero .hv-name .hv-rank-ct img {
  -webkit-animation: hv-v61-ct-glow 4.8s ease-in-out infinite;
  animation: hv-v61-ct-glow 4.8s ease-in-out infinite;
}

/* Smaller, slower kim tuyến flashes. Does not touch .hv-glitter-pct. */
.hv-glitter i,
.hv-glitter i:nth-child(n) {
  -webkit-animation: hv-v61-ct-glint 3.4s ease-in-out infinite;
  animation: hv-v61-ct-glint 3.4s ease-in-out infinite;
}
.hv-glitter i:nth-child(1) { -webkit-animation-duration: 3.2s; animation-duration: 3.2s; -webkit-animation-delay: 0s; animation-delay: 0s; }
.hv-glitter i:nth-child(2) { -webkit-animation-duration: 3.7s; animation-duration: 3.7s; -webkit-animation-delay: 0.36s; animation-delay: 0.36s; }
.hv-glitter i:nth-child(3) { -webkit-animation-duration: 3.1s; animation-duration: 3.1s; -webkit-animation-delay: 0.72s; animation-delay: 0.72s; }
.hv-glitter i:nth-child(4) { -webkit-animation-duration: 3.55s; animation-duration: 3.55s; -webkit-animation-delay: 1.1s; animation-delay: 1.1s; }
.hv-glitter i:nth-child(5) { -webkit-animation-duration: 3.3s; animation-duration: 3.3s; -webkit-animation-delay: 1.44s; animation-delay: 1.44s; }
.hv-glitter i:nth-child(6) { -webkit-animation-duration: 3.8s; animation-duration: 3.8s; -webkit-animation-delay: 1.8s; animation-delay: 1.8s; }
.hv-glitter i:nth-child(7) { -webkit-animation-duration: 3.4s; animation-duration: 3.4s; -webkit-animation-delay: 2.16s; animation-delay: 2.16s; }
.hv-glitter i:nth-child(8) { -webkit-animation-duration: 3.15s; animation-duration: 3.15s; -webkit-animation-delay: 0.24s; animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .hv-name .hv-rank-ct::before,
  .hv-pro-hero .hv-name .hv-rank-ct::before,
  .hv-hero .hv-name .hv-rank-ct::before,
  .hv-card .hv-name .hv-rank-ct::before,
  .person .hv-name .hv-rank-ct::before,
  .bch-ds-body .hv-name .hv-rank-ct::before,
  .hv-rank-ct::after,
  .hv-rank-ct img,
  .hv-card .hv-name .hv-rank-ct img,
  .person .hv-name .hv-rank-ct img,
  .hv-pro-hero .hv-name .hv-rank-ct img,
  .hv-hero .hv-name .hv-rank-ct img,
  .hv-glitter i,
  .hv-glitter i:nth-child(n) {
    -webkit-animation: none !important;
    animation: none !important;
  }
  .hv-rank-ct img,
  .hv-pro-hero .hv-name .hv-rank-ct img,
  .hv-card .hv-name .hv-rank-ct img,
  .hv-hero .hv-name .hv-rank-ct img,
  .person .hv-name .hv-rank-ct img {
    -webkit-filter:
      drop-shadow(0 0 0.4px rgba(255, 248, 210, 0.85))
      drop-shadow(0 0 1.2px rgba(255, 196, 70, 0.42));
    filter:
      drop-shadow(0 0 0.4px rgba(255, 248, 210, 0.85))
      drop-shadow(0 0 1.2px rgba(255, 196, 70, 0.42));
  }
}

/* ===== v61 themes: Kính xanh (default) / Trắng / Tối (t167u) =====
   Default stays the current frosted light-blue glass. Optional Trắng and Tối
   only change surfaces via CSS variables + [data-theme] on <html>. Logos keep
   their original colors and backgrounds (no filter). QR tiles stay white. */

html[data-theme="trang"] {
  --color-scheme: light;
  --theme-color: #F3F5F7;
  --bg-0: #F7F8FA;
  --bg-1: #F3F5F7;
  --bg-2: #EEF1F4;
  --orb-a: rgba(255, 255, 255, 0.5);
  --orb-b: rgba(46, 111, 176, 0.06);
  --orb-c: rgba(46, 111, 176, 0.05);
  --orb-d: rgba(46, 111, 176, 0.04);
  --cyan-pale: #E8F1F8;
  --glass: rgba(255, 255, 255, 0.88);
  --glass-strong: rgba(255, 255, 255, 0.96);
  --glass-border: rgba(30, 58, 95, 0.08);
  --shadow: 0 8px 22px rgba(30, 58, 95, 0.07);
  --shadow-soft: 0 4px 14px rgba(30, 58, 95, 0.05);
  --input-bg: #ffffff;
  --logo-tile-bg: #ffffff;
  --scrim: rgba(30, 58, 95, 0.28);
  --row-line: rgba(30, 58, 95, 0.08);
}

/* ===== v66 themes: Kính xanh (default) / Trắng / Night (t183u)
   Tối and Trong suốt removed. QR tiles and white-bg logos stay white.
   The HHDL mark sits on a black rounded tile in every theme. ===== */

html[data-theme="night"] {
  --color-scheme: dark;
  --theme-color: #0A1630;
  --bg-0: #0C1C3E;
  --bg-1: #071428;
  --bg-2: #040C1A;
  --orb-a: rgba(186, 214, 255, 0.28);
  --orb-b: rgba(48, 196, 210, 0.22);
  --orb-c: rgba(70, 120, 230, 0.22);
  --orb-d: rgba(80, 210, 230, 0.18);
  --text: #E7F3FF;
  --navy: #E7F3FF;
  --navy-2: #B7D0EA;
  --muted: #8EADC8;
  --cyan: #5EE1F2;
  --cyan-soft: #8AE8F5;
  --cyan-pale: #14344C;
  --blue: #6BA8E8;
  --blue-deep: #9BC7F2;
  --glass: rgba(10, 28, 62, 0.62);
  --glass-strong: rgba(12, 32, 68, 0.78);
  --glass-border: rgba(150, 210, 255, 0.20);
  --shadow: 0 10px 32px rgba(0, 16, 48, 0.55);
  --shadow-soft: 0 8px 20px rgba(0, 12, 36, 0.38);
  --ok-bg: #0F3A32;
  --ok: #4EE0C0;
  --input-bg: rgba(180, 220, 255, 0.08);
  --logo-tile-bg: #102038;
  --scrim: rgba(0, 8, 24, 0.62);
  --row-line: rgba(140, 200, 255, 0.12);
}

html[data-theme="night"] .bg-orbs span:nth-child(1) {
  width: 260px;
  height: 260px;
  top: -60px;
  right: -30px;
  opacity: 0.7;
  background: radial-gradient(circle, rgba(230, 240, 255, 0.9) 0%, rgba(140, 190, 255, 0.28) 38%, rgba(40, 90, 180, 0.08) 62%, transparent 75%);
}
html[data-theme="night"] .bg-orbs span:nth-child(2) {
  opacity: 0.55;
  background: radial-gradient(circle, rgba(70, 220, 230, 0.5), rgba(20, 80, 150, 0.16) 70%, transparent);
}
html[data-theme="night"] .bg-orbs span:nth-child(3) {
  opacity: 0.6;
  background: radial-gradient(circle, rgba(200, 230, 255, 0.85), rgba(80, 200, 220, 0.28) 70%, transparent);
}

/* Surfaces that still hard-code light tints */
html[data-theme="night"] .bg-orbs span:nth-child(1),
html[data-theme="night"] .bg-orbs span:nth-child(2),
html[data-theme="night"] .bg-orbs span:nth-child(3) {
  opacity: 0.28;
}
html[data-theme="night"] .tl-card,
html[data-theme="night"] .dn-hero {
  background: var(--glass-strong);
}
html[data-theme="night"] .hv-dn-mark:not(img) {
  background: var(--cyan-pale);
  border-color: var(--glass-border);
  color: var(--navy);
}
html[data-theme="night"] .search input,
html[data-theme="night"] .chat-login input,
html[data-theme="night"] .chat-pw input,
html[data-theme="night"] input[type="text"],
html[data-theme="night"] input[type="password"],
html[data-theme="night"] input[type="search"],
html[data-theme="night"] input[type="email"],
html[data-theme="night"] textarea,
html[data-theme="night"] select {
  background: var(--input-bg);
  color: var(--navy);
  border-color: var(--glass-border);
  color-scheme: dark;
}
html[data-theme="night"] .toi-the-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 100%);
}
html[data-theme="night"] .btn-cta { color: #fff; }
/* QR must stay on a white tile to remain scannable */
.hv-share-qr,
.toi-the-qr,
.toi-danh-thiep-qr {
  background: #fff !important;
}
/* Don't recolor logos */
img.hv-dn-logo,
.dn-logo,
.hv-block-logo,
img.dn-sp-anh {
  filter: none;
  -webkit-filter: none;
}

/* Medal glows stay crisp on dark (slightly stronger gold/purple, still tight). */
html[data-theme="night"] .hv-rank-ct img,
html[data-theme="night"] .hv-pro-hero .hv-name .hv-rank-ct img,
html[data-theme="night"] .hv-card .hv-name .hv-rank-ct img {
  /* keep existing animation; resting filter already gold */
}

/* ===== v61 Tôi hub: header card + TravelQ-style rows + theme picker ===== */
.toi-hero {
  display: grid;
  gap: 14px;
  text-align: left;
  align-items: stretch;
  padding: 16px;
}
.toi-hero-top {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: center;
}
.toi-hero .toi-ava,
.toi-hero .hv-ava,
.toi-hero .toi-ava-ph {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.toi-hero-copy { text-align: left; width: auto; min-width: 0; }
.toi-hero-copy h2 {
  font-size: 1.12rem;
  line-height: 1.25;
}
.toi-qr-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--blue-deep);
  background: var(--cyan-pale);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  flex-shrink: 0;
}
.toi-qr-btn svg { width: 22px; height: 22px; display: block; }
.toi-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  padding: 8px 0 2px;
  border-top: 1px solid var(--row-line);
}
.toi-stat strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.toi-stat span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 650;
}
.toi-row {
  align-items: flex-start;
  padding: 12px 14px;
  min-height: 58px;
}
.toi-row-ico { margin-top: 1px; }
.toi-row-sub {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.toi-row + .toi-row::before {
  left: 58px;
  background: var(--row-line);
}
.toi-theme { padding: 16px; display: grid; gap: 10px; }
.toi-theme h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: var(--navy);
}
.toi-theme-opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.toi-theme-opt {
  min-height: 44px;
  padding: 8px 6px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--input-bg);
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}
.toi-theme-opt.is-on {
  background: var(--cyan-pale);
  color: var(--blue-deep);
  box-shadow: 0 0 0 2px var(--cyan);
}
.toi-ho-so, .toi-danh-thiep, .toi-hoi-nhom {
  padding: 18px 16px;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}
.toi-danh-thiep-qr, .toi-the-qr {
  width: 168px;
  height: 168px;
  padding: 10px;
  background: #fff;
  border-radius: 16px;
}
.toi-danh-thiep-qr svg, .toi-the-qr svg { width: 100%; height: 100%; display: block; }
.toi-lienhe { margin: 0; font-size: 13px; color: var(--navy-2); }
.toi-dn-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--logo-tile-bg);
  overflow: hidden;
}
.toi-dn-logo.is-nen { padding: 0; background: transparent; object-fit: cover; }
.toi-dn-logo.is-nen-ngang { object-fit: contain; }
.toi-dn-logo.is-nen-toi { background: #0d1118; }
.toi-dn-logo.is-nen-trang { padding: 3px; background: #fff; object-fit: contain; }
.toi-row .toi-dn-logo { margin-top: 0; }
.toi-empty { color: var(--muted); }

@media (max-width: 370px) {
  .toi-stat strong { font-size: 11px; }
  .toi-theme-opt { font-size: 12px; padding: 8px 4px; }
}

html[data-theme="night"] .hv-sec-lanh-dao {
  background: rgba(120, 40, 60, 0.32);
  border-color: rgba(224, 118, 140, 0.4);
}
html[data-theme="night"] .hv-sec-lanh-dao .hv-sec-head h2,
html[data-theme="night"] .hv-sec-lanh-dao .empty-filter,
html[data-theme="night"] .hv-sec-lanh-dao .dang-cap-nhat,
html[data-theme="night"] .hv-sec-lanh-dao .hv-ban-chip { color: #F3B3C2; }
html[data-theme="night"] .hv-sec-lanh-dao .hv-card.glass-strong {
  background: rgba(40, 24, 32, 0.9);
  border-color: rgba(232, 150, 168, 0.35);
}
html[data-theme="night"] .hv-sec-lanh-dao .hv-ava.ph {
  background: rgba(196, 70, 100, 0.28);
  color: #F3B3C2;
}
html[data-theme="night"] .hv-sec-thanh-vien {
  background: rgba(30, 80, 110, 0.34);
  border-color: rgba(43, 181, 216, 0.4);
}
html[data-theme="night"] .hv-sec-thanh-vien .hv-card.glass-strong {
  background: rgba(20, 36, 50, 0.9);
  border-color: rgba(43, 181, 216, 0.3);
}
html[data-theme="night"] .hv-sec-phan-loai {
  background: color-mix(in srgb, var(--hv-sec-mau, #2E6FB0) 22%, rgba(16, 24, 36, 0.9));
  border-color: color-mix(in srgb, var(--hv-sec-mau, #2E6FB0) 45%, transparent);
}
html[data-theme="night"] .hv-sec-phan-loai .hv-sec-head h2,
html[data-theme="night"] .hv-sec-phan-loai .hv-ban-chip,
html[data-theme="night"] .hv-sec-phan-loai .empty-filter,
html[data-theme="night"] .hv-sec-phan-loai .dang-cap-nhat {
  color: color-mix(in srgb, var(--hv-sec-mau, #7EB6E4) 50%, #E8F2FA);
}
html[data-theme="night"] .hv-sec-phan-loai .hv-card.glass-strong {
  background: color-mix(in srgb, var(--hv-sec-mau, #2E6FB0) 12%, rgba(20, 30, 46, 0.92));
}
html[data-theme="night"] .hv-sec-phan-loai .hv-ava.ph {
  background: color-mix(in srgb, var(--hv-sec-mau, #2E6FB0) 28%, rgba(20, 30, 46, 0.9));
  color: color-mix(in srgb, var(--hv-sec-mau, #7EB6E4) 50%, #E8F2FA);
}

/* LongHill stamp: keep a white tile in every theme, including Tối. */
html[data-theme="night"] img.hv-dn-logo.is-nen-trang,
html[data-theme="night"] .toi-dn-logo.is-nen-trang,
html[data-theme="night"] .dn-logo-wrap.is-nen-trang,
html[data-theme="trang"] img.hv-dn-logo.is-nen-trang,
html[data-theme="trang"] .toi-dn-logo.is-nen-trang,
html[data-theme="trang"] .dn-logo-wrap.is-nen-trang {
  background: #fff;
}


/* v66: white logo tiles stay white in every remaining theme */
html[data-theme="trang"] img.hv-dn-logo.is-nen-trang,
html[data-theme="trang"] .toi-dn-logo.is-nen-trang,
html[data-theme="trang"] .dn-logo-wrap.is-nen-trang,
html[data-theme="night"] img.hv-dn-logo.is-nen-trang,
html[data-theme="night"] .toi-dn-logo.is-nen-trang,
html[data-theme="night"] .dn-logo-wrap.is-nen-trang,
html[data-theme="kinh-xanh"] img.hv-dn-logo.is-nen-trang,
html[data-theme="kinh-xanh"] .toi-dn-logo.is-nen-trang,
html[data-theme="kinh-xanh"] .dn-logo-wrap.is-nen-trang {
  background: #fff;
}
/* v65: lock Hội viên for guests (t178u)
   Must beat `.tabbar span { display:flex; width:100%; position:relative }`. */
.tabbar a .tab-ico {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  margin: 0 auto;
  overflow: visible;
}
.tabbar a .tab-ico > svg {
  width: 28px;
  height: 28px;
  display: block;
  overflow: visible;
}
.tabbar a .tab-lock {
  position: absolute !important;
  top: -5px;
  right: -7px;
  bottom: auto;
  left: auto;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  min-height: 16px;
  margin: 0 !important;
  padding: 0 !important;
  flex: none !important;
  border-radius: 50%;
  background: #1E3A5F;
  color: #fff !important;
  display: grid !important;
  place-items: center;
  box-shadow: 0 0 0 1.5px #fff;
  pointer-events: none;
  z-index: 2;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.tabbar a .tab-lock[hidden] { display: none !important; }
.tabbar a .tab-lock svg {
  width: 10px !important;
  height: 10px !important;
  min-width: 10px;
  min-height: 10px;
  max-width: none !important;
  max-height: none !important;
  flex: none !important;
  margin: 0 !important;
  display: block;
  overflow: visible;
}
html[data-theme="night"] .tabbar a .tab-lock {
  background: #E7F3FF;
  color: #0A1630 !important;
  box-shadow: 0 0 0 1.5px rgba(8, 16, 32, 0.95);
}

.hv-khoa-back {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--scrim);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px 12px calc(var(--tab-h) + var(--tab-gap, 10px) + 16px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
}
.hv-khoa-back[hidden] { display: none !important; }
.hv-khoa-panel {
  position: relative;
  width: min(100%, 430px);
  max-height: min(86dvh, 720px);
  overflow: auto;
  border-radius: 24px;
  padding: 44px 18px 16px;
  text-align: center;
  color: var(--text);
}
.hv-khoa-panel h2 {
  margin: 0 0 14px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--navy);
  text-wrap: balance;
}
.hv-khoa-panel p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--navy-2);
  text-align: left;
}
.hv-khoa-slogan {
  font-weight: 800;
  font-style: italic;
  color: var(--blue-deep) !important;
  text-align: center !important;
  font-size: 14.5px !important;
  margin: 12px 0 !important;
}
.hv-khoa-cta-line {
  font-weight: 700;
  color: var(--navy) !important;
  text-align: center !important;
  margin: 4px 0 16px !important;
}
.hv-khoa-panel .btn-cta { margin-top: 4px; }
.hv-khoa-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 750;
  color: var(--blue-deep);
  text-decoration: none;
}
.hv-khoa-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
}
.hv-khoa-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .hv-khoa-back { backdrop-filter: none; -webkit-backdrop-filter: none; }
}


/* v67: transparent HHDL mark sits directly on the page. Subtle light glow on Night so the dark-green wordmark stays readable. Do not recolor the artwork. */
html[data-theme="night"] .logo-hhdl-tile,
html[data-theme="night"] .logo-hhdl-tile img,
html[data-theme="night"] .splash-logo,
html[data-theme="trang"] .logo-hhdl-tile,
html[data-theme="kinh-xanh"] .logo-hhdl-tile,
html[data-theme="trang"] .splash-logo,
html[data-theme="kinh-xanh"] .splash-logo {
  background: transparent;
  box-shadow: none;
}
html[data-theme="night"] .logo-hhdl-tile img,
html[data-theme="night"] .splash-logo img {
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.85))
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
}
