/* 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, 252, 247, 0.58);
  --glass-strong: rgba(255, 252, 248, 0.78);
  --glass-border: rgba(255, 255, 255, 0.70);
  --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", system-ui, sans-serif;
  --tab-h: 76px;
  --tab-gap: 10px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tab-clear: calc(var(--tab-h) + var(--tab-gap, 10px) + 36px + var(--safe-bottom));
  /* 103.55.2: đệm đáy chung = chỗ thanh tab chiếm (đo JS) hoặc --tab-clear. */
  --tab-pad: var(--tab-pad-px, var(--tab-clear));
  --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(22px) saturate(1.2);
  --glass-strong-blur: blur(24px) saturate(1.25);
  --text-shadow: none;
  --ct-gold: #C9A24A;
  --ct-gold-soft: #E4C86A;
  --ct-gold-deep: #8E6B24;
  --ct-name: #1E3A5F;
  --btn-3d-transition: transform 120ms ease, box-shadow 120ms ease;
  --btn-3d-sheen-cta: linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.06) 42%, rgba(0,24,48,0.12) 100%);
  --btn-3d-shadow-cta:
    inset 0 1px 0 rgba(255,255,255,0.48),
    0 1px 1px rgba(36, 94, 150, 0.18),
    0 8px 18px rgba(43, 181, 216, 0.32);
  --btn-3d-shadow-cta-press:
    inset 0 1px 3px rgba(20, 50, 80, 0.28),
    0 1px 2px rgba(43, 181, 216, 0.16);
  --btn-3d-sheen-glass: linear-gradient(180deg, rgba(255,255,255,0.58) 0%, rgba(255,255,255,0.08) 52%, rgba(46,111,176,0.07) 100%);
  --btn-3d-shadow-glass:
    inset 0 1px 0 rgba(255,255,255,0.78),
    0 2px 3px rgba(30, 58, 95, 0.08),
    0 8px 16px rgba(30, 58, 95, 0.11);
  --btn-3d-shadow-glass-press:
    inset 0 1px 3px rgba(30, 58, 95, 0.16),
    0 1px 2px rgba(30, 58, 95, 0.08);
  --font-display: "Be Vietnam Pro", system-ui, sans-serif;
  --accent-gold: #7A541C;
  --btn-navy: #161B24;
  --btn-navy-text: #FFFFFF;
  --radius-card: 20px;
  --page-photo: url("../img/bg-luxury-dawn.svg");
  --shadow: 0 14px 40px rgba(28, 24, 20, 0.10);
  --shadow-soft: 0 8px 28px rgba(28, 24, 20, 0.07);
  --theme-color: #E8D5B8;
}


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

html {
  /* auto: trên iPhone, smooth + đổi hash từ trang dài (#lich-su) sang #home
     làm viewport kẹt dưới nội dung — chỉ còn nền sóng và tab. */
  scroll-behavior: auto;
  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: var(--btn-3d-sheen-cta), linear-gradient(90deg, var(--cyan) 0%, var(--blue) 100%);
  box-shadow: var(--btn-3d-shadow-cta);
  transition: var(--btn-3d-transition);
}
.btn-cta:active { transform: translateY(2px); box-shadow: var(--btn-3d-shadow-cta-press); }
.btn-cta:disabled,
.btn-cta[disabled] { transform: none; box-shadow: var(--btn-3d-shadow-cta); filter: none; }

.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; }
.icon-btn {
  background-image: var(--btn-3d-sheen-glass);
  box-shadow: var(--btn-3d-shadow-glass);
  transition: var(--btn-3d-transition);
}
.icon-btn:active { transform: translateY(1px); box-shadow: var(--btn-3d-shadow-glass-press); }

/* 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 ===== */
html { scroll-padding-bottom: var(--tab-clear); }
.app-shell { padding: 14px 18px var(--tab-clear); }
#view-home, #view-detail { padding-bottom: 4px; }

.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.03em;
  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;
}

.home-top-row { display: block; }
.home-ct-col { margin: 0 0 18px; }
.ct-home-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  padding: 16px 10px 12px;
  border-radius: var(--radius);
  color: var(--navy);
  text-decoration: none;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
}
.ct-home-tile .avatar,
.ct-home-tile .avatar.has-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex: 0 0 80px;
  margin: 4px 0 6px;
  background: transparent;
  overflow: visible;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px #1E3A5F,
    0 6px 14px rgba(30, 58, 95, 0.16);
}
.ct-home-tile .avatar picture,
.ct-home-tile .avatar.has-photo picture {
  width: 80px;
  height: 80px;
  display: block;
  border-radius: 50%;
  overflow: hidden;
}
.ct-home-tile .avatar img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  display: block;
}
.ct-home-tile-ten {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
}
.ct-home-tile-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #1E3A5F;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.ct-home-tile-khoa {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
  max-width: 100%;
  margin-top: 3px;
}
html[data-theme="trang"] .ct-home-tile,
html[data-theme="trang-xam"] .ct-home-tile
{ background: #fff; }

html[data-theme="xanh-muc"] .ct-home-tile .avatar.has-photo,
html[data-theme="den"] .ct-home-tile .avatar.has-photo,

html[data-theme="xanh-reu-vang"] .ct-home-tile .avatar.has-photo
{
  box-shadow:
    0 0 0 2px rgba(12, 32, 68, 0.95),
    0 0 0 3px #9BC7F2,
    0 6px 14px rgba(0, 8, 24, 0.35);
}

html[data-theme="xanh-muc"] .ct-home-tile-pill,
html[data-theme="den"] .ct-home-tile-pill,

html[data-theme="xanh-reu-vang"] .ct-home-tile-pill
{
  background: #1E3A5F;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(155, 199, 242, 0.35);
}

@media (max-width: 767px) {
  .home-top-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 152px;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
  }
  .home-top-row > .hero {
    margin-bottom: 0;
    min-height: 0;
    height: auto;
    padding: 10px 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .home-top-row .hero-copy {
    width: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 8px;
    row-gap: 1px;
    align-items: start;
    position: relative;
    z-index: 2;
  }
  .home-top-row .hero-logo {
    grid-row: 1 / span 2;
    width: 52px;
    margin: 0;
    align-self: start;
  }
  .home-top-row .hero-copy .hello {
    grid-column: 2;
    font-size: 10px;
    letter-spacing: 0.06em;
    margin: 0;
    line-height: 1.2;
  }
  .home-top-row .hero-copy h2 {
    grid-column: 2;
    font-size: 0.92rem;
    line-height: 1.22;
    letter-spacing: -0.03em;
    margin: 0;
    text-wrap: balance;
  }
  .home-top-row .hero-copy .hero-lead,
  .home-top-row .hero-copy p.hero-lead {
    grid-column: 1 / -1;
    font-size: 10.5px;
    line-height: 1.38;
    margin: 6px 0 0;
    padding: 0 0 36px;
    -webkit-line-clamp: unset;
    display: block;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
  }
  .home-top-row > .hero {
    overflow: hidden;
  }
  .home-top-row .hero-art {
    width: 52px;
    right: 6px;
    bottom: 4px;
    opacity: 0.72;
    z-index: 1;
    pointer-events: none;
  }
  .home-top-row .hero-art img {
    width: 100%;
    height: auto;
    display: block;
  }
  .home-ct-col {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
  }
  .ct-home-tile {
    width: 100%;
    flex: 1 1 auto;
    height: 100%;
    aspect-ratio: auto;
    padding: 16px 8px 12px;
    border-radius: var(--radius);
    justify-content: center;
    gap: 2px;
  }
  .ct-home-tile .avatar,
  .ct-home-tile .avatar.has-photo {
    width: 84px;
    height: 84px;
    flex-basis: 84px;
    margin: 2px 0 7px;
  }
  .ct-home-tile .avatar picture,
  .ct-home-tile .avatar.has-photo picture,
  .ct-home-tile .avatar img {
    width: 84px;
    height: 84px;
  }
  .ct-home-tile-ten { font-size: 14px; }
  .ct-home-tile-chuc { font-size: 8.5px; letter-spacing: 0.08em; }
}


/* ===== Tiles ===== */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}
.tiles-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.tiles-5 .tile {
  min-width: 0;
  padding: 12px 2px 10px;
}
.tiles-5 .tile span {
  font-size: 10.5px;
  letter-spacing: -0.03em;
}
@media (max-width: 360px) {
  .tiles-5 { gap: 6px; }
  .tiles-5 .tile { padding: 10px 1px 8px; min-height: 90px; }
  .tiles-5 .tile-icon { width: 40px; height: 40px; border-radius: 12px; }
  .tiles-5 .tile-icon svg { width: 22px; height: 22px; }
  .tiles-5 .tile span { font-size: 10px; letter-spacing: -0.04em; }
}
.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;
  position: relative;
  box-shadow: 0 4px 10px rgba(43, 181, 216, 0.18);
}
.tile-icon .tb-badge {
  top: -2px;
  right: -2px;
}
.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: none;
  overflow-wrap: normal;
}

/* ===== 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 0;
  padding-bottom: 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;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.lm-page .detail-top h1,
.detail-top h1.is-lm-long {
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.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(5, 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: var(--btn-3d-sheen-cta), linear-gradient(90deg, var(--cyan), var(--blue));
  border-color: transparent;
  box-shadow: var(--btn-3d-shadow-cta);
}
.chip {
  background-image: var(--btn-3d-sheen-glass);
  box-shadow: var(--btn-3d-shadow-glass);
  transition: var(--btn-3d-transition);
}
.chip:active { transform: translateY(1px); box-shadow: var(--btn-3d-shadow-glass-press); }
.chip[aria-pressed="true"]:active, .chip.active:active { box-shadow: var(--btn-3d-shadow-cta-press); }

/* v103.27 tactile 3D on tiles, sheet actions, CTAs — sizes/layout unchanged */
.tile.glass {
  background-image: var(--btn-3d-sheen-glass);
  box-shadow: var(--btn-3d-shadow-glass);
  transition: var(--btn-3d-transition);
}
.tile.glass:active { transform: translateY(1px); box-shadow: var(--btn-3d-shadow-glass-press); }
.hv-sheet-item.glass:not(.is-empty):not(.is-kb),
.hv-sheet-copy {
  background-image: var(--btn-3d-sheen-glass);
  box-shadow: var(--btn-3d-shadow-glass);
  transition: var(--btn-3d-transition);
}
.hv-sheet-item.glass:not(.is-empty):not(.is-kb):active,
.hv-sheet-copy:active {
  transform: translateY(1px);
  box-shadow: var(--btn-3d-shadow-glass-press);
}
.toi-the-btn {
  background: var(--btn-3d-sheen-cta), var(--blue-deep);
  box-shadow: var(--btn-3d-shadow-cta);
  transition: var(--btn-3d-transition);
}
.toi-the-btn:active { transform: translateY(2px); box-shadow: var(--btn-3d-shadow-cta-press); }

html[data-theme="xanh-muc"] .toi-the-btn,
html[data-theme="den"] .toi-the-btn,

html[data-theme="xanh-reu-vang"] .toi-the-btn
{
  color: #fff;
  background: var(--btn-3d-sheen-cta), linear-gradient(90deg, var(--cyan) 0%, var(--blue) 100%);
  box-shadow: var(--btn-3d-shadow-cta);
}
@media (prefers-reduced-motion: reduce) {
  .btn-cta, .btn-cta.secondary, .icon-btn, .chip, .tile.glass,
  .hv-sheet-item.glass, .hv-sheet-copy, .toi-the-btn {
    transition: none;
  }
  .btn-cta:active, .btn-cta.secondary:active, .icon-btn:active, .chip:active,
  .tile.glass:active, .hv-sheet-item.glass:active, .hv-sheet-copy:active,
  .toi-the-btn:active {
    transform: none;
  }
}

.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-color: var(--glass-strong);
  background-image: var(--btn-3d-sheen-glass);
  color: var(--navy);
  border: 1px solid var(--glass-border);
  box-shadow: var(--btn-3d-shadow-glass);
  margin-top: 8px;
}
.btn-cta.secondary:active { box-shadow: var(--btn-3d-shadow-glass-press); }
.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-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 8px;
}
.hv-sheet-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
  min-height: 56px;
  margin-bottom: 0;
  padding: 10px 14px;
  gap: 12px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--navy);
  text-decoration: none;
  text-align: left;
}
.hv-sheet-item.is-empty {
  pointer-events: none;
  cursor: default;
}
.hv-sheet-item.is-empty .hv-sheet-val {
  font-weight: 650;
  color: var(--muted);
}
.hv-sheet-item.is-kb {
  align-items: flex-start;
  cursor: default;
  pointer-events: auto;
  text-decoration: none;
}
.hv-sheet-item.is-kb .hv-sheet-label {
  text-wrap: pretty;
}
.hv-sheet-kb-mount {
  display: block;
  width: 100%;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}
.hv-sheet-kb-mount .qt-sheet-actions {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  width: 100%;
}
.hv-sheet-kb-mount .qt-sheet-actions .btn-cta,
.hv-sheet-kb-mount .qt-kb-flag,
.hv-sheet-kb-mount .kb-badge {
  width: 100%;
  margin: 0;
  text-align: center;
}
.hv-sheet-kb-mount .qt-kb-flag {
  font-size: 15px;
  font-weight: 750;
}

.hv-pro-ket-ban {
  width: 100%;
  margin: 12px 0 0;
}
.hv-pro-ket-ban .qt-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.hv-pro-ket-ban .qt-sheet-actions .btn-cta,
.hv-pro-ket-ban .qt-kb-flag,
.hv-pro-ket-ban .kb-badge {
  width: 100%;
  text-align: center;
}

.hv-sheet-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--row-line);
  color: var(--navy);
}
.hv-sheet-ico svg {
  width: 20px;
  height: 20px;
  display: block;
}
.hv-sheet-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.hv-sheet-label {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.3;
}
.hv-sheet-val {
  font-size: 15px;
  font-weight: 750;
  color: var(--navy);
  word-break: break-word;
  line-height: 1.35;
}
.hv-sheet-copy {
  flex: 0 0 48px;
  width: 48px;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.hv-sheet-copy svg {
  width: 20px;
  height: 20px;
  display: block;
}
.hv-sheet-copy:active { transform: translateY(1px); box-shadow: var(--btn-3d-shadow-glass-press); }
.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 22px;
  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;
  text-wrap: pretty;
}
.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;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  padding: 14px;
  border-radius: var(--radius-sm);
}
.hv-dn-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.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-rich { display: grid; gap: 8px; }
.dn-rich p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.55;
  white-space: pre-line;
}
.dn-rich-h {
  margin: 10px 0 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.dn-rich-h:first-child { margin-top: 0; }
.dn-block > .dn-rich-h, .dn-block > h3 + .dn-rich .dn-rich-h:first-child { margin-top: 0; }
.dn-rich-list {
  margin: 0;
  padding: 0 0 0 1.2em;
  display: grid;
  gap: 6px;
}
.dn-rich-list li {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.5;
}
.dn-block .dn-rich { margin: 0 0 4px; }
.dn-row dd { white-space: pre-line; }
.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: 400;
  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="trang-xam"] .dn-sp-anh.is-vuong.is-trang,

html[data-theme="xanh-muc"] .dn-sp-anh.is-vuong.is-trang,

html[data-theme="den"] .dn-sp-anh.is-vuong.is-trang,


html[data-theme="xanh-reu-vang"] .dn-sp-anh.is-vuong.is-trang
{ background: #fff; }

html[data-theme="xanh-muc"] .dn-sp-anh.is-banner.is-teal,
html[data-theme="den"] .dn-sp-anh.is-banner.is-teal,

html[data-theme="xanh-reu-vang"] .dn-sp-anh.is-banner.is-teal
{ background: rgb(61, 197, 211); }

html[data-theme="xanh-muc"] .dn-sp-anh.is-banner.is-navy,
html[data-theme="den"] .dn-sp-anh.is-banner.is-navy,

html[data-theme="xanh-reu-vang"] .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-dl .dn-row dt { min-width: 0; white-space: nowrap; }
.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); }

/* v103.6: Hội viên hub list/grid toggle */
.hv-hub-top {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 4px 0 14px;
}
.hv-hub-top .hv-search { flex: 1; min-width: 0; margin: 0; }
.hv-hub-view {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 16px;
  flex: none;
}
.hv-hub-view-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
.hv-hub-view-btn svg { width: 18px; height: 18px; display: block; }
.hv-hub-view-btn.is-on {
  background: var(--glass-strong, rgba(255,255,255,0.72));
  color: var(--navy);
  box-shadow: var(--shadow-soft);
}

html[data-theme="xanh-muc"] .hv-hub-view-btn.is-on,
html[data-theme="den"] .hv-hub-view-btn.is-on,

html[data-theme="xanh-reu-vang"] .hv-hub-view-btn.is-on
{
  background: rgba(231, 243, 255, 0.12);
  color: #E7F3FF;
}
.hv-hub-entries.is-list { display: block; }
.hv-hub-entries.is-grid {
  display: grid;
  grid-template-columns: repeat(var(--hv-hub-cols, 4), minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}
.hv-hub-entries.is-grid .hv-chat-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 12px 4px 10px;
  border-radius: 20px;
  text-align: center;
  min-height: 96px;
  grid-template-columns: none;
}
.hv-hub-entries.is-grid .hv-chat-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}
.hv-hub-entries.is-grid .hv-chat-ico svg { width: 24px; height: 24px; }
.hv-hub-entries.is-grid .hv-chat-entry-copy {
  align-items: center;
  gap: 0;
  width: 100%;
}
.hv-hub-entries.is-grid .hv-chat-entry-copy strong {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 100%;
  hyphens: none;
}
.hv-hub-entries.is-list .hv-entry-title-grid,
.hv-hub-entries.is-grid .hv-entry-title-list { display: none; }
.hv-hub-entries.is-grid .hv-entry-title-grid { display: block; }
.hv-hub-entries.is-grid .hv-chat-entry-copy span:not(.hv-entry-title-grid):not(.hv-entry-title-list),
.hv-hub-entries.is-grid .chev { display: none; }

.dn-row-static { cursor: default; }


.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);
}

.pw-field {
  position: relative;
  display: block;
  width: 100%;
}
.pw-field input,
.chat-login .pw-field input,
.chat-pw .pw-field input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 46px;
  font-size: 16px;
}
.pw-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 14px 14px 0;
  background: transparent;
  color: var(--navy, #1E3A5F);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.pw-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}
html[data-theme="trang"] .pw-toggle,
html[data-theme="trang-xam"] .pw-toggle
{ color: var(--navy, #1E3A5F); }
html[data-theme="kinh-xanh"] .pw-toggle { color: var(--navy, #1E3A5F); }

html[data-theme="xanh-muc"] .pw-toggle,
html[data-theme="den"] .pw-toggle,

html[data-theme="xanh-reu-vang"] .pw-toggle
{ color: #E7F3FF; }

.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 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 11.5px;
  color: var(--muted);
  margin: 0 2px 4px;
}
.chat-row.is-mine .chat-meta { align-items: flex-end; }
.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;
  /* 103.56.9: đứng trên thanh tab cố định (trước đây bottom:0 bị thanh tab che ô nhập và nút Gửi trên iPhone). */
  bottom: calc(var(--tab-h) + var(--tab-gap, 10px) + 8px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
  z-index: 2;
  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;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.chat-composer textarea:focus,
.chat-composer textarea:focus-visible {
  outline: none;
  box-shadow: none;
  border: 0;
}
.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-sender .hv-rank {
  width: 18px;
  height: 18px;
  margin: 0 0 0 4px;
  vertical-align: -3px;
  display: inline-grid;
}
.qc-sender .hv-rank img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.qc-dn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}
.qc-dn-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  flex: 0 0 22px;
  background: transparent;
}
.qc-dn-logo.is-nen-trang,
.qc-dn-logo.is-nen {
  padding: 2px;
  background: #fff;
}
html[data-theme="kinh-xanh"] .qc-dn-logo.is-nen-trang,
html[data-theme="trang"] .qc-dn-logo.is-nen-trang,
html[data-theme="kinh-xanh"] .qc-dn-logo.is-nen,
html[data-theme="trang"] .qc-dn-logo.is-nen,

html[data-theme="trang-xam"] .qc-dn-logo.is-nen-trang,

html[data-theme="xanh-muc"] .qc-dn-logo.is-nen-trang,

html[data-theme="den"] .qc-dn-logo.is-nen-trang,

html[data-theme="trang-xam"] .qc-dn-logo.is-nen,

html[data-theme="xanh-muc"] .qc-dn-logo.is-nen,

html[data-theme="den"] .qc-dn-logo.is-nen,


html[data-theme="xanh-reu-vang"] .qc-dn-logo.is-nen-trang,


html[data-theme="xanh-reu-vang"] .qc-dn-logo.is-nen
{
  background: #fff;
}
.qc-bai.is-expired { opacity: 0.62; filter: grayscale(0.2); }
.qc-desc, .qc-uudai { font-size: 13.5px; line-height: 1.55; color: var(--navy-2); margin: 4px 0; }
.qc-desc { white-space: pre-wrap; }
.qc-desc-rich { white-space: normal; }
.qc-desc-rich p { margin: 0 0 6px; white-space: pre-wrap; }
.qc-desc-rich .qc-desc-gap { height: 6px; margin: 0; }
.qc-price-line s {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
}
.qc-price-line b { color: var(--ok); font-weight: 750; }
.qc-uudai { font-weight: 700; color: var(--blue); }
.qc-bai h4 a { color: inherit; }
.qc-more { margin: 10px 0 0; font-size: 13px; font-weight: 700; }
.qc-more a { color: var(--blue-deep); }
.qc-sender-ava-ph {
  background: var(--cyan-pale, #D7F3FA);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
}
.qc-cover-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  margin: 8px 0 0;
}
.qc-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  background: var(--glass);
}
.qc-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding-bottom: 2px;
}
.qc-gallery::-webkit-scrollbar { height: 4px; }
.qc-gal-item {
  padding: 0;
  border: 0;
  background: none;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  aspect-ratio: 1;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: inset 0 0 0 1px rgba(30, 58, 95, 0.12);
}
.qc-gal-item.is-on {
  box-shadow: inset 0 0 0 2px var(--cyan), 0 0 0 1px var(--cyan);
}
.qc-gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.qc-gal-count {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.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-lb[hidden] { display: none !important; }
.qc-lb {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
}
.qc-lb-scrim {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 28, 0.88);
}
.qc-lb-frame {
  position: relative;
  z-index: 1;
  max-width: min(100vw - 24px, 920px);
  max-height: min(100dvh - 48px, 920px);
  margin: 0;
}
.qc-lb-img {
  max-width: min(100vw - 24px, 920px);
  max-height: min(100dvh - 80px, 860px);
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #0a0a0c;
}
.qc-lb-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  z-index: 2;
}
.qc-lb-nav {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #1E3A5F;
  display: grid;
  place-items: center;
  z-index: 2;
}
.qc-lb-nav svg { width: 18px; height: 18px; }
.qc-lb-prev { left: 8px; transform: translateY(-50%) rotate(180deg); }
.qc-lb-next { right: 8px; transform: translateY(-50%); }
.qc-lb-cap {
  margin: 8px 0 0;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}
body.qc-lb-open { overflow: hidden; }

.qc-dang-meta {
  margin: 6px 0 8px;
  font-size: 12px;
  color: var(--navy-2);
  overflow-wrap: anywhere;
}
.qc-dang-meta p { margin: 0 0 6px; }
.qc-han-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(31, 169, 113, 0.16);
  color: var(--ok);
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
  white-space: nowrap;
}
.qc-han-badge.is-het,
.qc-han-badge.is-cho {
  background: rgba(30, 58, 95, 0.1);
  color: var(--muted);
}
.qc-han-badge.is-an {
  background: rgba(240, 193, 75, 0.28);
  color: var(--navy);
}
.qc-han-badge.is-3 {
  background: rgba(240, 193, 75, 0.28);
  color: var(--navy);
}
.qc-anhan-line { margin: 4px 0 0; font-size: 12.5px; color: var(--navy-2); }
.qc-han-nhac.is-an { color: var(--navy); }
.qc-han-nhac.is-het { color: #9a2f22; }

html[data-theme="xanh-muc"] .qc-han-nhac.is-het,
html[data-theme="den"] .qc-han-nhac.is-het,

html[data-theme="xanh-reu-vang"] .qc-han-nhac.is-het
{ color: #ffb4a8; }
.qc-han-badge.is-1 {
  background: rgba(196, 80, 60, 0.16);
  color: #9a2f22;
}
.qc-han-nhac {
  margin: 6px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
}
.qc-han-nhac.is-3 { color: var(--navy); }
.qc-han-nhac.is-1 { color: #9a2f22; }

html[data-theme="xanh-muc"] .qc-han-badge.is-1,
html[data-theme="den"] .qc-han-badge.is-1,

html[data-theme="xanh-muc"] .qc-han-nhac.is-1,

html[data-theme="den"] .qc-han-nhac.is-1,

html[data-theme="xanh-reu-vang"] .qc-han-badge.is-1,


html[data-theme="xanh-reu-vang"] .qc-han-nhac.is-1
{ color: #ffb4a8; }

html[data-theme="xanh-muc"] .qc-han-badge.is-3,
html[data-theme="den"] .qc-han-badge.is-3,

html[data-theme="xanh-reu-vang"] .qc-han-badge.is-3
{ color: #1a2430; }
.qc-giahan-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}
.qc-giahan-btn.is-off {
  opacity: 0.55;
  cursor: not-allowed;
}
.qc-giahan-note {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}
.qc-offer-card {
  margin-top: 12px;
  padding: 10px;
  overflow: hidden;
  max-width: 100%;
}
.qc-offer-tabs {
  display: grid;
  grid-template-columns: 1fr 0.75fr 1.2fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(30, 58, 95, 0.08);
}
.qc-offer-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--navy-2);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0;
  padding: 8px 4px;
  border-radius: 10px;
  min-width: 0;
  text-align: center;
  text-wrap: balance;
  cursor: pointer;
}
.qc-offer-tab.is-on {
  background: var(--navy);
  color: #fff;
}
.qc-offer-panel {
  padding: 12px 2px 2px;
  overflow-x: hidden;
  max-width: 100%;
}
.qc-offer-panel[hidden] { display: none !important; }
.qc-offer-desc p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; color: var(--navy-2); overflow-wrap: anywhere; }
.qc-offer-empty { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.qc-offer-unit, .qc-offer-dates, .qc-offer-lienhe {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--navy-2);
}
.qc-price-table > caption.qc-offer-unit {
  caption-side: top;
  text-align: left;
  margin: 0 0 6px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.qc-offer-call, .qc-offer-hoso { margin-top: 12px; max-width: 100%; }
.qc-price-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.qc-price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.qc-price-table th,
.qc-price-table td {
  padding: 8px 6px;
  font-size: 12px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(30, 58, 95, 0.12);
}
.qc-price-table th {
  color: var(--muted);
  font-weight: 750;
  font-size: 11px;
}
.qc-price-table s { color: var(--muted); font-weight: 500; }
.qc-price-table td:nth-child(3) b { color: var(--ok); font-weight: 800; }
.qc-giam {
  display: inline-block;
  margin: 2px 0 0 2px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(31, 169, 113, 0.16);
  color: var(--ok);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.qc-dk-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qc-dk-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--navy-2);
  overflow-wrap: anywhere;
}
.qc-dk-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--ok);
  margin-top: 1px;
}
.qc-dk-ico svg { width: 18px; height: 18px; display: block; }
.qc-ud-ten { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--navy); }
.qc-ud-time { margin: 0; font-size: 13px; color: var(--navy-2); }
.qc-ud-het { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.qc-ud-head.is-past { opacity: 0.72; }
.qc-ud-head.is-past .qc-ud-ten,
.qc-ud-head.is-past .qc-ud-time { color: var(--muted); }
.qc-bai-on-profile { margin-bottom: 12px; }

html[data-theme="xanh-muc"] .qc-offer-tabs,
html[data-theme="den"] .qc-offer-tabs,

html[data-theme="xanh-reu-vang"] .qc-offer-tabs
{ background: rgba(231, 243, 255, 0.08); }

html[data-theme="xanh-muc"] .qc-offer-tab.is-on,
html[data-theme="den"] .qc-offer-tab.is-on,

html[data-theme="xanh-reu-vang"] .qc-offer-tab.is-on
{
  background: var(--ok);
  color: #062018;
}

html[data-theme="xanh-muc"] .qc-giahan-btn,
html[data-theme="den"] .qc-giahan-btn,

html[data-theme="xanh-reu-vang"] .qc-giahan-btn
{
  background: var(--ok);
  color: #062018;
}

html[data-theme="xanh-muc"] .qc-price-table th,
html[data-theme="den"] .qc-price-table th,

html[data-theme="xanh-muc"] .qc-price-table td,

html[data-theme="den"] .qc-price-table td,

html[data-theme="xanh-reu-vang"] .qc-price-table th,


html[data-theme="xanh-reu-vang"] .qc-price-table td
{
  border-bottom-color: rgba(231, 243, 255, 0.12);
}
html[data-theme="trang"] .qc-offer-tabs,
html[data-theme="trang-xam"] .qc-offer-tabs
{ background: rgba(30, 58, 95, 0.06); }


html[data-theme="xanh-muc"] .qc-sender-ava-ph,
html[data-theme="den"] .qc-sender-ava-ph,

html[data-theme="xanh-reu-vang"] .qc-sender-ava-ph
{
  background: rgba(126, 214, 238, 0.18);
  color: #7ED6EE;
}
.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: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #E11D48;
  color: #fff;
  box-shadow: 0 0 0 2px var(--glass-strong, #fff);
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.tb-badge[hidden] { display: none !important; }
#btn-bell .tb-badge,
#btn-bell-desk .tb-badge {
  top: 2px;
  right: 2px;
}
.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-gy-list { display: grid; gap: 12px; }
.toi-gy-item { padding: 14px 16px; border-radius: 16px; text-align: left; }
.toi-gy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
}
.toi-gy-item h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.toi-gy-stt {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 750;
  color: var(--blue-deep);
  background: var(--glass);
  border-radius: 999px;
  padding: 3px 8px;
}
.toi-gy-meta { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); }
.toi-gy-body { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--navy); white-space: pre-wrap; }
.toi-gy-phan-hoi { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--navy); }
.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-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  background: rgba(43, 181, 216, 0.16);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.toi-verified-ico {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--cyan);
  flex: 0 0 auto;
}
.toi-verified-ico svg {
  width: 16px;
  height: 16px;
  display: block;
}
.toi-tpl-lead {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 18px;
}
.toi-tpl-lead p {
  margin: 0;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.45;
  text-wrap: pretty;
}
.toi-status-card,
.toi-item {
  display: block;
  margin: 0 0 10px;
  padding: 14px 16px;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
}
.toi-tpl-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.toi-item-kicker {
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.toi-item-title {
  margin: 0;
  color: var(--navy);
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.35;
  text-wrap: pretty;
}
.toi-item-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.toi-item-status {
  margin: 8px 0 0;
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(43, 181, 216, 0.14);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
}
.toi-item.is-past,
.toi-item.is-past .toi-item-title,
.toi-item.is-past .toi-item-kicker,
.toi-item.is-past .toi-item-meta,
.toi-item.is-past .toi-item-status {
  color: var(--muted);
}
.toi-item.is-past {
  opacity: 0.58;
  filter: grayscale(0.25);
}
.toi-item.is-unread {
  box-shadow: inset 3px 0 0 var(--cyan);
}
.dn-page { padding-bottom: 24px; }
.dn-intro {
  margin: 0 0 12px;
  padding: 16px 16px 14px;
  border-radius: 18px;
}
.dn-intro h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}
.dn-lead {
  margin: 0;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.45;
}
.dn-khoa-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
.dn-search { margin: 0 0 12px; }
.dn-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dn-list .dn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
}
.dn-list-logo,
.dn-list-logo-ph {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--cyan-pale);
  color: var(--blue-deep);
}
.dn-list-logo.is-nen { padding: 0; background: transparent; object-fit: cover; }
.dn-list-logo.is-nen-ngang { object-fit: contain; }
.dn-list-logo.is-nen-toi { background: #0d1118; }
.dn-list-logo.is-nen-trang { padding: 3px; background: #fff; object-fit: contain; }
.dn-list-logo-ph {
  display: grid;
  place-items: center;
}
.dn-list-logo-ph svg { width: 22px; height: 22px; }
.dn-row-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.dn-row-copy strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dn-row-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dn-list .dn-row .chev {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: 0 0 auto;
}
.hv-dn-ico { color: var(--blue); }
.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"],
html[data-theme="trang-xam"]
{
  --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);
  --btn-3d-sheen-cta: linear-gradient(180deg, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.06) 42%, rgba(0,24,48,0.10) 100%);
  --btn-3d-shadow-cta:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 1px 1px rgba(36, 94, 150, 0.16),
    0 7px 16px rgba(46, 111, 176, 0.26);
  --btn-3d-shadow-cta-press:
    inset 0 1px 3px rgba(30, 58, 95, 0.22),
    0 1px 2px rgba(46, 111, 176, 0.14);
  --btn-3d-sheen-glass: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.35) 55%, rgba(30,58,95,0.04) 100%);
  --btn-3d-shadow-glass:
    inset 0 1px 0 rgba(255,255,255,1),
    0 1px 1px rgba(30, 58, 95, 0.08),
    0 6px 14px rgba(30, 58, 95, 0.11);
  --btn-3d-shadow-glass-press:
    inset 0 1px 3px rgba(30, 58, 95, 0.14),
    0 1px 2px rgba(30, 58, 95, 0.08);
  --accent-gold: #7A541C;
  --btn-navy: #161B24;
  --btn-navy-text: #FFFFFF;
  --page-photo: none;
  --shadow: 0 12px 32px rgba(28, 24, 20, 0.08);
  --shadow-soft: 0 6px 20px rgba(28, 24, 20, 0.06);
  --theme-color: #F3EFE8;
}


/* ===== 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="xanh-muc"],
html[data-theme="den"],

html[data-theme="xanh-reu-vang"]
{
  --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);
  --ct-gold: #E0C56A;
  --ct-gold-soft: #F3E0A0;
  --ct-gold-deep: #C9A24A;
  --ct-name: #F3EFE4;
  --btn-3d-sheen-cta: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 40%, rgba(0,0,0,0.22) 100%);
  --btn-3d-shadow-cta:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 2px 4px rgba(0, 8, 24, 0.45),
    0 10px 22px rgba(0, 8, 24, 0.55);
  --btn-3d-shadow-cta-press:
    inset 0 1px 3px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 8, 24, 0.4);
  --btn-3d-sheen-glass: linear-gradient(180deg, rgba(180,220,255,0.16) 0%, rgba(10,28,62,0.12) 55%, rgba(0,0,0,0.18) 100%);
  --btn-3d-shadow-glass:
    inset 0 1px 0 rgba(200,230,255,0.18),
    0 2px 4px rgba(0, 8, 24, 0.42),
    0 8px 18px rgba(0, 6, 20, 0.52);
  --btn-3d-shadow-glass-press:
    inset 0 1px 3px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 8, 24, 0.35);
  --accent-gold: #E0C56A;
  --btn-navy: #F3EDE3;
  --btn-navy-text: #161B24;
  --page-photo: url("../img/bg-luxury-dawn.svg");
}

/* ===== v103.36: Xanh mực / Trắng xám / Đen ===== */
html[data-theme="xanh-muc"] {
  --color-scheme: dark;
  --theme-color: #121A32;
  --bg-0: #1A2544;
  --bg-1: #121A32;
  --bg-2: #0B1228;
  --orb-a: rgba(160, 180, 230, 0.22);
  --orb-b: rgba(80, 100, 180, 0.18);
  --orb-c: rgba(50, 70, 150, 0.16);
  --orb-d: rgba(120, 140, 200, 0.14);
  --text: #F2F4F8;
  --navy: #F2F4F8;
  --navy-2: #D7DCE8;
  --muted: #C5CDDC;
  --cyan: #8AA0D4;
  --cyan-soft: #A8B8DC;
  --cyan-pale: #1C2748;
  --blue: #7B93C9;
  --blue-deep: #B8C6E4;
  --glass: rgba(16, 26, 52, 0.72);
  --glass-strong: rgba(20, 32, 62, 0.84);
  --glass-border: rgba(170, 190, 230, 0.18);
  --shadow: 0 10px 32px rgba(6, 10, 28, 0.58);
  --shadow-soft: 0 8px 20px rgba(6, 10, 28, 0.42);
  --ok-bg: #0F3A32;
  --ok: #4EE0C0;
  --input-bg: rgba(180, 196, 230, 0.08);
  --logo-tile-bg: #152044;
  --scrim: rgba(6, 10, 28, 0.66);
  --row-line: rgba(170, 190, 230, 0.14);
  --ct-gold: #E0C56A;
  --ct-gold-soft: #F3E0A0;
  --ct-gold-deep: #C9A24A;
  --ct-name: #F2F4F8;
  --btn-3d-sheen-cta: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 40%, rgba(0,0,0,0.22) 100%);
  --btn-3d-shadow-cta:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 2px 4px rgba(4, 8, 24, 0.45),
    0 10px 22px rgba(4, 8, 24, 0.55);
  --btn-3d-shadow-cta-press:
    inset 0 1px 3px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(4, 8, 24, 0.4);
  --btn-3d-sheen-glass: linear-gradient(180deg, rgba(180,196,230,0.14) 0%, rgba(16,26,52,0.12) 55%, rgba(0,0,0,0.18) 100%);
  --btn-3d-shadow-glass:
    inset 0 1px 0 rgba(200,214,240,0.16),
    0 2px 4px rgba(4, 8, 24, 0.42),
    0 8px 18px rgba(4, 6, 20, 0.52);
  --btn-3d-shadow-glass-press:
    inset 0 1px 3px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(4, 8, 24, 0.35);
  --accent-gold: #E0C56A;
  --btn-navy: #F2F4F8;
  --btn-navy-text: #121A32;
  --page-photo: none;
  --lg-bg: rgba(255, 255, 255, 0.08);
  --lg-bg-strong: rgba(255, 255, 255, 0.12);
  --lg-border: rgba(190, 205, 235, 0.26);
  --lg-ink: #F2F4F8;
}

html[data-theme="trang-xam"] {
  --color-scheme: light;
  --theme-color: #E4E6EA;
  --bg-0: #F3F4F6;
  --bg-1: #E8EAEE;
  --bg-2: #DEE1E6;
  --orb-a: rgba(255, 255, 255, 0.70);
  --orb-b: rgba(28, 36, 48, 0.05);
  --orb-c: rgba(28, 36, 48, 0.04);
  --orb-d: rgba(28, 36, 48, 0.04);
  --text: #1C2430;
  --navy: #1C2430;
  --navy-2: #2A3340;
  --muted: #5A616C;
  --cyan: #3A4554;
  --cyan-soft: #5A6570;
  --cyan-pale: #D8DCE2;
  --blue: #3A4554;
  --blue-deep: #1C2430;
  --glass: rgba(200, 204, 210, 0.72);
  --glass-strong: rgba(210, 214, 220, 0.88);
  --glass-border: rgba(28, 36, 48, 0.10);
  --shadow: 0 10px 28px rgba(28, 36, 48, 0.08);
  --shadow-soft: 0 6px 18px rgba(28, 36, 48, 0.06);
  --input-bg: #F3F4F6;
  --logo-tile-bg: #ffffff;
  --scrim: rgba(28, 36, 48, 0.28);
  --row-line: rgba(28, 36, 48, 0.10);
  --btn-3d-sheen-cta: linear-gradient(180deg, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0.08) 42%, rgba(28,36,48,0.08) 100%);
  --btn-3d-shadow-cta:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 1px 1px rgba(28, 36, 48, 0.12),
    0 7px 16px rgba(28, 36, 48, 0.14);
  --btn-3d-shadow-cta-press:
    inset 0 1px 3px rgba(28, 36, 48, 0.18),
    0 1px 2px rgba(28, 36, 48, 0.10);
  --btn-3d-sheen-glass: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.28) 55%, rgba(28,36,48,0.04) 100%);
  --btn-3d-shadow-glass:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 1px 1px rgba(28, 36, 48, 0.08),
    0 6px 14px rgba(28, 36, 48, 0.10);
  --btn-3d-shadow-glass-press:
    inset 0 1px 3px rgba(28, 36, 48, 0.12),
    0 1px 2px rgba(28, 36, 48, 0.08);
  --accent-gold: #7A541C;
  --btn-navy: #161B24;
  --btn-navy-text: #FFFFFF;
  --page-photo: none;
  --lg-bg: rgba(255, 255, 255, 0.12);
  --lg-bg-strong: rgba(255, 255, 255, 0.16);
  --lg-border: rgba(28, 36, 48, 0.14);
  --lg-ink: #1C2430;
}

html[data-theme="den"],
html[data-theme="xanh-reu-vang"]
{
  --color-scheme: dark;
  --theme-color: #000000;
  --bg-0: #0A0A0A;
  --bg-1: #000000;
  --bg-2: #000000;
  --orb-a: rgba(255, 255, 255, 0.10);
  --orb-b: rgba(255, 255, 255, 0.06);
  --orb-c: rgba(255, 255, 255, 0.05);
  --orb-d: rgba(255, 255, 255, 0.04);
  --text: #F5F5F5;
  --navy: #F5F5F5;
  --navy-2: #D8D8D8;
  --muted: #B5B5B5;
  --cyan: #C8C8C8;
  --cyan-soft: #E0E0E0;
  --cyan-pale: #1A1A1A;
  --blue: #C0C0C0;
  --blue-deep: #E8E8E8;
  --glass: rgba(0, 0, 0, 0.62);
  --glass-strong: rgba(12, 12, 12, 0.82);
  --glass-border: rgba(255, 255, 255, 0.14);
  --shadow: 0 10px 32px rgba(0, 0, 0, 0.72);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.50);
  --ok-bg: #0D1F18;
  --ok: #4EE0C0;
  --input-bg: rgba(255, 255, 255, 0.06);
  --logo-tile-bg: #0A0A0A;
  --scrim: rgba(0, 0, 0, 0.72);
  --row-line: rgba(255, 255, 255, 0.10);
  --ct-gold: #E0C56A;
  --ct-gold-soft: #F3E0A0;
  --ct-gold-deep: #C9A24A;
  --ct-name: #F5F5F5;
  --btn-3d-sheen-cta: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 40%, rgba(0,0,0,0.28) 100%);
  --btn-3d-shadow-cta:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 2px 4px rgba(0, 0, 0, 0.55),
    0 10px 22px rgba(0, 0, 0, 0.65);
  --btn-3d-shadow-cta-press:
    inset 0 1px 3px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.5);
  --btn-3d-sheen-glass: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(20,20,20,0.10) 55%, rgba(0,0,0,0.22) 100%);
  --btn-3d-shadow-glass:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 2px 4px rgba(0, 0, 0, 0.50),
    0 8px 18px rgba(0, 0, 0, 0.60);
  --btn-3d-shadow-glass-press:
    inset 0 1px 3px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.4);
  --accent-gold: #E0C56A;
  --btn-navy: #F5F5F5;
  --btn-navy-text: #111111;
  --page-photo: none;
  --lg-bg: rgba(255, 255, 255, 0.06);
  --lg-bg-strong: rgba(255, 255, 255, 0.09);
  --lg-border: rgba(255, 255, 255, 0.20);
  --lg-ink: #F5F5F5;
}



html[data-theme="xanh-muc"] .bg-orbs span:nth-child(1),
html[data-theme="den"] .bg-orbs span:nth-child(1),

html[data-theme="xanh-reu-vang"] .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="xanh-muc"] .bg-orbs span:nth-child(2),
html[data-theme="den"] .bg-orbs span:nth-child(2),

html[data-theme="xanh-reu-vang"] .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="xanh-muc"] .bg-orbs span:nth-child(3),
html[data-theme="den"] .bg-orbs span:nth-child(3),

html[data-theme="xanh-reu-vang"] .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="xanh-muc"] .bg-orbs span:nth-child(1),
html[data-theme="den"] .bg-orbs span:nth-child(1),

html[data-theme="xanh-muc"] .bg-orbs span:nth-child(2),

html[data-theme="den"] .bg-orbs span:nth-child(2),

html[data-theme="xanh-muc"] .bg-orbs span:nth-child(3),

html[data-theme="den"] .bg-orbs span:nth-child(3),

html[data-theme="xanh-reu-vang"] .bg-orbs span:nth-child(1),


html[data-theme="xanh-reu-vang"] .bg-orbs span:nth-child(2),


html[data-theme="xanh-reu-vang"] .bg-orbs span:nth-child(3)
{
  opacity: 0.28;
}

html[data-theme="xanh-muc"] .tl-card,
html[data-theme="den"] .tl-card,

html[data-theme="xanh-muc"] .dn-hero,

html[data-theme="den"] .dn-hero,

html[data-theme="xanh-reu-vang"] .tl-card,


html[data-theme="xanh-reu-vang"] .dn-hero
{
  background: var(--glass-strong);
}

html[data-theme="xanh-muc"] .hv-dn-mark:not(img),
html[data-theme="den"] .hv-dn-mark:not(img),

html[data-theme="xanh-reu-vang"] .hv-dn-mark:not(img)
{
  background: var(--cyan-pale);
  border-color: var(--glass-border);
  color: var(--navy);
}

html[data-theme="xanh-muc"] .search input,
html[data-theme="den"] .search input,

html[data-theme="xanh-muc"] .chat-login input,

html[data-theme="den"] .chat-login input,

html[data-theme="xanh-muc"] .chat-pw input,

html[data-theme="den"] .chat-pw input,

html[data-theme="xanh-muc"] input[type="text"],

html[data-theme="den"] input[type="text"],

html[data-theme="xanh-muc"] input[type="password"],

html[data-theme="den"] input[type="password"],

html[data-theme="xanh-muc"] input[type="search"],

html[data-theme="den"] input[type="search"],

html[data-theme="xanh-muc"] input[type="email"],

html[data-theme="den"] input[type="email"],

html[data-theme="xanh-muc"] textarea,

html[data-theme="den"] textarea,

html[data-theme="xanh-muc"] select,

html[data-theme="den"] select,

html[data-theme="xanh-reu-vang"] .search input,


html[data-theme="xanh-reu-vang"] .chat-login input,


html[data-theme="xanh-reu-vang"] .chat-pw input,


html[data-theme="xanh-reu-vang"] input[type="text"],


html[data-theme="xanh-reu-vang"] input[type="password"],


html[data-theme="xanh-reu-vang"] input[type="search"],


html[data-theme="xanh-reu-vang"] input[type="email"],


html[data-theme="xanh-reu-vang"] textarea,


html[data-theme="xanh-reu-vang"] select
{
  background: var(--input-bg);
  color: var(--navy);
  border-color: var(--glass-border);
  color-scheme: dark;
}

html[data-theme="xanh-muc"] .toi-the-btn,
html[data-theme="den"] .toi-the-btn,

html[data-theme="xanh-reu-vang"] .toi-the-btn
{
  color: #fff;
  background: var(--btn-3d-sheen-cta), linear-gradient(90deg, var(--cyan) 0%, var(--blue) 100%);
  box-shadow: var(--btn-3d-shadow-cta);
}

html[data-theme="xanh-muc"] .toi-verified,
html[data-theme="den"] .toi-verified,

html[data-theme="xanh-reu-vang"] .toi-verified
{
  background: rgba(126, 214, 238, 0.14);
  color: var(--cyan-soft);
}

html[data-theme="xanh-muc"] .toi-verified-ico,
html[data-theme="den"] .toi-verified-ico,

html[data-theme="xanh-reu-vang"] .toi-verified-ico
{ color: var(--cyan-soft); }

html[data-theme="xanh-muc"] .toi-tpl-lead p,
html[data-theme="den"] .toi-tpl-lead p,

html[data-theme="xanh-muc"] .toi-item-title,

html[data-theme="den"] .toi-item-title,

html[data-theme="xanh-muc"] .dn-intro h2,

html[data-theme="den"] .dn-intro h2,

html[data-theme="xanh-muc"] .dn-row-copy strong,

html[data-theme="den"] .dn-row-copy strong,

html[data-theme="xanh-reu-vang"] .toi-tpl-lead p,


html[data-theme="xanh-reu-vang"] .toi-item-title,


html[data-theme="xanh-reu-vang"] .dn-intro h2,


html[data-theme="xanh-reu-vang"] .dn-row-copy strong
{
  color: var(--navy);
}

html[data-theme="xanh-muc"] .toi-item-status,
html[data-theme="den"] .toi-item-status,

html[data-theme="xanh-reu-vang"] .toi-item-status
{
  background: rgba(126, 214, 238, 0.14);
  color: var(--cyan-soft);
}
html[data-theme="trang"] .toi-verified,
html[data-theme="trang-xam"] .toi-verified
{
  background: rgba(46, 111, 176, 0.12);
  color: var(--blue-deep);
}
html[data-theme="trang"] .toi-verified-ico,
html[data-theme="trang-xam"] .toi-verified-ico
{ color: var(--blue); }

html[data-theme="xanh-muc"] .btn-cta,
html[data-theme="den"] .btn-cta,

html[data-theme="xanh-reu-vang"] .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="xanh-muc"] .hv-rank-ct img,
html[data-theme="den"] .hv-rank-ct img,

html[data-theme="xanh-muc"] .hv-pro-hero .hv-name .hv-rank-ct img,

html[data-theme="den"] .hv-pro-hero .hv-name .hv-rank-ct img,

html[data-theme="xanh-muc"] .hv-card .hv-name .hv-rank-ct img,

html[data-theme="den"] .hv-card .hv-name .hv-rank-ct img,

html[data-theme="xanh-reu-vang"] .hv-rank-ct img,


html[data-theme="xanh-reu-vang"] .hv-pro-hero .hv-name .hv-rank-ct img,


html[data-theme="xanh-reu-vang"] .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;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
.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 { font-size: 12.5px; }
.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="xanh-muc"] .hv-sec-lanh-dao,
html[data-theme="den"] .hv-sec-lanh-dao,

html[data-theme="xanh-reu-vang"] .hv-sec-lanh-dao
{
  background: rgba(120, 40, 60, 0.32);
  border-color: rgba(224, 118, 140, 0.4);
}

html[data-theme="xanh-muc"] .hv-sec-lanh-dao .hv-sec-head h2,
html[data-theme="den"] .hv-sec-lanh-dao .hv-sec-head h2,

html[data-theme="xanh-muc"] .hv-sec-lanh-dao .empty-filter,

html[data-theme="den"] .hv-sec-lanh-dao .empty-filter,

html[data-theme="xanh-muc"] .hv-sec-lanh-dao .dang-cap-nhat,

html[data-theme="den"] .hv-sec-lanh-dao .dang-cap-nhat,

html[data-theme="xanh-muc"] .hv-sec-lanh-dao .hv-ban-chip,

html[data-theme="den"] .hv-sec-lanh-dao .hv-ban-chip,

html[data-theme="xanh-reu-vang"] .hv-sec-lanh-dao .hv-sec-head h2,


html[data-theme="xanh-reu-vang"] .hv-sec-lanh-dao .empty-filter,


html[data-theme="xanh-reu-vang"] .hv-sec-lanh-dao .dang-cap-nhat,


html[data-theme="xanh-reu-vang"] .hv-sec-lanh-dao .hv-ban-chip
{ color: #F3B3C2; }

html[data-theme="xanh-muc"] .hv-sec-lanh-dao .hv-card.glass-strong,
html[data-theme="den"] .hv-sec-lanh-dao .hv-card.glass-strong,

html[data-theme="xanh-reu-vang"] .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="xanh-muc"] .hv-sec-lanh-dao .hv-ava.ph,
html[data-theme="den"] .hv-sec-lanh-dao .hv-ava.ph,

html[data-theme="xanh-reu-vang"] .hv-sec-lanh-dao .hv-ava.ph
{
  background: rgba(196, 70, 100, 0.28);
  color: #F3B3C2;
}

html[data-theme="xanh-muc"] .hv-sec-thanh-vien,
html[data-theme="den"] .hv-sec-thanh-vien,

html[data-theme="xanh-reu-vang"] .hv-sec-thanh-vien
{
  background: rgba(30, 80, 110, 0.34);
  border-color: rgba(43, 181, 216, 0.4);
}

html[data-theme="xanh-muc"] .hv-sec-thanh-vien .hv-card.glass-strong,
html[data-theme="den"] .hv-sec-thanh-vien .hv-card.glass-strong,

html[data-theme="xanh-reu-vang"] .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="xanh-muc"] .hv-sec-phan-loai,
html[data-theme="den"] .hv-sec-phan-loai,

html[data-theme="xanh-reu-vang"] .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="xanh-muc"] .hv-sec-phan-loai .hv-sec-head h2,
html[data-theme="den"] .hv-sec-phan-loai .hv-sec-head h2,

html[data-theme="xanh-muc"] .hv-sec-phan-loai .hv-ban-chip,

html[data-theme="den"] .hv-sec-phan-loai .hv-ban-chip,

html[data-theme="xanh-muc"] .hv-sec-phan-loai .empty-filter,

html[data-theme="den"] .hv-sec-phan-loai .empty-filter,

html[data-theme="xanh-muc"] .hv-sec-phan-loai .dang-cap-nhat,

html[data-theme="den"] .hv-sec-phan-loai .dang-cap-nhat,

html[data-theme="xanh-reu-vang"] .hv-sec-phan-loai .hv-sec-head h2,


html[data-theme="xanh-reu-vang"] .hv-sec-phan-loai .hv-ban-chip,


html[data-theme="xanh-reu-vang"] .hv-sec-phan-loai .empty-filter,


html[data-theme="xanh-reu-vang"] .hv-sec-phan-loai .dang-cap-nhat
{
  color: color-mix(in srgb, var(--hv-sec-mau, #7EB6E4) 50%, #E8F2FA);
}

html[data-theme="xanh-muc"] .hv-sec-phan-loai .hv-card.glass-strong,
html[data-theme="den"] .hv-sec-phan-loai .hv-card.glass-strong,

html[data-theme="xanh-reu-vang"] .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="xanh-muc"] .hv-sec-phan-loai .hv-ava.ph,
html[data-theme="den"] .hv-sec-phan-loai .hv-ava.ph,

html[data-theme="xanh-reu-vang"] .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="trang"] img.hv-dn-logo.is-nen-trang,
html[data-theme="trang"] .dn-list-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="xanh-muc"] img.hv-dn-logo.is-nen-trang,
html[data-theme="den"] img.hv-dn-logo.is-nen-trang,

html[data-theme="xanh-muc"] .dn-list-logo.is-nen-trang,

html[data-theme="den"] .dn-list-logo.is-nen-trang,

html[data-theme="xanh-muc"] .toi-dn-logo.is-nen-trang,

html[data-theme="den"] .toi-dn-logo.is-nen-trang,

html[data-theme="xanh-muc"] .dn-logo-wrap.is-nen-trang,

html[data-theme="den"] .dn-logo-wrap.is-nen-trang,

html[data-theme="trang-xam"] img.hv-dn-logo.is-nen-trang,

html[data-theme="trang-xam"] .dn-list-logo.is-nen-trang,

html[data-theme="trang-xam"] .toi-dn-logo.is-nen-trang,

html[data-theme="trang-xam"] .dn-logo-wrap.is-nen-trang,

html[data-theme="xanh-reu-vang"] img.hv-dn-logo.is-nen-trang,


html[data-theme="xanh-reu-vang"] .dn-list-logo.is-nen-trang,


html[data-theme="xanh-reu-vang"] .toi-dn-logo.is-nen-trang,


html[data-theme="xanh-reu-vang"] .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="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,
html[data-theme="trang-xam"] img.hv-dn-logo.is-nen-trang,

html[data-theme="trang-xam"] .toi-dn-logo.is-nen-trang,

html[data-theme="trang-xam"] .dn-logo-wrap.is-nen-trang,

html[data-theme="xanh-muc"] img.hv-dn-logo.is-nen-trang,

html[data-theme="den"] img.hv-dn-logo.is-nen-trang,

html[data-theme="xanh-muc"] .toi-dn-logo.is-nen-trang,

html[data-theme="den"] .toi-dn-logo.is-nen-trang,

html[data-theme="xanh-muc"] .dn-logo-wrap.is-nen-trang,

html[data-theme="den"] .dn-logo-wrap.is-nen-trang,


html[data-theme="xanh-reu-vang"] img.hv-dn-logo.is-nen-trang,


html[data-theme="xanh-reu-vang"] .toi-dn-logo.is-nen-trang,


html[data-theme="xanh-reu-vang"] .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: -3px;
  right: -3px;
  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="xanh-muc"] .tabbar a .tab-lock,
html[data-theme="den"] .tabbar a .tab-lock,

html[data-theme="xanh-reu-vang"] .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;
}
.hv-khoa-demo-err {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--warn);
  text-align: center !important;
}
.hv-khoa-panel .btn-cta.hv-khoa-demo {
  margin-top: 8px;
}
.hv-xem-thu-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 14px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
}
.hv-xem-thu-banner[hidden] { display: none !important; }
.hv-xem-thu-banner #hv-demo-thoat {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
  color: var(--blue-deep);
  background: var(--glass);
  cursor: pointer;
}
.chat-login .hv-xem-thu-btn { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .hv-khoa-back { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Demo preview is mobile-only; desktop chrome stays unchanged. */
@media (min-width: 768px) {
  .hv-khoa-demo,
  .hv-khoa-demo-err,
  .hv-xem-thu-btn,
  #hv-demo-banner,
  .hv-xem-thu-banner {
    display: none !important;
  }
}


/* 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="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,
html[data-theme="xanh-muc"] .logo-hhdl-tile,
html[data-theme="den"] .logo-hhdl-tile,

html[data-theme="xanh-muc"] .logo-hhdl-tile img,

html[data-theme="den"] .logo-hhdl-tile img,

html[data-theme="xanh-muc"] .splash-logo,

html[data-theme="den"] .splash-logo,

html[data-theme="trang-xam"] .logo-hhdl-tile,

html[data-theme="trang-xam"] .splash-logo,

html[data-theme="xanh-reu-vang"] .logo-hhdl-tile,


html[data-theme="xanh-reu-vang"] .logo-hhdl-tile img,


html[data-theme="xanh-reu-vang"] .splash-logo
{
  background: transparent;
  box-shadow: none;
}

html[data-theme="xanh-muc"] .logo-hhdl-tile img,
html[data-theme="den"] .logo-hhdl-tile img,

html[data-theme="xanh-muc"] .splash-logo img,

html[data-theme="den"] .splash-logo img,

html[data-theme="xanh-reu-vang"] .logo-hhdl-tile img,


html[data-theme="xanh-reu-vang"] .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));
}

/* ===== v68 form (unchanged on mobile); v69 desktop / tablet chrome ===== */
.sidebar-brand { display: none; }
.desk-page-title { display: none; }
.desk-header-actions { display: none; }
.desk-brand-text { display: none; }
.site-footer { display: none; }
.hero-phones { display: none; }


.dk-page { margin: 0 auto; }
.dk-panel { padding: 18px 16px 16px; }
.dk-form { display: flex; flex-direction: column; gap: 12px; }
.dk-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--navy-2);
}
.dk-field .dk-req { color: #C4472A; font-weight: 800; }
.dk-field input,
.dk-field textarea {
  border: 1px solid var(--glass-border);
  background: var(--input-bg);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--navy);
  font: inherit;
  font-size: 16px;
  width: 100%;
}
.dk-field textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.dk-field input:focus,
.dk-field textarea:focus {
  outline: 2px solid rgba(43, 181, 216, 0.45);
  outline-offset: 1px;
}
.dk-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;
}
.dk-login-link {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
}
.dk-login-link a { font-weight: 700; color: var(--blue-deep); }
.dk-ok {
  margin: 8px 0 16px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  text-align: center;
}
.dk-err {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #9B2C2C;
  background: #FDECEC;
}
.dk-err p { margin: 0 0 8px; }
.dk-err .dk-mailto,
a.dk-mailto {
  display: inline-block;
  font-weight: 750;
  color: var(--blue-deep);
  text-decoration: underline;
}
#dk-submit:disabled { opacity: 0.72; pointer-events: none; }

html[data-theme="xanh-muc"] .dk-err,
html[data-theme="den"] .dk-err,

html[data-theme="xanh-reu-vang"] .dk-err
{
  color: #FFC9C9;
  background: rgba(120, 24, 32, 0.45);
}

html[data-theme="xanh-muc"] .dk-field .dk-req,
html[data-theme="den"] .dk-field .dk-req,

html[data-theme="xanh-reu-vang"] .dk-field .dk-req
{ color: #FF8A7A; }

html[data-theme="xanh-muc"] .dk-ok,
html[data-theme="den"] .dk-ok,

html[data-theme="xanh-reu-vang"] .dk-ok
{ color: var(--navy); }

/* v69: TravelQ-inspired top header, hero, whitespace, footer. Mobile <768 unchanged. */
@media (min-width: 768px) {
  :root {
    --desk-header-h: 68px;
    --desk-wrap: 1120px;
  }

  .app-shell,
  .splash {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .splash {
    width: min(100%, 640px);
    margin: 0 auto;
    padding: 48px 36px 56px;
  }
  .splash .splash-logo { width: 180px; }
  .splash h1 { font-size: 2.4rem; }
  .splash .slogan { font-size: 15.5px; line-height: 1.65; }

  .app-shell {
    padding: calc(var(--desk-header-h) + 24px) 24px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .app-shell > .topbar,
  .app-shell > .search,
  .app-shell > #search-results,
  .app-shell > #view-home,
  .app-shell > #view-detail {
    width: 100%;
    max-width: var(--desk-wrap);
  }

  .app-shell .topbar,
  .app-shell .topbar[hidden] {
    display: none !important;
  }

  /* Sticky top horizontal header (logo left, text nav, actions right) */
  #tabbar.tabbar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: none;
    height: var(--desk-header-h);
    min-height: var(--desk-header-h);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 20px;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 36, 52, 0.90);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: none;
    z-index: 40;
    box-sizing: border-box;
  }
  #tabbar.tabbar.is-scrolled {
    background: rgba(8, 36, 52, 0.96);
    box-shadow: 0 10px 28px rgba(0, 12, 24, 0.28);
  }
  html[data-theme="trang"] #tabbar.tabbar,
html[data-theme="trang-xam"] #tabbar.tabbar
{
    background: rgba(12, 32, 48, 0.92);
  }
  html[data-theme="trang"] #tabbar.tabbar.is-scrolled,
html[data-theme="trang-xam"] #tabbar.tabbar.is-scrolled
{
    background: rgba(12, 32, 48, 0.97);
  }
  
html[data-theme="xanh-muc"] #tabbar.tabbar,
html[data-theme="den"] #tabbar.tabbar,

html[data-theme="xanh-reu-vang"] #tabbar.tabbar
{
    background: rgba(6, 16, 36, 0.92);
    border-bottom-color: rgba(126, 214, 238, 0.14);
  }
  
html[data-theme="xanh-muc"] #tabbar.tabbar.is-scrolled,
html[data-theme="den"] #tabbar.tabbar.is-scrolled,

html[data-theme="xanh-reu-vang"] #tabbar.tabbar.is-scrolled
{
    background: rgba(6, 16, 36, 0.97);
  }

  /* Inner alignment: content sits in a centered wrap */
  #tabbar.tabbar {
    padding-left: max(20px, calc(50% - var(--desk-wrap) / 2));
    padding-right: max(20px, calc(50% - var(--desk-wrap) / 2));
  }

  .sidebar-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 0 16px 0 0;
    width: auto;
    max-width: none;
  }
  #tabbar.tabbar .sidebar-brand-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: auto;
    max-width: none;
    height: auto;
    min-width: 0;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 0;
    text-decoration: none;
    white-space: nowrap;
  }
  .sidebar-logo-icon { display: none; }
  .sidebar-logo-full {
    display: block;
    width: 46px;
    height: 44px;
    flex: 0 0 46px;
    margin: 0;
  }
  .sidebar-logo-full.logo-hhdl-tile,
  .sidebar-brand .logo-hhdl-tile {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }
  .sidebar-logo-full img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
      drop-shadow(0 0 1px rgba(255, 255, 255, 0.9))
      drop-shadow(0 0 7px rgba(255, 255, 255, 0.4));
  }
  .desk-brand-text {
    display: none;
    white-space: nowrap;
    flex: 0 0 auto;
    line-height: 1.1;
  }

  #tabbar.tabbar > a[data-tab] {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    white-space: nowrap;
    color: rgba(244, 253, 254, 0.88);
    background: transparent;
    overflow: visible;
  }
  #tabbar.tabbar > a[data-tab="home"] {
    margin-left: auto;
  }
  #tabbar.tabbar > a[data-tab] > svg {
    display: none;
  }
  #tabbar.tabbar a .tab-ico > svg { display: none; }
  #tabbar.tabbar a .tab-ico {
    position: relative;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin: 0;
    overflow: visible;
  }
  #tabbar.tabbar a .tab-ico:has(.tab-lock[hidden]) {
    display: none;
  }
  #tabbar.tabbar a .tab-lock {
    position: relative !important;
    top: 0;
    right: 0;
    width: 16px !important;
    height: 16px !important;
    background: #7ED6EE;
    color: #0B2A38 !important;
    box-shadow: 0 0 0 1.5px rgba(8, 36, 52, 0.9);
  }
  #tabbar.tabbar > a[data-tab]:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }
  #tabbar.tabbar > a[data-tab].active {
    color: #7EE7F2;
    background: transparent;
    font-weight: 700;
  }
  #tabbar.tabbar > a[data-tab].active:hover {
    color: #7EE7F2;
    background: rgba(126, 231, 242, 0.1);
  }

  .desk-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
  }
  #tabbar.tabbar .desk-cta {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 9px 16px;
    border-radius: 999px;
    background: #7ED6EE;
    color: #03252B;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow:
      0 10px 24px -10px rgba(66, 202, 215, 0.7),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
  #tabbar.tabbar .desk-cta:hover {
    color: #03252B;
    background: #8EEBF4;
    filter: none;
  }
  #btn-bell-desk {
    position: relative;
    width: 40px;
    height: 40px;
    color: rgba(244, 253, 254, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    flex: 0 0 40px;
  }
  #btn-bell-desk:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
  }
  #btn-bell-desk svg {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0 auto;
  }

  .hv-gy-fab {
    right: 24px;
    bottom: 24px;
  }
  body.sheet-open #site-footer.site-footer {
    z-index: 0;
  }
  .hv-sheet-back,
  .hv-khoa-back {
    padding: 24px;
    align-items: center;
    justify-items: center;
  }
  .hv-sheet,
  .hv-khoa-panel,
  .drawer-panel {
    width: min(100%, 520px);
  }
  .bch-ds-list { padding-bottom: 24px; }
  .toast { bottom: 32px; }

  /* Hero — large typography on home; other pages keep a compact banner */
  .hero {
    padding: 28px 28px 24px;
    margin-bottom: 28px;
    border-radius: 24px;
    min-height: 0;
  }
  #view-home > .home-top-row > .hero {
    min-height: 320px;
    padding: 40px 36px 36px;
    margin-bottom: 36px;
    border-radius: 28px;
  }
  .hero-copy { width: 58%; }
  .hero-copy .hello {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue-deep);
    margin-bottom: 8px;
  }
  .hero-copy h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin: 0 0 14px;
  }
  .hero-copy p {
    font-size: 15px;
    line-height: 1.65;
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
  }
  .hero-art {
    width: 40%;
    right: 12px;
    bottom: -8px;
  }
  .hero-logo { width: 112px; }

  .home-top-row { display: block; }
  .home-top-row > .hero { margin-bottom: 0; }
  .home-ct-col {
    display: block;
    margin: 24px 0 28px;
  }
  .ct-home-tile {
    width: 220px;
    height: 220px;
    aspect-ratio: 1 / 1;
    padding: 18px 16px;
    border-radius: var(--radius);
    flex: 0 0 220px;
  }
  .ct-home-tile .avatar,
  .ct-home-tile .avatar.has-photo {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }
  .ct-home-tile .avatar picture,
  .ct-home-tile .avatar.has-photo picture,
  .ct-home-tile .avatar img { width: 96px; height: 96px; }
  .ct-home-tile-ten { font-size: 17px; }
  .ct-home-tile-chuc { font-size: 10px; letter-spacing: 0.12em; }
  .ct-home-tile-khoa { font-size: 12px; }

  /* v70: CSS phone mockups with real in-app mobile screenshots (home + hoạt động) */
  #view-home > .home-top-row > .hero {
    overflow: visible;
    min-height: 420px;
    padding: 40px 28px 48px 36px;
  }
  #view-home > .home-top-row > .hero > .hero-art { display: none; }
  #view-home > .home-top-row > .hero .hero-copy {
    width: 50%;
    padding-right: 8px;
  }
  .hero-phones {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 2;
    pointer-events: none;
  }
  .hero-phone {
    position: absolute;
    transform-origin: 50% 80%;
  }
  .hero-phone--back {
    right: 42%;
    bottom: 6%;
    width: 168px;
    z-index: 1;
    transform: rotate(-12deg) translate(8px, 16px);
    filter: brightness(0.97);
  }
  .hero-phone--front {
    right: 7%;
    bottom: -18px;
    width: 200px;
    z-index: 2;
    transform: rotate(8deg);
  }
  .hero-phone-shell {
    position: relative;
    background: linear-gradient(165deg, #3e424a 0%, #1c1e24 42%, #0b0c10 100%);
    border-radius: 30px;
    padding: 8px 7px 9px;
    box-shadow:
      inset 0 1px 1.5px rgba(255, 255, 255, 0.38),
      inset 0 -1px 1px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(0, 0, 0, 0.7),
      0 16px 32px -8px rgba(8, 20, 40, 0.45),
      0 36px 56px -18px rgba(8, 20, 40, 0.38);
  }
  .hero-phone-island {
    position: absolute;
    top: 13px;
    left: 50%;
    width: 28%;
    height: 13px;
    transform: translateX(-50%);
    background: #070709;
    border-radius: 99px;
    z-index: 4;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    pointer-events: none;
  }
  .hero-phone-island::after {
    content: "";
    position: absolute;
    right: 7px;
    top: 50%;
    width: 6px;
    height: 6px;
    transform: translateY(-50%);
    background: radial-gradient(circle at 35% 35%, #2a3a55 0%, #0a1020 70%);
    border-radius: 50%;
  }
  .hero-phone-screen {
    position: relative;
    border-radius: 23px;
    overflow: hidden;
    aspect-ratio: 390 / 844;
    background-color: #0A1630;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
  }
  .hero-phone-btn {
    position: absolute;
    background: #1a1c22;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
  }
  .hero-phone-btn--silent {
    left: -3px;
    top: 16%;
    width: 3px;
    height: 7%;
    border-radius: 2px 0 0 2px;
  }
  .hero-phone-btn--vol-up {
    left: -3px;
    top: 26%;
    width: 3px;
    height: 9%;
    border-radius: 2px 0 0 2px;
  }
  .hero-phone-btn--vol-dn {
    left: -3px;
    top: 37%;
    width: 3px;
    height: 9%;
    border-radius: 2px 0 0 2px;
  }
  .hero-phone-btn--power {
    right: -3px;
    top: 28%;
    width: 3px;
    height: 14%;
    border-radius: 0 2px 2px 0;
  }

  html[data-theme="kinh-xanh"] .hero-phone-screen--home {
    background-image: url("../img/hero-phone-home-kinh-xanh.webp");
    background-color: #D4ECFA;
  }
  html[data-theme="trang"] .hero-phone-screen--home,
html[data-theme="trang-xam"] .hero-phone-screen--home
{
    background-image: url("../img/hero-phone-home-trang.webp");
    background-color: #F3F5F7;
  }
  
html[data-theme="xanh-muc"] .hero-phone-screen--home,
html[data-theme="den"] .hero-phone-screen--home,

html[data-theme="xanh-reu-vang"] .hero-phone-screen--home
{
    background-image: url("../img/hero-phone-home-night.webp");
    background-color: #0A1630;
  }
  html[data-theme="kinh-xanh"] .hero-phone-screen--hoat-dong {
    background-image: url("../img/hero-phone-hoat-dong-kinh-xanh.webp");
    background-color: #D4ECFA;
  }
  html[data-theme="trang"] .hero-phone-screen--hoat-dong,
html[data-theme="trang-xam"] .hero-phone-screen--hoat-dong
{
    background-image: url("../img/hero-phone-hoat-dong-trang.webp");
    background-color: #F3F5F7;
  }
  
html[data-theme="xanh-muc"] .hero-phone-screen--hoat-dong,
html[data-theme="den"] .hero-phone-screen--hoat-dong,

html[data-theme="xanh-reu-vang"] .hero-phone-screen--hoat-dong
{
    background-image: url("../img/hero-phone-hoat-dong-night.webp");
    background-color: #0A1630;
  }

  @media (prefers-reduced-motion: no-preference) {
    .hero-phone--front {
      animation: hero-phone-float-front 5.2s ease-in-out infinite;
    }
    .hero-phone--back {
      animation: hero-phone-float-back 6s ease-in-out infinite 0.35s;
    }
  }
  @keyframes hero-phone-float-front {
    0%, 100% { transform: rotate(8deg) translateY(0); }
    50% { transform: rotate(8deg) translateY(-10px); }
  }
  @keyframes hero-phone-float-back {
    0%, 100% { transform: rotate(-12deg) translate(8px, 16px); }
    50% { transform: rotate(-12deg) translate(8px, 6px); }
  }

  .search {
    margin-bottom: 22px;
    padding: 12px 16px;
    border-radius: 18px;
  }

  .sec-head {
    margin: 44px 0 18px;
  }
  .sec-head h3 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  .tiles {
    gap: 16px;
    margin-bottom: 12px;
  }
  .tile {
    padding: 22px 12px 18px;
    border-radius: 20px;
  }

  .people {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
  }

  .hv-list,
  .hd-grid,
  .tn-grid,
  .qc-public,
  .cafe-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .hd-grid > .date-card,
  .hd-grid > .hd-card,
  .tn-grid > .tn-card,
  .tn-grid > .tn-feat { margin-bottom: 0; }
  .tn-grid > .tn-feat { grid-column: 1 / -1; }

  .page-foot { display: none; }

  /* Site footer — official facts only */
  #site-footer.site-footer:not([hidden]) {
    display: block;
    width: 100%;
    margin: 0;
    padding: 64px 24px 0;
    background: #0B2433;
    color: rgb(179, 194, 209);
    position: relative;
    z-index: 1;
  }
  html[data-theme="trang"] #site-footer.site-footer:not([hidden]),
html[data-theme="trang-xam"] #site-footer.site-footer:not([hidden])
{
    background: #102033;
  }
  
html[data-theme="xanh-muc"] #site-footer.site-footer:not([hidden]),
html[data-theme="den"] #site-footer.site-footer:not([hidden]),

html[data-theme="xanh-reu-vang"] #site-footer.site-footer:not([hidden])
{
    background: #07101F;
  }
  .site-footer-inner {
    width: 100%;
    max-width: var(--desk-wrap);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 28px;
    padding-bottom: 40px;
  }
  .sf-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    text-decoration: none;
  }
  .sf-logo .logo-hhdl-tile {
    width: 56px;
    height: 54px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .sf-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
      drop-shadow(0 0 1px rgba(255, 255, 255, 0.9))
      drop-shadow(0 0 7px rgba(255, 255, 255, 0.4));
  }
  .sf-logo .wordmark {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
  }
  .sf-logo .accent { color: #7ED6EE; }
  .sf-name {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
  }
  .sf-name-en {
    margin: 0 0 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(179, 194, 209, 0.9);
  }
  .sf-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: rgb(179, 194, 209);
  }
  .sf-col h3 {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
  }
  .sf-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .sf-col li { margin: 0 0 8px; }
  .sf-col a {
    color: rgb(179, 194, 209);
    font-size: 14px;
    font-weight: 500;
  }
  .sf-col a:hover { color: #7ED6EE; }
  .sf-col p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: rgb(179, 194, 209);
  }
  .sf-col p strong {
    display: block;
    color: #fff;
    font-weight: 650;
    margin-bottom: 2px;
  }
  .sf-bottom {
    max-width: var(--desk-wrap);
    margin: 0 auto;
    padding: 18px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: rgba(179, 194, 209, 0.85);
  }

  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .tile,
    .hd-card,
    .date-card,
    .tn-card,
    .tn-feat,
    .person,
    .hv-card,
    .qc-card,
    .cafe-card {
      transition: transform 0.22s ease, box-shadow 0.22s ease;
    }
    .tile:hover,
    .hd-card:hover,
    .date-card:hover,
    .tn-card:hover,
    .tn-feat:hover,
    .person:hover,
    .hv-card:hover,
    .qc-card:hover,
    .cafe-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 24px 48px -24px rgba(10, 40, 60, 0.45);
    }
  }
}

@media (min-width: 1024px) {
  :root {
    --desk-header-h: 76px;
    --desk-wrap: 1200px;
  }

  .splash {
    width: min(100%, 720px);
    padding: 64px 48px 72px;
  }
  .splash .splash-logo { width: 200px; }
  .splash h1 { font-size: 2.7rem; }

  .app-shell {
    padding: calc(var(--desk-header-h) + 32px) 32px 80px;
  }

  .desk-brand-text {
    display: block;
  }
  .desk-brand-text .wordmark {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    white-space: nowrap;
  }
  #tabbar.tabbar .desk-brand-text .accent,
  #tabbar.tabbar .wordmark .accent {
    display: inline;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0;
    margin: 0;
    background: none;
    border: 0;
    box-shadow: none;
    color: #7ED6EE;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
  }

  .sidebar-logo-full {
    width: 52px;
    height: 50px;
    flex: 0 0 52px;
  }

  #tabbar.tabbar > a[data-tab] {
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 600;
  }
  #tabbar.tabbar .desk-cta {
    padding: 10px 18px;
    font-size: 15px;
  }
  .desk-header-actions { margin-left: 16px; gap: 12px; }
  #btn-bell-desk { width: 44px; height: 44px; flex-basis: 44px; }

  #view-detail {
    max-width: 1000px;
  }
  .dk-page,
  .chat-login,
  .toi-sub,
  .toi-page,
  .qc-page,
  .cafe-page {
    max-width: 880px;
  }
  .dk-page { max-width: 720px; }

  .hero {
    padding: 32px 36px 28px;
    margin-bottom: 32px;
    border-radius: 28px;
  }
  #view-home > .home-top-row > .hero {
    min-height: 500px;
    padding: 52px 48px 48px;
    margin-bottom: 48px;
    border-radius: 32px;
  }
  #view-home .hero-copy { width: 50%; }
  .hero-phone--back { width: 188px; right: 44%; bottom: 8%; }
  .hero-phone--front { width: 224px; right: 5%; bottom: 6px; }

  .hero-copy .hello { font-size: 12.5px; margin-bottom: 10px; }
  .hero-copy h2 {
    font-size: clamp(2.1rem, 3.4vw, 3.05rem);
    margin: 0 0 18px;
  }
  .hero-copy p { font-size: 16.5px; line-height: 1.7; }
  .hero-art {
    width: 42%;
    right: 16px;
    bottom: -12px;
  }
  .hero-logo { width: 136px; }

  .sec-head { margin: 56px 0 22px; }
  .sec-head h3 { font-size: 1.7rem; }

  .tiles { gap: 18px; margin-bottom: 16px; }
  .tile { padding: 24px 14px 20px; }

  .people { gap: 18px; }

  .hv-list,
  .hd-grid,
  .tn-grid,
  .qc-public,
  .cafe-list { gap: 20px; }

  .dk-panel { padding: 28px 28px 24px; }
  .dk-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
  }
  .dk-form .dk-hp,
  .dk-form label[for="dk-dia-chi"],
  .dk-form label[for="dk-ghi-chu"],
  .dk-form #dk-submit,
  .dk-form button { grid-column: 1 / -1; }

  #site-footer.site-footer:not([hidden]) {
    padding: 72px 32px 0;
  }
  .site-footer-inner {
    grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
    gap: 40px 36px;
    padding-bottom: 48px;
  }
}

@media (min-width: 1440px) {
  :root { --desk-wrap: 1240px; }

  #view-detail { max-width: 1100px; }

  .hv-list,
  .qc-public,
  .cafe-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .hd-grid,
  .tn-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tn-grid > .tn-feat { grid-column: 1 / -1; }
  .people { grid-template-columns: repeat(2, 1fr); }

  #view-home > .home-top-row > .hero { min-height: 560px; padding: 64px 56px 56px; }
  .hero-phone--back { width: 228px; bottom: 6%; }
  .hero-phone--front { width: 270px; bottom: 8px; }
}

@media (min-width: 1920px) {
  :root { --desk-wrap: 1280px; }
  #view-home > .home-top-row > .hero { min-height: 600px; }
  .hero-phone--back { width: 240px; }
  .hero-phone--front { width: 286px; }
}

/* v71: Quyền lợi list is a column of posts, not a 2/3-col grid on the wrapper */
@media (min-width: 768px) {
  .qc-public {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    max-width: 880px;
  }
  #qc-public-list,
  .qc-detail-page #qc-detail-mount,
  .qc-detail-page .qc-bai-detail {
    width: 100%;
    max-width: 880px;
  }
  .qc-gallery { gap: 8px; }
  .qc-gal-item { flex-basis: 80px; width: 80px; height: 80px; }
}


/* ===== Liên minh Hiệp hội (v77) ===== */
.lm-page { display: flex; flex-direction: column; gap: 18px; padding-bottom: 8px; }
.lm-head { padding: 16px 16px 14px; border-radius: 18px; }
.lm-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.lm-head h1 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.25;
}
.lm-lead {
  margin: 8px 0 0;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--blue-deep);
  line-height: 1.45;
}
.lm-info {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue-deep);
  background: var(--glass);
  cursor: pointer;
}
.lm-info svg { width: 22px; height: 22px; display: block; }
.lm-sec .hv-sec-head { margin-bottom: 8px; }
.lm-list { display: grid; gap: 10px; }
.lm-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: left;
  color: inherit;
  text-decoration: none;
}
.lm-card-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--blue-deep);
}
.lm-card-ico svg { width: 24px; height: 24px; }
.lm-card-copy { min-width: 0; display: grid; gap: 2px; }
.lm-card-copy strong {
  font-size: 15px;
  font-weight: 750;
  color: var(--navy);
}
.lm-card-copy span { font-size: 13px; color: var(--muted); }
.lm-ket-ban-wrap { margin-top: 12px; }
.lm-ket-ban {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.lm-ket-ban-ico { display: grid; place-items: center; flex: 0 0 auto; }
.lm-ket-ban-ico svg { width: 20px; height: 20px; display: block; }
.lm-ket-ban:disabled,
.lm-ket-ban[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.lm-quyen-pop {
  position: fixed;
  z-index: 120;
  width: min(320px, calc(100vw - 32px));
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: #fff;
  color: var(--navy, #1E3A5F);
  box-shadow: 0 12px 32px rgba(16, 40, 72, 0.22), inset 0 0 0 1px rgba(46, 111, 176, 0.16);
}
.lm-quyen-pop p {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.4;
}
.lm-quyen-pop .btn-cta {
  width: 100%;
  min-height: 36px;
}
.lm-chu-quan-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--navy, #1E3A5F);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}
.lm-hh-copy strong {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 14.5px;
  color: var(--navy);
}
.lm-hh-ten {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lm-hh-copy > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lm-ket-ban-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}
.lm-intro-back {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 16px 16px calc(var(--tab-h) + var(--tab-gap, 10px) + 20px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
  background: rgba(8, 24, 40, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lm-intro-back[hidden] { display: none !important; }
.lm-intro-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 420px);
  max-height: min(72dvh, 640px);
  overflow: hidden;
  padding: 18px 16px 16px;
  border-radius: 22px;
  text-align: left;
}
/* v102: kính trong hơn — alpha thấp hơn glass-strong toàn cục, giữ blur, AA cho chữ. */
.lm-intro-panel.glass-strong {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.65);
  backdrop-filter: blur(28px) saturate(1.65);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
html[data-theme="trang"] .lm-intro-back,
html[data-theme="trang-xam"] .lm-intro-back
{
  background: rgba(30, 58, 95, 0.14);
}
html[data-theme="trang"] .lm-intro-panel.glass-strong,
html[data-theme="trang-xam"] .lm-intro-panel.glass-strong
{
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(30, 58, 95, 0.10);
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme="xanh-muc"] .lm-intro-back,
html[data-theme="den"] .lm-intro-back,

html[data-theme="xanh-reu-vang"] .lm-intro-back
{
  background: rgba(0, 8, 24, 0.28);
}

html[data-theme="xanh-muc"] .lm-intro-panel.glass-strong,
html[data-theme="den"] .lm-intro-panel.glass-strong,

html[data-theme="xanh-reu-vang"] .lm-intro-panel.glass-strong
{
  background: rgba(10, 28, 62, 0.48);
  border: 1px solid rgba(150, 210, 255, 0.28);
  box-shadow: 0 16px 40px rgba(0, 8, 24, 0.45), inset 0 1px 0 rgba(150, 210, 255, 0.18);
}
.lm-intro-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  padding-right: 0;
  margin-bottom: 6px;
}
.lm-intro-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}
.lm-intro-foot { flex: 0 0 auto; padding-top: 4px; }
.lm-intro-body { padding-bottom: 10px; }
.lm-intro-panel:focus,
.lm-intro-panel h2:focus { outline: none; }

.lm-intro-x {
  position: static;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--navy);
  background: rgba(43, 181, 216, 0.16);
  cursor: pointer;
}
.lm-intro-panel h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 6px 0 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--navy);
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.lm-intro-slogan {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  color: var(--blue-deep);
  text-align: center;
}
.lm-intro-panel p {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--navy);
  text-wrap: pretty;
  overflow-wrap: break-word;
}
.lm-intro-close-line {
  margin: 8px 0 12px !important;
  font-weight: 750 !important;
  text-align: center;
  color: var(--blue-deep) !important;
}
.lm-intro-panel .btn-cta { width: 100%; margin-top: 4px; }
.lm-intro-panel h2 {
  text-align: left;
}
.lm-intro-tagline {
  margin: 4px 0 16px !important;
  text-align: center;
  color: var(--blue-deep) !important;
  font-weight: 650 !important;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  text-wrap: balance;
}
.lm-intro-tagline em {
  font-style: italic;
  font-weight: 650;
}
.lm-intro-sec {
  margin: 16px 0 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--navy);
  text-wrap: balance;
}
.lm-intro-benefits {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lm-intro-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.lm-intro-benefit-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(43, 181, 216, 0.16);
  color: var(--blue);
}
.lm-intro-benefit-ico svg { width: 20px; height: 20px; display: block; }
.lm-intro-benefit-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lm-intro-benefit-copy strong {
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
}
.lm-nowrap,
.lm-home-card-copy span.lm-nowrap,
.lm-hero-slogan .lm-nowrap,
.lmvn-slogan .lm-nowrap {
  white-space: nowrap;
  text-wrap: nowrap;
}
.lm-br-narrow { display: none; }
@media (max-width: 767px) {
  .lm-home-card-slogan .lm-br-narrow { display: block; }
}
.lm-intro-benefit-copy span {
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  opacity: 0.92;
  text-wrap: pretty;
}

html[data-theme="xanh-muc"] .lm-intro-panel h2,
html[data-theme="den"] .lm-intro-panel h2,

html[data-theme="xanh-muc"] .lm-intro-sec,

html[data-theme="den"] .lm-intro-sec,

html[data-theme="xanh-muc"] .lm-intro-benefit-copy strong,

html[data-theme="den"] .lm-intro-benefit-copy strong,

html[data-theme="xanh-muc"] .lm-intro-panel p,

html[data-theme="den"] .lm-intro-panel p,

html[data-theme="xanh-muc"] .lm-intro-benefit-copy span,

html[data-theme="den"] .lm-intro-benefit-copy span,

html[data-theme="xanh-reu-vang"] .lm-intro-panel h2,


html[data-theme="xanh-reu-vang"] .lm-intro-sec,


html[data-theme="xanh-reu-vang"] .lm-intro-benefit-copy strong,


html[data-theme="xanh-reu-vang"] .lm-intro-panel p,


html[data-theme="xanh-reu-vang"] .lm-intro-benefit-copy span
{
  color: var(--navy);
}

html[data-theme="xanh-muc"] .lm-intro-tagline,
html[data-theme="den"] .lm-intro-tagline,

html[data-theme="xanh-reu-vang"] .lm-intro-tagline
{
  color: var(--cyan-soft) !important;
}

html[data-theme="xanh-muc"] .lm-intro-benefit-ico,
html[data-theme="den"] .lm-intro-benefit-ico,

html[data-theme="xanh-reu-vang"] .lm-intro-benefit-ico
{
  background: rgba(126, 214, 238, 0.14);
  color: var(--cyan-soft);
}

html[data-theme="xanh-muc"] .lm-intro-x,
html[data-theme="den"] .lm-intro-x,

html[data-theme="xanh-reu-vang"] .lm-intro-x
{ color: var(--cyan-soft); background: rgba(126, 214, 238, 0.16); }
html[data-theme="trang"] .lm-intro-tagline,
html[data-theme="trang-xam"] .lm-intro-tagline
{ color: var(--blue-deep) !important; }

html[data-theme="xanh-muc"] .lm-home-card-slogan,
html[data-theme="den"] .lm-home-card-slogan,

html[data-theme="xanh-muc"] .lm-hero-slogan,

html[data-theme="den"] .lm-hero-slogan,

html[data-theme="xanh-reu-vang"] .lm-home-card-slogan,


html[data-theme="xanh-reu-vang"] .lm-hero-slogan
{ color: rgba(231, 243, 255, 0.95); }

html[data-theme="xanh-muc"] .lm-hero-title,
html[data-theme="den"] .lm-hero-title,

html[data-theme="xanh-muc"] .lm-app-label,

html[data-theme="den"] .lm-app-label,

html[data-theme="xanh-reu-vang"] .lm-hero-title,


html[data-theme="xanh-reu-vang"] .lm-app-label
{ color: #F7FBFF; }
@media (prefers-reduced-motion: reduce) {
  .lm-intro-back { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.lm-khoa-back {
  place-items: center;
  z-index: 90;
  padding: 24px 16px calc(var(--tab-h) + var(--tab-gap, 10px) + 20px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
}
.lm-khoa-panel {
  max-height: none;
  text-align: center;
  padding: 22px 18px 18px;
  width: min(100%, 360px);
}
.lm-khoa-panel p {
  margin: 0 0 16px;
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.45;
  color: var(--navy);
  text-wrap: pretty;
}
.lm-khoa-panel .lm-intro-foot { margin: 0; }
.lm-khoa-panel .btn-cta { width: 100%; margin: 0; }
body.lm-khoa-on { overflow: hidden; }
@media (min-width: 768px) {
  .lm-intro-back {
    place-items: center;
    padding: 40px 24px;
  }
  .lm-intro-panel {
    width: min(100%, 560px);
    max-height: min(80vh, 720px);
    padding: 28px 28px 22px;
  }
  .lm-ket-ban-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .lm-ket-ban { width: 100%; max-width: 420px; }
  .lm-ket-ban-note { max-width: 520px; }
}

.chat-row.is-mine .chat-meta { text-align: right; }
.chat-meta-who {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.chat-row.is-mine .chat-meta-who { justify-content: flex-end; margin-left: auto; }
.chat-meta-who strong { font-weight: 750; color: var(--navy); }
.chat-meta .hv-rank { width: 16px; height: 16px; flex: 0 0 16px; display: inline-grid; place-items: center; position: relative; }
.chat-meta .hv-rank img { width: 16px; height: 16px; display: block; }
.chat-role-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--blue-deep);
  line-height: 1.3;
}
.chat-row.is-mine .chat-role-badge { display: block; }

.lm-card-logo { overflow: hidden; border-radius: 10px; }
.lm-card-logo img { width: 36px; height: 36px; object-fit: cover; display: block; }
.lm-card-copy .lm-tt {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-top: 2px;
}
.lm-dai-dien { margin: 4px 0 0; padding: 0 0 0 18px; font-size: 13px; color: var(--navy); }
.lm-web { font-size: 13px; color: var(--blue-deep); font-weight: 650; }
.lm-loi-nhan, .lm-event-mota, .lm-file { font-size: 13px; color: var(--muted); }
.lm-card-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lm-card-acts .btn-cta { width: auto; min-width: 0; padding: 8px 12px; font-size: 13px; }
.lm-card.is-past { opacity: 0.55; filter: grayscale(0.35); }
.lm-ql { padding: 14px 16px; border-radius: 16px; display: grid; gap: 8px; }
.lm-ql p { margin: 0; font-size: 14px; color: var(--navy); line-height: 1.45; }
.lm-ql-k { display: block; font-size: 11.5px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.lm-ql-doi-tac ul { margin: 4px 0 0; padding: 0 0 0 18px; }
.lm-invite-fields { display: grid; gap: 10px; }
.lm-invite-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--navy-2);
}
.lm-invite-fields input,
.lm-invite-fields textarea {
  border: 1px solid var(--glass-border);
  background: var(--input-bg);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--navy);
  font: inherit;
}
.lm-invite-panel .btn-cta.secondary { margin-top: 8px; background: var(--glass); color: var(--navy); }

.lm-ql-wrap { display: grid; gap: 10px; }
.lm-invite-list { min-height: 48px; }
.lm-invite-picks { gap: 8px; }
.lm-invite-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass, #fff);
  color: var(--navy);
  cursor: pointer;
}
.lm-invite-pick:hover, .lm-invite-pick:focus-visible {
  outline: none;
  border-color: #1597A5;
  box-shadow: 0 0 0 2px rgba(21, 151, 165, 0.18);
}
.lm-invite-confirm-lab {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lm-invite-chosen {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--glass, #fff);
  border: 1px solid var(--glass-border);
  color: var(--navy);
  margin-bottom: 8px;
}
.lm-invite-chosen strong { font-size: 16px; }
.lm-invite-chosen span { font-size: 13px; color: var(--navy-2); }
.lm-invite-panel .btn-cta[hidden],
.lm-invite-panel .btn-cta.secondary[hidden] { display: none; }

html[data-theme="xanh-muc"] .lm-invite-pick,
html[data-theme="den"] .lm-invite-pick,

html[data-theme="xanh-muc"] .lm-invite-chosen,

html[data-theme="den"] .lm-invite-chosen,

html[data-theme="xanh-reu-vang"] .lm-invite-pick,


html[data-theme="xanh-reu-vang"] .lm-invite-chosen
{
  background: rgba(255,255,255,0.04);
  color: var(--navy);
}
@media (min-width: 768px) {
  .lm-invite-pick { max-width: 100%; }
}
.lm-page .detail-top { margin-bottom: 0; }
@media (min-width: 768px) {
  .tiles-5 { gap: 16px; }
  .tiles-5 .tile { padding: 22px 10px 18px; }
  .tiles-5 .tile span { font-size: 13px; letter-spacing: -0.02em; }
}


/* ===== Liên minh featured card on Home (v78 preview) ===== */
.lm-home-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 16px;
  padding: 20px 16px;
  border-radius: 22px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #2BB5D8 0%, #2E6FB0 52%, #1E3A5F 100%);
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  min-height: 136px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.lm-home-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -36px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.lm-home-card-ico {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1E3A5F;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35), 0 4px 10px rgba(16, 40, 72, 0.22);
  color: #fff;
  z-index: 1;
}
.lm-home-card-ico svg { width: 30px; height: 30px; display: block; }
.lm-home-card-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 6px;
  z-index: 1;
  text-align: left;
}
.lm-home-card-copy strong,
.lm-app-label {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #fff;
  text-transform: uppercase;
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.lm-home-card-copy span,
.lm-home-card-lead {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  text-wrap: pretty;
}
.lm-home-card-slogan,
.lm-hero-slogan {
  font-size: 13.5px;
  font-weight: 650;
  font-style: italic;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  text-wrap: pretty;
}
.lm-home-card {
  align-items: flex-start;
  min-height: 0;
}
.lm-home-card .chev {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #fff;
  opacity: 0.72;
  z-index: 1;
}
.lm-home-card:active { transform: translateY(1px); }

html[data-theme="trang"] .lm-home-card,
html[data-theme="trang-xam"] .lm-home-card
{
  background: linear-gradient(135deg, #4AA3D0 0%, #2E6FB0 52%, #1E3A5F 100%);
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

html[data-theme="xanh-muc"] .lm-home-card,
html[data-theme="den"] .lm-home-card,

html[data-theme="xanh-reu-vang"] .lm-home-card
{
  background: linear-gradient(135deg, #1B4F7A 0%, #163A62 50%, #0C1C3E 100%);
  box-shadow: 0 10px 28px rgba(0, 16, 48, 0.45), inset 0 1px 0 rgba(150, 210, 255, 0.2);
  color: #E7F3FF;
}

html[data-theme="xanh-muc"] .lm-home-card-ico,
html[data-theme="den"] .lm-home-card-ico,

html[data-theme="xanh-reu-vang"] .lm-home-card-ico
{
  background: #12243E;
  box-shadow: inset 0 0 0 1.5px rgba(94, 225, 242, 0.35), 0 4px 10px rgba(0, 8, 24, 0.3);
  color: #5EE1F2;
}

html[data-theme="xanh-muc"] .lm-home-card-copy strong,
html[data-theme="den"] .lm-home-card-copy strong,

html[data-theme="xanh-reu-vang"] .lm-home-card-copy strong
{ color: #F7FBFF; }

html[data-theme="xanh-muc"] .lm-home-card-copy span,
html[data-theme="den"] .lm-home-card-copy span,

html[data-theme="xanh-reu-vang"] .lm-home-card-copy span
{ color: rgba(231, 243, 255, 0.86); }

@media (prefers-reduced-motion: reduce) {
  .lm-home-card:active { transform: none; }
}

@media (min-width: 768px) {
  .lm-home-card {
    margin: 0 0 22px;
    padding: 22px 24px;
    min-height: 168px;
    border-radius: 24px;
    gap: 18px;
  }
  .lm-home-card-ico {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }
  .lm-home-card-ico svg { width: 36px; height: 36px; }
  .lm-home-card-copy strong { font-size: 1.5rem; }
  .lm-home-card-copy span { font-size: 15.5px; }
  .lm-home-card .chev { width: 22px; height: 22px; flex-basis: 22px; }
}




.lm-cap-peer {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--blue-deep, #245E96);
}

html[data-theme="xanh-muc"] .lm-cap-peer,
html[data-theme="den"] .lm-cap-peer,

html[data-theme="xanh-reu-vang"] .lm-cap-peer
{ color: #7ED6EE; }
.lm-dang-form {
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}
.lm-dang-form[hidden] { display: none; }
.lm-dang-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 650;
  color: var(--navy, #1E3A5F);
}
.lm-dang-form input,
.lm-dang-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(46, 111, 176, 0.28);
  font: inherit;
}

html[data-theme="xanh-muc"] .lm-dang-form label,
html[data-theme="den"] .lm-dang-form label,

html[data-theme="xanh-reu-vang"] .lm-dang-form label
{ color: #E7F3FF; }

.lm-cap-explainer {
  margin: 0 0 16px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(46, 111, 176, 0.08);
  box-shadow: inset 0 0 0 1px rgba(46, 111, 176, 0.18);
}
.lm-cap-explainer h2,
#lm-cap-ex-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy, #1E3A5F);
}
.lm-cap-ex-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 12px;
}
@media (min-width: 768px) {
  .lm-cap-ex-pair { grid-template-columns: 1fr 1fr; }
}
.lm-cap-ex-item { margin: 0; min-width: 0; }
.lm-cap-ex-item p {
  margin: 6px 0 0;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted);
}
.lm-cap-wrap { margin: 4px 0 0; }
.lm-cap-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin: 2px 0 0;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.2;
  background: rgba(46, 111, 176, 0.16);
  color: var(--blue-deep, #245E96);
}
.lm-cap-badge .lm-cap-ico,
.lm-cap-badge svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
}
.lm-cap-badge.is-cap1 {
  background: rgba(43, 181, 216, 0.22);
  color: #1A6FA0;
}
.lm-cap-badge.is-cap2 {
  background: #1E3A5F;
  color: #F7FBFF;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.28);
}
.lm-cap-badge.is-na {
  background: rgba(122, 140, 163, 0.16);
  color: var(--navy-2, #2A4A73);
}
.lm-cap-remain,
.lm-cap-lock,
.lm-cap-dates {
  display: block;
  margin: 4px 0 0;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--blue-deep, #245E96);
  text-wrap: pretty;
}
.lm-hh-copy .lm-cap-wrap { margin-top: 4px; }
.lm-hh-copy .lm-cap-remain,
.lm-hh-copy .lm-cap-dates { font-size: 11.5px; }
[data-lm-dang].is-lm-khoa,
[data-lm-km].is-lm-khoa,
[data-lm-dang][disabled],
[data-lm-km][disabled] {
  opacity: 0.5;
  pointer-events: none;
}

html[data-theme="xanh-muc"] .lm-cap-explainer,
html[data-theme="den"] .lm-cap-explainer,

html[data-theme="xanh-reu-vang"] .lm-cap-explainer
{
  background: rgba(27, 79, 122, 0.35);
  box-shadow: inset 0 0 0 1px rgba(94, 225, 242, 0.22);
}

html[data-theme="xanh-muc"] .lm-cap-explainer h2,
html[data-theme="den"] .lm-cap-explainer h2,

html[data-theme="xanh-muc"] #lm-cap-ex-title,

html[data-theme="den"] #lm-cap-ex-title,

html[data-theme="xanh-reu-vang"] .lm-cap-explainer h2,


html[data-theme="xanh-reu-vang"] #lm-cap-ex-title
{ color: #E7F3FF; }

html[data-theme="xanh-muc"] .lm-cap-ex-item p,
html[data-theme="den"] .lm-cap-ex-item p,

html[data-theme="xanh-reu-vang"] .lm-cap-ex-item p
{ color: rgba(231, 243, 255, 0.82); }

html[data-theme="xanh-muc"] .lm-cap-badge.is-cap1,
html[data-theme="den"] .lm-cap-badge.is-cap1,

html[data-theme="xanh-reu-vang"] .lm-cap-badge.is-cap1
{
  background: rgba(126, 214, 238, 0.2);
  color: #7ED6EE;
}

html[data-theme="xanh-muc"] .lm-cap-badge.is-cap2,
html[data-theme="den"] .lm-cap-badge.is-cap2,

html[data-theme="xanh-reu-vang"] .lm-cap-badge.is-cap2
{
  background: linear-gradient(145deg, #2A4A73, #163A62);
  color: #F7FBFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

html[data-theme="xanh-muc"] .lm-cap-badge.is-na,
html[data-theme="den"] .lm-cap-badge.is-na,

html[data-theme="xanh-reu-vang"] .lm-cap-badge.is-na
{
  background: rgba(150, 180, 210, 0.14);
  color: rgba(231, 243, 255, 0.8);
}

html[data-theme="xanh-muc"] .lm-cap-remain,
html[data-theme="den"] .lm-cap-remain,

html[data-theme="xanh-muc"] .lm-cap-lock,

html[data-theme="den"] .lm-cap-lock,

html[data-theme="xanh-muc"] .lm-cap-dates,

html[data-theme="den"] .lm-cap-dates,

html[data-theme="xanh-reu-vang"] .lm-cap-remain,


html[data-theme="xanh-reu-vang"] .lm-cap-lock,


html[data-theme="xanh-reu-vang"] .lm-cap-dates
{ color: #7ED6EE; }

.lm-mou {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lm-mou-status,
.lm-mou-wait,
.lm-mou-meta,
.lm-mou-flash {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  color: var(--navy, #1E3A5F);
  text-wrap: pretty;
}
.lm-mou-wait,
.lm-mou-meta { color: var(--muted, #5A6F88); font-weight: 600; }
.lm-mou-flash {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(46, 111, 176, 0.1);
}
.lm-mou-flash.is-err { background: rgba(176, 56, 56, 0.12); color: #8B1E1E; }
.lm-mou-sides { display: flex; flex-direction: column; gap: 10px; }
.lm-mou-side { padding: 14px 14px 12px; border-radius: 18px; }
.lm-mou-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.lm-mou-side-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy, #1E3A5F);
  text-wrap: pretty;
}
.lm-mou-mine {
  font-size: 11px;
  font-weight: 750;
  color: var(--blue-deep, #245E96);
  background: rgba(46, 111, 176, 0.12);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.lm-mou-ten {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy, #1E3A5F);
  text-wrap: pretty;
}
.lm-mou-form { display: flex; flex-direction: column; gap: 8px; }
.lm-mou-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 650; color: var(--navy, #1E3A5F); }
.lm-mou-field input,
.lm-mou-field textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
  color: var(--navy, #1E3A5F);
  background: rgba(255,255,255,0.72);
  box-shadow: inset 0 0 0 1px rgba(46, 111, 176, 0.16);
}
.lm-mou-field.is-err input,
.lm-mou-field.is-err textarea { box-shadow: inset 0 0 0 1.5px #B03838; }
.lm-mou-err { color: #8B1E1E; font-size: 12px; font-weight: 650; }
.lm-mou-dl { margin: 0; display: grid; gap: 6px; }
.lm-mou-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 8px; font-size: 13.5px; }
.lm-mou-row dt { margin: 0; color: var(--muted, #5A6F88); font-weight: 650; text-wrap: pretty; }
.lm-mou-row dd { margin: 0; color: var(--navy, #1E3A5F); font-weight: 700; text-wrap: pretty; word-break: break-word; }
.lm-mou-toolbar { display: flex; flex-direction: column; gap: 8px; }
.lm-mou-toolbar .btn-cta { width: 100%; margin: 0; }
.lm-mou-ban-in-tools { margin: 0 0 10px; }
.lm-mou-ban-in-frame {
  width: 100%;
  min-height: 70vh;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

html[data-theme="xanh-muc"] .lm-mou-status,
html[data-theme="den"] .lm-mou-status,

html[data-theme="xanh-muc"] .lm-mou-ten,

html[data-theme="den"] .lm-mou-ten,

html[data-theme="xanh-muc"] .lm-mou-side-head h3,

html[data-theme="den"] .lm-mou-side-head h3,

html[data-theme="xanh-muc"] .lm-mou-field,

html[data-theme="den"] .lm-mou-field,

html[data-theme="xanh-muc"] .lm-mou-row dd,

html[data-theme="den"] .lm-mou-row dd,

html[data-theme="xanh-reu-vang"] .lm-mou-status,


html[data-theme="xanh-reu-vang"] .lm-mou-ten,


html[data-theme="xanh-reu-vang"] .lm-mou-side-head h3,


html[data-theme="xanh-reu-vang"] .lm-mou-field,


html[data-theme="xanh-reu-vang"] .lm-mou-row dd
{ color: #E7F3FF; }

html[data-theme="xanh-muc"] .lm-mou-wait,
html[data-theme="den"] .lm-mou-wait,

html[data-theme="xanh-muc"] .lm-mou-meta,

html[data-theme="den"] .lm-mou-meta,

html[data-theme="xanh-muc"] .lm-mou-row dt,

html[data-theme="den"] .lm-mou-row dt,

html[data-theme="xanh-reu-vang"] .lm-mou-wait,


html[data-theme="xanh-reu-vang"] .lm-mou-meta,


html[data-theme="xanh-reu-vang"] .lm-mou-row dt
{ color: rgba(231, 243, 255, 0.72); }

html[data-theme="xanh-muc"] .lm-mou-field input,
html[data-theme="den"] .lm-mou-field input,

html[data-theme="xanh-muc"] .lm-mou-field textarea,

html[data-theme="den"] .lm-mou-field textarea,

html[data-theme="xanh-reu-vang"] .lm-mou-field input,


html[data-theme="xanh-reu-vang"] .lm-mou-field textarea
{
  background: rgba(10, 28, 62, 0.55);
  color: #E7F3FF;
  box-shadow: inset 0 0 0 1px rgba(94, 225, 242, 0.22);
}

html[data-theme="xanh-muc"] .lm-mou-mine,
html[data-theme="den"] .lm-mou-mine,

html[data-theme="xanh-reu-vang"] .lm-mou-mine
{ color: #7ED6EE; background: rgba(94, 225, 242, 0.14); }

html[data-theme="xanh-muc"] .lm-mou-flash,
html[data-theme="den"] .lm-mou-flash,

html[data-theme="xanh-reu-vang"] .lm-mou-flash
{ background: rgba(94, 225, 242, 0.12); color: #E7F3FF; }

html[data-theme="xanh-muc"] .lm-mou-flash.is-err,
html[data-theme="den"] .lm-mou-flash.is-err,

html[data-theme="xanh-reu-vang"] .lm-mou-flash.is-err
{ background: rgba(200, 80, 80, 0.2); color: #FFC9C9; }

html[data-theme="xanh-muc"] .lm-mou-err,
html[data-theme="den"] .lm-mou-err,

html[data-theme="xanh-reu-vang"] .lm-mou-err
{ color: #FFC9C9; }


.lm-cap-compare {
  margin: 0 0 8px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(46, 111, 176, 0.12);
}
.lm-cap-compare-head,
.lm-cap-compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px 36px;
  align-items: center;
  gap: 2px;
  padding: 7px 8px;
}
.lm-cap-compare-head {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy, #1E3A5F);
  background: rgba(46, 111, 176, 0.1);
}
.lm-cap-compare-head > span:not(.lm-cap-compare-feat),
.lm-cap-compare-row > span:not(.lm-cap-compare-feat) {
  text-align: center;
}
.lm-cap-compare-row + .lm-cap-compare-row {
  border-top: 1px solid rgba(46, 111, 176, 0.1);
}
.lm-cap-compare-feat {
  min-width: 0;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--navy, #1E3A5F);
}
.lm-cap-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0 auto;
}
.lm-cap-mark svg { width: 18px; height: 18px; display: block; }
.lm-cap-mark.is-ok { color: #1E3A5F; }
.lm-cap-mark.is-no { color: #7A8CA3; }
.lm-cap-mark.is-empty { color: #7A8CA3; font-weight: 600; letter-spacing: 0; }
.lm-cap-foot {
  margin: 0;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--blue-deep, #245E96);
}

html[data-theme="xanh-muc"] .lm-cap-compare,
html[data-theme="den"] .lm-cap-compare,

html[data-theme="xanh-reu-vang"] .lm-cap-compare
{
  background: rgba(12, 28, 62, 0.45);
  box-shadow: inset 0 0 0 1px rgba(94, 225, 242, 0.16);
}

html[data-theme="xanh-muc"] .lm-cap-compare-head,
html[data-theme="den"] .lm-cap-compare-head,

html[data-theme="xanh-reu-vang"] .lm-cap-compare-head
{
  background: rgba(94, 225, 242, 0.1);
  color: #E7F3FF;
}

html[data-theme="xanh-muc"] .lm-cap-compare-row + .lm-cap-compare-row,
html[data-theme="den"] .lm-cap-compare-row + .lm-cap-compare-row,

html[data-theme="xanh-reu-vang"] .lm-cap-compare-row + .lm-cap-compare-row
{
  border-top-color: rgba(94, 225, 242, 0.12);
}

html[data-theme="xanh-muc"] .lm-cap-compare-feat,
html[data-theme="den"] .lm-cap-compare-feat,

html[data-theme="xanh-reu-vang"] .lm-cap-compare-feat
{ color: #E7F3FF; }

html[data-theme="xanh-muc"] .lm-cap-mark.is-ok,
html[data-theme="den"] .lm-cap-mark.is-ok,

html[data-theme="xanh-reu-vang"] .lm-cap-mark.is-ok
{ color: #7ED6EE; }

html[data-theme="xanh-muc"] .lm-cap-mark.is-no,
html[data-theme="den"] .lm-cap-mark.is-no,
html[data-theme="xanh-muc"] .lm-cap-mark.is-empty,
html[data-theme="den"] .lm-cap-mark.is-empty,

html[data-theme="xanh-reu-vang"] .lm-cap-mark.is-no,
html[data-theme="xanh-reu-vang"] .lm-cap-mark.is-empty
{ color: rgba(231, 243, 255, 0.45); }

html[data-theme="xanh-muc"] .lm-cap-foot,
html[data-theme="den"] .lm-cap-foot,

html[data-theme="xanh-reu-vang"] .lm-cap-foot
{ color: #7ED6EE; }


.sr-only {
  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;
}

/* ===== VDTI Alliance member hub (v79 preview) ===== */

.lm-demo-banner-note {
  margin-top: -4px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0;
  white-space: normal;
  line-height: 1.35;
  border-radius: 14px;
}
.lm-hh-copy .lm-tt {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  background: rgba(122,140,163,0.16);
  color: var(--navy-2);
}
.lm-tt.is-cho-vdti, .lm-hh-row.is-cho-vdti .lm-tt {
  background: rgba(196,114,12,0.16);
  color: #8A4B00;
}
.lm-yeucau-vdti-wrap { margin: 0 0 10px; }
.lm-yeucau-vdti-wrap:empty, .lm-yeucau-vdti-wrap[hidden] { display: none; }
.lm-yeucau-vdti { display: inline-block; margin-top: 4px; }

.lm-tt.is-vdti-tu-choi, .lm-hh-row.is-vdti-tu-choi .lm-tt {
  background: rgba(176, 46, 46, 0.14);
  color: #8B1E1E;
}
.lm-tt.is-vdti-xac-nhan {
  background: rgba(21,151,165,0.16);
  color: #0E6B75;
}
.lm-vdti-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.03em;
}
.lm-vdti-badge.is-cho { background: rgba(196,114,12,0.16); color: #8A4B00; }
.lm-vdti-badge.is-ok { background: rgba(21,151,165,0.16); color: #0E6B75; }
.hv-sec-head .lm-vdti-badge { margin: 0 0 0 8px; }

html[data-theme="xanh-muc"] .lm-tt.is-cho-vdti,
html[data-theme="den"] .lm-tt.is-cho-vdti,

html[data-theme="xanh-muc"] .lm-vdti-badge.is-cho,

html[data-theme="den"] .lm-vdti-badge.is-cho,

html[data-theme="xanh-reu-vang"] .lm-tt.is-cho-vdti,


html[data-theme="xanh-reu-vang"] .lm-vdti-badge.is-cho
{ color: #FFD056; background: rgba(196,114,12,0.28); }

html[data-theme="xanh-muc"] .lm-tt.is-vdti-tu-choi,
html[data-theme="den"] .lm-tt.is-vdti-tu-choi,

html[data-theme="xanh-reu-vang"] .lm-tt.is-vdti-tu-choi
{ color: #FFB4B4; background: rgba(176,46,46,0.28); }

html[data-theme="xanh-muc"] .lm-tt.is-vdti-xac-nhan,
html[data-theme="den"] .lm-tt.is-vdti-xac-nhan,

html[data-theme="xanh-muc"] .lm-vdti-badge.is-ok,

html[data-theme="den"] .lm-vdti-badge.is-ok,

html[data-theme="xanh-reu-vang"] .lm-tt.is-vdti-xac-nhan,


html[data-theme="xanh-reu-vang"] .lm-vdti-badge.is-ok
{ color: #7EE0EA; background: rgba(21,151,165,0.28); }

.lm-demo-banner {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: #3A2508;
  background: repeating-linear-gradient(-45deg, #FFE08A, #FFE08A 8px, #FFD056 8px, #FFD056 16px);
}
.lm-hero {
  position: relative;
  margin: 0 0 16px;
  padding: 18px 16px 16px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, #2BB5D8 0%, #2E6FB0 52%, #1E3A5F 100%);
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.24), inset 0 1px 0 rgba(255,255,255,0.28);
  overflow: hidden;
}
.lm-hero::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -56px;
  top: auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  pointer-events: none;
  z-index: 0;
}
.lm-hero-main { position: relative; z-index: 1; }
.lm-brand {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.lm-hero-title,
.lm-hero-title.lm-app-label {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #fff;
  white-space: normal;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
  text-align: left;
}
.lm-hero-lead {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  text-wrap: pretty;
}
.lm-hero-slogan {
  margin: 0;
  text-align: left;
}
button.lm-hero-intro,
.lm-hero-intro {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.lm-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.lm-hero-grid li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 8px 8px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
}
.lm-hero-grid-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(30, 58, 95, 0.28);
}
.lm-hero-grid-ico svg,
.lm-hero-grid svg { width: 16px; height: 16px; display: block; color: #fff; }
.lm-info-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  height: auto;
  min-height: 36px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1E3A5F;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(16, 40, 72, 0.16);
}
.lm-info-hero svg { width: 16px; height: 16px; display: block; flex: 0 0 16px; }

.lm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 16px;
}
.lm-stat {
  padding: 14px 8px 12px;
  border-radius: 16px;
  text-align: center;
  background: var(--glass, rgba(255,255,255,0.72));
  box-shadow: 0 4px 14px rgba(30, 58, 95, 0.06);
}
.lm-stat strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.15;
  white-space: nowrap;
}
.lm-stat span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted, var(--navy-2));
}

.lm-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 6px;
  margin: 0 0 20px;
}
.lm-ico {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}
.lm-ico-well {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--glass, #fff);
  color: var(--blue-deep);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.08);
}
.lm-ico-well svg { width: 24px; height: 24px; display: block; }

.lm-hh-list { display: grid; gap: 8px; }
.lm-hh-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--glass, #fff);
}
.lm-hh-ini {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--cyan, #2BB5D8), var(--blue, #2E6FB0));
  overflow: hidden;
}
.lm-hh-ini.lm-hh-logo {
  background: #fff;
  padding: 2px;
}
.lm-hh-ini.lm-hh-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

html[data-theme="xanh-muc"] .lm-hh-ini.lm-hh-logo,
html[data-theme="den"] .lm-hh-ini.lm-hh-logo,

html[data-theme="xanh-reu-vang"] .lm-hh-ini.lm-hh-logo
{ background: #fff; }
.lm-hh-copy { min-width: 0; display: grid; gap: 2px; }
.lm-hh-copy strong {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 14.5px;
  color: var(--navy);
}
.lm-hh-copy span { font-size: 12.5px; color: var(--muted, var(--navy-2)); }
.lm-hh-role {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}
.lm-hh-copy .lm-hh-ten {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lm-hh-copy .lm-chu-quan-tag {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--navy, #1E3A5F);
}

.lm-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.lm-step {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 8px 10px 8px;
  border-radius: 14px;
  background: var(--glass, rgba(255,255,255,0.7));
}
.lm-step-n {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, var(--cyan, #3db6e5) 0%, var(--blue) 100%);
}
.lm-step-copy { display: grid; gap: 2px; flex: 1 1 0; min-width: 0; }
.lm-step-copy strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  text-wrap: nowrap;
  letter-spacing: -0.015em;
  overflow: hidden;
  text-overflow: clip;
}
.lm-step-copy span,
.lm-step-copy p {
  font-size: 12.5px;
  color: var(--muted, var(--navy-2));
  line-height: 1.45;
  margin: 0;
  text-wrap: pretty;
}
.lm-step-copy p + p { margin-top: 6px; }
@media (max-width: 374px) {
  .lm-step-copy strong { font-size: 13.25px; letter-spacing: -0.025em; }
}
@media (max-width: 359px) {
  .lm-step-copy strong { font-size: 12.75px; letter-spacing: -0.03em; }
}

.lm-the-card {
  margin: 0 0 16px;
  padding: 22px 18px 20px;
  border-radius: 22px;
  color: #F8F1DE;
  background: linear-gradient(160deg, #1E3A5F 0%, #16314F 55%, #12243E 100%);
  box-shadow: 0 12px 28px rgba(16, 32, 54, 0.28);
}
.lm-the-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  color: #7ED6EE;
}
.lm-the-title {
  margin: 2px 0 16px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #E7F3FF;
}
.lm-the-lab {
  margin: 10px 0 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 241, 222, 0.62);
}
.lm-the-name {
  margin: 2px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lm-the-id, .lm-the-chu, .lm-the-st { margin: 2px 0 0; font-size: 15px; font-weight: 650; }
.lm-the-qr-wrap {
  margin: 16px 0 8px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  color: #1E3A5F;
  text-align: center;
}
.lm-the-qr { width: 168px; height: 168px; margin: 0 auto; }
.lm-the-qr svg { width: 100%; height: 100%; display: block; }
.lm-the-qr-empty {
  display: grid;
  place-items: center;
  height: 120px;
  font-size: 14px;
  font-weight: 700;
  color: #7A8CA3;
}
.lm-the-qr-cd {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  color: #2A4A73;
}
.lm-id-types { margin: 0; padding: 0 0 0 18px; display: grid; gap: 8px; color: var(--navy); font-size: 13.5px; line-height: 1.45; }
.lm-placeholder-lead { margin: 0 0 10px; font-size: 14px; color: var(--navy-2); line-height: 1.45; }
.lm-dq-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lm-dq-list li {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--glass, #fff);
  color: var(--navy);
  font-weight: 650;
}



.hv-the-wrap { margin: 0 0 16px; min-width: 0; }
.hv-the-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  height: auto;
  margin: 0;
  padding: 16px 18px 14px;
  border-radius: 16px;
  overflow: hidden;
  color: #E7F3FF;
  background-color: #1E3A5F;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 22%, transparent 48%),
    radial-gradient(ellipse 80% 60% at 8% -10%, rgba(126, 214, 238, 0.28), transparent 58%),
    radial-gradient(ellipse 70% 55% at 108% 118%, rgba(43, 181, 216, 0.2), transparent 52%),
    linear-gradient(155deg, #2A4A73 0%, #1E3A5F 48%, #16314F 100%);
  box-shadow:
    0 14px 32px rgba(30, 58, 95, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.hv-the-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.2) 0%, transparent 26%, transparent 62%, rgba(43, 181, 216, 0.08) 100%);
}
.hv-the-card > * { position: relative; z-index: 1; }
.hv-the-motif,
.hv-the-card > .hv-the-motif {
  position: absolute !important;
  z-index: 0;
  pointer-events: none;
  right: -6%;
  bottom: -8%;
  width: 78%;
  height: 72%;
  overflow: hidden;
}
.hv-the-motif img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left bottom;
  display: block;
  opacity: 0.95;
}
.hv-the-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.hv-the-org {
  flex: 1 1 auto;
  min-width: 0;
  margin: 2px 0 0;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.25;
  color: #E7F3FF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hv-the-tier {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 8px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(126, 214, 238, 0.5);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  text-align: center;
}
.hv-the-tier.is-long {
  letter-spacing: 0.06em;
  font-size: 7.5px;
  padding: 4px 7px 3px;
}
.hv-the-foot { min-width: 0; padding-top: 8px; }
.hv-the-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hv-the-ma {
  margin: 7px 0 0;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.14em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: #D7F3FA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hv-the-qr-row {
  display: flex;
  justify-content: flex-end;
  margin: 8px 2px 0 0;
}
.hv-the-qr-pad {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.14);
}
.hv-the-qr,
.hv-the-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hv-the-qr-empty {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 14px;
  font-weight: 700;
  color: #7A8CA3;
}
html[data-theme="trang"] .hv-the-card,
html[data-theme="trang-xam"] .hv-the-card
{
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 22%, transparent 48%),
    radial-gradient(ellipse 80% 60% at 8% -10%, rgba(126, 214, 238, 0.22), transparent 58%),
    linear-gradient(155deg, #2E6FB0 0%, #1E3A5F 52%, #1A3354 100%);
  box-shadow:
    0 14px 28px rgba(30, 58, 95, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

html[data-theme="xanh-muc"] .hv-the-card,
html[data-theme="den"] .hv-the-card,

html[data-theme="xanh-reu-vang"] .hv-the-card
{
  background-image:
    linear-gradient(180deg, rgba(126, 214, 238, 0.12) 0%, transparent 28%),
    radial-gradient(ellipse 80% 60% at 8% -10%, rgba(94, 225, 242, 0.18), transparent 58%),
    radial-gradient(ellipse 70% 55% at 108% 118%, rgba(43, 181, 216, 0.16), transparent 52%),
    linear-gradient(155deg, #1A4A73 0%, #132844 50%, #0C1C3E 100%);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(126, 214, 238, 0.28),
    inset 0 1px 0 rgba(199, 236, 255, 0.22);
}

html[data-theme="trang"] .lm-hero,
html[data-theme="trang-xam"] .lm-hero
{
  background: linear-gradient(145deg, #4AA3D0 0%, #2E6FB0 52%, #1E3A5F 100%);
}

html[data-theme="xanh-muc"] .lm-hero,
html[data-theme="den"] .lm-hero,

html[data-theme="xanh-reu-vang"] .lm-hero
{
  background: linear-gradient(145deg, #1B4F7A 0%, #163A62 50%, #0C1C3E 100%);
}

html[data-theme="xanh-muc"] .lm-hero,
html[data-theme="den"] .lm-hero,

html[data-theme="xanh-muc"] .lm-hero-title,

html[data-theme="den"] .lm-hero-title,

html[data-theme="xanh-muc"] .lm-hero-lead,

html[data-theme="den"] .lm-hero-lead,

html[data-theme="xanh-reu-vang"] .lm-hero,


html[data-theme="xanh-reu-vang"] .lm-hero-title,


html[data-theme="xanh-reu-vang"] .lm-hero-lead
{ color: #E7F3FF; }

html[data-theme="xanh-muc"] .lm-brand,
html[data-theme="den"] .lm-brand,

html[data-theme="xanh-reu-vang"] .lm-brand
{ color: rgba(231, 243, 255, 0.86); }

html[data-theme="xanh-muc"] .lm-hero-grid li,
html[data-theme="den"] .lm-hero-grid li,

html[data-theme="xanh-reu-vang"] .lm-hero-grid li
{ background: rgba(255, 255, 255, 0.08); color: #E7F3FF; }

html[data-theme="xanh-muc"] .lm-quyen-pop,
html[data-theme="den"] .lm-quyen-pop,

html[data-theme="xanh-reu-vang"] .lm-quyen-pop
{
  background: #15243C;
  color: #E7F3FF;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(94, 225, 242, 0.22);
}

html[data-theme="xanh-muc"] .lm-chu-quan-tag,
html[data-theme="den"] .lm-chu-quan-tag,

html[data-theme="xanh-muc"] .lm-hh-copy .lm-chu-quan-tag,

html[data-theme="den"] .lm-hh-copy .lm-chu-quan-tag,

html[data-theme="xanh-reu-vang"] .lm-chu-quan-tag,


html[data-theme="xanh-reu-vang"] .lm-hh-copy .lm-chu-quan-tag
{
  background: #1A4A73;
  color: #E7F3FF;
  box-shadow: inset 0 0 0 1px rgba(126, 214, 238, 0.35);
}

html[data-theme="xanh-muc"] .lm-hh-copy .lm-hh-ten,
html[data-theme="den"] .lm-hh-copy .lm-hh-ten,

html[data-theme="xanh-reu-vang"] .lm-hh-copy .lm-hh-ten
{
  color: #E7F3FF;
}


html[data-theme="xanh-muc"] .lm-hero-grid-ico,
html[data-theme="den"] .lm-hero-grid-ico,

html[data-theme="xanh-reu-vang"] .lm-hero-grid-ico
{ background: rgba(12, 28, 62, 0.55); }

html[data-theme="xanh-muc"] .lm-info-hero,
html[data-theme="den"] .lm-info-hero,

html[data-theme="xanh-reu-vang"] .lm-info-hero
{ color: #E7F3FF; background: rgba(18, 36, 62, 0.85); box-shadow: inset 0 0 0 1px rgba(150, 210, 255, 0.28); }

html[data-theme="xanh-muc"] .lm-stat,
html[data-theme="den"] .lm-stat,

html[data-theme="xanh-muc"] .lm-ico-well,

html[data-theme="den"] .lm-ico-well,

html[data-theme="xanh-muc"] .lm-hh-row,

html[data-theme="den"] .lm-hh-row,

html[data-theme="xanh-muc"] .lm-step,

html[data-theme="den"] .lm-step,

html[data-theme="xanh-muc"] .lm-dq-list li,

html[data-theme="den"] .lm-dq-list li,

html[data-theme="xanh-reu-vang"] .lm-stat,


html[data-theme="xanh-reu-vang"] .lm-ico-well,


html[data-theme="xanh-reu-vang"] .lm-hh-row,


html[data-theme="xanh-reu-vang"] .lm-step,


html[data-theme="xanh-reu-vang"] .lm-dq-list li
{
  background: rgba(16, 28, 48, 0.72);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

html[data-theme="xanh-muc"] .lm-the-card,
html[data-theme="den"] .lm-the-card,

html[data-theme="xanh-reu-vang"] .lm-the-card
{
  background: linear-gradient(160deg, #101C30 0%, #16314F 50%, #0C1C3E 100%);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

@media (prefers-reduced-motion: reduce) {
  .lm-ico { scroll-behavior: auto; }
}

@media (min-width: 768px) {
  .lm-hero { padding: 28px 32px; border-radius: 24px; }
  .lm-hero-title { font-size: 2rem; }
  .lm-hero-lead { font-size: 16px; }
  .lm-hero-grid { grid-template-columns: repeat(4, 1fr); }
  .lm-hero-grid li { font-size: 13px; }
  .lm-stats { gap: 14px; margin-bottom: 22px; }
  .lm-stat { padding: 20px 12px; }
  .lm-stat strong { font-size: 1.85rem; }
  .lm-icons { grid-template-columns: repeat(6, 1fr); margin-bottom: 28px; }
  .lm-ico { font-size: 13.5px; }
  .lm-ico-well { width: 60px; height: 60px; }
  .lm-stepper { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lm-the-card { padding: 32px 36px; max-width: 520px; }
  .hv-the-card, .hv-the-wrap { max-width: 520px; }
}

.lm-info-hero { white-space: nowrap; }
.lm-stat.is-long strong { font-size: 1.02rem; letter-spacing: -0.02em; line-height: 1.2; padding: 0 4px; }
.lm-page .hv-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.lm-page .hv-sec-head h2 { margin: 0; }
.lm-page .hv-sec-head a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-deep);
  white-space: nowrap;
  text-decoration: none;
}

.lm-hh-row.is-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.lm-hh-row.is-link .chev {
  margin-left: auto;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--muted, var(--navy-2));
  opacity: 0.7;
}
.lm-dt-card {
  margin: 0 0 16px;
  padding: 20px 16px 16px;
  border-radius: 22px;
  background: var(--glass, #fff);
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.08);
}
.lm-dt-kicker {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep, #245E96);
}
.lm-dt-ten {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.25;
}
.lm-dt-tinh { margin: 0 0 10px; font-size: 14.5px; font-weight: 650; color: var(--navy-2); }
.lm-dt-note {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--navy-2);
}

html[data-theme="xanh-muc"] .lm-dt-card,
html[data-theme="den"] .lm-dt-card,

html[data-theme="xanh-reu-vang"] .lm-dt-card
{
  background: rgba(16, 28, 48, 0.72);
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}
@media (min-width: 768px) {
  .lm-dt-card { padding: 28px 32px; }
  .lm-dt-ten { font-size: 1.7rem; }
}


/* ===== v102 Quét thẻ ===== */
.qt-page { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.qt-hint {
  margin: 0 0 14px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
  color: var(--blue-deep);
  text-wrap: pretty;
}
.qt-stage {
  margin: 0 0 14px;
  padding: 12px;
}
.qt-view {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #0C1C3E;
}
.qt-view video,
.qt-view canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qt-view canvas { pointer-events: none; }
.qt-frame {
  position: absolute;
  inset: 18px;
  pointer-events: none;
  z-index: 2;
}
.qt-frame::before,
.qt-frame::after,
.qt-frame i::before,
.qt-frame i::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(126, 214, 238, 0.95);
  border-style: solid;
  filter: drop-shadow(0 0 6px rgba(43, 181, 216, 0.45));
}
.qt-frame::before { top: 0; left: 0; border-width: 3px 0 0 3px; border-radius: 6px 0 0 0; }
.qt-frame::after { top: 0; right: 0; border-width: 3px 3px 0 0; border-radius: 0 6px 0 0; }
.qt-frame i::before { bottom: 0; left: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 6px; }
.qt-frame i::after { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-radius: 0 0 6px 0; }
.qt-shutter {
  position: absolute;
  inset: 18px;
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(8, 20, 40, 0.35);
  pointer-events: none;
  z-index: 1;
}
.qt-view-msg {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 28px 24px;
  text-align: center;
  color: rgba(231, 243, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-wrap: pretty;
  background: rgba(12, 28, 62, 0.28);
}
.qt-view-msg[hidden],
.qt-sheet[hidden],
.qt-manual[hidden] { display: none !important; }
.qt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}
.qt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.qt-btn svg { width: 18px; height: 18px; display: block; }
.qt-btn:disabled { opacity: 0.45; }
.qt-btn.is-on { background: rgba(43, 181, 216, 0.18); color: var(--blue-deep); }
.qt-manual {
  margin: 0 0 14px;
  padding: 14px 16px;
}
.qt-manual label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.qt-manual input {
  width: 100%;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--navy);
  font: inherit;
  margin-bottom: 10px;
}
.qt-sheet {
  margin: 0 0 8px;
  padding: 16px;
}
.qt-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}
.qt-pill.is-ok { background: var(--ok-bg); color: var(--ok); }
.qt-pill.is-bad { background: rgba(196, 122, 18, 0.16); color: var(--warn); }
.qt-pill.is-warn { background: rgba(196, 122, 18, 0.12); color: var(--warn); border: 1px solid rgba(196, 122, 18, 0.35); }
.qt-sheet-ten {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--navy);
  text-wrap: balance;
}
.qt-sheet-line {
  margin: 0 0 2px;
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.45;
  color: var(--navy);
  text-wrap: pretty;
}
.qt-sheet-k {
  color: var(--muted);
  font-weight: 650;
}
.qt-sheet-msg {
  margin: 0;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
  color: var(--navy);
  text-wrap: pretty;
}

html[data-theme="xanh-muc"] .qt-view,
html[data-theme="den"] .qt-view,

html[data-theme="xanh-reu-vang"] .qt-view
{ background: #040C1A; }

html[data-theme="xanh-muc"] .qt-btn.is-on,
html[data-theme="den"] .qt-btn.is-on,

html[data-theme="xanh-reu-vang"] .qt-btn.is-on
{ color: var(--cyan-soft); }
@media (min-width: 768px) {
  .qt-view { max-width: 420px; margin: 0 auto; }
  .qt-actions { max-width: 420px; margin-left: auto; margin-right: auto; }
  .qt-manual, .qt-sheet, .qt-hint { max-width: 560px; margin-left: auto; margin-right: auto; }
}


/* ===== v102 Trang DEMO Liên Minh Hiệp Hội Du Lịch Việt Nam (/lien-minh/) ===== */
.lmvn-body { min-height: 100dvh; }
.lmvn-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 16px 16px 48px;
}
.lmvn-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.lmvn-kicker,
.lmvn-demo-pill {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(196, 122, 18, 0.16);
  color: var(--warn);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lmvn-theme-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.lmvn-hero {
  padding: 28px 20px 24px;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(145deg, #2BB5D8 0%, #2E6FB0 52%, #1E3A5F 100%);
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.24), inset 0 1px 0 rgba(255,255,255,0.28);
  border: 0;
}
.lmvn-hero .lmvn-demo-pill {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  margin-bottom: 14px;
}
.lmvn-title {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.lmvn-lead {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255,255,255,0.94);
  text-wrap: pretty;
}
.lmvn-slogan {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  font-style: italic;
  line-height: 1.45;
  color: rgba(255,255,255,0.96);
  text-wrap: balance;
}
.lmvn-intro, .lmvn-rules {
  padding: 20px 18px;
  margin-bottom: 16px;
}
.lmvn-intro h2, .lmvn-rules h2, .lmvn-sec h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.lmvn-intro p, .lmvn-rules p, .lmvn-sec-lead {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--navy);
  text-wrap: pretty;
}
.lmvn-tagline {
  margin: 8px 0 0 !important;
  text-align: center;
  color: var(--blue-deep) !important;
  font-weight: 650 !important;
  font-style: italic;
}
.lmvn-sec { margin: 0 0 18px; }
.lmvn-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.lmvn-benefit {
  padding: 14px 16px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lmvn-benefit strong {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
  text-wrap: balance;
}
.lmvn-benefit span {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--navy);
  opacity: 0.92;
  text-wrap: pretty;
}
.lmvn-hh {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.lmvn-hh-card {
  padding: 16px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lmvn-hh-logo { width: 72px; height: auto; }
.lmvn-hh-place {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}
.lmvn-hh-copy h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.lmvn-hh-status {
  margin: 0;
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  background: rgba(30, 58, 95, 0.08);
  color: var(--muted);
}
.lmvn-hh-status.is-live { background: var(--ok-bg); color: var(--ok); }
.lmvn-hh-note {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.lmvn-hh-card .btn-cta { width: 100%; min-height: 48px; font-size: 15px; }
.lmvn-foot {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-wrap: pretty;
}

html[data-theme="xanh-muc"] .lmvn-hero,
html[data-theme="den"] .lmvn-hero,

html[data-theme="xanh-reu-vang"] .lmvn-hero
{ background: linear-gradient(145deg, #1B4F7A 0%, #163A62 50%, #0C1C3E 100%); }

html[data-theme="xanh-muc"] .lmvn-title,
html[data-theme="den"] .lmvn-title,

html[data-theme="xanh-muc"] .lmvn-lead,

html[data-theme="den"] .lmvn-lead,

html[data-theme="xanh-muc"] .lmvn-slogan,

html[data-theme="den"] .lmvn-slogan,

html[data-theme="xanh-reu-vang"] .lmvn-title,


html[data-theme="xanh-reu-vang"] .lmvn-lead,


html[data-theme="xanh-reu-vang"] .lmvn-slogan
{ color: #F7FBFF; }
html[data-theme="trang"] .lmvn-hero,
html[data-theme="trang-xam"] .lmvn-hero
{ background: linear-gradient(145deg, #4AA3D0 0%, #2E6FB0 52%, #1E3A5F 100%); }
.lm-intro-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lm-intro-foot .btn-cta.secondary {
  background: var(--glass);
  color: var(--navy);
  box-shadow: none;
  border: 1px solid var(--glass-border);
}

html[data-theme="xanh-muc"] .lm-intro-foot .btn-cta.secondary,
html[data-theme="den"] .lm-intro-foot .btn-cta.secondary,

html[data-theme="xanh-reu-vang"] .lm-intro-foot .btn-cta.secondary
{ color: var(--navy); }
.lm-hub-trang {
  display: block;
  margin: 0 0 16px;
  text-align: center;
}
.lm-hub-trang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  color: var(--blue-deep);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
@media (min-width: 768px) {
  .lmvn-shell { padding: 32px 32px 72px; }
  .lmvn-title { font-size: 2rem; }
  .lmvn-benefits { grid-template-columns: repeat(2, 1fr); }
  .lmvn-hh { grid-template-columns: repeat(2, 1fr); }
  .lmvn-hero { padding: 40px 36px 32px; }
}
@media (min-width: 1100px) {
  .lmvn-hh { grid-template-columns: repeat(4, 1fr); }
}

/* ===== v103 Kết nối hội viên / Kết bạn xuyên hiệp hội ===== */
.kb-intro-back {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 24, 40, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html[data-theme="trang"] .kb-intro-back,
html[data-theme="trang-xam"] .kb-intro-back
{ background: rgba(30, 58, 95, 0.14); }

html[data-theme="xanh-muc"] .kb-intro-back,
html[data-theme="den"] .kb-intro-back,

html[data-theme="xanh-reu-vang"] .kb-intro-back
{ background: rgba(0, 8, 24, 0.28); }
.kb-intro-back[hidden] { display: none !important; }
.kb-intro-panel {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 28px 22px 22px;
  border-radius: 28px;
  text-align: center;
  outline: none;
}
.kb-intro-panel.glass-strong {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(28px) saturate(1.65);
  -webkit-backdrop-filter: blur(28px) saturate(1.65);
}
html[data-theme="trang"] .kb-intro-panel.glass-strong,
html[data-theme="trang-xam"] .kb-intro-panel.glass-strong
{
  background: rgba(255, 255, 255, 0.55);
}

html[data-theme="xanh-muc"] .kb-intro-panel.glass-strong,
html[data-theme="den"] .kb-intro-panel.glass-strong,

html[data-theme="xanh-reu-vang"] .kb-intro-panel.glass-strong
{
  background: rgba(10, 28, 62, 0.48);
}

/* 103.56.23.4: hộp xác nhận phải đặc, không lộ bong bóng chat phía sau. */
#kb-confirm.kb-intro-back {
  z-index: 30000;
  background: rgba(8, 24, 40, 0.45);
}
#kb-confirm .kb-intro-panel.glass-strong {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-theme="xanh-muc"] #kb-confirm .kb-intro-panel.glass-strong,
html[data-theme="den"] #kb-confirm .kb-intro-panel.glass-strong,
html[data-theme="xanh-reu-vang"] #kb-confirm .kb-intro-panel.glass-strong {
  background: #0e2240;
}
.kb-intro-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.kb-scan-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  margin: 4px auto 16px;
  border-radius: 28px;
  background: rgba(43, 181, 216, 0.14);
  color: var(--blue);
}
.kb-scan-ico svg { width: 88px; height: 88px; display: block; }
.kb-scan-card { stroke: var(--navy); fill: rgba(255, 255, 255, 0.55); }
.kb-scan-qr { stroke: var(--navy); fill: rgba(30, 58, 95, 0.08); }
.kb-scan-br { stroke: var(--cyan); }
.kb-scan-line {
  fill: var(--cyan);
  transform-box: fill-box;
  transform-origin: center;
  animation: kb-scan-move 1.8s ease-in-out infinite;
}
@keyframes kb-scan-move {
  0% { transform: translateY(-16px); opacity: 0.2; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0.2; }
}
@media (prefers-reduced-motion: reduce) {
  .kb-scan-line { animation: none; opacity: 0.9; }
}

html[data-theme="xanh-muc"] .kb-scan-ico,
html[data-theme="den"] .kb-scan-ico,

html[data-theme="xanh-reu-vang"] .kb-scan-ico
{ background: rgba(43, 181, 216, 0.16); color: var(--cyan-soft); }

html[data-theme="xanh-muc"] .kb-scan-card,
html[data-theme="den"] .kb-scan-card,

html[data-theme="xanh-reu-vang"] .kb-scan-card
{ fill: rgba(8, 24, 48, 0.55); stroke: var(--cyan-soft); }

html[data-theme="xanh-muc"] .kb-scan-qr,
html[data-theme="den"] .kb-scan-qr,

html[data-theme="xanh-reu-vang"] .kb-scan-qr
{ stroke: var(--cyan-soft); fill: rgba(126, 214, 238, 0.08); }
.kb-intro-panel h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--navy);
  text-wrap: balance;
}
.kb-intro-lead {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.45;
  color: var(--navy);
  text-wrap: pretty;
}
.kb-intro-lead strong { font-weight: 800; }
.kb-intro-desc {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.kb-intro-panel .btn-cta { width: 100%; margin: 0 0 12px; }
.kb-intro-foot {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-wrap: pretty;
}
.kb-ok-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 4px auto 14px;
  border-radius: 50%;
  color: var(--ok, #1E7A4A);
  background: var(--ok-bg, rgba(30, 122, 74, 0.14));
}
.kb-ok-ico svg { width: 72px; height: 72px; display: block; }
.qt-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.qt-sheet-actions .btn-cta { width: 100%; margin: 0; }
.qt-kb-flag {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 750;
  color: var(--navy);
  background: rgba(30, 58, 95, 0.08);
}
.qt-kb-flag.is-ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.kb-flash {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 550;
  color: var(--warn);
  text-wrap: pretty;
}
.kb-page { padding-bottom: 12px; }
.kb-login-lead {
  padding: 16px;
  margin: 0 0 14px;
}
.kb-login-lead p {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
  color: var(--navy);
  text-wrap: pretty;
}
.kb-login-lead .btn-cta { width: 100%; margin: 0; }
.kb-sec { margin: 0 0 18px; }
.kb-sec-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.kb-sec-body { display: flex; flex-direction: column; gap: 8px; }
.kb-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
}
.kb-card-ten {
  display: block;
  margin: 0 0 2px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
  text-wrap: balance;
}
.kb-card-line {
  margin: 0;
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.45;
  color: var(--navy);
  text-wrap: pretty;
}
.kb-badge {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  color: var(--blue);
  background: rgba(43, 181, 216, 0.16);
  text-wrap: nowrap;
}

html[data-theme="xanh-muc"] .kb-badge,
html[data-theme="den"] .kb-badge,

html[data-theme="xanh-reu-vang"] .kb-badge
{ color: var(--cyan-soft); }
.kb-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.kb-card-actions .btn-cta { width: 100%; margin: 0; }
.kb-card-actions .btn-cta:only-child { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .kb-intro-back { align-items: center; }
  .kb-page, .kb-login-lead { max-width: 560px; margin-left: auto; margin-right: auto; }
}

.kb-btn-danger {
  background: rgba(180, 50, 50, 0.92);
  color: #fff;
}

html[data-theme="xanh-muc"] .kb-btn-danger,
html[data-theme="den"] .kb-btn-danger,

html[data-theme="xanh-reu-vang"] .kb-btn-danger
{ background: rgba(196, 80, 80, 0.92); color: #fff; }
.kb-demo-note {
  margin: 0 0 14px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* v103.12 — hồ sơ hội viên từ ảnh/tên; khối quyền lợi theo chức danh; tagline DN */
a.portrait-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.portrait-link .portrait-wide { margin: 0; }
a.qc-sender-link {
  display: flex;
  align-items: center;
  gap: inherit;
  color: inherit;
  text-decoration: none;
}
.qc-chuc-danh { margin-top: 16px; }
.qc-chuc-danh-tit {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}
.qc-chuc-danh .qc-dk-list { margin: 0; }
.dn-rich-tagline {
  font-style: italic;
  font-weight: 600;
  color: var(--navy);
  margin-top: 0;
}

/* v103.12 — thẻ list ưu đãi gọn; Home vừa một màn; badge số thông báo */
.qc-bai-list { padding: 14px 14px 16px; }
.qc-bai-list .qc-cover-btn { margin-top: 8px; }
.qc-bai-list .qc-cover {
  aspect-ratio: 16 / 9;
  max-height: 168px;
  width: 100%;
  object-fit: cover;
}
.qc-detail-page .qc-cover {
  aspect-ratio: 16 / 9;
  max-height: 200px;
  width: 100%;
  object-fit: cover;
}
.qc-page .qc-intro { padding: 14px 16px 12px; }
.qc-page .qc-intro h2 { margin-bottom: 4px; }
.qc-bai-list .qc-more { margin: 10px 0 0; }
.qc-bai-list .qc-xem-chitiet {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}


/* v103.15 — Giới thiệu chương trình (dn-rich inside offer tab) */
.qc-offer-panel .qc-gt-ct { margin: 0 0 14px; }
.qc-offer-panel .qc-gt-ct + .qc-offer-call,
.qc-offer-panel .qc-gt-ct + .qc-offer-lienhe,
.qc-offer-panel .qc-gt-ct + .qc-offer-empty { margin-top: 4px; }
/* v103.16 — title/headings in this tab only: medium weight, not bold */
.qc-offer-panel .qc-gt-ct .dn-rich-h {
  font-weight: 500;
  color: var(--cyan);
  margin: 14px 0 0;
  letter-spacing: 0;
}
.qc-offer-panel .qc-gt-ct .dn-rich-h:first-child { margin-top: 0; }
.qc-offer-panel .qc-gt-ct p,
.qc-offer-panel .qc-gt-ct li {
  font-weight: 400;
}

.kb-danh-ba-tit {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}

/* v103.27 — late overrides so 3D tokens win over later component rules */
.tile.glass {
  background-image: var(--btn-3d-sheen-glass);
  box-shadow: var(--btn-3d-shadow-glass);
  transition: var(--btn-3d-transition);
}
.tile.glass:active { transform: translateY(1px); box-shadow: var(--btn-3d-shadow-glass-press); }
.hv-sheet-item.glass:not(.is-empty):not(.is-kb),
.hv-sheet-copy {
  background-image: var(--btn-3d-sheen-glass);
  box-shadow: var(--btn-3d-shadow-glass);
  transition: var(--btn-3d-transition);
}
.hv-sheet-item.glass:not(.is-empty):not(.is-kb):active,
.hv-sheet-copy:active {
  transform: translateY(1px);
  box-shadow: var(--btn-3d-shadow-glass-press);
}
.toi-the-btn {
  background: var(--btn-3d-sheen-cta), var(--blue-deep);
  box-shadow: var(--btn-3d-shadow-cta);
  transition: var(--btn-3d-transition);
}
.toi-the-btn:active { transform: translateY(2px); box-shadow: var(--btn-3d-shadow-cta-press); }

html[data-theme="xanh-muc"] .toi-the-btn,
html[data-theme="den"] .toi-the-btn,

html[data-theme="xanh-reu-vang"] .toi-the-btn
{
  color: #fff;
  background: var(--btn-3d-sheen-cta), linear-gradient(90deg, var(--cyan) 0%, var(--blue) 100%);
  box-shadow: var(--btn-3d-shadow-cta);
}
@media (prefers-reduced-motion: reduce) {
  .btn-cta, .btn-cta.secondary, .icon-btn, .chip, .tile.glass,
  .hv-sheet-item.glass, .hv-sheet-copy, .toi-the-btn {
    transition: none;
  }
  .btn-cta:active, .btn-cta.secondary:active, .icon-btn:active, .chip:active,
  .tile.glass:active, .hv-sheet-item.glass:active, .hv-sheet-copy:active,
  .toi-the-btn:active {
    transform: none;
  }
}

/* ===== Be Vietnam Pro (OFL), self-hosted, latin + Vietnamese; một họ cho cả UI và tiêu đề ===== */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-400.woff2") format("woff2");
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-500.woff2") format("woff2");
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-600-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-700-full.woff2") format("woff2");
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-800-full.woff2") format("woff2");
}

/* ===== v103.28 luxury travel restyle (Kính xanh default; Trắng & Night match) ===== */
body {
  background-color: var(--theme-color);
  background-image:
    linear-gradient(180deg, rgba(255,248,238,0.22) 0%, rgba(247,236,214,0.12) 45%, rgba(226,218,204,0.28) 100%),
    var(--page-photo),
    var(--page-bg);
  background-size: cover, cover, auto;
  background-position: center top, center top, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed;
}
html[data-theme="trang"] body,
html[data-theme="trang-xam"] body
{
  background-image: var(--page-bg);
  background-size: auto;
  background-attachment: fixed;
}

html[data-theme="xanh-muc"] body,
html[data-theme="den"] body,

html[data-theme="xanh-reu-vang"] body
{
  background-image:
    linear-gradient(180deg, rgba(6,12,24,0.72) 0%, rgba(8,16,32,0.62) 50%, rgba(4,8,18,0.82) 100%),
    var(--page-photo),
    var(--page-bg);
  background-size: cover, cover, auto;
  background-position: center top, center top, 0 0;
  background-attachment: fixed, fixed, fixed;
}

.hero-copy h2,
.sec-head h3,
.ct-home-tile-ten,
.hv-name,
.hv-name-text,
.detail-top h1,
.chat-login h3,
.kb-danh-ba-tit,
.lm-home-card-copy strong,
.lm-app-label,
.wordmark,
.stat b {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display-accent,
.wordmark .accent {
  color: var(--accent-gold);
}

.hero-copy .hello,
.home-top-row .hero-copy .hello {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.glass,
.glass-strong,
.tile,
.ct-home-tile,
.person,
.month-card,
.hv-sheet-item,
.hv-sheet-copy,
.toi-the-qr,
.chat-login {
  border-radius: var(--radius-card, 20px);
}

/* Primary: navy pill + arrow. Replaces 103.27 cyan 3D CTA where they conflict. */
.btn-cta {
  gap: 8px;
  color: var(--btn-navy-text);
  background: var(--btn-navy);
  border: 0;
  box-shadow: 0 10px 24px rgba(22, 27, 36, 0.22);
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.btn-cta::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M5 12h12.2l-4.6-4.6L14 6l7 7-7 7-1.4-1.4L17.2 13H5z'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M5 12h12.2l-4.6-4.6L14 6l7 7-7 7-1.4-1.4L17.2 13H5z'/></svg>") center / contain no-repeat;
}
.btn-cta:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(22, 27, 36, 0.18);
}
.btn-cta:disabled,
.btn-cta[disabled] {
  transform: none;
  box-shadow: 0 6px 16px rgba(22, 27, 36, 0.12);
  opacity: 0.55;
}
.btn-cta.secondary {
  color: var(--navy);
  background: var(--glass);
  background-image: none;
  border: 1px solid rgba(22, 27, 36, 0.16);
  box-shadow: none;
}
.btn-cta.secondary::after { content: none; width: 0; height: 0; flex: 0; mask: none; -webkit-mask: none; }
.btn-cta.secondary:active { box-shadow: inset 0 1px 3px rgba(22, 27, 36, 0.10); }

.toi-the-btn {
  gap: 8px;
  color: var(--btn-navy-text);
  background: var(--btn-navy);
  box-shadow: 0 10px 24px rgba(22, 27, 36, 0.22);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.toi-the-btn::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M5 12h12.2l-4.6-4.6L14 6l7 7-7 7-1.4-1.4L17.2 13H5z'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M5 12h12.2l-4.6-4.6L14 6l7 7-7 7-1.4-1.4L17.2 13H5z'/></svg>") center / contain no-repeat;
}
.toi-the-btn:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(22, 27, 36, 0.18); }

html[data-theme="xanh-muc"] .toi-the-btn,
html[data-theme="den"] .toi-the-btn,

html[data-theme="xanh-muc"] .btn-cta,

html[data-theme="den"] .btn-cta,

html[data-theme="xanh-reu-vang"] .toi-the-btn,


html[data-theme="xanh-reu-vang"] .btn-cta
{
  color: var(--btn-navy-text);
  background: var(--btn-navy);
}

html[data-theme="xanh-muc"] .btn-cta.secondary,
html[data-theme="den"] .btn-cta.secondary,

html[data-theme="xanh-reu-vang"] .btn-cta.secondary
{
  color: var(--navy);
  background: var(--glass);
  border-color: rgba(243, 237, 227, 0.28);
}

/* Outlined circular icon buttons */
.icon-btn {
  border-radius: 50%;
  background: var(--glass-strong);
  background-image: none;
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 18px rgba(28, 24, 20, 0.08);
}
.icon-btn:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(28, 24, 20, 0.08); }

/* Search: one glass capsule with a dark CTA at the end */
.search {
  border-radius: 999px;
  padding: 5px 5px 5px 16px;
  gap: 8px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--glass-border);
}
.search > svg { display: none; }
.search-go {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--btn-navy);
  color: var(--btn-navy-text);
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.search-go svg { width: 18px; height: 18px; display: block; }

/* Soft cards, hairline, diffuse shadow — overrides 103.27 3D tile/sheet shadows */
.tile.glass,
.ct-home-tile,
.hero.glass-strong,
.hv-sheet-item.glass,
.hv-sheet-copy,
.person.glass-strong,
.chip {
  background-image: none;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--glass-border);
}
.home-top-row .hero-copy h2 {
  text-wrap: balance;
  font-size: 0.80rem;
  font-weight: 700;
  line-height: 1.25;
}
.tile.glass:active,
.chip:active,
.hv-sheet-item.glass:active,
.hv-sheet-copy:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(28, 24, 20, 0.08);
}

.chip[aria-pressed="true"],
.chip.active {
  color: var(--btn-navy-text);
  background: var(--btn-navy);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(22, 27, 36, 0.18);
}
.chip[aria-pressed="true"]:active,
.chip.active:active { box-shadow: 0 3px 10px rgba(22, 27, 36, 0.16); }

.ct-home-tile-pill {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 9.5px;
  font-weight: 700;
  background: var(--btn-navy);
  color: var(--btn-navy-text);
}

.lm-home-card .chev {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

/* Stats strip: one rounded capsule with hairline dividers */
.stats {
  gap: 0;
  padding: 4px 0;
  border-radius: var(--radius-card, 20px);
  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-soft);
  overflow: hidden;
}
.stats .stat {
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--row-line);
  padding: 14px 8px;
}
.stats .stat:last-child { border-right: 0; }

/* Bottom nav: glass capsule, active tab as a dark filled pill (mobile only; desktop sidebar unchanged) */
@media (max-width: 767px) {
  #tabbar.tabbar {
    border-radius: 999px;
    padding: 5px 5px;
    width: min(calc(100% - 20px), 430px);
    box-shadow: 0 12px 36px rgba(20, 16, 12, 0.14);
    border: 1px solid var(--glass-border);
  }
  #tabbar.tabbar > a[data-tab],
  #tabbar.tabbar > span[data-tab] {
    border-radius: 999px;
    padding: 6px 2px 5px;
    background: transparent;
  }
  #tabbar.tabbar > a[data-tab].active {
    color: var(--btn-navy-text);
    background: var(--btn-navy);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-cta, .btn-cta.secondary, .icon-btn, .chip, .tile.glass,
  .hv-sheet-item.glass, .hv-sheet-copy, .toi-the-btn, .search-go {
    transition: none;
  }
  .btn-cta:active, .btn-cta.secondary:active, .icon-btn:active, .chip:active,
  .tile.glass:active, .hv-sheet-item.glass:active, .hv-sheet-copy:active,
  .toi-the-btn:active {
    transform: none;
  }
}

/* ===== v103.29: Bắt đầu tappable on iPhone Safari + Liquid Glass =====
   Tap bug (t471u / bat-dau-loi-1713.png, 17:13, button WAS visible):
   iOS Safari's [hidden] is not !important, so author .tabbar { display:grid }
   can keep the fixed z-index:30 tabbar in the hit-test tree on #splash.
   Also: 100dvh can put the CTA below short visual viewports; iOS
   background-attachment:fixed can interfere with touches.
   Production 103.26 shares the [hidden] and 100dvh patterns. */
@media (max-width: 767px) {
  .splash {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    max-height: 100svh;
    box-sizing: border-box;
    padding: 12px 24px max(16px, env(safe-area-inset-bottom, 0px));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .splash-logo {
    width: min(48vw, 152px);
    margin: 4px auto 8px;
  }
  .splash-art {
    flex: 1 1 0;
    min-height: 0;
    max-height: 28svh;
    margin: 0 0 4px;
  }
  .splash-art img,
  .splash-art svg { max-height: 28svh; }
  .splash h1 { font-size: 1.75rem; margin: 2px 0 4px; }
  .splash .sub { margin-bottom: 4px; }
  .splash .slogan { margin: 0 auto 12px; }
  .splash .btn-cta {
    margin-top: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }
}

/* Hidden chrome must never intercept taps */
#tabbar[hidden],
#drawer[hidden],
#site-footer[hidden],
#screen-app[hidden],
#screen-splash[hidden] {
  display: none !important;
  pointer-events: none !important;
}

/* Decorative layers never capture taps */
.bg-orbs,
.bg-orbs span,
body::before,
body::after,
.hero-art,
.hero-phones,
.hero-phone,
.lm-home-card::after,
.splash-art {
  pointer-events: none !important;
}

/* Splash above any leaked tabbar (z-index 30) while welcome is showing */
#screen-splash.splash:not([hidden]) {
  position: relative;
  z-index: 50;
}

/* Avoid iOS background-attachment:fixed touch bugs: paint the photo on a
   non-interactive layer instead of on body. */
body {
  background-attachment: scroll, scroll, scroll;
  background-image: var(--page-bg);
  background-size: auto;
  background-position: 0 0;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none !important;
  background-image:
    linear-gradient(180deg, rgba(255,248,238,0.22) 0%, rgba(247,236,214,0.12) 45%, rgba(226,218,204,0.28) 100%),
    var(--page-photo);
  background-size: cover, cover;
  background-position: center top, center top;
  background-repeat: no-repeat, no-repeat;
}
html[data-theme="trang"] body::before,
html[data-theme="trang-xam"] body::before
{ background-image: none; }

html[data-theme="xanh-muc"] body::before,
html[data-theme="den"] body::before,

html[data-theme="xanh-reu-vang"] body::before
{
  background-image:
    linear-gradient(180deg, rgba(6,12,24,0.72) 0%, rgba(8,16,32,0.62) 50%, rgba(4,8,18,0.82) 100%),
    var(--page-photo);
  background-size: cover, cover;
  background-position: center top, center top;
}
.bg-orbs { z-index: 0; pointer-events: none !important; }

/* ===== v103.29 iOS Liquid Glass (giọt nước) — truly transparent, TravelQ-like =====
   Fill stays at rgba(255,255,255,0.08–0.15). Background shows through.
   Strong blur/saturate, top-left specular, thin luminous rim, bottom refraction,
   soft drop shadow. No opaque white fills, no black/navy fills. */
:root {
  --lg-bg: rgba(255, 255, 255, 0.10);
  --lg-bg-strong: rgba(255, 255, 255, 0.14);
  --lg-blur: blur(20px) saturate(1.8);
  --lg-border: rgba(255, 255, 255, 0.42);
  --lg-ink: #1C2430;
  --lg-sheen:
    radial-gradient(120% 80% at 28% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  --lg-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 1px rgba(255, 255, 255, 0.22),
    inset 0 -10px 18px -10px rgba(0, 30, 36, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 10px 22px -12px rgba(0, 18, 22, 0.32),
    0 2px 6px -2px rgba(4, 30, 36, 0.18);
}
html[data-theme="trang"],
html[data-theme="trang-xam"]
{
  --lg-bg: rgba(255, 255, 255, 0.10);
  --lg-bg-strong: rgba(255, 255, 255, 0.14);
  --lg-ink: #1C2430;
}

html[data-theme="xanh-muc"],
html[data-theme="den"],

html[data-theme="xanh-reu-vang"]
{
  --lg-bg: rgba(255, 255, 255, 0.08);
  --lg-bg-strong: rgba(255, 255, 255, 0.12);
  --lg-border: rgba(200, 230, 240, 0.28);
  --lg-ink: #E8F6F8;
  --lg-sheen:
    radial-gradient(120% 80% at 28% 0%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  --lg-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 1px rgba(255, 255, 255, 0.12),
    inset 0 -10px 18px -10px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 10px 24px -12px rgba(0, 0, 0, 0.42);
}

.btn-cta,
.toi-the-btn,
.search-go,
.icon-btn,
.ct-home-tile-pill,
.chip[aria-pressed="true"],
.chip.active {
  color: var(--lg-ink);
  background: var(--lg-sheen), var(--lg-bg);
  background-color: transparent;
  border: 1px solid var(--lg-border);
  box-shadow: var(--lg-shadow);
  backdrop-filter: var(--lg-blur);
  -webkit-backdrop-filter: var(--lg-blur);
  -webkit-tap-highlight-color: transparent;
}
.btn-cta:active,
.toi-the-btn:active,
.search-go:active,
.icon-btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 3px rgba(30, 40, 60, 0.14),
    inset 0 -8px 14px -10px rgba(0, 30, 36, 0.20),
    0 3px 10px rgba(30, 40, 60, 0.08);
}

html[data-theme="xanh-muc"] .btn-cta,
html[data-theme="den"] .btn-cta,

html[data-theme="xanh-muc"] .toi-the-btn,

html[data-theme="den"] .toi-the-btn,

html[data-theme="xanh-muc"] .search-go,

html[data-theme="den"] .search-go,

html[data-theme="xanh-muc"] .icon-btn,

html[data-theme="den"] .icon-btn,

html[data-theme="xanh-muc"] .ct-home-tile-pill,

html[data-theme="den"] .ct-home-tile-pill,

html[data-theme="xanh-muc"] .chip[aria-pressed="true"],

html[data-theme="den"] .chip[aria-pressed="true"],

html[data-theme="xanh-muc"] .chip.active,

html[data-theme="den"] .chip.active,

html[data-theme="xanh-muc"] .btn-cta.secondary,

html[data-theme="den"] .btn-cta.secondary,

html[data-theme="xanh-reu-vang"] .btn-cta,


html[data-theme="xanh-reu-vang"] .toi-the-btn,


html[data-theme="xanh-reu-vang"] .search-go,


html[data-theme="xanh-reu-vang"] .icon-btn,


html[data-theme="xanh-reu-vang"] .ct-home-tile-pill,


html[data-theme="xanh-reu-vang"] .chip[aria-pressed="true"],


html[data-theme="xanh-reu-vang"] .chip.active,


html[data-theme="xanh-reu-vang"] .btn-cta.secondary
{
  color: var(--lg-ink);
  background: var(--lg-sheen), var(--lg-bg);
  border-color: var(--lg-border);
  box-shadow: var(--lg-shadow);
}

.btn-cta.secondary {
  color: var(--lg-ink);
  background: var(--lg-sheen), rgba(255, 255, 255, 0.08);
  border: 1px solid var(--lg-border);
  box-shadow: var(--lg-shadow);
}

.icon-btn,
.search-go {
  color: var(--lg-ink);
  border-radius: 50%;
}

.ct-home-tile-pill {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Bottom nav: clear glass capsule + sliding water-droplet lens (TravelQ .tb-bub) */
@media (max-width: 767px) {
  #tabbar.tabbar:not([hidden]) {
    --tab-n: 5;
    isolation: isolate;
    overflow: visible;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.03) 100%),
      rgba(255, 255, 255, 0.10);
    border: 0;
    box-shadow:
      0 14px 34px -14px rgba(0, 18, 22, 0.45),
      0 2px 8px -2px rgba(0, 18, 22, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.38),
      inset 0 -1px 0 rgba(255, 255, 255, 0.08),
      inset 0 -10px 18px -10px rgba(0, 30, 36, 0.18);
    backdrop-filter: blur(20px) saturate(1.7);
    -webkit-backdrop-filter: blur(20px) saturate(1.7);
  }
  #tabbar.tabbar:not([hidden])::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.12) 30%, rgba(150, 235, 242, 0.10) 62%, rgba(255, 255, 255, 0.45) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
  #tabbar.tabbar:not([hidden])::after {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    top: 1px;
    height: 40%;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(60% 100% at 50% 0%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 70%);
  }
  
html[data-theme="xanh-muc"] #tabbar.tabbar:not([hidden]),
html[data-theme="den"] #tabbar.tabbar:not([hidden]),

html[data-theme="xanh-reu-vang"] #tabbar.tabbar:not([hidden])
{
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0.02) 100%),
      rgba(255, 255, 255, 0.08);
  }

  #tabbar .tb-bub {
    position: absolute;
    left: 5px;
    top: 9px;
    bottom: 9px;
    width: calc((100% - 10px) / var(--tab-n, 5));
    z-index: 1;
    pointer-events: none;
    transform: translate3d(calc(var(--i, 0) * 100%), 0, 0);
    transition: transform 0.62s cubic-bezier(0.3, 1.45, 0.5, 1), opacity 0.25s;
  }
  #tabbar .tb-bub i {
    position: absolute;
    inset: 0 4px;
    border-radius: 999px;
    display: block;
    background:
      radial-gradient(90% 60% at 30% 12%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 58%),
      radial-gradient(80% 70% at 70% 110%, rgba(0, 30, 36, 0.16) 0%, transparent 70%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.85),
      inset 0 -1px 1px rgba(255, 255, 255, 0.35),
      inset 0 -8px 14px -8px rgba(0, 30, 36, 0.28),
      inset 0 0 0 1px rgba(255, 255, 255, 0.22),
      0 6px 14px -6px rgba(0, 20, 24, 0.35);
    backdrop-filter: blur(16px) saturate(1.7);
    -webkit-backdrop-filter: blur(16px) saturate(1.7);
  }
  #tabbar .tb-bub i::after {
    content: "";
    position: absolute;
    left: 18%;
    top: 10%;
    width: 34%;
    height: 22%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    filter: blur(1.5px);
    transform: rotate(-12deg);
    pointer-events: none;
  }
  #tabbar.tabbar[data-on=""] .tb-bub,
  #tabbar.tabbar:not([data-on]) .tb-bub { opacity: 0; }
  #tabbar .tb-bub.squish i { animation: tbsquish 0.62s cubic-bezier(0.3, 1.4, 0.5, 1); }
  @keyframes tbsquish {
    0% { transform: scale(1, 1); }
    30% { transform: scale(1.22, 0.86); }
    60% { transform: scale(0.96, 1.05); }
    100% { transform: scale(1, 1); }
  }

  #tabbar.tabbar > a[data-tab],
  #tabbar.tabbar > span[data-tab] {
    position: relative;
    z-index: 2;
    color: var(--lg-ink);
    background: transparent;
    box-shadow: none;
    border: 0;
  }
  #tabbar.tabbar > a[data-tab].active,
  #tabbar.tabbar > span[data-tab].active {
    color: var(--lg-ink);
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    font-weight: 750;
  }
  
html[data-theme="xanh-muc"] #tabbar.tabbar > a[data-tab].active,
html[data-theme="den"] #tabbar.tabbar > a[data-tab].active,

  html[data-theme="xanh-muc"] #tabbar.tabbar > span[data-tab].active,

  html[data-theme="den"] #tabbar.tabbar > span[data-tab].active,

html[data-theme="xanh-reu-vang"] #tabbar.tabbar > a[data-tab].active,


  html[data-theme="xanh-reu-vang"] #tabbar.tabbar > span[data-tab].active
{
    background: transparent;
    color: var(--lg-ink);
  }
  #tabbar.tabbar > a[data-tab] svg,
  #tabbar.tabbar > span[data-tab] svg {
    transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
  }
  #tabbar.tabbar > a[data-tab].active svg,
  #tabbar.tabbar > span[data-tab].active svg {
    transform: translateY(-1px) scale(1.06);
  }
}

@media (min-width: 768px) {
  #tabbar .tb-bub { display: none !important; }
}

/* Chỉ fade opacity. Không translateY: trên WebKit, transform của #view-home
   cộng backdrop-filter của .glass làm lớp không được vẽ (opacity đã 1 nhưng trống). */
@keyframes hh-page-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hh-page-enter {
  animation: hh-page-enter 0.35s ease;
}

/* Login CTA must sit above the fixed tabbar on short iPhone viewports */
@media (max-width: 767px) {
  #chat-login-btn,
  .chat-login .btn-cta,
  .toi-sub .btn-cta {
    scroll-margin-bottom: calc(var(--tab-h, 64px) + 24px);
  }
  .chat-login {
    padding-bottom: 12px;
  }
}
@media (max-width: 767px) and (max-height: 760px) {
  .chat-login-logo {
    width: min(108px, 28vw);
    margin-bottom: 8px;
  }
  .chat-login h3 { margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  #tabbar .tb-bub { transition: none !important; }
  #tabbar .tb-bub.squish i { animation: none !important; }
  #tabbar.tabbar > a[data-tab] svg,
  #tabbar.tabbar > span[data-tab] svg { transition: none !important; }
  #tabbar.tabbar > a[data-tab].active { transform: none; }
  .hh-page-enter { animation: none !important; }
}

/* ===== v103.30: Liên minh home card — cream-to-soft-orange dawn wash (t476u / t477u) =====
   Drop the dark blue. Match the welcome / dawn photo: cream → soft orange,
   faint travel line-art, dark warm ink, › as a clear glass droplet.
   Night: muted warm amber/ember that sits on the night page, light warm ink, AA. */
.lm-home-card {
  color: #3F2A14;
  background-color: #F7E7C8;
  background-image:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 140' fill='none'%3E%3Ccircle cx='152' cy='30' r='18' stroke='%237A541C' stroke-width='1.5' opacity='.85'/%3E%3Ccircle cx='152' cy='30' r='6.5' fill='%237A541C' opacity='.32'/%3E%3Cpath d='M8 98 L62 46 L104 88 L138 60 L200 104' stroke='%237A541C' stroke-width='1.45' stroke-linejoin='round' opacity='.75'/%3E%3Cpath d='M0 112 C40 100 70 118 100 110 C130 102 160 116 200 108' stroke='%237A541C' stroke-width='1.3' fill='none' opacity='.65'/%3E%3Cpath d='M0 126 C45 116 80 132 120 122 C155 114 175 126 200 122' stroke='%237A541C' stroke-width='1.15' fill='none' opacity='.5'/%3E%3C/svg%3E") ,
    radial-gradient(80% 70% at 92% 0%, rgba(255, 248, 236, 0.7) 0%, rgba(255, 248, 236, 0) 58%),
    linear-gradient(165deg, #FFF9F0 0%, #F7E7C8 42%, #F3D3A8 78%, #E8C9B0 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: right -8px bottom -10px, 0 0, 0 0;
  background-size: 168px 118px, auto, auto;
  box-shadow:
    0 10px 24px rgba(90, 50, 20, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(200, 150, 90, 0.28);
}
.lm-home-card::after {
  content: none;
  display: none;
}
.lm-home-card-ico {
  background:
    radial-gradient(120% 80% at 28% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.42), rgba(255, 248, 236, 0.18)),
    rgba(255, 255, 255, 0.14);
  color: #3F2A14;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -8px 14px -8px rgba(90, 50, 20, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 4px 10px rgba(90, 50, 20, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
}
.lm-home-card-copy strong,
.lm-home-card .lm-app-label {
  color: #3F2A14;
}
.lm-home-card-copy span,
.lm-home-card-lead,
.lm-home-card-slogan {
  color: #5A3D22;
}
.lm-home-card .chev {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: #3F2A14;
  opacity: 1;
  background:
    radial-gradient(90% 60% at 30% 12%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 1px rgba(255, 255, 255, 0.28),
    inset 0 -8px 14px -8px rgba(90, 50, 20, 0.22),
    0 6px 14px -6px rgba(90, 50, 20, 0.22);
  backdrop-filter: blur(16px) saturate(1.7);
  -webkit-backdrop-filter: blur(16px) saturate(1.7);
}

/* Trắng: same cream–orange family so the card stays in the dawn tone. */
html[data-theme="trang"] .lm-home-card,
html[data-theme="trang-xam"] .lm-home-card
{
  color: #3F2A14;
  background-color: #F7E7C8;
  background-image:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 140' fill='none'%3E%3Ccircle cx='152' cy='30' r='18' stroke='%237A541C' stroke-width='1.5' opacity='.85'/%3E%3Ccircle cx='152' cy='30' r='6.5' fill='%237A541C' opacity='.32'/%3E%3Cpath d='M8 98 L62 46 L104 88 L138 60 L200 104' stroke='%237A541C' stroke-width='1.45' stroke-linejoin='round' opacity='.75'/%3E%3Cpath d='M0 112 C40 100 70 118 100 110 C130 102 160 116 200 108' stroke='%237A541C' stroke-width='1.3' fill='none' opacity='.65'/%3E%3Cpath d='M0 126 C45 116 80 132 120 122 C155 114 175 126 200 122' stroke='%237A541C' stroke-width='1.15' fill='none' opacity='.5'/%3E%3C/svg%3E") ,
    radial-gradient(80% 70% at 92% 0%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(165deg, #FFFCF7 0%, #F8EBD3 42%, #F3D3A8 78%, #E8C9B0 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: right -8px bottom -10px, 0 0, 0 0;
  background-size: 168px 118px, auto, auto;
  box-shadow:
    0 10px 24px rgba(90, 50, 20, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(200, 150, 90, 0.24);
}
html[data-theme="trang"] .lm-home-card-ico,
html[data-theme="trang"] .lm-home-card .chev,
html[data-theme="trang-xam"] .lm-home-card-ico,

html[data-theme="trang-xam"] .lm-home-card .chev
{
  color: #3F2A14;
}
html[data-theme="trang"] .lm-home-card-copy strong,
html[data-theme="trang"] .lm-home-card .lm-app-label,
html[data-theme="trang-xam"] .lm-home-card-copy strong,

html[data-theme="trang-xam"] .lm-home-card .lm-app-label
{
  color: #3F2A14;
}
html[data-theme="trang"] .lm-home-card-copy span,
html[data-theme="trang"] .lm-home-card-lead,
html[data-theme="trang"] .lm-home-card-slogan,
html[data-theme="trang-xam"] .lm-home-card-copy span,

html[data-theme="trang-xam"] .lm-home-card-lead,

html[data-theme="trang-xam"] .lm-home-card-slogan
{
  color: #5A3D22;
}

/* Night: muted amber/ember panel — no navy, no ice-blue type. */

html[data-theme="xanh-muc"] .lm-home-card,
html[data-theme="den"] .lm-home-card,

html[data-theme="xanh-reu-vang"] .lm-home-card
{
  color: #FFF4E0;
  background-color: #3A2A18;
  background-image:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 140' fill='none'%3E%3Ccircle cx='152' cy='30' r='18' stroke='%23E0C56A' stroke-width='1.5' opacity='.85'/%3E%3Ccircle cx='152' cy='30' r='6.5' fill='%23E0C56A' opacity='.32'/%3E%3Cpath d='M8 98 L62 46 L104 88 L138 60 L200 104' stroke='%23E0C56A' stroke-width='1.45' stroke-linejoin='round' opacity='.75'/%3E%3Cpath d='M0 112 C40 100 70 118 100 110 C130 102 160 116 200 108' stroke='%23E0C56A' stroke-width='1.3' fill='none' opacity='.65'/%3E%3Cpath d='M0 126 C45 116 80 132 120 122 C155 114 175 126 200 122' stroke='%23E0C56A' stroke-width='1.15' fill='none' opacity='.5'/%3E%3C/svg%3E") ,
    radial-gradient(70% 60% at 8% 0%, rgba(224, 197, 106, 0.16) 0%, rgba(224, 197, 106, 0) 55%),
    linear-gradient(165deg, #3A2A18 0%, #4A3218 48%, #5C3A16 82%, #2C2114 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: right -8px bottom -10px, 0 0, 0 0;
  background-size: 168px 118px, auto, auto;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 224, 170, 0.22);
  border: 1px solid rgba(224, 197, 106, 0.22);
}

html[data-theme="xanh-muc"] .lm-home-card-ico,
html[data-theme="den"] .lm-home-card-ico,

html[data-theme="xanh-reu-vang"] .lm-home-card-ico
{
  background:
    radial-gradient(120% 80% at 28% 0%, rgba(255, 244, 224, 0.28) 0%, rgba(255, 244, 224, 0) 52%),
    linear-gradient(160deg, rgba(255, 244, 224, 0.14), rgba(255, 244, 224, 0.04)),
    rgba(255, 244, 224, 0.08);
  color: #FFF4E0;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 224, 0.40),
    inset 0 -8px 14px -8px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(224, 197, 106, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(224, 197, 106, 0.28);
}

html[data-theme="xanh-muc"] .lm-home-card-copy strong,
html[data-theme="den"] .lm-home-card-copy strong,

html[data-theme="xanh-muc"] .lm-home-card .lm-app-label,

html[data-theme="den"] .lm-home-card .lm-app-label,

html[data-theme="xanh-reu-vang"] .lm-home-card-copy strong,


html[data-theme="xanh-reu-vang"] .lm-home-card .lm-app-label
{
  color: #FFF4E0;
}

html[data-theme="xanh-muc"] .lm-home-card-copy span,
html[data-theme="den"] .lm-home-card-copy span,

html[data-theme="xanh-muc"] .lm-home-card-lead,

html[data-theme="den"] .lm-home-card-lead,

html[data-theme="xanh-muc"] .lm-home-card-slogan,

html[data-theme="den"] .lm-home-card-slogan,

html[data-theme="xanh-reu-vang"] .lm-home-card-copy span,


html[data-theme="xanh-reu-vang"] .lm-home-card-lead,


html[data-theme="xanh-reu-vang"] .lm-home-card-slogan
{
  color: #F0D9B0;
}

html[data-theme="xanh-muc"] .lm-home-card .chev,
html[data-theme="den"] .lm-home-card .chev,

html[data-theme="xanh-reu-vang"] .lm-home-card .chev
{
  color: #FFF4E0;
  opacity: 1;
  background:
    radial-gradient(90% 60% at 30% 12%, rgba(255, 244, 224, 0.32) 0%, rgba(255, 244, 224, 0) 58%),
    linear-gradient(180deg, rgba(255, 244, 224, 0.14), rgba(255, 244, 224, 0.05));
  background-color: rgba(255, 244, 224, 0.08);
  border: 1px solid rgba(224, 197, 106, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 224, 0.40),
    inset 0 -8px 14px -8px rgba(0, 0, 0, 0.35),
    0 6px 14px -6px rgba(0, 0, 0, 0.40);
}

@media (min-width: 768px) {
  .lm-home-card .chev {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
}


/* ===== v103.34: Liên minh home card — clearly grey glass (anh Long 21:20 «Màu xám thử») =====
   Keep C layout: faded globe/handshake in the right column, never over type,
   clear-glass ›. Real mid/light-grey glass (not white-grey). Dark slate ink,
   neutral grey glyph, no orange. Night: darker graphite grey glass, light ink.
   AA in all 3 themes. background-size/position reset so 103.30 motif longhands
   cannot leave a stray 168×118 box. */
.lm-home-card {
  --lm-pad-x: 16px;
  --lm-pad-y: 20px;
  --lm-ink: #1C2430;
  --lm-ink-soft: #2A3340;
  --lm-glyph: #4A5560;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: start;
  column-gap: 10px;
  row-gap: 0;
  padding: var(--lm-pad-y) var(--lm-pad-x);
  overflow: hidden;
  isolation: isolate;
  color: var(--lm-ink);
  background-color: #C5C9CE;
  background-image:
    radial-gradient(120% 80% at 28% 0%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(165deg, #D2D5DA 0%, #C5C9CE 48%, #B4B8BE 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, 0 0;
  background-size: auto, auto;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 1px rgba(255, 255, 255, 0.14),
    inset 0 -10px 18px -10px rgba(28, 36, 48, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 12px 28px -12px rgba(28, 36, 48, 0.22),
    0 2px 6px -2px rgba(28, 36, 48, 0.12);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}
.lm-home-card-ico { grid-row: 1; grid-column: 1; z-index: 2; }
.lm-home-card-copy { grid-row: 1; grid-column: 2; z-index: 2; min-width: 0; }
.lm-home-card .chev { grid-row: 1; grid-column: 3; z-index: 3; align-self: start; position: relative; }
.lm-home-card-copy strong,
.lm-home-card .lm-app-label { color: var(--lm-ink); }
.lm-home-card-copy span,
.lm-home-card-lead,
.lm-home-card-slogan { color: var(--lm-ink-soft); }
.lm-home-card-art {
  grid-row: 1;
  grid-column: 3;
  z-index: 1;
  pointer-events: none;
  position: relative;
  width: 92px;
  min-width: 92px;
  max-width: 92px;
  height: auto;
  min-height: 108px;
  margin: 0;
  align-self: stretch;
  justify-self: stretch;
  display: grid;
  place-items: center;
  background: none;
}
.lm-home-card-art .lm-card-glyph {
  display: block;
  width: 96px;
  height: 96px;
  color: var(--lm-glyph);
  opacity: 0.28;
}

/* Icon + ›: clear grey glass droplets, slate ink, no orange */
.lm-home-card-ico,
.lm-home-card .chev {
  color: var(--lm-ink);
  opacity: 1;
  background:
    radial-gradient(120% 80% at 28% 0%, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(200, 204, 210, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.70),
    inset 0 -1px 1px rgba(255, 255, 255, 0.16),
    inset 0 -8px 14px -8px rgba(28, 36, 48, 0.16),
    0 6px 14px -6px rgba(28, 36, 48, 0.16);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.lm-home-card .chev {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* Trắng: same mid/light-grey glass (not a whiter variant).
   Selectors must beat 103.30 html[data-theme="trang"] ink (#3F2A14 / #5A3D22). */
html[data-theme="trang"] .lm-home-card,
html[data-theme="trang-xam"] .lm-home-card
{
  --lm-ink: #1C2430;
  --lm-ink-soft: #2A3340;
  --lm-glyph: #4A5560;
  color: var(--lm-ink);
  background-color: #C8CCD2;
  background-image:
    radial-gradient(120% 80% at 28% 0%, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(165deg, #D5D8DD 0%, #C8CCD2 50%, #B8BCC2 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, 0 0;
  background-size: auto, auto;
  border-color: rgba(255, 255, 255, 0.42);
}
html[data-theme="trang"] .lm-home-card-copy strong,
html[data-theme="trang"] .lm-home-card .lm-app-label,
html[data-theme="trang-xam"] .lm-home-card-copy strong,

html[data-theme="trang-xam"] .lm-home-card .lm-app-label
{ color: var(--lm-ink); }
html[data-theme="trang"] .lm-home-card-copy span,
html[data-theme="trang"] .lm-home-card-lead,
html[data-theme="trang"] .lm-home-card-slogan,
html[data-theme="trang-xam"] .lm-home-card-copy span,

html[data-theme="trang-xam"] .lm-home-card-lead,

html[data-theme="trang-xam"] .lm-home-card-slogan
{ color: var(--lm-ink-soft); }
html[data-theme="trang"] .lm-home-card-ico,
html[data-theme="trang"] .lm-home-card .chev,
html[data-theme="trang-xam"] .lm-home-card-ico,

html[data-theme="trang-xam"] .lm-home-card .chev
{ color: var(--lm-ink); }

/* Night: darker graphite grey glass, light ink, AA. No orange, no navy fill. */

html[data-theme="xanh-muc"] .lm-home-card,
html[data-theme="den"] .lm-home-card,

html[data-theme="xanh-reu-vang"] .lm-home-card
{
  --lm-ink: #F4F5F7;
  --lm-ink-soft: #D8DCE0;
  --lm-glyph: #C5C9CE;
  color: var(--lm-ink);
  background-color: #2A2E33;
  background-image:
    radial-gradient(120% 80% at 28% 0%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(165deg, #3A3F45 0%, #2A2E33 55%, #1E2226 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, 0 0;
  background-size: auto, auto;
  border-color: rgba(200, 204, 210, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 1px rgba(255, 255, 255, 0.06),
    inset 0 -10px 18px -10px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 28px -12px rgba(0, 0, 0, 0.42);
}

html[data-theme="xanh-muc"] .lm-home-card-copy strong,
html[data-theme="den"] .lm-home-card-copy strong,

html[data-theme="xanh-muc"] .lm-home-card .lm-app-label,

html[data-theme="den"] .lm-home-card .lm-app-label,

html[data-theme="xanh-reu-vang"] .lm-home-card-copy strong,


html[data-theme="xanh-reu-vang"] .lm-home-card .lm-app-label
{ color: var(--lm-ink); }

html[data-theme="xanh-muc"] .lm-home-card-copy span,
html[data-theme="den"] .lm-home-card-copy span,

html[data-theme="xanh-muc"] .lm-home-card-lead,

html[data-theme="den"] .lm-home-card-lead,

html[data-theme="xanh-muc"] .lm-home-card-slogan,

html[data-theme="den"] .lm-home-card-slogan,

html[data-theme="xanh-reu-vang"] .lm-home-card-copy span,


html[data-theme="xanh-reu-vang"] .lm-home-card-lead,


html[data-theme="xanh-reu-vang"] .lm-home-card-slogan
{ color: var(--lm-ink-soft); }

html[data-theme="xanh-muc"] .lm-home-card-ico,
html[data-theme="den"] .lm-home-card-ico,

html[data-theme="xanh-muc"] .lm-home-card .chev,

html[data-theme="den"] .lm-home-card .chev,

html[data-theme="xanh-reu-vang"] .lm-home-card-ico,


html[data-theme="xanh-reu-vang"] .lm-home-card .chev
{
  color: var(--lm-ink);
  background:
    radial-gradient(120% 80% at 28% 0%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(58, 63, 69, 0.45);
  border: 1px solid rgba(200, 204, 210, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -8px 14px -8px rgba(0, 0, 0, 0.32),
    0 6px 14px -6px rgba(0, 0, 0, 0.36);
}

html[data-theme="xanh-muc"] .lm-home-card-art,
html[data-theme="den"] .lm-home-card-art,

html[data-theme="xanh-reu-vang"] .lm-home-card-art
{ background: none; }

html[data-theme="xanh-muc"] .lm-home-card-art .lm-card-glyph,
html[data-theme="den"] .lm-home-card-art .lm-card-glyph,

html[data-theme="xanh-reu-vang"] .lm-home-card-art .lm-card-glyph
{
  color: var(--lm-glyph);
  opacity: 0.26;
}

@media (min-width: 768px) {
  .lm-home-card { --lm-pad-x: 24px; --lm-pad-y: 22px; }
  .lm-home-card-art { width: 108px; min-width: 108px; max-width: 108px; }
  .lm-home-card-art .lm-card-glyph { width: 112px; height: 112px; }
  .lm-home-card .chev { width: 36px; height: 36px; flex-basis: 36px; }
}

/* ===== v103.35: configurable home background IMAGE only =====
   loai mac-dinh = current look (no override). loai anh = cover photo on
   body::before with a scrim so glass cards and type stay readable.
   Light scrim in Kính xanh / Trắng, dark scrim in Night. */
html[data-nen-loai="anh"] {
  --nen-scrim: linear-gradient(180deg, rgba(255, 255, 255, 0.40) 0%, rgba(247, 248, 250, 0.28) 42%, rgba(236, 238, 241, 0.44) 100%);
  --nen-scrim-night: linear-gradient(180deg, rgba(8, 12, 18, 0.58) 0%, rgba(8, 12, 18, 0.50) 45%, rgba(6, 10, 16, 0.70) 100%);
}
html[data-nen-loai="anh"] .bg-orbs { opacity: 0; }
html[data-nen-loai="anh"] body {
  background-color: #D4D7DC;
  background-image: none;
}
html[data-nen-loai="anh"] body::before {
  background-image: var(--nen-scrim), var(--nen-anh, none);
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
}
html[data-theme="trang"][data-nen-loai="anh"] body::before,
html[data-theme="trang-xam"][data-nen-loai="anh"] body::before
{
  background-image: var(--nen-scrim), var(--nen-anh, none);
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
}

html[data-theme="xanh-muc"][data-nen-loai="anh"] body,
html[data-theme="den"][data-nen-loai="anh"] body,

html[data-theme="xanh-reu-vang"][data-nen-loai="anh"] body
{
  background-color: #1A1D21;
  background-image: none;
}

html[data-theme="xanh-muc"][data-nen-loai="anh"] body::before,
html[data-theme="den"][data-nen-loai="anh"] body::before,

html[data-theme="xanh-reu-vang"][data-nen-loai="anh"] body::before
{
  background-image: var(--nen-scrim-night), var(--nen-anh, none);
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
}

/* ===== v103.36: Xanh mực, Trắng xám, Đen — surfaces, scrims, Liên minh card, picker ===== */

html[data-theme="xanh-muc"] body {
  background-color: #121A32;
}
html[data-theme="xanh-muc"] body::before {
  background-image:
    linear-gradient(180deg, rgba(12, 20, 44, 0.92) 0%, rgba(10, 16, 36, 0.96) 50%, rgba(8, 12, 28, 0.98) 100%);
  background-size: cover;
  background-position: center top;
}
html[data-theme="xanh-muc"] .bg-orbs span:nth-child(1) {
  opacity: 0.32;
  background: radial-gradient(circle, rgba(170, 190, 240, 0.55) 0%, rgba(70, 90, 170, 0.16) 50%, transparent 75%);
}
html[data-theme="xanh-muc"] .bg-orbs span:nth-child(2),
html[data-theme="xanh-muc"] .bg-orbs span:nth-child(3) {
  opacity: 0.22;
  background: radial-gradient(circle, rgba(120, 140, 210, 0.45), rgba(30, 40, 90, 0.12) 70%, transparent);
}

html[data-theme="trang-xam"] body {
  background-color: #E8EAEE;
}
html[data-theme="trang-xam"] body::before { background-image: none; }
html[data-theme="trang-xam"] .bg-orbs span:nth-child(1) {
  opacity: 0.45;
  background: radial-gradient(circle, #fff 0%, rgba(200, 204, 210, 0.4) 70%, transparent 100%);
}
html[data-theme="trang-xam"] .bg-orbs span:nth-child(2),
html[data-theme="trang-xam"] .bg-orbs span:nth-child(3) {
  opacity: 0.28;
  background: radial-gradient(circle, rgba(255,255,255,0.8), rgba(28, 36, 48, 0.08) 70%, transparent);
}

html[data-theme="den"] body,
html[data-theme="xanh-reu-vang"] body
{
  background-color: #000000;
}
html[data-theme="den"] body::before,
html[data-theme="xanh-reu-vang"] body::before
{
  background-image: none;
  background-color: #000000;
}
html[data-theme="den"] .bg-orbs span:nth-child(1),
html[data-theme="den"] .bg-orbs span:nth-child(2),
html[data-theme="den"] .bg-orbs span:nth-child(3),
html[data-theme="xanh-reu-vang"] .bg-orbs span:nth-child(1),

html[data-theme="xanh-reu-vang"] .bg-orbs span:nth-child(2),

html[data-theme="xanh-reu-vang"] .bg-orbs span:nth-child(3)
{
  opacity: 0.16;
  background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.04) 55%, transparent 75%);
}

/* Background image scrims: dark for Xanh mực and Đen, light for Trắng xám */
html[data-theme="xanh-muc"][data-nen-loai="anh"] {
  --nen-scrim-night: linear-gradient(180deg, rgba(8, 12, 28, 0.62) 0%, rgba(10, 16, 36, 0.54) 45%, rgba(6, 10, 24, 0.74) 100%);
}
html[data-theme="xanh-muc"][data-nen-loai="anh"] body {
  background-color: #0B1228;
  background-image: none;
}
html[data-theme="xanh-muc"][data-nen-loai="anh"] body::before {
  background-image: var(--nen-scrim-night), var(--nen-anh, none);
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
}

html[data-theme="trang-xam"][data-nen-loai="anh"] body {
  background-color: #D4D7DC;
  background-image: none;
}
html[data-theme="trang-xam"][data-nen-loai="anh"] body::before {
  background-image: var(--nen-scrim), var(--nen-anh, none);
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
}

html[data-theme="den"][data-nen-loai="anh"],
html[data-theme="xanh-reu-vang"][data-nen-loai="anh"]
{
  --nen-scrim-night: linear-gradient(180deg, rgba(0, 0, 0, 0.64) 0%, rgba(0, 0, 0, 0.56) 45%, rgba(0, 0, 0, 0.80) 100%);
}
html[data-theme="den"][data-nen-loai="anh"] body,
html[data-theme="xanh-reu-vang"][data-nen-loai="anh"] body
{
  background-color: #000000;
  background-image: none;
}
html[data-theme="den"][data-nen-loai="anh"] body::before,
html[data-theme="xanh-reu-vang"][data-nen-loai="anh"] body::before
{
  background-image: var(--nen-scrim-night), var(--nen-anh, none);
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
}

/* Liên minh card — matching tone, C layout unchanged, AA, no orange */
html[data-theme="xanh-muc"] .lm-home-card {
  --lm-ink: #F2F4F8;
  --lm-ink-soft: #D7DCE8;
  --lm-glyph: #A8B4CC;
  color: var(--lm-ink);
  background-color: #1A2544;
  background-image:
    radial-gradient(120% 80% at 28% 0%, rgba(200, 214, 240, 0.14) 0%, rgba(200, 214, 240, 0) 52%),
    linear-gradient(165deg, #2A3658 0%, #1A2544 55%, #121A32 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, 0 0;
  background-size: auto, auto;
  border-color: rgba(170, 190, 230, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(220, 230, 250, 0.16),
    inset 0 -1px 1px rgba(255, 255, 255, 0.06),
    inset 0 -10px 18px -10px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(200, 214, 240, 0.06),
    0 12px 28px -12px rgba(4, 8, 24, 0.48);
}
html[data-theme="xanh-muc"] .lm-home-card-copy strong,
html[data-theme="xanh-muc"] .lm-home-card .lm-app-label { color: var(--lm-ink); }
html[data-theme="xanh-muc"] .lm-home-card-copy span,
html[data-theme="xanh-muc"] .lm-home-card-lead,
html[data-theme="xanh-muc"] .lm-home-card-slogan { color: var(--lm-ink-soft); }
html[data-theme="xanh-muc"] .lm-home-card-ico,
html[data-theme="xanh-muc"] .lm-home-card .chev {
  color: var(--lm-ink);
  background:
    radial-gradient(120% 80% at 28% 0%, rgba(220, 230, 250, 0.18) 0%, rgba(220, 230, 250, 0) 52%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(42, 54, 88, 0.50);
  border: 1px solid rgba(170, 190, 230, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(220, 230, 250, 0.20),
    inset 0 -8px 14px -8px rgba(0, 0, 0, 0.32),
    0 6px 14px -6px rgba(4, 8, 24, 0.36);
}
html[data-theme="xanh-muc"] .lm-home-card-art { background: none; }
html[data-theme="xanh-muc"] .lm-home-card-art .lm-card-glyph {
  color: var(--lm-glyph);
  opacity: 0.26;
}

html[data-theme="trang-xam"] .lm-home-card {
  --lm-ink: #1C2430;
  --lm-ink-soft: #2A3340;
  --lm-glyph: #4A5560;
  color: var(--lm-ink);
  background-color: #D4D7DC;
  background-image:
    radial-gradient(120% 80% at 28% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(165deg, #E4E6EA 0%, #D4D7DC 50%, #C5C9CE 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, 0 0;
  background-size: auto, auto;
  border-color: rgba(28, 36, 48, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 10px 24px rgba(28, 36, 48, 0.10);
}
html[data-theme="trang-xam"] .lm-home-card-copy strong,
html[data-theme="trang-xam"] .lm-home-card .lm-app-label { color: var(--lm-ink); }
html[data-theme="trang-xam"] .lm-home-card-copy span,
html[data-theme="trang-xam"] .lm-home-card-lead,
html[data-theme="trang-xam"] .lm-home-card-slogan { color: var(--lm-ink-soft); }
html[data-theme="trang-xam"] .lm-home-card-ico,
html[data-theme="trang-xam"] .lm-home-card .chev {
  color: var(--lm-ink);
  background:
    radial-gradient(120% 80% at 28% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    rgba(232, 234, 238, 0.45);
  border: 1px solid rgba(28, 36, 48, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -8px 14px -8px rgba(28, 36, 48, 0.12),
    0 4px 10px rgba(28, 36, 48, 0.08);
}
html[data-theme="trang-xam"] .lm-home-card-art { background: none; }
html[data-theme="trang-xam"] .lm-home-card-art .lm-card-glyph {
  color: var(--lm-glyph);
  opacity: 0.22;
}

html[data-theme="den"] .lm-home-card,
html[data-theme="xanh-reu-vang"] .lm-home-card
{
  --lm-ink: #F5F5F5;
  --lm-ink-soft: #D8D8D8;
  --lm-glyph: #A8A8A8;
  color: var(--lm-ink);
  background-color: #0A0A0A;
  background-image:
    radial-gradient(120% 80% at 28% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(165deg, #1A1A1A 0%, #0A0A0A 55%, #000000 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, 0 0;
  background-size: auto, auto;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 1px rgba(255, 255, 255, 0.04),
    inset 0 -10px 18px -10px rgba(0, 0, 0, 0.50),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 12px 28px -12px rgba(0, 0, 0, 0.70);
}
html[data-theme="den"] .lm-home-card-copy strong,
html[data-theme="den"] .lm-home-card .lm-app-label,
html[data-theme="xanh-reu-vang"] .lm-home-card-copy strong,

html[data-theme="xanh-reu-vang"] .lm-home-card .lm-app-label
{ color: var(--lm-ink); }
html[data-theme="den"] .lm-home-card-copy span,
html[data-theme="den"] .lm-home-card-lead,
html[data-theme="den"] .lm-home-card-slogan,
html[data-theme="xanh-reu-vang"] .lm-home-card-copy span,

html[data-theme="xanh-reu-vang"] .lm-home-card-lead,

html[data-theme="xanh-reu-vang"] .lm-home-card-slogan
{ color: var(--lm-ink-soft); }
html[data-theme="den"] .lm-home-card-ico,
html[data-theme="den"] .lm-home-card .chev,
html[data-theme="xanh-reu-vang"] .lm-home-card-ico,

html[data-theme="xanh-reu-vang"] .lm-home-card .chev
{
  color: var(--lm-ink);
  background:
    radial-gradient(120% 80% at 28% 0%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(26, 26, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -8px 14px -8px rgba(0, 0, 0, 0.45),
    0 6px 14px -6px rgba(0, 0, 0, 0.50);
}
html[data-theme="den"] .lm-home-card-art,
html[data-theme="xanh-reu-vang"] .lm-home-card-art
{ background: none; }
html[data-theme="den"] .lm-home-card-art .lm-card-glyph,
html[data-theme="xanh-reu-vang"] .lm-home-card-art .lm-card-glyph
{
  color: var(--lm-glyph);
  opacity: 0.24;
}

html[data-theme="den"] .pw-toggle,
html[data-theme="xanh-reu-vang"] .pw-toggle
{ color: #F5F5F5; }
html[data-theme="xanh-muc"] .pw-toggle { color: #F2F4F8; }
html[data-theme="trang-xam"] .pw-toggle { color: var(--navy, #1C2430); }


/* ===== v103.36: Xanh rêu vàng (id xanh-reu-vang) =====
   Deep emerald/forest smoked glass, silver type, gold metallic accents.
   Dark scrim over admin background images. */
html[data-theme="xanh-reu-vang"] {
  --color-scheme: dark;
  --theme-color: #0E2A26;
  --bg-0: #123832;
  --bg-1: #0E2A26;
  --bg-2: #0A201C;
  --orb-a: rgba(240, 200, 96, 0.16);
  --orb-b: rgba(80, 140, 120, 0.18);
  --orb-c: rgba(14, 42, 38, 0.40);
  --orb-d: rgba(180, 160, 80, 0.10);
  --text: #F4F7F5;
  --navy: #F4F7F5;
  --navy-2: #D5DDD8;
  --muted: #B7C4BE;
  --cyan: #D4A63A;
  --cyan-soft: #F0C860;
  --cyan-pale: #1A3A34;
  --blue: #C9B06A;
  --blue-deep: #F0C860;
  --glass: rgba(14, 42, 38, 0.72);
  --glass-strong: rgba(18, 56, 50, 0.84);
  --glass-border: rgba(220, 230, 225, 0.18);
  --shadow: 0 10px 32px rgba(4, 16, 14, 0.58);
  --shadow-soft: 0 8px 20px rgba(4, 16, 14, 0.42);
  --ok-bg: #0F3A32;
  --ok: #4EE0C0;
  --input-bg: rgba(200, 220, 210, 0.08);
  --logo-tile-bg: #123832;
  --scrim: rgba(8, 24, 22, 0.66);
  --row-line: rgba(220, 230, 225, 0.14);
  --ct-gold: #F0C860;
  --ct-gold-soft: #F6D98A;
  --ct-gold-deep: #D4A63A;
  --ct-name: #F4F7F5;
  --accent-gold: #F0C860;
  --btn-navy: #F4F7F5;
  --btn-navy-text: #0E2A26;
  --page-photo: none;
  --lg-bg: rgba(255, 255, 255, 0.07);
  --lg-bg-strong: rgba(255, 255, 255, 0.10);
  --lg-border: rgba(240, 200, 96, 0.32);
  --lg-ink: #F4F7F5;
}

html[data-theme="xanh-reu-vang"] body {
  background-color: #0E2A26;
}
html[data-theme="xanh-reu-vang"] body::before {
  background-image:
    linear-gradient(180deg, rgba(10, 32, 28, 0.94) 0%, rgba(14, 42, 38, 0.96) 50%, rgba(8, 24, 22, 0.98) 100%);
  background-size: cover;
  background-position: center top;
}
html[data-theme="xanh-reu-vang"] .bg-orbs span:nth-child(1) {
  opacity: 0.28;
  background: radial-gradient(circle, rgba(240, 200, 96, 0.35) 0%, rgba(14, 42, 38, 0.12) 55%, transparent 75%);
}
html[data-theme="xanh-reu-vang"] .bg-orbs span:nth-child(2),
html[data-theme="xanh-reu-vang"] .bg-orbs span:nth-child(3) {
  opacity: 0.22;
  background: radial-gradient(circle, rgba(80, 140, 120, 0.40), rgba(10, 32, 28, 0.10) 70%, transparent);
}

html[data-theme="xanh-reu-vang"][data-nen-loai="anh"] {
  --nen-scrim-night: linear-gradient(180deg, rgba(8, 24, 22, 0.64) 0%, rgba(10, 32, 28, 0.54) 45%, rgba(6, 18, 16, 0.78) 100%);
}
html[data-theme="xanh-reu-vang"][data-nen-loai="anh"] body {
  background-color: #0A201C;
  background-image: none;
}
html[data-theme="xanh-reu-vang"][data-nen-loai="anh"] body::before {
  background-image: var(--nen-scrim-night), var(--nen-anh, none);
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
}

html[data-theme="xanh-reu-vang"] .sec-head h2,
html[data-theme="xanh-reu-vang"] .detail-top h1,
html[data-theme="xanh-reu-vang"] .toi-hero h2,
html[data-theme="xanh-reu-vang"] .toi-theme h3 {
  color: #F4F7F5;
  box-shadow: inset 0 -2px 0 #D4A63A;
}
html[data-theme="xanh-reu-vang"] .chev,
html[data-theme="xanh-reu-vang"] .icon-btn,
html[data-theme="xanh-reu-vang"] .lm-card-glyph,
html[data-theme="xanh-reu-vang"] .lm-hh-ini,
html[data-theme="xanh-reu-vang"] .pw-toggle {
  color: #F0C860;
}
html[data-theme="xanh-reu-vang"] #tabbar.tabbar > a[data-tab].active,
html[data-theme="xanh-reu-vang"] #tabbar.tabbar > span[data-tab].active {
  color: #F0C860;
}
html[data-theme="xanh-reu-vang"] .toi-theme-opt.is-on {
  background: #1A3A34;
  color: #F0C860;
  box-shadow: 0 0 0 2px #D4A63A;
}

/* ===== v103.36–103.41: Liên minh home banner (no photo; colours follow the active theme) =====
   v103.41: card surface, 3D edge, border and type use each theme's palette
   instead of a fixed moss #0E2A26. */

:root,
html[data-theme="kinh-xanh"] {
  --lm-card-bg: linear-gradient(180deg, #F4FBFE 0%, #D4ECFA 48%, #B7DBF2 100%);
  --lm-card-bg-solid: #D4ECFA;
  --lm-card-border: rgba(255, 255, 255, 0.82);
  --lm-bevel: rgba(255, 255, 255, 0.90);
  --lm-inset-bottom: rgba(30, 58, 95, 0.14);
  --lm-edge-1: #B5D6EC;
  --lm-edge-2: #9EC9E4;
  --lm-edge-3: #86B9D8;
  --lm-edge-4: #6FA8CB;
  --lm-edge-5: #5A96BB;
  --lm-edge-6: #4A86AE;
  --lm-edge-7: #3A769E;
  --lm-edge-9: #2E6FB0;
  --lm-shadow-1: rgba(30, 58, 95, 0.18);
  --lm-shadow-2: rgba(30, 58, 95, 0.14);
  --lm-panel-bg: linear-gradient(165deg, rgba(255, 255, 255, 0.84) 0%, rgba(212, 236, 250, 0.94) 100%);
  --lm-panel-border: rgba(46, 111, 176, 0.16);
  --lm-panel-highlight: rgba(255, 255, 255, 0.92);
  --lm-panel-shadow: rgba(30, 58, 95, 0.10);
  --lm-ink: #1E3A5F;
  --lm-ink-soft: #2A4A73;
  --lm-placeholder: rgba(30, 58, 95, 0.55);
  --lm-search-bg: rgba(255, 255, 255, 0.74);
  --lm-search-border: rgba(30, 58, 95, 0.16);
  --lm-silver: #1E3A5F;
  --lm-silver-grad: linear-gradient(180deg, #5A6A7C 0%, #2A3A50 36%, #1E3A5F 78%, #3A4A5C 100%);
  --lm-silver-emboss: drop-shadow(0 1px 1.1px rgba(30, 58, 95, 0.22));
  --lm-gold: #8E6B24;
  --lm-gold-hi: #C9A24A;
  --lm-gold-grad: linear-gradient(180deg, #E4C86A 0%, #C9A24A 28%, #8E6B24 70%, #7A541C 100%);
  --lm-gold-emboss: drop-shadow(0 1px 1.1px rgba(90, 50, 10, 0.26));
  --lm-sub: #1E3A5F;
  --lm-brand: #1E3A5F;
  --lm-brand-sub: rgba(30, 58, 95, 0.72);
  --lm-hand-shadow: drop-shadow(0 1px 1px rgba(30, 58, 95, 0.28));
}

html[data-theme="trang"] {
  --lm-card-bg: linear-gradient(180deg, #FFFFFF 0%, #F7F8FA 55%, #F0F2F5 100%);
  --lm-card-bg-solid: #FFFFFF;
  --lm-card-border: rgba(30, 58, 95, 0.10);
  --lm-bevel: rgba(255, 255, 255, 1);
  --lm-inset-bottom: rgba(30, 58, 95, 0.10);
  --lm-edge-1: #E8EAEE;
  --lm-edge-2: #DCDFE4;
  --lm-edge-3: #D0D4DA;
  --lm-edge-4: #C4C8D0;
  --lm-edge-5: #B6BBC4;
  --lm-edge-6: #A8AEB8;
  --lm-edge-7: #989FAA;
  --lm-edge-9: #7A8290;
  --lm-shadow-1: rgba(30, 58, 95, 0.14);
  --lm-shadow-2: rgba(30, 58, 95, 0.10);
  --lm-panel-bg: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 245, 247, 0.98) 100%);
  --lm-panel-border: rgba(30, 58, 95, 0.10);
  --lm-panel-highlight: rgba(255, 255, 255, 1);
  --lm-panel-shadow: rgba(30, 58, 95, 0.08);
  --lm-ink: #1E3A5F;
  --lm-ink-soft: #2A4A73;
  --lm-placeholder: rgba(30, 58, 95, 0.52);
  --lm-search-bg: rgba(243, 245, 247, 0.92);
  --lm-search-border: rgba(30, 58, 95, 0.14);
  --lm-silver: #1E3A5F;
  --lm-silver-grad: linear-gradient(180deg, #5A6A7C 0%, #2A3A50 36%, #1E3A5F 78%, #3A4A5C 100%);
  --lm-silver-emboss: drop-shadow(0 1px 1.1px rgba(30, 58, 95, 0.18));
  --lm-gold: #8E6B24;
  --lm-gold-hi: #C9A24A;
  --lm-gold-grad: linear-gradient(180deg, #E4C86A 0%, #C9A24A 28%, #8E6B24 70%, #7A541C 100%);
  --lm-gold-emboss: drop-shadow(0 1px 1.1px rgba(90, 50, 10, 0.22));
  --lm-sub: #1E3A5F;
  --lm-brand: #1E3A5F;
  --lm-brand-sub: rgba(30, 58, 95, 0.70);
  --lm-hand-shadow: drop-shadow(0 1px 1px rgba(30, 58, 95, 0.22));
}

html[data-theme="trang-xam"] {
  --lm-card-bg: linear-gradient(180deg, #F3F4F6 0%, #E8EAEE 50%, #DEE1E6 100%);
  --lm-card-bg-solid: #E8EAEE;
  --lm-card-border: rgba(28, 36, 48, 0.12);
  --lm-bevel: rgba(255, 255, 255, 0.92);
  --lm-inset-bottom: rgba(28, 36, 48, 0.12);
  --lm-edge-1: #D4D7DC;
  --lm-edge-2: #C8CCD2;
  --lm-edge-3: #B4B8C0;
  --lm-edge-4: #A0A5AE;
  --lm-edge-5: #8C929C;
  --lm-edge-6: #7A808A;
  --lm-edge-7: #686E78;
  --lm-edge-9: #555B66;
  --lm-shadow-1: rgba(28, 36, 48, 0.16);
  --lm-shadow-2: rgba(28, 36, 48, 0.12);
  --lm-panel-bg: linear-gradient(165deg, rgba(255, 255, 255, 0.86) 0%, rgba(232, 234, 238, 0.96) 100%);
  --lm-panel-border: rgba(28, 36, 48, 0.12);
  --lm-panel-highlight: rgba(255, 255, 255, 0.95);
  --lm-panel-shadow: rgba(28, 36, 48, 0.08);
  --lm-ink: #1C2430;
  --lm-ink-soft: #3A4250;
  --lm-placeholder: rgba(28, 36, 48, 0.55);
  --lm-search-bg: rgba(243, 244, 246, 0.92);
  --lm-search-border: rgba(28, 36, 48, 0.14);
  --lm-silver: #1C2430;
  --lm-silver-grad: linear-gradient(180deg, #4A5260 0%, #2A3340 36%, #1C2430 78%, #3A4250 100%);
  --lm-silver-emboss: drop-shadow(0 1px 1.1px rgba(28, 36, 48, 0.20));
  --lm-gold: #8E6B24;
  --lm-gold-hi: #C9A24A;
  --lm-gold-grad: linear-gradient(180deg, #E4C86A 0%, #C9A24A 28%, #8E6B24 70%, #7A541C 100%);
  --lm-gold-emboss: drop-shadow(0 1px 1.1px rgba(90, 50, 10, 0.24));
  --lm-sub: #1C2430;
  --lm-brand: #1C2430;
  --lm-brand-sub: rgba(28, 36, 48, 0.70);
  --lm-hand-shadow: drop-shadow(0 1px 1px rgba(28, 36, 48, 0.24));
}



html[data-theme="xanh-muc"] {
  --lm-card-bg: linear-gradient(180deg, #1A2544 0%, #121A32 50%, #0B1228 100%);
  --lm-card-bg-solid: #121A32;
  --lm-card-border: rgba(170, 190, 230, 0.20);
  --lm-bevel: rgba(200, 214, 240, 0.26);
  --lm-inset-bottom: rgba(0, 0, 0, 0.40);
  --lm-edge-1: #10182C;
  --lm-edge-2: #0E1628;
  --lm-edge-3: #0C1424;
  --lm-edge-4: #0A1220;
  --lm-edge-5: #080E1C;
  --lm-edge-6: #060C18;
  --lm-edge-7: #050A14;
  --lm-edge-9: #040810;
  --lm-shadow-1: rgba(6, 10, 28, 0.52);
  --lm-shadow-2: rgba(6, 10, 28, 0.40);
  --lm-panel-bg: linear-gradient(165deg, rgba(28, 40, 72, 0.92) 0%, rgba(12, 18, 40, 0.96) 100%);
  --lm-panel-border: rgba(170, 190, 230, 0.18);
  --lm-panel-highlight: rgba(200, 214, 240, 0.16);
  --lm-panel-shadow: rgba(4, 8, 24, 0.36);
  --lm-ink: #F2F4F8;
  --lm-ink-soft: #C5CDDC;
  --lm-placeholder: rgba(242, 244, 248, 0.60);
  --lm-search-bg: rgba(180, 196, 230, 0.10);
  --lm-search-border: rgba(170, 190, 230, 0.22);
  --lm-silver: #E8EAEE;
  --lm-silver-grad: linear-gradient(180deg, #FFFFFF 0%, #E8EAEE 40%, #B8BEC6 78%, #F2F3F5 100%);
  --lm-silver-emboss: drop-shadow(0 1px 1.2px rgba(8, 12, 28, 0.48));
  --lm-gold: #D4A63A;
  --lm-gold-hi: #F0C860;
  --lm-gold-grad: linear-gradient(180deg, #F6D98A 0%, #F0C860 28%, #D4A63A 70%, #B8862A 100%);
  --lm-gold-emboss: drop-shadow(0 1px 1.2px rgba(70, 42, 8, 0.45));
  --lm-sub: #F2F4F8;
  --lm-brand: #F2F4F8;
  --lm-brand-sub: rgba(197, 205, 220, 0.88);
  --lm-hand-shadow: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

html[data-theme="den"] {
  --lm-card-bg: linear-gradient(180deg, #1A1A1A 0%, #0A0A0A 52%, #000000 100%);
  --lm-card-bg-solid: #000000;
  --lm-card-border: rgba(255, 255, 255, 0.16);
  --lm-bevel: rgba(255, 255, 255, 0.20);
  --lm-inset-bottom: rgba(0, 0, 0, 0.55);
  --lm-edge-1: #141414;
  --lm-edge-2: #101010;
  --lm-edge-3: #0C0C0C;
  --lm-edge-4: #090909;
  --lm-edge-5: #060606;
  --lm-edge-6: #040404;
  --lm-edge-7: #020202;
  --lm-edge-9: #000000;
  --lm-shadow-1: rgba(0, 0, 0, 0.58);
  --lm-shadow-2: rgba(0, 0, 0, 0.48);
  --lm-panel-bg: linear-gradient(165deg, rgba(28, 28, 28, 0.94) 0%, rgba(10, 10, 10, 0.96) 100%);
  --lm-panel-border: rgba(255, 255, 255, 0.14);
  --lm-panel-highlight: rgba(255, 255, 255, 0.12);
  --lm-panel-shadow: rgba(0, 0, 0, 0.40);
  --lm-ink: #F5F5F5;
  --lm-ink-soft: #C8C8C8;
  --lm-placeholder: rgba(245, 245, 245, 0.58);
  --lm-search-bg: rgba(255, 255, 255, 0.07);
  --lm-search-border: rgba(255, 255, 255, 0.16);
  --lm-silver: #E8EAEE;
  --lm-silver-grad: linear-gradient(180deg, #FFFFFF 0%, #E8EAEE 40%, #B8BEC6 78%, #F2F3F5 100%);
  --lm-silver-emboss: drop-shadow(0 1px 1.2px rgba(0, 0, 0, 0.55));
  --lm-gold: #D4A63A;
  --lm-gold-hi: #F0C860;
  --lm-gold-grad: linear-gradient(180deg, #F6D98A 0%, #F0C860 28%, #D4A63A 70%, #B8862A 100%);
  --lm-gold-emboss: drop-shadow(0 1px 1.2px rgba(0, 0, 0, 0.50));
  --lm-sub: #F5F5F5;
  --lm-brand: #F5F5F5;
  --lm-brand-sub: rgba(200, 200, 200, 0.86);
  --lm-hand-shadow: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

html[data-theme="xanh-reu-vang"] {
  --lm-card-bg: linear-gradient(180deg, #123832 0%, #0E2A26 50%, #0A201C 100%);
  --lm-card-bg-solid: #0E2A26;
  --lm-card-border: rgba(220, 230, 225, 0.22);
  --lm-bevel: rgba(255, 255, 255, 0.34);
  --lm-inset-bottom: rgba(0, 0, 0, 0.32);
  --lm-edge-1: #12352f;
  --lm-edge-2: #0f2e29;
  --lm-edge-3: #0c2722;
  --lm-edge-4: #0a201c;
  --lm-edge-5: #091c19;
  --lm-edge-6: #081a17;
  --lm-edge-7: #071614;
  --lm-edge-9: #061412;
  --lm-shadow-1: rgba(0, 0, 0, 0.30);
  --lm-shadow-2: rgba(4, 12, 10, 0.28);
  --lm-panel-bg: linear-gradient(165deg, rgba(20, 52, 48, 0.92) 0%, rgba(10, 32, 30, 0.94) 100%);
  --lm-panel-border: rgba(220, 230, 225, 0.18);
  --lm-panel-highlight: rgba(255, 255, 255, 0.10);
  --lm-panel-shadow: rgba(0, 0, 0, 0.28);
  --lm-ink: #F4F7F5;
  --lm-ink-soft: #D5DDD8;
  --lm-placeholder: rgba(244, 247, 245, 0.72);
  --lm-search-bg: rgba(8, 28, 26, 0.48);
  --lm-search-border: rgba(255, 255, 255, 0.30);
  --lm-silver: #E8EAEE;
  --lm-silver-grad: linear-gradient(180deg, #FFFFFF 0%, #E8EAEE 40%, #B8BEC6 78%, #F2F3F5 100%);
  --lm-silver-emboss: drop-shadow(0 1px 1.2px rgba(12, 16, 18, 0.45));
  --lm-gold: #D4A63A;
  --lm-gold-hi: #F0C860;
  --lm-gold-grad: linear-gradient(180deg, #F6D98A 0%, #F0C860 28%, #D4A63A 70%, #B8862A 100%);
  --lm-gold-emboss: drop-shadow(0 1px 1.2px rgba(70, 42, 8, 0.45));
  --lm-sub: #F4F7F5;
  --lm-brand: #F4F7F5;
  --lm-brand-sub: rgba(232, 234, 238, 0.86);
  --lm-hand-shadow: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.lm-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#view-home > .lm-home-card,
.lm-home-card#lm-home-card,
section.lm-home-card,
a.lm-home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  gap: 6px;
  width: 100%;
  min-height: 0;
  isolation: isolate;
  overflow: visible;
  /* Match the 4-col tile grid: radius 20px, trailing 22px. */
  margin: 0 0 22px;
  padding: 12px 14px 14px;
  color: var(--lm-ink);
  background: var(--lm-card-bg-solid);
  background-image: var(--lm-card-bg);
  border: 1px solid var(--lm-card-border);
  border-radius: 20px;
  box-shadow:
    inset 0 1.5px 0 var(--lm-bevel),
    inset 0 -2px 0 var(--lm-inset-bottom),
    0 1px 0 var(--lm-edge-1),
    0 2px 0 var(--lm-edge-2),
    0 3px 0 var(--lm-edge-3),
    0 4px 0 var(--lm-edge-4),
    0 5px 0 var(--lm-edge-5),
    0 6px 0 var(--lm-edge-6),
    0 7px 0 var(--lm-edge-7),
    0 9px 0 var(--lm-edge-9),
    0 13px 22px var(--lm-shadow-1),
    0 22px 40px var(--lm-shadow-2);
  text-decoration: none;
  transform: none;
  grid-template-columns: none;
  grid-template-rows: none;
  box-sizing: border-box;
  container-type: inline-size;
  container-name: lm-banner-panel;
}
#view-home > .lm-home-card:active,
.lm-home-card#lm-home-card:active,
section.lm-home-card:active,
a.lm-home-card:active { transform: none; }

#view-home > .lm-home-card::before,
.lm-home-card#lm-home-card::before,
section.lm-home-card::before,
a.lm-home-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;
  box-shadow:
    inset 0 1.6px 0 var(--lm-bevel),
    inset 0 0 0 1px var(--lm-card-border);
}
#view-home > .lm-home-card::after,
.lm-home-card#lm-home-card::after,
section.lm-home-card::after,
a.lm-home-card::after {
  content: none;
  display: none;
}

/* v103.44: single compact rectangle; search + handshake + inner frame removed. */
.lm-banner-media { display: none !important; }
.lm-banner-top,
.lm-banner-search,
.lm-banner-hand,
.lm-banner-rule,
.lm-banner-lead,
.lm-banner-vert { display: none !important; }

.lm-banner-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.lm-banner-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
  background: transparent;
}
.lm-banner-brand-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.lm-banner-brand-txt strong {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--lm-brand);
}
.lm-banner-brand-txt span {
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--lm-brand-sub);
  white-space: nowrap;
}

.lm-banner-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.lm-banner-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.28;
  overflow: visible;
  min-width: 0;
}
.lm-banner-silver,
.lm-banner-gold {
  display: block;
  font-family: "Be Vietnam Pro", var(--font);
  font-weight: 800;
  font-style: normal;
  font-synthesis: none;
  font-size: clamp(16px, 5.6vw, 26px);
  font-size: clamp(16px, 6.8cqi, 26px);
  letter-spacing: -0.02em;
  /* Keep the 103.43 diacritic room: circumflexes (Ê/Ệ/Ộ) and dots below (Ệ/Ộ). */
  line-height: 1.28;
  padding-top: 0.12em;
  padding-bottom: 0.18em;
  white-space: nowrap;
  max-width: 100%;
  overflow: visible;
}
.lm-banner-silver {
  color: var(--lm-silver);
  background: var(--lm-silver-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: var(--lm-silver-emboss);
}
.lm-banner-gold {
  color: var(--lm-gold);
  letter-spacing: 0.08em;
  background: var(--lm-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: var(--lm-gold-emboss);
}
.lm-banner-sub {
  margin-top: 0.06em;
  display: block;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  font-family: "Be Vietnam Pro", var(--font);
  font-weight: 700;
  font-style: normal;
  font-synthesis: none;
  font-size: clamp(8px, 2.5cqi, 10px);
  letter-spacing: 0.42em;
  line-height: 1.45;
  padding-top: 0.08em;
  padding-bottom: 0.22em; /* dot below Ị in «DU LỊCH VIỆT NAM» */
  color: var(--lm-sub);
  white-space: nowrap;
  overflow: visible;
}

.lm-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: stretch;
  max-width: 100%;
  min-height: 34px;
  padding: 6px 14px 8px;
  border: 0;
  border-radius: 12px;
  color: #3A2808;
  font-family: "Be Vietnam Pro", var(--font);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #F6D98A 0%, #F0C860 38%, #D4A63A 78%, #C49430 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(120, 80, 10, 0.22),
    0 3px 0 #8E6A16,
    0 5px 8px rgba(0, 0, 0, 0.28);
  transform: translateY(0);
  transition: transform 90ms ease, box-shadow 90ms ease;
}
.lm-banner-cta-label { min-width: 0; }
.lm-banner-cta-go {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(58, 40, 8, 0.12);
  color: #3A2808;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lm-banner-cta-go svg { width: 11px; height: 11px; display: block; }
#lm-home-card:active .lm-banner-cta,
.lm-banner-cta.is-pressed {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 3px rgba(80, 50, 0, 0.35),
    0 1px 0 #8E6A16,
    0 2px 4px rgba(0, 0, 0, 0.20);
}
@media (prefers-reduced-motion: reduce) {
  .lm-banner-cta { transition: none; }
  #lm-home-card:active .lm-banner-cta,
  .lm-banner-cta.is-pressed {
    transform: none;
    filter: brightness(0.92);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      0 2px 0 #8E6A16,
      0 3px 6px rgba(0, 0, 0, 0.22);
  }
}

.lm-ds-search {
  margin: 0 0 12px;
}
.lm-ds-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}
.lm-ds-empty-q {
  margin: 12px 0 0;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 768px) {
  #view-home > .lm-home-card,
  .lm-home-card#lm-home-card,
  section.lm-home-card,
  a.lm-home-card {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-rows: none;
    min-height: 0;
    border-radius: 20px;
    padding: 14px 16px 16px;
    margin: 0 0 22px;
  }
  .lm-banner-logo {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }
  .lm-banner-body {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .lm-banner-title { flex: 1 1 auto; }
  .lm-banner-cta {
    flex: 0 0 auto;
    align-self: center;
    min-width: 168px;
    min-height: 36px;
    font-size: 14px;
    padding: 7px 16px 9px;
  }
}

@media (max-width: 370px) {
  .lm-banner-sub { letter-spacing: 0.32em; }
  .lm-banner-cta { font-size: 12.5px; padding: 6px 12px 7px; }
}

/* ===== v103.39: pin the tab bar to the visual viewport (iPhone Safari) =====
   Cause: (1) Themed `html[data-theme] body { background-attachment: fixed }`
   is more specific than the later `body { background-attachment: scroll }`
   override, so dark/light theme bodies kept a known iOS bug that takes
   `position: fixed` off the visual viewport. (2) `.tabbar { transform:
   translateX(-50%) }` makes WebKit treat the bar as fixed to the *layout*
   viewport. After a scroll to the bottom (Safari toolbar collapsing, or a
   short page in a taller visual viewport) the bar sits mid-screen with a
   gap below. Photo backgrounds stay on body::before (position:fixed). */
html[data-theme="kinh-xanh"] body,
html[data-theme="trang"] body,
html[data-theme="xanh-muc"] body,
html[data-theme="trang-xam"] body,
html[data-theme="den"] body,
html[data-theme="xanh-reu-vang"] body,
body {
  background-attachment: scroll, scroll, scroll;
}

html, body, .app-shell {
  min-height: 100svh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
}

@media (max-width: 767px) {
  #tabbar.tabbar {
    position: fixed;
    left: 0;
    right: 0;
    width: min(calc(100% - 16px), 430px);
    margin-left: auto;
    margin-right: auto;
    transform: none;
    bottom: calc(var(--tab-gap, 10px) + env(safe-area-inset-bottom, 0px));
  }
}


/* ========================================================================
   v103.45 — chữ nội dung regular (400). Chỉ giữ đậm cho tiêu đề trang/mục,
   nút bấm và thanh tab. Áp dụng mọi theme.
   ======================================================================== */

#screen-app p,
#screen-app li,
#screen-app dd,
#screen-app dt,
#screen-app td,
#screen-app label,
#screen-app figcaption,
#screen-app .dang-cap-nhat,
#screen-app .status,
#screen-app .detail-copy,
#screen-app .hv-body p,
#screen-app .hv-hero p,
#screen-app .hv-contact span,
#screen-app .hv-contact b,
#screen-app .hv-link,
#screen-app .hv-sheet-val,
#screen-app .hv-sheet-label,
#screen-app .hv-sheet-item.is-empty .hv-sheet-val,
#screen-app .hv-gy-field span,
#screen-app .hv-gy-msg,
#screen-app .hv-gy-lead,
#screen-app .hv-pro-lead,
#screen-app .hv-pro-hero .hv-pro-meta,
#screen-app .hv-dn-role,
#screen-app .hv-dn-phap,
#screen-app .dn-ten-phap,
#screen-app .dn-rich p,
#screen-app .dn-rich-list li,
#screen-app .dn-row dd,
#screen-app .dn-row dt,
#screen-app .dn-lead,
#screen-app .dn-khoa-note,
#screen-app .dn-sp-link,
#screen-app .dn-lb-cap,
#screen-app .dn-rich-tagline,
#screen-app .chat-login label,
#screen-app .chat-login-note,
#screen-app .chat-status,
#screen-app .chat-more,
#screen-app .chat-role-badge,
#screen-app .cafe-empty,
#screen-app .cafe-person em,
#screen-app .qc-empty,
#screen-app .qc-form-wrap label,
#screen-app .qc-pay-empty,
#screen-app .qc-gal-count,
#screen-app .qc-lb-cap,
#screen-app .qc-edit-note,
#screen-app .qc-imgs p,
#screen-app .qc-giahan-note,
#screen-app .qc-flow li,
#screen-app .qc-han-nhac,
#screen-app .tb-k,
#screen-app .tb-item-file a,
#screen-app .bc-ky-label,
#screen-app .bc-ky-select,
#screen-app .bc-ky-msg,
#screen-app .bc-fig-label,
#screen-app .bc-fig-val,
#screen-app .bc-fig.is-pending .bc-fig-val,
#screen-app .toi-meta,
#screen-app .toi-stat span,
#screen-app .toi-row-hint,
#screen-app .toi-tpl-lead p,
#screen-app .toi-ver,
#screen-app .dk-field,
#screen-app .dk-login-link,
#screen-app .kb-intro-desc,
#screen-app .kb-intro-foot,
#screen-app .kb-flash,
#screen-app .kb-login-lead p,
#screen-app .kb-card-line,
#screen-app .kb-demo-note,
#screen-app .qt-hint,
#screen-app .qt-sheet-line,
#screen-app .qt-sheet-msg,
#screen-app .qt-sheet-k,
#screen-app .qt-view-msg,
#screen-app .qt-manual label,
#screen-app .lm-lead,
#screen-app .lm-hero-lead,
#screen-app .lm-home-card-copy span,
#screen-app .lm-home-card-lead,
#screen-app .lm-home-card-slogan,
#screen-app .lm-hero-slogan,
#screen-app .lm-intro-panel p,
#screen-app .lm-intro-benefit-copy span,
#screen-app .lm-intro-tagline,
#screen-app .lm-intro-tagline em,
#screen-app .lm-quyen-pop p,
#screen-app .lm-web,
#screen-app .lm-invite-fields label,
#screen-app .lm-cap-peer,
#screen-app .lm-dang-form label,
#screen-app .lm-cap-remain,
#screen-app .lm-cap-lock,
#screen-app .lm-cap-dates,
#screen-app .lm-cap-ex-item p,
#screen-app .lm-cap-compare-feat,
#screen-app .lm-cap-foot,
#screen-app .lm-mou-status,
#screen-app .lm-mou-wait,
#screen-app .lm-mou-meta,
#screen-app .lm-mou-flash,
#screen-app .lm-mou-field,
#screen-app .lm-mou-err,
#screen-app .lm-mou-row dt,
#screen-app .lm-mou-row dd,
#screen-app .lm-mou-field input,
#screen-app .lm-mou-field textarea,
#screen-app .lm-demo-banner-note,
#screen-app .lm-stat span,
#screen-app .lm-the-id,
#screen-app .lm-the-chu,
#screen-app .lm-the-st,
#screen-app .lm-the-qr-cd,
#screen-app .lm-the-org,
#screen-app .lm-dq-list li,
#screen-app .hv-the-org,
#screen-app .lm-dt-tinh,
#screen-app .lmvn-intro p,
#screen-app .lmvn-rules p,
#screen-app .lmvn-sec-lead,
#screen-app .lmvn-lead,
#screen-app .lmvn-slogan,
#screen-app .lmvn-hh-note,
#screen-app .lmvn-benefit span,
#screen-app .lm-hero-grid li,
#screen-app .portrait-wide figcaption,
#screen-app .month-card span,
#screen-app .date-num span,
#screen-app .meta-row strong,
#screen-app .ot-club,
#screen-app .ot-hint,
#screen-app .ot-pair-note,
#screen-app .bch-roles,
#screen-app .hv-chuc-phu,
#screen-app .person-body p.bch-roles,
#screen-app .hv-card p.bch-roles,
#screen-app .bch-ds-body .bch-roles,
#screen-app .bch-ds-body span,
#screen-app .hv-chuc-list li,
#screen-app .hv-ban-item span,
#screen-app .splash .sub,
#screen-splash p,
#screen-splash .sub,
#screen-splash .slogan,
#hv-khoa-sheet p,
#hv-khoa-sheet .hv-khoa-cta-line,
#hv-khoa-sheet .hv-khoa-demo-err,
.topbar .brand .tiny,
#site-footer p,
#site-footer .sf-name-en,
#site-footer .sf-desc,
#site-footer .sf-col p,
#site-footer .sf-col a,
#toast,
.chat-logout,
.hv-share-msg
{
  font-weight: 400 !important;
}

/* Tiêu đề trang/mục, tên thẻ, nhãn ô — giữ đậm */
#screen-app h1,
#screen-app h2,
#screen-app h3,
#screen-app h4,
#screen-splash h1,
#screen-splash .wordmark,
.wordmark,
.hero-copy h2,
.hero-copy .hello,
.sec-head h3,
.ct-home-tile-ten,
.tile span,
.hv-name,
.hv-name-text,
.hv-card .hv-body h4,
.hv-card .hv-name,
.person-body h4,
.person-body .hv-name,
.bch-ds-body .hv-name,
.bch-ds-body b.hv-name,
.bch-ds-body b,
.detail-top h1,
.dn-intro h2,
.dn-ten-ngan,
.dn-block h3,
.dn-rich-h,
.dn-sp-card h3,
.dn-ud-card h3,
.dn-row-copy strong,
.toi-row-copy strong,
.toi-block h3,
.toi-item-title,
.toi-item-kicker,
.toi-theme h3,
.toi-gy-item h3,
.hv-chat-entry-copy strong,
.hv-hub-entries.is-grid .hv-chat-entry-copy strong,
.hv-sec-head h2,
.hv-sheet h3,
.hv-gop-y h3,
.chat-login h3,
.chat-meta-who strong,
.cafe-intro h2,
.cafe-card h3,
.qc-intro h2,
.qc-form-wrap h3,
.qc-mine h3,
.qc-submitted h3,
.qc-ud-ten,
.tb-item-title,
.bc-hd-body h4,
.bc-sub,
.date-body h4,
.hd-body h4,
.tn-body h4,
.t-item h3,
.tl-card h3,
.org-node h3,
.ot-node h3,
.ot-chart-title,
.stat b,
.stat strong,
.toi-stat strong,
.lm-head h1,
.lm-intro-panel h2,
.lm-intro-benefit-copy strong,
.lm-home-card-copy strong,
.lm-app-label,
.lm-hero-title,
.lm-card-copy strong,
.lm-hh-copy .lm-hh-ten,
.lm-mou-ten,
.lm-mou-side-head h3,
.lm-the-title,
.lm-the-name,
.lm-dt-ten,
.lmvn-title,
.lmvn-intro h2,
.lmvn-rules h2,
.lmvn-sec h2,
.lmvn-hh-copy h3,
.lmvn-benefit strong,
.kb-intro-panel h2,
.kb-intro-lead,
.kb-intro-lead strong,
.kb-danh-ba-tit,
.kb-card-ten,
.kb-sec-title,
.sf-name,
.sf-col h3,
#hv-khoa-sheet h2,
#hv-khoa-sheet .hv-khoa-slogan
{
  font-weight: 800;
}

/* Nút */
.btn-cta,
a.btn-cta,
button.btn-cta,
.toi-the-btn,
.qt-btn,
.chat-send,
.qc-giahan-btn,
.hv-share-btn,
.hv-gy-fab,
.hv-gy-jump,
.hv-khoa-login,
.hv-khoa-close,
.hv-sheet-close,
#hv-khoa-xem-thu,
#hv-demo-thoat,
.dk-ok,
.lm-banner-cta
{
  font-weight: 700 !important;
}

/* Thanh tab: giữ đậm, mục đang chọn đậm hơn */
#tabbar.tabbar > a[data-tab],
#tabbar.tabbar > span[data-tab],
.tabbar a,
.tabbar span
{
  font-weight: 650 !important;
}
#tabbar.tabbar > a[data-tab].active,
#tabbar.tabbar > span[data-tab].active,
#tabbar.tabbar .desk-cta
{
  font-weight: 750 !important;
}


/* ========================================================================
   v103.46 — hàng nhãn hồ sơ không cắt chữ; mọi trang chừa hết chiều cao
   thanh tab + safe-area. Không đổi giao diện Gia Lai ngoài typography/nhãn.
   ======================================================================== */

/* Hồ sơ doanh nghiệp: không để flex card (.dn-list .dn-row) ghi đè lưới nhãn.
   Màn hẹp: nhãn xếp trên giá trị. Màn rộng: cột nhãn ôm chữ, không xuống dòng. */
.dn-dl .dn-row {
  display: grid;
  grid-template-columns: minmax(7.2em, max-content) 1fr;
  gap: 6px 14px;
  align-items: start;
  padding: 10px 0;
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
}
.dn-dl .dn-row dt {
  white-space: nowrap;
  min-width: 0;
  max-width: 16em;
  line-height: 1.4;
}
.dn-dl .dn-row dd {
  min-width: 0;
}

@media (max-width: 767px) {
  .dn-dl .dn-row {
    grid-template-columns: 1fr;
    gap: 3px 0;
    padding: 8px 0;
  }
  .dn-dl .dn-row dt {
    white-space: normal;
    max-width: none;
  }

  /* Đệm đáy = chiều cao tab + khe + safe-area ( --tab-clear ). */
  #screen-app.app-shell {
    padding-bottom: var(--tab-clear);
  }
  #view-home,
  #view-detail {
    padding-bottom: 0;
  }
}



/* ========================================================================
   v103.48 — mục chính / tên trong list-row-card: đậm lại (nặng 103.44).
   Dòng mô tả, đoạn văn, giá trị thông tin hồ sơ: regular (400).
   Ghi đè khối 103.47 (đã làm phẳng cả tiêu đề mục).
   ======================================================================== */

/* Tiêu đề mục trong danh sách, tên hội viên/doanh nghiệp, số liệu thống kê */
#screen-app .toi-row-copy strong {
  font-weight: 700 !important;
}
#screen-app .toi-stat strong,
#screen-app .stat b,
#screen-app .stat strong {
  font-weight: 800 !important;
}
#screen-app .hv-name,
#screen-app .hv-name-text,
#screen-app .hv-card .hv-name,
#screen-app .hv-card .hv-body h4,
#screen-app .hv-hero .hv-name,
#screen-app .hv-pro-hero .hv-name,
#screen-app .person-body h4,
#screen-app .person-body .hv-name,
#screen-app .bch-ds-body .hv-name,
#screen-app .bch-ds-body b.hv-name,
#screen-app .bch-ds-body b {
  font-weight: 800 !important;
}
#screen-app .hv-chat-entry-copy strong,
#screen-app .hv-hub-entries.is-grid .hv-chat-entry-copy strong {
  font-weight: 800 !important;
}
#screen-app .chat-meta-who strong {
  font-weight: 750 !important;
}
#screen-app .dn-row-copy strong {
  font-weight: 750 !important;
}
#screen-app .ct-home-tile-ten,
#screen-app .kb-card-ten,
#screen-app .kb-intro-lead strong,
#screen-app .qc-ud-ten,
#screen-app .lm-hh-copy .lm-hh-ten,
#screen-app .lm-mou-ten,
#screen-app .lm-the-name,
#screen-app .lm-intro-benefit-copy strong,
#screen-app .lmvn-benefit strong {
  font-weight: 800 !important;
}
#screen-app .lm-card-copy strong {
  font-weight: 750 !important;
}
#screen-app .lm-dt-ten {
  font-weight: 850 !important;
}

/* Dòng phụ, mô tả, nhãn số liệu — regular. Giá trị hàng hồ sơ DN giữ 400. */
#screen-app .toi-row-sub,
#screen-app .toi-row-hint,
#screen-app .toi-stat span,
#screen-app .dn-dl .dn-row dt,
#screen-app .dn-dl .dn-row dd,
#screen-app .dn-rich p,
#screen-app .dn-rich-list li {
  font-weight: 400 !important;
}

/* ========================================================================
   v103.49 / 103.56.18 — chức danh hiệp hội đậm 700.
   Tên người: Be Vietnam Pro 700 (cùng họ với thân bài; có file 800
   nếu tiêu đề dùng 800). Áp dụng cả sheet BCH
   (#bch-ds-sheet nằm ngoài #screen-app). Dòng «Còn là…» = 400.
   ======================================================================== */

#screen-app .hv-name,
#screen-app .hv-name-text,
#screen-app .person-body h4,
#screen-app .person-body .hv-name,
#screen-app .hv-card .hv-name,
#screen-app .hv-card .hv-body h4,
#screen-app .bch-ds-body .hv-name,
#screen-app .bch-ds-body b.hv-name,
#screen-app .hv-hero .hv-name,
#screen-app .hv-pro-hero .hv-name,
#screen-app .ct-home-tile-ten,
#screen-app .kb-card-ten,
#bch-ds-sheet .hv-name,
#bch-ds-sheet .hv-name-text,
#bch-ds-sheet .bch-ds-body .hv-name,
#bch-ds-sheet .bch-ds-body b.hv-name,
#bch-ds-sheet .bch-ds-body .hv-name-text {
  font-family: var(--font-display);
  font-weight: 700 !important;
  font-synthesis: weight;
  -webkit-font-smoothing: auto;
}

#screen-app .bch-chuc,
#screen-app p.bch-chuc,
#screen-app .hv-chuc,
#screen-app p.hv-chuc,
#screen-app .hv-body .hv-chuc,
#screen-app .hv-chuc-text,
#screen-app .hv-hero .hv-chuc,
#screen-app .hv-pro-hero .hv-chuc,
#screen-app .bch-ds-body .bch-ds-chuc,
#screen-app .bch-ds-body span.bch-ds-chuc,
#screen-app .hv-chuc-list li,
#screen-app .hv-chuc-list li span,
#screen-app .toi-the-chuc,
#screen-app .lm-the-chu,
#screen-app .kb-card-chuc,
#screen-app .chat-role-badge,
#bch-ds-sheet .bch-ds-chuc,
#bch-ds-sheet .bch-ds-body .bch-ds-chuc,
#bch-ds-sheet .bch-ds-body span.bch-ds-chuc {
  font-weight: 700 !important;
  font-family: var(--font);
}

#screen-app .bch-roles,
#screen-app .hv-chuc-phu,
#screen-app p.bch-roles,
#screen-app .hv-card p.bch-roles,
#screen-app .person-body p.bch-roles,
#screen-app .bch-ds-body .bch-roles,
#screen-app .bch-ds-body span.bch-roles,
#bch-ds-sheet .bch-roles,
#bch-ds-sheet .bch-ds-body .bch-roles,
#bch-ds-sheet .bch-ds-body span.bch-roles {
  font-weight: 400 !important;
}

/* ========================================================================
   v103.51 — cuộn Hội viên trên iPhone + sheet Kết nối không kẹt tab.
   ~95 thẻ .hv-card.glass-strong mỗi cái backdrop-filter blur(24px),
   lại nằm trong .hv-sec cũng blur(18px), cộng tab/orbs: WebKit stall
   touch scroll (lag, không kéo lên xuống được). Tắt live-blur trên
   danh sách dài; giữ nền glass sẵn có. Sheet #kb-ok/#kb-intro nhấc
   lên trên --tab-clear; body.kb-modal-open khoá cuộn khi overlay mở.
   ======================================================================== */

.hv-sec,
.hv-list .hv-card.glass,
.hv-list .hv-card.glass-strong,
.hv-hub-entries .glass-strong,
.kb-list .kb-card.glass-strong,
.dn-list .glass-strong,
.tb-list-wrap .tb-item.glass-strong,
.bch-ds-list .bch-ds-row {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hv-list .hv-card,
.kb-list .kb-card,
.dn-list .dn-card,
.tb-list-wrap .tb-item,
.bch-ds-list .bch-ds-row {
  content-visibility: auto;
  contain-intrinsic-size: auto 96px;
  contain: layout style paint;
}

.kb-intro-back {
  z-index: 80;
  align-items: flex-end;
  padding: 16px 16px var(--tab-clear);
  overscroll-behavior: contain;
}
@media (min-width: 768px) {
  .kb-intro-back {
    align-items: center;
    padding: 24px;
  }
}

body.kb-modal-open {
  overflow: hidden;
}

/* ========================================================================
   v103.52 — badge lời mời kết bạn + mục Lời mời trên trang Thông báo.
   Không backdrop-filter trên thẻ lời mời (tránh lag iPhone như 103.51).
   ======================================================================== */
.tb-loi-moi {
  display: grid;
  gap: 10px;
  margin: 0 0 4px;
}
.tb-loi-moi[hidden] { display: none !important; }
.tb-loi-moi-tit,
#tb-loi-moi .tb-loi-moi-tit {
  margin: 0;
  font-size: 15px;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-transform: none;
  font-family: var(--font);
}
.tb-loi-moi-list { display: flex; flex-direction: column; gap: 8px; }
.tb-lm-card,
.tb-loi-moi .kb-card,
.tb-loi-moi .tb-lm-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm, 18px);
  box-shadow: var(--shadow-soft);
}
.tb-lm-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.kb-lm-ava,
.tb-loi-moi .kb-lm-ava {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--cyan-pale, #D7F3FA);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.tb-loi-moi .kb-card-copy { min-width: 0; flex: 1; }
.tb-loi-moi .kb-card-dn,
#screen-app .tb-loi-moi .kb-card-dn {
  font-weight: 400 !important;
  color: var(--muted);
}
.tile-kb .tile-icon { position: relative; }

/* ========================================================================
   v103.53 — Báo tường, badge theo mục, danh sách chuông gộp, nhắn tin 1-1.
   Không backdrop-filter trên thẻ danh sách gộp, thẻ đã chấp nhận, bong bóng chat.
   ======================================================================== */
.tile-hd .tile-icon { position: relative; }

.tb-item.is-unread,
.hd-card.is-unread,
.date-card.is-unread {
  box-shadow: inset 3px 0 0 var(--cyan, #2BB5D8);
}
.tb-item.is-unread .tb-item-title,
.hd-card.is-unread h4,
.date-card.is-unread h4 {
  font-weight: 700;
}
.tb-hop-when {
  font-weight: 700;
  color: var(--navy);
}
.tb-item-past .tb-hop-when { font-weight: 400; }

.chuong-page { display: grid; gap: 14px; }
.chuong-intro h2,
.chuong-tit,
.chuong-kieu,
.tb-cn-kieu {
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.chuong-intro h2 { font-size: 20px; letter-spacing: -0.03em; }
.chuong-list { display: flex; flex-direction: column; gap: 8px; }
.chuong-item,
.chuong-empty,
.nt-row,
.nt-empty,
.nt-db-entry,
.tb-cn-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm, 18px);
  box-shadow: var(--shadow-soft);
}
.chuong-item,
.nt-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}
.chuong-item.is-unread,
.nt-row.is-unread {
  box-shadow: var(--shadow-soft), inset 3px 0 0 var(--cyan, #2BB5D8);
}
.chuong-kieu,
.tb-cn-kieu {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.chuong-tit { font-size: 16px; letter-spacing: -0.02em; }
.chuong-meta,
.nt-row-last {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.chuong-empty,
.nt-empty {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  font-weight: 400;
}
.tb-cn-card { padding: 14px 16px; display: grid; gap: 10px; }
.tb-cn-kieu { margin: 0; }
.nt-db-entry { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: inherit; margin: 0 0 10px; }
.nt-db-entry .hv-chat-entry-copy { flex: 1; min-width: 0; }
.nt-db-entry strong { font-weight: 700; color: var(--navy); display: block; }
.nt-db-entry span { font-weight: 400; color: var(--muted); font-size: 13px; }

.nt-page { display: grid; gap: 12px; padding-bottom: 8px; }
.nt-thread-page { padding-bottom: calc(var(--tab-clear) + 72px); }
.nt-thread-ten {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-family: var(--font-name, var(--font));
}
.nt-list { display: flex; flex-direction: column; gap: 8px; }
.nt-row { flex-direction: row; align-items: center; gap: 12px; }
.nt-ava,
.nt-ava-fall {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--cyan-pale, #D7F3FA);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.nt-row-copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.nt-row-ten { font-weight: 700; color: var(--navy); font-family: var(--font-name, var(--font)); }
.nt-unread {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--cyan, #2BB5D8);
  color: #07222a;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.nt-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 40vh;
  overflow: auto;
  padding: 4px 0 8px;
}
.nt-bub {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
}
.nt-bub.is-mine {
  align-self: flex-end;
  background: var(--cyan-pale, #D7F3FA);
  color: var(--navy);
}
.nt-bub.is-theirs { align-self: flex-start; }
.nt-bub-text { margin: 0; font-weight: 400; white-space: pre-wrap; overflow-wrap: anywhere; }
.nt-bub-time { display: block; margin-top: 4px; font-size: 11px; font-weight: 400; color: var(--muted); }
.nt-composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--tab-clear);
  z-index: 40;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bg, #D4ECFA);
  border-top: 1px solid var(--glass-border);
  box-sizing: border-box;
}
.nt-composer textarea {
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  resize: none;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  padding: 10px 12px;
  font: inherit;
  background: var(--glass-strong);
  color: var(--navy);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.nt-gui,
.nt-composer .btn-cta,
.nt-composer .nt-gui {
  font-weight: 700 !important;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 88px;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 15px;
}
.kb-page,
#kb-page {
  padding-bottom: var(--tab-clear);
}
.nt-err {
  margin: 0 16px;
  color: #b42318;
  font-weight: 400;
  font-size: 13px;
}
@media (min-width: 768px) {
  .nt-composer {
    left: var(--sidebar, 0);
    bottom: 0;
  }
}

/* ========================================================================
   v103.53.1 — huy hiệu tab Danh bạ neo góc phải icon, không đè nhãn.
   Reset rule .tabbar span { width:100%; position:relative; color: muted }
   đã biến badge thành viên đỏ dài, chữ xám. Bọt tab active không bị
   đẩy lệch vì badge nằm trong luồng flex.
   ======================================================================== */

/* Đừng để typography/layout của span tab đè lên badge hay bọt trượt. */
#tabbar.tabbar a .tb-badge:not([hidden]),
#tabbar.tabbar .kb-den-badge:not([hidden]),
.tabbar a .tab-ico .tb-badge:not([hidden]),
.tabbar a .tb-badge.kb-den-badge:not([hidden]) {
  position: absolute !important;
  display: grid !important;
  place-items: center;
  box-sizing: border-box;
  max-width: none;
  margin: 0;
  top: -4px;
  right: -6px;
  left: auto;
  bottom: auto;
  flex: 0 0 auto !important;
  gap: 0;
  border-radius: 999px;
  font-style: normal;
  white-space: nowrap;
  overflow: visible;
  pointer-events: none;
  z-index: 4;
}

@media (max-width: 767px) {
  #tabbar.tabbar a[data-tab="danh-ba"] .tab-ico {
    position: relative;
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    margin: 0 auto;
    overflow: visible;
  }
  /* Bọt active cùng chỗ mọi tab — không translateY thêm trên cả tab. */
  #tabbar.tabbar > a[data-tab="danh-ba"].active,
  #tabbar.tabbar > a[data-tab="danh-ba"].active .tab-ico {
    transform: none;
  }
  #tabbar.tabbar > a[data-tab="danh-ba"].active .tab-ico > svg,
  #tabbar.tabbar > a[data-tab="danh-ba"].active svg {
    transform: translateY(-1px) scale(1.06);
  }
}

@media (min-width: 768px) {
  /* Desktop: ẩn khung icon trống, neo badge góc phải mục chữ, không đè «Danh bạ». */
  #tabbar.tabbar > a[data-tab="danh-ba"] {
    position: relative;
    padding-right: 18px;
    overflow: visible;
  }
  #tabbar.tabbar > a[data-tab="danh-ba"] .tab-ico {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 0;
    height: 0;
    flex: 0 0 0;
    margin: 0;
    overflow: visible;
    display: block;
  }
  #tabbar.tabbar > a[data-tab="danh-ba"] .tb-badge,
  #tabbar.tabbar > a[data-tab="danh-ba"] .kb-den-badge {
    top: 0;
    right: 0;
  }
}

/* Cuộn hết thẻ lời mời / đã chấp nhận khỏi thanh tab (cả #view-home và #view-detail). */
#kb-page.kb-page,
.kb-page {
  padding-bottom: var(--tab-clear);
}

/* ========================================================================
   v103.53.2 — Báo tường: nhiều tệp đính kèm (tepDinhKem, tối đa 10).
   Thẻ gọn tối đa 2 tệp + «+N tệp»; trang chi tiết hiện đủ danh sách.
   ======================================================================== */
.tb-files {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.tb-files.is-compact { margin-top: 8px; }
.tb-file { margin: 0; padding: 0; }
.tb-file-link,
.tb-files-more-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--navy);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  min-width: 0;
}
.tb-file-ico-wrap {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--cyan, #2BB5D8);
}
.tb-file-ico { width: 22px; height: 22px; display: block; }
.tb-file-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
}
.tb-file-name,
#screen-app .tb-file-name {
  font-weight: 700 !important;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--navy);
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
#screen-app .tb-file-link,
#screen-app .tb-files-more-link {
  font-weight: 700 !important;
  color: var(--navy);
}
.tb-file-size,
#screen-app .tb-file-size {
  font-weight: 400 !important;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}
.tb-file-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  min-width: 0;
}
.tb-file-action,
#screen-app .tb-file-action {
  font-weight: 600 !important;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}
.tb-files-more-link { justify-content: center; }
.tb-item[data-tb-id] { cursor: pointer; }
.tb-item-full { cursor: default; }
.chuong-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.chuong-item .tb-files { margin-top: 8px; }
@media (max-width: 360px) {
  .tb-file-link { padding: 8px 10px; }
  .tb-file-name,
  #screen-app .tb-file-name { font-size: 12px; }
}

/* ========================================================================
   v103.53.4 — huy hiệu: [hidden] luôn ẩn (thắng display:grid !important
   của 103.53.1, không còn chấm đỏ rỗng). Báo tường đệm đáy --tab-clear
   để cuộn «+N tệp» hết khỏi thanh tab.
   ======================================================================== */
#tabbar.tabbar a .tb-badge[hidden],
#tabbar.tabbar .kb-den-badge[hidden],
#tabbar.tabbar a .tab-ico .tb-badge[hidden],
#tabbar.tabbar a .tb-badge.kb-den-badge[hidden],
.tabbar a .tab-ico .tb-badge[hidden],
.tabbar a .tb-badge.kb-den-badge[hidden],
#btn-bell .tb-badge[hidden],
#btn-bell-desk .tb-badge[hidden],
.tile-tb .tb-badge[hidden],
.tile-hd .tb-badge[hidden],
.tile-kb .tb-badge[hidden],
.hv-tb-entry .tb-badge[hidden],
.hv-tb-ico .tb-badge[hidden],
.kb-den-badge[hidden],
.tb-badge[hidden] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
  pointer-events: none !important;
}
/* v103.53.5 — --tab-clear chỉ trên khung cuộn (#screen-app.app-shell)
   và trang tab không có CTA sau bài (Danh bạ .kb-page). Không nhét vào
   thẻ/card, #tb-chi-tiet hay .tb-page (CTA «Về Báo tường» phải sát thẻ). */
#tb-chi-tiet,
.tb-item-full,
.tb-item,
.chuong-item,
.nt-row,
.nt-db-entry,
.tb-cn-card {
  /* giữ padding thẻ gốc; không dùng --tab-clear */
}
.tb-page,
#tb-page,
#tb-chi-tiet,
.tb-item-full {
  padding-bottom: 8px;
}
.tb-item,
.tb-item-full {
  padding-bottom: 14px;
}
#chuong-page,
.chuong-page {
  padding-bottom: 0;
}

/* ========================================================================
   v103.53.6 — huy hiệu đếm kiểu ngọc 3D (chuông, ô mục, tab Danh bạ, tin nhắn).
   Giữ luật 103.53.4: ẩn khi 0 / NaN; không backdrop-filter; không lệch layout.
   ======================================================================== */
:root {
  --tb-jewel-ring: rgba(255, 232, 186, 0.92);
  --tb-jewel-bg:
    radial-gradient(120% 95% at 28% 16%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.06) 30%, transparent 52%),
    linear-gradient(165deg, #ff6b7c 0%, #e11d48 46%, #9b0f1f 100%);
}
html[data-theme="trang"],
html[data-theme="trang-xam"] {
  --tb-jewel-ring: rgba(255, 224, 160, 0.95);
}
html[data-theme="den"] {
  --tb-jewel-ring: rgba(255, 255, 255, 0.92);
}
html[data-theme="xanh-muc"],
html[data-theme="xanh-reu-vang"],
html[data-theme="kinh-xanh"] {
  --tb-jewel-ring: rgba(255, 232, 186, 0.92);
}

.tb-badge,
.kb-den-badge,
.nt-unread,
#btn-bell .tb-badge,
#btn-bell-desk .tb-badge,
.tile-icon .tb-badge,
.hv-tb-ico .tb-badge,
.hv-tb-entry .tb-badge,
#tabbar.tabbar a .tb-badge:not([hidden]),
#tabbar.tabbar .kb-den-badge:not([hidden]),
.tabbar a .tab-ico .tb-badge:not([hidden]) {
  box-sizing: border-box;
  display: grid !important;
  place-items: center;
  position: absolute;
  min-width: 18px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--tb-jewel-bg) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  font-style: normal;
  line-height: 1 !important;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0.5px 0.5px rgba(70, 0, 10, 0.55);
  box-shadow:
    0 2px 4px rgba(120, 0, 10, 0.35),
    inset 0 0 0 1.5px var(--tb-jewel-ring),
    inset 0 1px 1px rgba(255, 255, 255, 0.42),
    inset 0 -1.5px 2px rgba(70, 0, 10, 0.42);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible;
  pointer-events: none;
  isolation: isolate;
  z-index: 4;
}
.nt-unread {
  position: relative;
  flex-shrink: 0;
  top: auto;
  right: auto;
}
.tb-badge.is-pill,
.kb-den-badge.is-pill,
.nt-unread.is-pill,
#tabbar.tabbar a .tb-badge.is-pill,
.tabbar a .tab-ico .tb-badge.is-pill {
  width: auto;
  min-width: 22px;
  padding: 0 6px;
}
.tb-badge::before,
.kb-den-badge::before,
.nt-unread::before {
  content: "";
  position: absolute;
  left: 16%;
  top: 8%;
  width: 68%;
  height: 35%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 72%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
@keyframes tb-jewel-pop {
  0% { transform: scale(0.72); }
  58% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.tb-jewel-pop {
  animation: tb-jewel-pop 0.38s cubic-bezier(0.32, 1.35, 0.45, 1);
  transform-origin: center center;
}
@media (prefers-reduced-motion: reduce) {
  .tb-jewel-pop { animation: none !important; }
}

/* 103.53.4 hidden rules must still win after the jewel background !important. */
#tabbar.tabbar a .tb-badge[hidden],
#tabbar.tabbar .kb-den-badge[hidden],
#tabbar.tabbar a .tab-ico .tb-badge[hidden],
#tabbar.tabbar a .tb-badge.kb-den-badge[hidden],
.tabbar a .tab-ico .tb-badge[hidden],
.tabbar a .tb-badge.kb-den-badge[hidden],
#btn-bell .tb-badge[hidden],
#btn-bell-desk .tb-badge[hidden],
.tile-tb .tb-badge[hidden],
.tile-hd .tb-badge[hidden],
.tile-kb .tb-badge[hidden],
.hv-tb-entry .tb-badge[hidden],
.hv-tb-ico .tb-badge[hidden],
.kb-den-badge[hidden],
.tb-badge[hidden],
.nt-unread[hidden] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
  pointer-events: none !important;
  animation: none !important;
}
.tb-badge[hidden]::before,
.kb-den-badge[hidden]::before,
.nt-unread[hidden]::before {
  content: none !important;
  display: none !important;
}

/* ===== 103.50-the: thẻ hội viên phương án A/B/C (kính 3D, logo thật, chữ vàng-bạc) =====
   Không dùng backdrop-filter chồng lớp. Tái sử dụng biến --lm-* của khối Liên minh. */

.hv-the-picker {
  margin: 0 0 14px;
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: var(--glass, rgba(255,255,255,0.72));
  box-shadow: 0 4px 14px rgba(30, 58, 95, 0.08);
  min-width: 0;
}
.hv-the-picker-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy, #1E3A5F);
  letter-spacing: 0.01em;
}
.hv-the-opts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.hv-the-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 8px 6px 7px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(30, 58, 95, 0.12);
  color: var(--navy, #1E3A5F);
  cursor: pointer;
  font: inherit;
  text-align: center;
  min-width: 0;
}
.hv-the-opt strong {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}
.hv-the-opt span {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--muted, var(--navy-2, #2A4A73));
  text-wrap: pretty;
}
.hv-the-opt.is-on {
  background: var(--navy, #1E3A5F);
  color: #fff;
  box-shadow: 0 0 0 2px var(--lm-gold-hi, #C9A24A), inset 0 1px 0 rgba(255,255,255,0.28);
}
.hv-the-opt.is-on span { color: rgba(255,255,255,0.86); font-weight: 400; }

html[data-theme="xanh-muc"] .hv-the-picker,
html[data-theme="den"] .hv-the-picker,
html[data-theme="xanh-reu-vang"] .hv-the-picker {
  background: rgba(16, 28, 48, 0.72);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}
html[data-theme="xanh-muc"] .hv-the-picker-label,
html[data-theme="den"] .hv-the-picker-label { color: #E7F3FF; }
html[data-theme="xanh-reu-vang"] .hv-the-picker-label { color: #F0C860; }
html[data-theme="xanh-muc"] .hv-the-opt,
html[data-theme="den"] .hv-the-opt,
html[data-theme="xanh-reu-vang"] .hv-the-opt {
  background: rgba(255,255,255,0.08);
  color: #E7F3FF;
  box-shadow: inset 0 0 0 1px rgba(126, 214, 238, 0.22);
}
html[data-theme="xanh-muc"] .hv-the-opt span,
html[data-theme="den"] .hv-the-opt span,
html[data-theme="xanh-reu-vang"] .hv-the-opt span { color: rgba(231, 243, 255, 0.78); }
html[data-theme="xanh-muc"] .hv-the-opt.is-on,
html[data-theme="den"] .hv-the-opt.is-on,
html[data-theme="xanh-reu-vang"] .hv-the-opt.is-on {
  background: #163A62;
  color: #fff;
  box-shadow: 0 0 0 2px var(--lm-gold-hi, #D4A63A);
}

.hv-the-wrap { margin: 0 0 16px; min-width: 0; }
.hv-the-card.hv-the-pa-A,
.hv-the-card.hv-the-pa-B,
.hv-the-card.hv-the-pa-C {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: auto;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
  color: var(--lm-ink, #1E3A5F);
  background: var(--lm-card-bg-solid, #D4ECFA);
  background-image: var(--lm-card-bg);
  border: 1px solid var(--lm-card-border, rgba(255,255,255,0.82));
  border-radius: 20px;
  box-shadow:
    inset 0 1.5px 0 var(--lm-bevel, rgba(255,255,255,0.9)),
    inset 0 -2px 0 var(--lm-inset-bottom, rgba(30,58,95,0.14)),
    0 1px 0 var(--lm-edge-1, #B5D6EC),
    0 2px 0 var(--lm-edge-2, #9EC9E4),
    0 3px 0 var(--lm-edge-3, #86B9D8),
    0 4px 0 var(--lm-edge-4, #6FA8CB),
    0 5px 0 var(--lm-edge-5, #5A96BB),
    0 8px 18px var(--lm-shadow-1, rgba(30,58,95,0.18)),
    0 16px 32px var(--lm-shadow-2, rgba(30,58,95,0.14));
  display: flex;
  flex-direction: column;
  min-width: 0;
  container-type: inline-size;
  container-name: hv-the;
}
.hv-the-card.hv-the-pa-A::after,
.hv-the-card.hv-the-pa-B::after,
.hv-the-card.hv-the-pa-C::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255,255,255,0.28) 0%, transparent 28%, transparent 68%, rgba(201,162,74,0.08) 100%);
  box-shadow: inset 0 1.6px 0 var(--lm-bevel, rgba(255,255,255,0.9)), inset 0 0 0 1px var(--lm-card-border);
}
.hv-the-card.hv-the-pa-A > *,
.hv-the-card.hv-the-pa-B > *,
.hv-the-card.hv-the-pa-C > * { position: relative; z-index: 1; }

.hv-the-silver {
  color: var(--lm-silver, #1E3A5F);
  background: var(--lm-silver-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: var(--lm-silver-emboss);
}
.hv-the-gold {
  color: var(--lm-gold, #8E6B24);
  background: var(--lm-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: var(--lm-gold-emboss);
}

.hv-the-logo-hh,
.hv-the-logo-hh.logo-hhdl-tile {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.92);
  box-shadow: inset 0 0 0 1px rgba(30,58,95,0.08), 0 1px 4px rgba(30,58,95,0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hv-the-logo-hh img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}
.hv-the-logo-vdti {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 0 1 auto;
}
.hv-the-vdti-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  object-fit: contain;
  display: block;
  background: transparent;
}
.hv-the-vdti-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  min-width: 0;
}
.hv-the-vdti-txt strong {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--lm-brand, #1E3A5F);
}
.hv-the-vdti-txt span {
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lm-brand-sub, rgba(30,58,95,0.72));
  white-space: nowrap;
}

.hv-the-card .hv-the-org {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--lm-sub, #1E3A5F);
  white-space: normal;
  text-wrap: pretty;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}
.hv-the-card .hv-the-name {
  margin: 0;
  font-family: "Be Vietnam Pro", var(--font);
  font-size: clamp(15px, 6.2cqi, 22px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.28;
  padding-top: 0.08em;
  padding-bottom: 0.12em;
  color: var(--lm-silver, #1E3A5F);
  background: var(--lm-silver-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: var(--lm-silver-emboss);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.hv-the-card .hv-the-chuc {
  margin: 2px 0 0;
  font-family: "Be Vietnam Pro", var(--font);
  font-size: clamp(11px, 3.8cqi, 14px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.35;
  padding-top: 0.08em;
  padding-bottom: 0.14em;
  color: var(--lm-gold, #8E6B24);
  background: var(--lm-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: var(--lm-gold-emboss);
  text-wrap: pretty;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hv-the-card .hv-the-tier {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  margin: 4px 0 0;
  padding: 3px 8px 3px;
  border-radius: 999px;
  background: rgba(201, 162, 74, 0.16);
  box-shadow: inset 0 0 0 1px rgba(142, 107, 36, 0.45);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--lm-gold, #8E6B24);
  white-space: nowrap;
  text-align: center;
}
.hv-the-card .hv-the-ma {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  color: var(--lm-ink, #1E3A5F);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.hv-the-card .hv-the-qr-pad {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.16), inset 0 0 0 1px rgba(30,58,95,0.06);
}
.hv-the-card .hv-the-qr,
.hv-the-card .hv-the-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hv-the-qr-empty {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 14px;
  font-weight: 800;
  color: #7A8CA3;
}

/* A — thẻ ngang, tỉ lệ thẻ ngân hàng */
.hv-the-card.hv-the-pa-A {
  aspect-ratio: 1.586 / 1;
  padding: 12px 14px 12px;
  justify-content: space-between;
}
.hv-the-pa-A .hv-the-brands,
.hv-the-pa-C .hv-the-brands {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.hv-the-pa-A .hv-the-brand-copy,
.hv-the-pa-C .hv-the-brand-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hv-the-pa-A .hv-the-tier { margin: 2px 0 0; }
.hv-the-pa-A .hv-the-mid { min-width: 0; padding: 4px 0 0; }
.hv-the-pa-A .hv-the-foot,
.hv-the-pa-C .hv-the-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-top: 4px;
}
.hv-the-pa-A .hv-the-logo-vdti { flex: 0 0 auto; }
@container hv-the (max-width: 320px) {
  .hv-the-pa-A .hv-the-vdti-txt,
  .hv-the-pa-C .hv-the-vdti-txt { display: none; }
}

/* B — thẻ đứng danh tính, nền navy kính, chữ vàng-bạc sáng */
.hv-the-card.hv-the-pa-B {
  aspect-ratio: 0.78 / 1;
  padding: 16px 16px 14px;
  align-items: center;
  text-align: center;
  color: #F7FBFF;
  background-color: #1E3A5F;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 22%, transparent 48%),
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(126,214,238,0.28), transparent 58%),
    radial-gradient(ellipse 70% 40% at 50% 110%, rgba(212,166,58,0.18), transparent 55%),
    linear-gradient(165deg, #2A4A73 0%, #1E3A5F 48%, #12243E 100%);
  border-color: rgba(201, 162, 74, 0.45);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.28),
    inset 0 -2px 0 rgba(0,0,0,0.25),
    0 1px 0 #3A5A82,
    0 2px 0 #2E4A70,
    0 3px 0 #243C5C,
    0 4px 0 #1A304C,
    0 8px 20px rgba(16, 32, 56, 0.35),
    0 16px 32px rgba(16, 32, 56, 0.28);
}
.hv-the-card.hv-the-pa-B::after {
  background: linear-gradient(160deg, rgba(255,255,255,0.22) 0%, transparent 32%, transparent 70%, rgba(212,166,58,0.12) 100%);
  box-shadow: inset 0 1.6px 0 rgba(255,255,255,0.28), inset 0 0 0 1px rgba(201,162,74,0.28);
}
.hv-the-pa-B .hv-the-emblem {
  width: 72px;
  height: 72px;
  margin: 0 0 8px;
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 4px 12px rgba(0,0,0,0.22), inset 0 0 0 1px rgba(201,162,74,0.35);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hv-the-pa-B .hv-the-emblem .hv-the-logo-hh,
.hv-the-pa-B .hv-the-emblem .logo-hhdl-tile {
  width: 64px;
  height: 64px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.hv-the-pa-B .hv-the-emblem img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.hv-the-pa-B .hv-the-org {
  color: rgba(231, 243, 255, 0.9);
  text-align: center;
  -webkit-line-clamp: 2;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.hv-the-pa-B .hv-the-tier {
  margin: 8px auto 0;
  background: rgba(201, 162, 74, 0.22);
  box-shadow: inset 0 0 0 1px rgba(246, 217, 138, 0.55);
  color: #F6D98A;
}
.hv-the-pa-B .hv-the-name {
  margin-top: 10px;
  white-space: normal;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #F2F4F8;
  background: linear-gradient(180deg, #FFFFFF 0%, #E8EAEE 40%, #B8BEC6 78%, #F2F3F5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1.2px rgba(0,0,0,0.45));
  font-size: clamp(16px, 7cqi, 24px);
  letter-spacing: 0.06em;
}
.hv-the-pa-B .hv-the-chuc {
  color: #F0C860;
  background: linear-gradient(180deg, #F6D98A 0%, #F0C860 28%, #D4A63A 70%, #B8862A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1.2px rgba(0,0,0,0.4));
  text-align: center;
}
.hv-the-pa-B .hv-the-qr-pad {
  width: 88px;
  height: 88px;
  flex-basis: 88px;
  margin: 12px auto 10px;
}
.hv-the-pa-B .hv-the-ma {
  color: #F6D98A;
  text-align: center;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(246, 217, 138, 0.55);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
.hv-the-pa-B .hv-the-foot-brand {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}
.hv-the-pa-B .hv-the-vdti-txt strong { color: #F2F4F8; }
.hv-the-pa-B .hv-the-vdti-txt span { color: rgba(232, 234, 238, 0.86); }

html[data-theme="xanh-muc"] .hv-the-card.hv-the-pa-B,
html[data-theme="den"] .hv-the-card.hv-the-pa-B,
html[data-theme="xanh-reu-vang"] .hv-the-card.hv-the-pa-B {
  background-image:
    linear-gradient(180deg, rgba(126,214,238,0.12) 0%, transparent 28%),
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(94,225,242,0.18), transparent 58%),
    radial-gradient(ellipse 70% 40% at 50% 110%, rgba(212,166,58,0.16), transparent 55%),
    linear-gradient(165deg, #1A4A73 0%, #132844 50%, #0C1C3E 100%);
}

/* C — thẻ chứng nhận, cùng mặt kính Liên minh, gạch vàng, tiêu đề vàng-bạc */
.hv-the-card.hv-the-pa-C {
  aspect-ratio: 1.18 / 1;
  padding: 14px 14px 12px;
  justify-content: space-between;
}
.hv-the-pa-C .hv-the-kicker {
  margin: 0 0 2px;
  font-family: "Be Vietnam Pro", var(--font);
  font-size: clamp(13px, 5.2cqi, 18px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.28;
  padding-top: 0.08em;
  padding-bottom: 0.12em;
  white-space: nowrap;
}
.hv-the-pa-C .hv-the-rule {
  height: 1px;
  margin: 8px 0;
  border: 0;
  background: linear-gradient(90deg, transparent 0%, #E4C86A 12%, #8E6B24 50%, #E4C86A 88%, transparent 100%);
  opacity: 0.9;
}
.hv-the-pa-C .hv-the-mid { min-width: 0; text-align: left; }
.hv-the-pa-C .hv-the-name {
  white-space: normal;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  letter-spacing: 0.04em;
}
.hv-the-pa-C .hv-the-qr-pad { width: 72px; height: 72px; flex-basis: 72px; }

html[data-theme="xanh-muc"] .hv-the-logo-hh,
html[data-theme="den"] .hv-the-logo-hh,
html[data-theme="xanh-reu-vang"] .hv-the-logo-hh {
  background: rgba(255,255,255,0.96);
}

@media (min-width: 768px) {
  .hv-the-card, .hv-the-wrap { max-width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  .hv-the-opt, .hv-the-card { transition: none; }
}


/* 103.50-the: thắng rule cũ html[data-theme] .hv-the-card và #screen-app .hv-the-org { font-weight: 400 !important } */
html[data-theme="kinh-xanh"] .hv-the-card.hv-the-pa-A,
html[data-theme="trang"] .hv-the-card.hv-the-pa-A,
html[data-theme="trang-xam"] .hv-the-card.hv-the-pa-A,
html[data-theme="xanh-muc"] .hv-the-card.hv-the-pa-A,
html[data-theme="den"] .hv-the-card.hv-the-pa-A,
html[data-theme="xanh-reu-vang"] .hv-the-card.hv-the-pa-A,
html[data-theme="kinh-xanh"] .hv-the-card.hv-the-pa-C,
html[data-theme="trang"] .hv-the-card.hv-the-pa-C,
html[data-theme="trang-xam"] .hv-the-card.hv-the-pa-C,
html[data-theme="xanh-muc"] .hv-the-card.hv-the-pa-C,
html[data-theme="den"] .hv-the-card.hv-the-pa-C,
html[data-theme="xanh-reu-vang"] .hv-the-card.hv-the-pa-C {
  background: var(--lm-card-bg-solid, #D4ECFA);
  background-image: var(--lm-card-bg);
  border: 1px solid var(--lm-card-border, rgba(255,255,255,0.82));
  box-shadow:
    inset 0 1.5px 0 var(--lm-bevel, rgba(255,255,255,0.9)),
    inset 0 -2px 0 var(--lm-inset-bottom, rgba(30,58,95,0.14)),
    0 1px 0 var(--lm-edge-1, #B5D6EC),
    0 2px 0 var(--lm-edge-2, #9EC9E4),
    0 3px 0 var(--lm-edge-3, #86B9D8),
    0 4px 0 var(--lm-edge-4, #6FA8CB),
    0 5px 0 var(--lm-edge-5, #5A96BB),
    0 8px 18px var(--lm-shadow-1, rgba(30,58,95,0.18)),
    0 16px 32px var(--lm-shadow-2, rgba(30,58,95,0.14));
}

html[data-theme="kinh-xanh"] .hv-the-card.hv-the-pa-B,
html[data-theme="trang"] .hv-the-card.hv-the-pa-B,
html[data-theme="trang-xam"] .hv-the-card.hv-the-pa-B {
  background-color: #1E3A5F;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 22%, transparent 48%),
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(126,214,238,0.28), transparent 58%),
    radial-gradient(ellipse 70% 40% at 50% 110%, rgba(212,166,58,0.18), transparent 55%),
    linear-gradient(165deg, #2A4A73 0%, #1E3A5F 48%, #12243E 100%);
  border-color: rgba(201, 162, 74, 0.45);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.28),
    inset 0 -2px 0 rgba(0,0,0,0.25),
    0 1px 0 #3A5A82,
    0 2px 0 #2E4A70,
    0 3px 0 #243C5C,
    0 4px 0 #1A304C,
    0 8px 20px rgba(16, 32, 56, 0.35),
    0 16px 32px rgba(16, 32, 56, 0.28);
}

html[data-theme="xanh-muc"] .hv-the-card.hv-the-pa-B,
html[data-theme="den"] .hv-the-card.hv-the-pa-B,
html[data-theme="xanh-reu-vang"] .hv-the-card.hv-the-pa-B {
  background-color: #0C1C3E;
  background-image:
    linear-gradient(180deg, rgba(126,214,238,0.12) 0%, transparent 28%),
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(94,225,242,0.18), transparent 58%),
    radial-gradient(ellipse 70% 40% at 50% 110%, rgba(212,166,58,0.16), transparent 55%),
    linear-gradient(165deg, #1A4A73 0%, #132844 50%, #0C1C3E 100%);
  border-color: rgba(201, 162, 74, 0.4);
}

#screen-app .hv-the-org,
#screen-app .hv-the-name,
#screen-app .hv-the-chuc,
#screen-app .hv-the-ma,
#screen-app .hv-the-tier,
#screen-app .hv-the-kicker,
#screen-app .hv-the-kicker .hv-the-silver,
#screen-app .hv-the-kicker .hv-the-gold,
#screen-app .hv-the-picker-label,
#screen-app .hv-the-opt strong,
#screen-app .hv-the-vdti-txt strong {
  font-weight: 800 !important;
}
#screen-app .hv-the-opt span,
#screen-app .hv-the-vdti-txt span {
  font-weight: 400 !important;
}

.hv-the-card .hv-the-chuc.is-empty {
  background: none;
  -webkit-text-fill-color: currentColor;
  filter: none;
  color: var(--lm-brand-sub, rgba(30, 58, 95, 0.72));
  font-weight: 400;
  letter-spacing: 0;
  font-size: 12px;
}
.hv-the-pa-B .hv-the-chuc.is-empty { color: rgba(231, 243, 255, 0.72); }
#screen-app .hv-the-chuc.is-empty { font-weight: 400 !important; }


/* ===== 103.50-the3: phương án D (đen-bạc) và E (navy-vàng); ảnh trong ô vuông 1:1 ===== */

.hv-the-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Ô vuông chân dung — chung cho D và E */
.hv-the-pa-D .hv-the-portrait-frame,
.hv-the-pa-E .hv-the-portrait-frame {
  position: relative;
  z-index: 3;
  width: min(164px, 52cqi, 52%);
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  box-sizing: border-box;
  background: #F3F4F6;
}
.hv-the-pa-D .hv-the-portrait-frame {
  border: 1.5px solid #C5C8CE;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4), 0 4px 14px rgba(0,0,0,0.18);
  background: linear-gradient(180deg, #F7F8FA, #E8EAEE);
}
.hv-the-pa-E .hv-the-portrait-frame {
  border: 1.5px solid #D4A63A;
  box-shadow: 0 0 0 1px rgba(246,217,138,0.45), 0 4px 14px rgba(16,24,48,0.22);
  background: linear-gradient(180deg, #FBF6EA, #F3E6C8);
}
.hv-the-pa-D .hv-the-portrait,
.hv-the-pa-E .hv-the-portrait {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: inherit;
  display: grid;
  place-items: center;
}
.hv-the-pa-D .hv-the-portrait img,
.hv-the-pa-E .hv-the-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hv-the-pa-D .hv-the-portrait.is-empty,
.hv-the-pa-E .hv-the-portrait.is-empty {
  color: #8A9098;
}
.hv-the-pa-E .hv-the-portrait.is-empty { color: #8E6B24; }
.hv-the-pa-D .hv-the-portrait.is-empty svg,
.hv-the-pa-E .hv-the-portrait.is-empty svg {
  width: 46%;
  height: 46%;
  display: block;
}

/* D — thẻ đứng đen-bạc, kẹp acrylic CSS */
.hv-the-wrap.is-pa-D .hv-the-holder {
  position: relative;
  margin: 0 auto;
  padding: 12px 8px 10px;
  max-width: 100%;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.14) 48%, rgba(255,255,255,0.22) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 0 0 1px rgba(255,255,255,0.38),
    0 10px 22px rgba(16, 20, 28, 0.18);
  box-sizing: border-box;
}
.hv-the-wrap.is-pa-D .hv-the-clip {
  display: block;
  width: 42px;
  height: 12px;
  margin: -2px auto 8px;
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(180deg, #E8EAEE 0%, #A8AEB6 55%, #7A828C 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.7);
}
html[data-theme="xanh-muc"] .hv-the-wrap.is-pa-D .hv-the-holder,
html[data-theme="den"] .hv-the-wrap.is-pa-D .hv-the-holder,
html[data-theme="xanh-reu-vang"] .hv-the-wrap.is-pa-D .hv-the-holder {
  background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.06) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 0 0 1px rgba(255,255,255,0.14),
    0 10px 22px rgba(0,0,0,0.4);
}

.hv-the-card.hv-the-pa-D {
  aspect-ratio: auto;
  width: 100%;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 14px;
  color: #1A1C20;
  background: #F3F4F6;
  background-image: linear-gradient(180deg, #FAFBFC 0%, #EEF0F3 55%, #E4E6EA 100%);
  border: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7), 0 8px 18px rgba(0,0,0,0.16);
}
html[data-theme="kinh-xanh"] .hv-the-card.hv-the-pa-D,
html[data-theme="trang"] .hv-the-card.hv-the-pa-D,
html[data-theme="trang-xam"] .hv-the-card.hv-the-pa-D,
html[data-theme="xanh-muc"] .hv-the-card.hv-the-pa-D,
html[data-theme="den"] .hv-the-card.hv-the-pa-D,
html[data-theme="xanh-reu-vang"] .hv-the-card.hv-the-pa-D {
  background: #F3F4F6;
  background-image: linear-gradient(180deg, #FAFBFC 0%, #EEF0F3 55%, #E4E6EA 100%);
  border: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7), 0 8px 18px rgba(0,0,0,0.16);
  color: #1A1C20;
}
.hv-the-card.hv-the-pa-D::after { content: none; display: none; }

.hv-the-pa-D .hv-the-d-head {
  background: #111216;
  color: #E8EAEE;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.hv-the-pa-D .hv-the-d-logo .hv-the-logo-hh,
.hv-the-pa-D .hv-the-d-logo .logo-hhdl-tile {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(200,204,210,0.7);
}
.hv-the-pa-D .hv-the-d-logo img { width: 36px; height: 36px; object-fit: contain; }
.hv-the-pa-D .hv-the-org {
  color: #E8EAEE;
  letter-spacing: 0.12em;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  text-overflow: unset;
  line-height: 1.6;
  padding-top: 0.22em;
  padding-bottom: 0.32em;
}
.hv-the-pa-D .hv-the-d-head {
  position: relative;
  overflow: visible;
  padding-bottom: 18px;
}
.hv-the-pa-D .hv-the-d-head::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -20px;
  height: 40px;
  background: #111216;
  border-radius: 0 0 50% 50%;
  z-index: 0;
  pointer-events: none;
}
.hv-the-pa-D .hv-the-d-photo {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 16px 8px;
  overflow: visible;
  background: transparent;
}
.hv-the-pa-D .hv-the-d-swoosh { display: none; }
.hv-the-pa-D .hv-the-d-body {
  position: relative;
  z-index: 1;
  padding: 4px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.hv-the-pa-D .hv-the-label {
  margin: 0 0 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #6A7078;
  text-transform: uppercase;
}
.hv-the-pa-D .hv-the-name {
  background: none;
  -webkit-text-fill-color: #111216;
  filter: none;
  color: #111216;
  font-size: clamp(16px, 6.4cqi, 22px);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: normal;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hv-the-pa-D .hv-the-chuc {
  background: none;
  -webkit-text-fill-color: #3A3E46;
  filter: none;
  color: #3A3E46;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}
.hv-the-pa-D .hv-the-chuc.is-empty,
.hv-the-pa-D .hv-the-cty.is-empty {
  background: none;
  -webkit-text-fill-color: #7A828C;
  color: #7A828C;
  font-weight: 400;
}
.hv-the-pa-D .hv-the-cty {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 400;
  color: #4A5058;
  text-wrap: pretty;
}
.hv-the-pa-D .hv-the-d-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  min-width: 0;
}
.hv-the-pa-D .hv-the-qr-pad {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1), inset 0 0 0 1px #E4E6EA;
}
.hv-the-pa-D .hv-the-d-id { min-width: 0; flex: 1 1 auto; }
.hv-the-pa-D .hv-the-ma {
  color: #111216;
  letter-spacing: 0.08em;
  font-size: 10.5px;
  margin: 0 0 6px;
}
.hv-the-pa-D .hv-the-slogan {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  color: #5A6068;
  text-wrap: pretty;
}

/* E — thẻ đứng navy-vàng, ô vuông tách khỏi sọc vàng */
.hv-the-card.hv-the-pa-E {
  aspect-ratio: auto;
  width: 100%;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 16px;
  color: #1E3A5F;
  background: #fff;
  border: 0;
  box-shadow: 0 8px 22px rgba(16, 32, 56, 0.22);
}
html[data-theme="kinh-xanh"] .hv-the-card.hv-the-pa-E,
html[data-theme="trang"] .hv-the-card.hv-the-pa-E,
html[data-theme="trang-xam"] .hv-the-card.hv-the-pa-E,
html[data-theme="xanh-muc"] .hv-the-card.hv-the-pa-E,
html[data-theme="den"] .hv-the-card.hv-the-pa-E,
html[data-theme="xanh-reu-vang"] .hv-the-card.hv-the-pa-E {
  background: #fff;
  border: 0;
  box-shadow: 0 8px 22px rgba(16, 32, 56, 0.22);
  color: #1E3A5F;
}
.hv-the-card.hv-the-pa-E::after { content: none; display: none; }

.hv-the-pa-E .hv-the-e-top {
  position: relative;
  background: #0E1A30;
  color: #F7FBFF;
  padding: 14px 14px 10px;
  overflow: hidden;
  min-height: 72px;
}
.hv-the-pa-E .hv-the-e-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(115deg, transparent 0 16px, rgba(255,255,255,0.045) 16px 17px),
    repeating-linear-gradient(25deg, transparent 0 22px, rgba(212,166,58,0.07) 22px 23px),
    linear-gradient(165deg, #163056 0%, #0E1A30 58%, #0A1426 100%);
}
.hv-the-pa-E .hv-the-e-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.hv-the-pa-E .hv-the-e-brand .hv-the-logo-hh,
.hv-the-pa-E .hv-the-e-brand .logo-hhdl-tile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(212,166,58,0.35);
}
.hv-the-pa-E .hv-the-e-brand img { width: 32px; height: 32px; object-fit: contain; }
.hv-the-pa-E .hv-the-e-brand-name {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  color: #F2F4F8;
  text-transform: uppercase;
  text-wrap: pretty;
  min-width: 0;
}
.hv-the-pa-E .hv-the-e-photo {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px 12px;
  background: #0E1A30;
  overflow: visible;
}
.hv-the-pa-E .hv-the-e-gold {
  height: 10px;
  flex: 0 0 10px;
  margin: 0;
  background: linear-gradient(105deg, #F6D98A 0%, #D4A63A 42%, #8E6B24 100%);
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
}
.hv-the-pa-E .hv-the-e-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 16px;
  background: #fff;
  min-width: 0;
}
.hv-the-pa-E .hv-the-e-copy { flex: 1 1 auto; min-width: 0; }
.hv-the-pa-E .hv-the-name {
  background: none;
  -webkit-text-fill-color: #0E1A30;
  filter: none;
  color: #0E1A30;
  font-size: clamp(15px, 5.8cqi, 20px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: normal;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hv-the-pa-E .hv-the-chuc {
  background: none;
  -webkit-text-fill-color: #8E6B24;
  filter: none;
  color: #8E6B24;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.hv-the-pa-E .hv-the-chuc.is-empty {
  background: none;
  -webkit-text-fill-color: #9AA0A8;
  color: #9AA0A8;
  font-weight: 400;
  letter-spacing: 0;
}
.hv-the-pa-E .hv-the-info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.hv-the-pa-E .hv-the-info-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}
.hv-the-pa-E .hv-the-info-ico {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: #C9A24A;
}
.hv-the-pa-E .hv-the-ico { width: 16px; height: 16px; display: block; }
.hv-the-pa-E .hv-the-info-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hv-the-pa-E .hv-the-info-k {
  font-size: 9px;
  font-weight: 400;
  color: #7A8290;
  letter-spacing: 0.04em;
}
.hv-the-pa-E .hv-the-info-v {
  font-size: 11.5px;
  font-weight: 800;
  color: #1E3A5F;
  text-wrap: pretty;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hv-the-pa-E .hv-the-e-id {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.hv-the-pa-E .hv-the-qr-pad {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16,32,56,0.12), inset 0 0 0 1px #E8EAEE;
}
.hv-the-pa-E .hv-the-ma {
  color: #0E1A30;
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: normal;
  max-width: 76px;
  line-height: 1.3;
}

#screen-app .hv-the-label,
#screen-app .hv-the-cty,
#screen-app .hv-the-e-brand-name,
#screen-app .hv-the-info-v,
#screen-app .hv-the-pa-D .hv-the-name,
#screen-app .hv-the-pa-D .hv-the-chuc,
#screen-app .hv-the-pa-E .hv-the-name,
#screen-app .hv-the-pa-E .hv-the-chuc,
#screen-app .hv-the-pa-D .hv-the-ma,
#screen-app .hv-the-pa-E .hv-the-ma {
  font-weight: 800 !important;
}
#screen-app .hv-the-slogan,
#screen-app .hv-the-info-k,
#screen-app .hv-the-pa-D .hv-the-cty,
#screen-app .hv-the-chuc.is-empty,
#screen-app .hv-the-cty.is-empty {
  font-weight: 400 !important;
}

@media (max-width: 370px) {
  .hv-the-pa-D .hv-the-org { letter-spacing: 0.08em; font-size: 8.5px; line-height: 1.6; padding-top: 0.22em; padding-bottom: 0.32em; overflow: visible; display: block; -webkit-line-clamp: unset; }
  .hv-the-pa-D .hv-the-qr-pad,
  .hv-the-pa-E .hv-the-qr-pad { width: 62px; height: 62px; flex-basis: 62px; }
  .hv-the-pa-D .hv-the-portrait-frame,
  .hv-the-pa-E .hv-the-portrait-frame { width: min(148px, 56%); }
  .hv-the-opt span { font-size: 9px; }
}


/* 103.50-the5: chừa chỗ dấu tiếng Việt (Ệ Ộ Ị Ã Ắ) — line-height + padding, tránh clip overflow */
.hv-the-card .hv-the-org,
.hv-the-card .hv-the-name,
.hv-the-card .hv-the-chuc,
.hv-the-card .hv-the-ma,
.hv-the-card .hv-the-tier,
.hv-the-card .hv-the-kicker,
.hv-the-card .hv-the-label,
.hv-the-pa-E .hv-the-e-brand-name,
.hv-the-pa-E .hv-the-info-v,
.hv-the-pa-D .hv-the-slogan,
.hv-the-pa-D .hv-the-ma,
.hv-the-pa-E .hv-the-ma {
  line-height: 1.55;
  padding-top: 0.18em;
  padding-bottom: 0.28em;
}
.hv-the-pa-E .hv-the-e-brand-name {
  overflow: visible;
  line-height: 1.6;
  padding-top: 0.2em;
  padding-bottom: 0.3em;
}
.hv-the-pa-E .hv-the-e-brand { overflow: visible; min-width: 0; }
.hv-the-pa-E .hv-the-e-top { overflow: visible; padding-top: 16px; padding-bottom: 12px; }
.hv-the-card .hv-the-ma {
  overflow: hidden;
  line-height: 1.55;
}
.hv-the-picker { margin-bottom: 10px; padding: 8px 10px 8px; }
.hv-the-picker-label { margin-bottom: 6px; }


/* 103.50-the6: mẫu E mặc định — tỷ lệ ISO/IEC 7810 ID-1 dọc (53.98 × 85.60 mm),
   góc ~3.18 mm, không logo, lĩnh vực, hoa văn chìm. Không méo tỷ lệ. */
.hv-the-wrap.is-pa-E {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
}
.hv-the-card.hv-the-pa-E {
  --hv-e-navy: #0E1A30;
  --hv-e-navy-2: #163056;
  --hv-e-gold: #D4A63A;
  --hv-e-gold-2: #F6D98A;
  --hv-e-ink: #1E3A5F;
  container-type: inline-size;
  container-name: hvthee;
  aspect-ratio: 53.98 / 85.60;
  width: min(100%, 22.8rem);
  height: auto;
  max-height: none;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: calc(3.18 / 53.98 * 100%) / calc(3.18 / 85.60 * 100%);
  color: var(--hv-e-ink);
  background: #fff;
  border: 0;
  box-shadow: 0 8px 22px rgba(16, 32, 56, 0.22);
  position: relative;
  font-size: 1cqw;
}
html[data-theme="kinh-xanh"] .hv-the-card.hv-the-pa-E,
html[data-theme="trang"] .hv-the-card.hv-the-pa-E,
html[data-theme="trang-xam"] .hv-the-card.hv-the-pa-E,
html[data-theme="xanh-muc"] .hv-the-card.hv-the-pa-E,
html[data-theme="den"] .hv-the-card.hv-the-pa-E,
html[data-theme="xanh-reu-vang"] .hv-the-card.hv-the-pa-E {
  background: #fff;
  color: #1E3A5F;
  border: 0;
  box-shadow: 0 8px 22px rgba(16, 32, 56, 0.22);
}
.hv-the-pa-E .hv-the-e-micro {
  position: absolute;
  left: 1.4cqw;
  right: 1.4cqw;
  top: 1.1cqw;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  height: 1.35cqw;
  display: flex;
  flex-direction: column;
  gap: 0;
  color: rgba(246, 217, 138, 0.48);
  font-weight: 700;
  font-size: 0.48cqw;
  letter-spacing: 0.16em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}
.hv-the-pa-E .hv-the-e-micro span { display: block; }
.hv-the-pa-E .hv-the-e-top {
  position: relative;
  flex: 0 0 auto;
  background-color: #0E1A30;
  background-image: url("../img/the-hv/guilloche-e-navy.webp");
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  color: #F7FBFF;
  padding: 5.2cqw 5.2cqw 3.2cqw;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.6cqw;
}
.hv-the-pa-E .hv-the-e-pattern {
  display: none;
}
.hv-the-pa-E .hv-the-e-brand { display: none; }
.hv-the-pa-E .hv-the-e-brand-name {
  position: relative;
  z-index: 2;
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 3.15cqw;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.6;
  padding-top: 0.28em;
  padding-bottom: 0.36em;
  color: #F4F1E6;
  text-transform: uppercase;
  text-wrap: pretty;
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
}
.hv-the-pa-E .hv-the-e-photo {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.6cqw 0 1.6cqw;
  background: transparent;
  overflow: visible;
  width: 100%;
}
.hv-the-pa-E .hv-the-portrait-frame {
  width: 48cqw;
  height: 48cqw;
  max-width: 48cqw;
  aspect-ratio: 1 / 1;
  border-radius: 2.2cqw;
  overflow: hidden;
  border: 0.55cqw solid #D4A63A;
  box-shadow: 0 0 0 0.35cqw rgba(246, 217, 138, 0.35), 0 1.2cqw 2.4cqw rgba(0, 0, 0, 0.28);
  background: #F3E6C0;
  flex: 0 0 auto;
}
.hv-the-pa-E .hv-the-portrait,
.hv-the-pa-E .hv-the-portrait.is-photo,
.hv-the-pa-E .hv-the-portrait.is-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hv-the-pa-E .hv-the-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hv-the-pa-E .hv-the-portrait.is-empty { color: #8E6B24; background: #F7EFD2; }
.hv-the-pa-E .hv-the-portrait.is-empty svg { width: 46%; height: 46%; }
.hv-the-pa-E .hv-the-e-gold {
  height: 3.1cqw;
  flex: 0 0 3.1cqw;
  margin: 0;
  background: linear-gradient(105deg, #F6D98A 0%, #D4A63A 42%, #8E6B24 100%);
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
  position: relative;
  z-index: 2;
}
.hv-the-pa-E .hv-the-e-body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3cqw;
  padding: 4.2cqw 5.2cqw 4.4cqw;
  min-width: 0;
  min-height: 0;
  background-color: #fff;
  background-image: url("../img/the-hv/guilloche-e-light.webp");
  background-size: 100% auto;
  background-position: bottom center;
  background-repeat: no-repeat;
}
.hv-the-pa-E .hv-the-e-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  pointer-events: none;
  z-index: 0;
}
.hv-the-pa-E .hv-the-e-copy,
.hv-the-pa-E .hv-the-e-id { position: relative; z-index: 1; }
.hv-the-pa-E .hv-the-e-copy { flex: 1 1 auto; min-width: 0; }
.hv-the-pa-E .hv-the-name {
  margin: 0 0 1.2cqw;
  font-size: 5.6cqw;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  padding-top: 0.12em;
  padding-bottom: 0.16em;
  color: #0E1A30;
  text-transform: uppercase;
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
  text-wrap: pretty;
}
.hv-the-pa-E .hv-the-chuc {
  background: none;
  -webkit-text-fill-color: #8E6B24;
  filter: none;
  color: #8E6B24;
  font-size: 3.15cqw;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.45;
  padding-top: 0.12em;
  padding-bottom: 0.2em;
  margin: 0 0 3cqw;
  overflow: visible;
}
.hv-the-pa-E .hv-the-chuc.is-empty {
  background: none;
  -webkit-text-fill-color: #9AA0A8;
  color: #9AA0A8;
  font-weight: 400;
  letter-spacing: 0;
}
.hv-the-pa-E .hv-the-info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.1cqw;
}
.hv-the-pa-E .hv-the-info-row {
  display: flex;
  align-items: flex-start;
  gap: 1.6cqw;
  min-width: 0;
}
.hv-the-pa-E .hv-the-info-ico {
  flex: 0 0 3.4cqw;
  width: 3.4cqw;
  height: 3.4cqw;
  margin-top: 0.4cqw;
  color: #C9A24A;
}
.hv-the-pa-E .hv-the-ico { width: 100%; height: 100%; display: block; }
.hv-the-pa-E .hv-the-info-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hv-the-pa-E .hv-the-info-k {
  font-size: 2.45cqw;
  font-weight: 400;
  color: #7A8290;
  letter-spacing: 0.04em;
  line-height: 1.4;
  padding-bottom: 0.1em;
}
.hv-the-pa-E .hv-the-info-v {
  font-size: 3.05cqw;
  font-weight: 800;
  color: #1E3A5F;
  text-wrap: pretty;
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
  line-height: 1.5;
  padding-top: 0.1em;
  padding-bottom: 0.18em;
}
.hv-the-pa-E .hv-the-lv-item { white-space: nowrap; }
.hv-the-pa-E .hv-the-lv-sep { white-space: normal; }
.hv-the-pa-E .hv-the-e-id {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5cqw;
  min-width: 0;
  width: 24cqw;
}
.hv-the-pa-E .hv-the-qr-pad {
  width: 22cqw;
  height: 22cqw;
  flex-basis: 22cqw;
  background: #fff;
  box-shadow: 0 0.4cqw 1.2cqw rgba(16,32,56,0.12), inset 0 0 0 0.25cqw #E8EAEE;
  border-radius: 1.2cqw;
  overflow: hidden;
  padding: 1cqw;
  box-sizing: border-box;
}
.hv-the-pa-E .hv-the-qr,
.hv-the-pa-E .hv-the-qr svg { width: 100%; height: 100%; display: block; }
.hv-the-pa-E .hv-the-ma {
  color: #0E1A30;
  font-size: 2.35cqw;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: normal;
  max-width: 24cqw;
  line-height: 1.5;
  padding-top: 0.15em;
  padding-bottom: 0.22em;
  overflow: visible;
}
.hv-the-pa-E .hv-the-e-tem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2cqw;
  color: rgba(14, 26, 48, 0.22);
  margin-top: 0.6cqw;
  user-select: none;
}
.hv-the-pa-E .hv-the-e-tem-seal {
  width: 14cqw;
  height: 14cqw;
  display: block;
  filter: drop-shadow(0 0.2cqw 0 rgba(255,255,255,0.7)) drop-shadow(0 -0.15cqw 0 rgba(14,26,48,0.12));
}
.hv-the-pa-E .hv-the-e-tem-code {
  font-size: 1.7cqw;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  color: rgba(14, 26, 48, 0.28);
}
@media (max-width: 370px) {
  .hv-the-card.hv-the-pa-E { width: min(100%, 22.8rem); }
  .hv-the-pa-E .hv-the-portrait-frame { width: 48cqw; height: 48cqw; }
  .hv-the-pa-E .hv-the-qr-pad { width: 22cqw; height: 22cqw; flex-basis: 22cqw; }
}

/* ===== 103.50-the7: mẫu chung ngang ISO/IEC 7810 ID-1 (85.60 × 53.98 mm) ===== */
.hv-the-wrap.is-pa-E {
  max-width: 560px;
}
.hv-the-card.hv-the-pa-E.hv-the-mau-chung {
  position: relative;
  aspect-ratio: 85.60 / 53.98;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  display: block;
  container-type: inline-size;
  container-name: the-hv;
  border-radius: 3.715cqw;
  color: #143230;
  background: #eef2f2;
  border: 0;
  box-shadow: 0 8px 22px rgba(18, 40, 38, 0.18);
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  z-index: 0;
}
html[data-theme="kinh-xanh"] .hv-the-card.hv-the-pa-E.hv-the-mau-chung,
html[data-theme="trang"] .hv-the-card.hv-the-pa-E.hv-the-mau-chung,
html[data-theme="trang-xam"] .hv-the-card.hv-the-pa-E.hv-the-mau-chung,
html[data-theme="xanh-muc"] .hv-the-card.hv-the-pa-E.hv-the-mau-chung,
html[data-theme="den"] .hv-the-card.hv-the-pa-E.hv-the-mau-chung,
html[data-theme="xanh-reu-vang"] .hv-the-card.hv-the-pa-E.hv-the-mau-chung {
  background: #eef2f2;
  color: #143230;
  border: 0;
  box-shadow: 0 8px 22px rgba(18, 40, 38, 0.18);
}
.hv-the-mau-chung > * { position: relative; z-index: 1; }
.hv-the-m-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../img/the-hv/mau-chung-deco-front-v5.webp") center / cover no-repeat;
}
.hv-the-m-deco-back,
.hv-the-mau-chung.is-back .hv-the-m-deco {
  background-image: url("../img/the-hv/mau-chung-deco-back-v2.webp");
}

.hv-the-m-head {
  display: flex;
  align-items: flex-start;
  gap: 1.7cqw;
  padding: 3.5cqw 3.5cqw 0;
}
.hv-the-m-bar {
  flex: 0 0 1.46cqw;
  width: 1.46cqw;
  height: 8.35cqw;
  border-radius: 0.41cqw;
  background: #123F3C;
}
.hv-the-m-head-copy { min-width: 0; flex: 1 1 auto; }
.hv-the-m-title {
  margin: 0;
  font-weight: 800;
  font-size: 6.43cqw;
  line-height: 1.12;
  color: #123F3C;
  letter-spacing: -0.02em;
  padding-bottom: 0.12em;
  overflow: visible;
  text-wrap: pretty;
}
.hv-the-m-title-sm { font-size: 4.62cqw; letter-spacing: -0.01em; }
.hv-the-m-sub {
  margin: 0.3cqw 0 0;
  font-weight: 500;
  font-size: 2.13cqw;
  letter-spacing: 0.22em;
  color: #5C7A77;
  text-transform: uppercase;
}

.hv-the-m-body {
  display: grid;
  grid-template-columns: 22.08% minmax(0, 1fr) 18.0%;
  gap: 2.4cqw 2.0cqw;
  padding: 1.2cqw 3.5cqw 15.2cqw;
  align-items: start;
}
.hv-the-mau-chung .hv-the-portrait-frame,
.hv-the-mau-chung .hv-the-m-photo,
.hv-the-mau-chung .hv-the-portrait {
  width: 100%;
  aspect-ratio: 18.90 / 23.20;
  height: auto;
  border-radius: 1.7cqw;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #C5E8E2 0%, #E3F5F1 45%, #F7FCFB 100%);
  box-shadow: none;
}
.hv-the-mau-chung .hv-the-portrait-frame {
  outline: 0.21cqw solid #C0C8C6;
  outline-offset: -0.1cqw;
}
.hv-the-mau-chung .hv-the-portrait img,
.hv-the-mau-chung .hv-the-m-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}
.hv-the-mau-chung .hv-the-portrait.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5C7A77;
}
.hv-the-mau-chung .hv-the-portrait.is-empty svg { width: 46%; height: auto; }

.hv-the-m-fields {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.hv-the-m-group {
  padding: 0.42cqw 0 0.48cqw;
  border-top: 0.19cqw solid #CFD8D7;
}
.hv-the-m-group:first-child { border-top: 0; padding-top: 0.15cqw; }
.hv-the-m-lab,
.hv-the-m-lab-w,
.hv-the-m-lab-d {
  margin: 0;
  font-weight: 400;
  font-size: 1.80cqw;
  line-height: 1.25;
  color: #1A3634;
}
.hv-the-m-en,
.hv-the-m-lab .hv-the-m-en {
  font-style: italic;
  font-weight: 400;
  color: #7A8C8A;
}
.hv-the-m-val {
  margin: 0.12cqw 0 0;
  font-weight: 700;
  font-size: 2.91cqw;
  line-height: 1.14;
  color: #123F3C;
  padding-bottom: 0.08em;
  overflow: visible;
  text-wrap: pretty;
}
.hv-the-m-val.is-name {
  font-weight: 800;
  font-size: 3.77cqw;
}
.hv-the-m-val.is-org { font-size: 2.91cqw; }
.hv-the-m-val.is-pos {
  font-weight: 700;
  font-size: 2.55cqw;
  color: #143230;
}
.hv-the-m-val.is-term { font-size: 3.18cqw; }
.hv-the-m-en-pos {
  margin: 0.08cqw 0 0;
  font-style: italic;
  font-weight: 400;
  font-size: 1.46cqw;
  line-height: 1.15;
  color: #7A8C8A;
}

.hv-the-mau-chung .hv-the-m-qr,
.hv-the-mau-chung .hv-the-qr-pad {
  width: 18.0cqw;
  height: 18.0cqw;
  flex: none;
  background: #fff;
  border-radius: 1.35cqw;
  box-shadow: 0 0.4cqw 1.1cqw rgba(20, 30, 30, 0.10);
  border: 0.18cqw solid #E4E8E8;
  padding: 1.0cqw;
  box-sizing: border-box;
}
.hv-the-mau-chung .hv-the-qr,
.hv-the-mau-chung .hv-the-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hv-the-mau-chung .hv-the-qr path { fill: #123F3C; }
.hv-the-mau-chung .hv-the-qr rect:first-child { fill: #fff; }

.hv-the-mau-chung .hv-the-e-tem {
  position: absolute;
  left: 4.8cqw;
  bottom: 16.2cqw;
  width: 6.2cqw;
  margin: 0;
  gap: 0;
  color: rgba(18, 63, 60, 0.28);
  z-index: 2;
  pointer-events: none;
}
.hv-the-mau-chung .hv-the-e-tem-seal { width: 5.0cqw; height: 5.0cqw; }
.hv-the-mau-chung .hv-the-e-tem-code {
  font-size: 1.15cqw;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.hv-the-m-band {
  position: absolute;
  left: 3.5cqw;
  right: 3.5cqw;
  bottom: 3.5cqw;
  height: 11.16cqw;
  display: grid;
  grid-template-columns: 52% 1.8cqw minmax(0, 1fr);
  align-items: stretch;
  z-index: 2;
}
.hv-the-m-band-id {
  background: linear-gradient(90deg, #164E4A 0%, #2A7A74 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6.07cqw) 100%, 0 100%);
  border-radius: 1.34cqw 0 0 1.34cqw;
  color: #fff;
  padding: 2.3cqw 7.0cqw 1.6cqw 2.5cqw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.hv-the-m-lab-w { color: #fff; }
.hv-the-m-lab-w .hv-the-m-en { color: #D0E8E6; font-style: italic; }
.hv-the-m-id {
  margin: 0;
  font-weight: 800;
  font-size: 4.70cqw;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  padding-bottom: 0.06em;
  overflow: visible;
  white-space: nowrap;
}
.hv-the-m-band-stripe {
  width: 1.58cqw;
  margin-left: -5.4cqw;
  background: #8EC8C2;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6.07cqw) 100%, -6.07cqw 100%);
  justify-self: start;
}
.hv-the-m-band-valid {
  padding: 2.3cqw 0.4cqw 1.6cqw 2.2cqw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.hv-the-m-lab-d { color: #1A3634; }
.hv-the-m-date {
  margin: 0;
  font-weight: 800;
  font-size: 4.54cqw;
  line-height: 1;
  color: #123F3C;
  letter-spacing: -0.02em;
  padding-bottom: 0.06em;
  overflow: visible;
  white-space: nowrap;
}

/* back */
.hv-the-mau-chung.is-back {
  margin-top: 0;
}
.hv-the-mau-chung.is-back .hv-the-m-note {
  padding: 6.5cqw 5.8cqw 0 5.8cqw;
}
.hv-the-m-rule {
  display: block;
  width: 21cqw;
  height: 0.41cqw;
  background: #2A7A74;
  margin: 0 0 3.4cqw;
}
.hv-the-m-note-vi {
  margin: 0;
  font-weight: 400;
  font-size: 2.72cqw;
  line-height: 1.45;
  color: #143230;
  text-wrap: pretty;
}
.hv-the-m-note-en {
  margin: 2.4cqw 0 0;
  font-style: italic;
  font-weight: 400;
  font-size: 2.15cqw;
  line-height: 1.40;
  color: #7A8C8A;
  text-wrap: pretty;
}
.hv-the-mau-chung.is-back .hv-the-m-foot {
  position: absolute;
  left: 3.5cqw;
  right: 3.5cqw;
  bottom: 3.5cqw;
  height: 7.48cqw;
  margin: 0;
  border-radius: 1.17cqw;
  background: #164E4A;
  color: #fff;
  font-weight: 700;
  font-size: 2.23cqw;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* #screen-app p { font-weight: 400 !important } (v103.45) was flattening
   mẫu chung titles, names, positions, IDs and dates to regular. Long's rule:
   tiêu đề, tên, chức danh, số liệu và nút phải đậm. */
#screen-app .hv-the-mau-chung .hv-the-m-val,
#screen-app .hv-the-mau-chung .hv-the-m-foot {
  font-weight: 700 !important;
}
#screen-app .hv-the-mau-chung .hv-the-m-title,
#screen-app .hv-the-mau-chung .hv-the-m-val.is-name,
#screen-app .hv-the-mau-chung .hv-the-m-id,
#screen-app .hv-the-mau-chung .hv-the-m-date,
#screen-app .toi-the-tai-in {
  font-weight: 800 !important;
}

.toi-the-side-label {
  margin: 18px 0 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--text, #143230);
}
.toi-the-actions {
  margin: 18px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.toi-the-tai-in {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: #fff;
  background: #123F3C;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 14px rgba(18, 63, 60, 0.22);
}
.toi-the-tai-in:disabled { opacity: 0.65; cursor: wait; }
.toi-the-tai-in:focus-visible { outline: 3px solid #2A7A74; outline-offset: 2px; }
.toi-the-qr-in-chu-y {
  margin: 8px 0 0;
  font-weight: 400;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #5C7A77;
}
.toi-the-qr-in-chu-y[hidden] { display: none; }
.toi-the-tai-hint,
.toi-the-tai-status {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted, #5C7A77);
  text-wrap: pretty;
}
html[data-theme="den"] .toi-the-tai-in,
html[data-theme="xanh-muc"] .toi-the-tai-in {
  background: #1c6b66;
  color: #fff;
}
html[data-theme="xanh-reu-vang"] .toi-the-tai-in {
  background: #123F3C;
  color: #F0C860;
}
html[data-theme="den"] .toi-the-side-label,
html[data-theme="xanh-muc"] .toi-the-side-label { color: #E7F3FF; }
html[data-theme="xanh-reu-vang"] .toi-the-side-label { color: #F0C860; }

@media (min-width: 720px) {
  .hv-the-wrap.is-pa-E,
  .hv-the-card.hv-the-pa-E.hv-the-mau-chung { max-width: 640px; }
}

/* ===== 103.54.3: trả kính thanh tab mobile như production (103.50 / rule 103.53).
   Theme sáng + xanh mực + xanh rêu vàng: không đè nền / blur.
   Theme den: giữ kính (gradient + blur 20px / saturate 1.7) và thêm lớp tối tối thiểu
   + bóng chữ/icon để tương phản ≥ 4.5 khi khối trắng nằm dưới — sửa lỗi, không đổi bố cục. */
@media (max-width: 767.98px) {
  html[data-theme="den"] #tabbar.tabbar:not([hidden]) {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0.02) 100%),
      rgba(12, 12, 12, 0.88);
    backdrop-filter: blur(20px) saturate(1.7);
    -webkit-backdrop-filter: blur(20px) saturate(1.7);
  }
  html[data-theme="den"] #tabbar.tabbar:not([hidden]) > a[data-tab],
  html[data-theme="den"] #tabbar.tabbar:not([hidden]) > span[data-tab] {
    text-shadow:
      0 0 4px rgba(0, 0, 0, 0.92),
      0 1px 2px rgba(0, 0, 0, 0.8);
  }
  html[data-theme="den"] #tabbar.tabbar:not([hidden]) > a[data-tab] svg,
  html[data-theme="den"] #tabbar.tabbar:not([hidden]) > span[data-tab] svg {
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.95)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
  }
}


/* Liên minh v2 — hội viên: thẻ nội dung chia sẻ, tìm kiếm, nguồn đăng lại */
.lm-v2-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.lm-v2-search-row select,
.lm-v2-search-row input[type="search"] {
  flex: 1 1 140px;
  min-width: 0;
  font: inherit;
  border-radius: 12px;
  padding: 10px 12px;
}
.lm-v2-search-row .btn-cta { flex: 0 0 auto; font-weight: 700; }
.lm-v2-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}
.lm-v2-acts .btn-cta { font-weight: 700; }
.lm-v2-acts-wrap { margin-top: 16px; }
.lm-v2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 8px 0 14px;
  padding: 0;
}
.lm-v2-chips li {
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  font-size: 13px;
}
.lm-v2-chips li strong { font-weight: 700; }
.lm-v2-nguon {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.lm-v2-muted {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.lm-v2-dung-kq { margin: 8px 0 0; font-size: 13px; }
.lm-v2-dung-kq.is-ok { font-weight: 700; }
.lm-v2-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.lm-v2-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lm-card.is-link { text-decoration: none; color: inherit; }
.lm-v2-dt .lm-tt { font-weight: 700; }
.lm-v2-login .btn-cta { font-weight: 700; }


/* ========================================================================
   v103.55.2 — không cắt tên / tiêu đề / tên hiệp hội (tối đa 2 dòng,
   cân, không từ mồ côi; thu nhỏ chữ nếu 2 dòng vẫn chật). Đệm đáy chung
   trên mọi trang cuộn = chỗ thanh tab chiếm + env(safe-area-inset-bottom).
   Chỉ đổi quy tắc overflow / chừa chỗ; giữ look bản phát hành.
   ======================================================================== */

@media (max-width: 767px) {
  html { scroll-padding-bottom: var(--tab-pad); }
  #screen-app.app-shell {
    padding-bottom: var(--tab-pad);
  }
  #view-home,
  #view-detail {
    padding-bottom: 0;
  }
  /* Thanh cuộn nội bộ kéo tới đáy viewport cũng chừa đúng một token. */
  #screen-app .hh-can-tab,
  #screen-app [data-hh-can-tab] {
    padding-bottom: var(--tab-pad);
    scroll-padding-bottom: var(--tab-pad);
  }
}

/* Tên, tiêu đề, tên hiệp hội: không ellipsis; cho xuống tối đa 2 dòng. */
.topbar .brand .tiny,
#assoc-name,
#screen-app .lm-hh-ten,
#screen-app .lm-hh-copy .lm-hh-ten,
#screen-app .hv-name-text,
#screen-app .person .hv-name-text,
#screen-app .hv-card .hv-name-text,
#screen-app .bch-ds-body .hv-name-text,
#screen-app .person-body h4,
#screen-app .hv-card .hv-body h4,
#screen-app .hd-body h4,
#screen-app .date-body h4,
#screen-app .tn-body h4,
#screen-app .tn-feat-body h4,
#screen-app .hv-dn-ten,
#screen-app .dn-ten-ngan,
#screen-app .dn-row-copy strong,
#screen-app .qc-ud-ten,
#screen-app .kb-card-ten,
#screen-app .lm-mou-ten,
#screen-app .lm-the-name,
#screen-app .lm-dt-ten,
#screen-app .ct-home-tile-ten {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
  text-wrap: balance;
  overflow-wrap: break-word;
  max-width: 100%;
}

.topbar .brand .tiny,
#assoc-name {
  display: block;
  font-size: 10.5px; /* không nhỏ hơn 10px; cho xuống 2 dòng thay vì thu chữ */
  line-height: 1.25;
  margin-top: 2px;
}

#screen-app .lm-hh-copy strong {
  align-items: flex-start;
  flex-wrap: nowrap;
}
#screen-app .lm-hh-ten,
#screen-app .lm-hh-copy .lm-hh-ten,
#screen-app .hv-name-text,
#screen-app .person .hv-name-text,
#screen-app .hv-card .hv-name-text,
#screen-app .bch-ds-body .hv-name-text,
#screen-app .person-body h4,
#screen-app .hd-body h4,
#screen-app .date-body h4,
#screen-app .tn-body h4,
#screen-app .tn-feat-body h4,
#screen-app .hv-dn-ten,
#screen-app .dn-ten-ngan,
#screen-app .dn-row-copy strong,
#screen-app .qc-ud-ten,
#screen-app .kb-card-ten,
#screen-app .lm-mou-ten,
#screen-app .lm-the-name,
#screen-app .lm-dt-ten {
  display: block;
  line-height: 1.3;
}

/* Thẻ vật lý mẫu chung: giữ khung sản phẩm, chỉ bỏ cắt chữ nếu có. */
/* 103.55.9: overflow:hidden + line-height 1.12 cắt dấu hỏi trên chữ hoa (THẺ→«THÉ», THỬ→«THỨ»).
   Không cắt: overflow visible; tiêu đề một dòng, tên được xuống dòng (không từ lẻ — hvTheNoWidow). */
#screen-app .hv-the-mau-chung .hv-the-m-foot,
#screen-app .hv-the-mau-chung .hv-the-m-title {
  text-overflow: unset;
  overflow: visible;
  white-space: nowrap;
  text-wrap: unset;
}
#screen-app .hv-the-mau-chung .hv-the-m-val.is-name {
  text-overflow: unset;
  overflow: visible;
  white-space: normal;
  text-wrap: balance;
}


/* ========================================================================
   v103.55.3 — topbar ≥ 10px, 2 dòng cân; thẻ Giới thiệu ≤360px full hàng
   và căn trái (hết sông trắng vì justify); production 375+ giữ nguyên.
   ======================================================================== */

.topbar .brand .brand-text { min-width: 0; flex: 1 1 auto; }
.display-accent { white-space: nowrap; }

@media (max-width: 360px) {
  .topbar {
    align-items: flex-start;
  }
  .topbar .icon-btn {
    margin-top: 1px;
  }
  .topbar .brand {
    align-items: flex-start;
  }
  .topbar .brand .logo-hhdl-tile {
    margin-top: 3px;
  }

  /* Giới thiệu: một cột full hàng; mô tả căn trái, không justify. */
  .home-top-row {
    grid-template-columns: 1fr;
  }
  .home-ct-col {
    width: 152px;
    max-width: 100%;
    justify-self: start;
  }
  .home-top-row .hero-copy h2 {
    text-wrap: balance;
  }
  .home-top-row .hero-copy .hero-lead,
  .home-top-row .hero-copy p.hero-lead {
    text-align: left;
    text-align-last: left;
    text-justify: auto;
  }
}


/* ========================================================================
   v103.55.5 — fallback dữ liệu Chủ tịch/BCH; thanh tab trả kính production; phụ đề sự kiện
   không cắt «…», tối đa 2 dòng cân. Giữ bán kính blur như production
   103.50.2 (blur 20px / saturate 1.7), không tăng blur.
   ======================================================================== */

/*
  Điều gì lệch so với production 103.50.2:
  Thanh tab mobile vẫn dùng rule Liquid Glass v103.29: nền ~10% trắng
  + backdrop-filter: blur(20px) saturate(1.7). Bản 103.39 đã bỏ
  transform: translateX(-50%) để blur có thể chạy; 103.54.3 chỉ làm
  đậm theme den. Fill 10% quá mỏng khi backdrop-filter không composite
  (một số WebKit / ảnh chụp), nên chữ «Hoạt động sự kiện», «Báo tường»,
  «Tải thẻ để in» đọc xuyên qua và đè lên nhãn tab. Khôi phục kính mờ
  với đúng blur production, thêm nền bán trong suốt theo theme (token
  --glass-strong) và fallback đục hơn khi không có backdrop-filter.
*/

@media (max-width: 767px) {
  /* 103.55.5: trả đúng kính production 103.50.2 (fill ~10%, blur 20px / 1.7). */
  #tabbar.tabbar:not([hidden]) {
    isolation: isolate;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.03) 100%),
      rgba(255, 255, 255, 0.10);
    border: 0;
    box-shadow:
      0 14px 34px -14px rgba(0, 18, 22, 0.45),
      0 2px 8px -2px rgba(0, 18, 22, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.38),
      inset 0 -1px 0 rgba(255, 255, 255, 0.08),
      inset 0 -10px 18px -10px rgba(0, 30, 36, 0.18);
    backdrop-filter: blur(20px) saturate(1.7);
    -webkit-backdrop-filter: blur(20px) saturate(1.7);
  }

  @supports ((-webkit-backdrop-filter: blur(20px)) or (backdrop-filter: blur(20px))) {
    #tabbar.tabbar:not([hidden]) {
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.03) 100%),
        rgba(255, 255, 255, 0.10);
      backdrop-filter: blur(20px) saturate(1.7);
      -webkit-backdrop-filter: blur(20px) saturate(1.7);
    }
    html[data-theme="xanh-muc"] #tabbar.tabbar:not([hidden]),
    html[data-theme="den"] #tabbar.tabbar:not([hidden]),
    html[data-theme="xanh-reu-vang"] #tabbar.tabbar:not([hidden]) {
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0.02) 100%),
        rgba(255, 255, 255, 0.08);
    }
  }

  @supports not ((-webkit-backdrop-filter: blur(20px)) or (backdrop-filter: blur(20px))) {
    html[data-theme="kinh-xanh"] #tabbar.tabbar:not([hidden]),
    html[data-theme="trang"] #tabbar.tabbar:not([hidden]),
    html[data-theme="trang-xam"] #tabbar.tabbar:not([hidden]),
    #tabbar.tabbar:not([hidden]) {
      background: rgba(255, 252, 248, 0.94);
    }
    html[data-theme="trang-xam"] #tabbar.tabbar:not([hidden]) {
      background: rgba(232, 234, 238, 0.94);
    }
    html[data-theme="xanh-muc"] #tabbar.tabbar:not([hidden]),
    html[data-theme="den"] #tabbar.tabbar:not([hidden]),
    html[data-theme="xanh-reu-vang"] #tabbar.tabbar:not([hidden]) {
      background: rgba(12, 16, 32, 0.94);
    }
    html[data-theme="xanh-reu-vang"] #tabbar.tabbar:not([hidden]) {
      background: rgba(18, 56, 50, 0.94);
    }
  }
}

/* Phụ đề ngày/địa điểm (và chỗ còn cắt tên / tiêu đề / ngày / chỗ):
   không ellipsis; tối đa 2 dòng cân, cùng cách tiêu đề 103.55.2. */
#screen-app .date-body p,
#screen-app .hd-body p,
#screen-app .bc-hd-body p,
#screen-app .tn-body p,
#screen-app .tn-feat-body p,
#screen-app .dn-row-copy span,
#screen-app .person-body p,
#screen-app .tb-file-name {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
  display: block;
  text-wrap: balance;
  overflow-wrap: break-word;
  max-width: 100%;
  line-height: 1.35;
}


/* ========================================================================
   v103.55.8 — parity với production 103.50.2 (không đổi ô «Báo tường»).
   ======================================================================== */

/* Cuối trang: khối Liên minh + dòng Cập nhật luôn trên thanh tab + safe-area.
   Chỉ thêm đệm đáy; không đổi khoảng cách / vị trí màn đầu (Kết Nối Ngay). */
@media (max-width: 767px) {
  #view-home {
    padding-bottom: 12px;
  }
}

/* ========================================================================
   v103.55.9 — huy hiệu «Chủ quản» và cỡ tên hồ sơ giống production 103.50.2.
   103.55.4/103.55.2 đã gán #screen-app .lm-hh-copy > span { display:block },
   và hhQuetTenTieuDe ghi textContent lên dòng vai trò — mất viên thuốc.
   Icon tab .tab-ico giữ màu muted như production (bỏ color:inherit 103.55.8).
   ======================================================================== */

#screen-app .lm-hh-role,
#screen-app .lm-hh-copy > span.lm-hh-role {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
  text-wrap: unset;
  overflow-wrap: normal;
  max-width: none;
  line-height: 1.2;
}

#screen-app .lm-chu-quan-tag,
#screen-app .lm-hh-copy .lm-chu-quan-tag,
#screen-app .lm-hh-role .lm-chu-quan-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--navy, #1E3A5F);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  text-wrap: unset;
  overflow: visible;
  max-width: none;
}

/* Tên hồ sơ Chủ tịch: giữ 1.28rem, display inline như production — không
   display:block / line-height 1.3 của khối chống cắt chữ 103.55.2. */
#screen-app .hv-pro-hero .hv-name {
  font-size: 1.28rem;
}
#screen-app .hv-pro-hero .hv-name-text {
  display: inline;
  width: auto;
  max-width: 100%;
  line-height: inherit;
  text-wrap: unset;
  overflow-wrap: normal;
  white-space: normal;
  overflow: visible;
}


/* ===== 103.55.9 thẻ mẫu chung: khớp bản in v4 (the-hv 103.50-the10) =====
   1) Ô ảnh: bỏ viền/nền vàng của phương án E cũ còn lọt vào (.hv-the-pa-E .hv-the-portrait-frame).
   2) QR: một ô trắng duy nhất (.hv-the-m-qr); trước đây .hv-the-qr-pad lồng bên trong cũng có nền/viền/bóng → hai lớp lệch.
   3) Tem chìm: vòng mờ dưới góc ảnh, mã nằm một dòng giữa vòng như bản in (không còn «GL-» / mã rơi hai dòng).
   4) Đường kẻ dọc giữa cột thông tin và QR như bản in. */
.hv-the-card.hv-the-mau-chung .hv-the-portrait-frame {
  border: 0;
  outline: 0.21cqw solid #C0C8C6;
  outline-offset: -0.1cqw;
  box-shadow: 0.4cqw 0.4cqw 0.9cqw rgba(20, 30, 28, 0.16);
  border-radius: 1.69cqw;
  max-width: none;
  background: linear-gradient(180deg, #C5E8E2 0%, #E3F5F1 45%, #F7FCFB 100%);
}
.hv-the-card.hv-the-mau-chung .hv-the-portrait,
.hv-the-card.hv-the-mau-chung .hv-the-portrait.is-photo {
  border-radius: 1.69cqw;
  background: transparent;
}
.hv-the-card.hv-the-mau-chung .hv-the-portrait.is-empty {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #C9CECB;
  color: #9AA19D;
}
.hv-the-card.hv-the-mau-chung .hv-the-portrait.is-empty svg {
  width: 84%;
  height: auto;
  display: block;
}
.hv-the-card.hv-the-mau-chung .hv-the-portrait.is-empty svg circle,
.hv-the-card.hv-the-mau-chung .hv-the-portrait.is-empty svg path {
  fill: currentColor;
  stroke: none;
}

.hv-the-card.hv-the-mau-chung .hv-the-m-qr {
  position: relative;
  width: 18.0cqw;
  height: 18.0cqw;
  background: #fff;
  border: 0.18cqw solid #E4E8E8;
  border-radius: 1.35cqw;
  box-shadow: 0.35cqw 0.35cqw 1.0cqw rgba(30, 36, 36, 0.16);
  padding: 0.99cqw;
  box-sizing: border-box;
  margin-top: 0.18cqw;
}
.hv-the-card.hv-the-mau-chung .hv-the-m-qr .hv-the-qr-pad {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hv-the-card.hv-the-mau-chung .hv-the-m-qr .hv-the-qr {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.hv-the-card.hv-the-mau-chung .hv-the-m-qr::before {
  content: "";
  position: absolute;
  left: -2.22cqw;
  top: 0.3cqw;
  height: 26.4cqw;
  width: max(1px, 0.19cqw);
  background: #CFD8D7;
}

.hv-the-card.hv-the-mau-chung .hv-the-e-tem {
  position: absolute;
  left: 3.68cqw;
  bottom: 14.75cqw;
  width: 5.02cqw;
  height: 5.02cqw;
  margin: 0;
  display: block;
  color: rgba(92, 122, 119, 0.30);
  pointer-events: none;
  z-index: 2;
}
.hv-the-card.hv-the-mau-chung .hv-the-e-tem-seal {
  width: 100%;
  height: 100%;
  filter: none;
}
.hv-the-card.hv-the-mau-chung .hv-the-e-tem-code {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -38%);
  white-space: nowrap;
  font-size: 0.82cqw;
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: rgba(92, 122, 119, 0.42);
}


/* ========================================================================
   v103.56.0 — khoảng cách các khối trang chi tiết (Chủ tịch, Lịch sử, BCH).
   Từ v103.12, a.portrait-link .portrait-wide { margin: 0 } mà thẻ a không
   có margin bù, nên ảnh ông Trần Việt Anh và ô «Danh sách tách rõ…» dính
   0px (cùng lỗi trên production 103.50.2). Ô dấu tích chỉ cách nhau 8px.
   Chỉ tăng margin/gap; không đổi bố cục, chữ, ảnh, theme hay zoom.
   ======================================================================== */

a.portrait-link {
  margin: 0 0 16px;
}

#view-detail .lead {
  margin-bottom: 16px;
}

#view-detail .checks {
  gap: 12px;
}

/* 103.56.0 thẻ mẫu v4: không có con dấu mờ dưới ảnh; ô ảnh chỉ viền mảnh. */
.hv-the-card.hv-the-mau-chung .hv-the-e-tem,
.hv-the-pa-E .hv-the-e-tem {
  display: none !important;
}
.hv-the-card.hv-the-mau-chung .hv-the-portrait-frame {
  box-shadow: none;
}


/* ========================================================================
   v103.56.1 — mặt trước thẻ theo ảnh anh Long gửi 17:10 (không phải proof v4).
   Tiêu đề trái: tên Hiệp hội; phải: THẺ HỘI VIÊN. 3 mục thông tin (bỏ Tổ Chức).
   Ảnh xám cao gần bằng cột thông tin; QR khung trắng; sen giữa + địa cầu chấm
   góc dưới phải. Dải đáy: teal cắt chéo / khối xám nhạt Hiệu lực. Mặt sau giữ nguyên.
   ======================================================================== */

.hv-the-mau-chung:not(.is-back) .hv-the-m-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.0cqw;
  padding: 3.5cqw 3.5cqw 0;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-head-left {
  display: flex;
  align-items: flex-start;
  gap: 1.45cqw;
  min-width: 0;
  flex: 1 1 auto;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-head-copy { min-width: 0; flex: 1 1 auto; }
.hv-the-mau-chung:not(.is-back) .hv-the-m-bar {
  background: #1F3B4D;
  height: 7.2cqw;
  flex: 0 0 1.25cqw;
  width: 1.25cqw;
  border-radius: 0.35cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-org-title {
  margin: 0;
  font-weight: 800;
  font-size: 3.28cqw;
  line-height: 1.16;
  color: #1F3B4D;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  text-wrap: pretty;
  overflow: visible;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-head-right {
  flex: 0 0 auto;
  text-align: right;
  min-width: 0;
  padding-top: 0.05cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-card-title {
  margin: 0;
  font-weight: 800;
  font-size: 3.28cqw;
  line-height: 1.16;
  color: #1D5C57;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  text-align: right;
  text-wrap: pretty;
  overflow: visible;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-sub {
  margin: 0.35cqw 0 0;
  font-weight: 500;
  font-size: 1.85cqw;
  letter-spacing: 0.16em;
  color: #6B7A78;
  text-transform: uppercase;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-head-right .hv-the-m-sub {
  letter-spacing: 0.18em;
}

.hv-the-mau-chung:not(.is-back) .hv-the-m-body {
  align-items: stretch;
  padding: 1.6cqw 3.5cqw 15.2cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-photo,
.hv-the-mau-chung:not(.is-back) .hv-the-portrait-frame,
.hv-the-mau-chung:not(.is-back) .hv-the-portrait {
  aspect-ratio: auto;
  height: 100%;
  min-height: 26cqw;
  background: #D0D5D3;
  background-image: none;
  box-shadow: none;
}
.hv-the-mau-chung:not(.is-back) .hv-the-portrait.is-empty {
  background: #D0D5D3;
  color: #9AA19D;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-qr {
  align-self: start;
}
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-m-qr::before {
  content: none;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-fields {
  position: relative;
  padding-right: 0.4cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-fields::after {
  content: "";
  position: absolute;
  right: -1.15cqw;
  top: 0.2cqw;
  bottom: 0.2cqw;
  width: max(1px, 0.19cqw);
  background: #CFD8D7;
  pointer-events: none;
}

.hv-the-mau-chung:not(.is-back) .hv-the-m-group {
  padding: 0.50cqw 0 0.70cqw;
  border-top: 0;
  border-bottom: 0.19cqw solid #CFD8D7;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-group:first-child {
  padding-top: 0.10cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-fields .hv-the-m-lab {
  color: #6B7A78;
  font-weight: 400;
  font-size: 1.80cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-fields .hv-the-m-lab .hv-the-m-en {
  color: #7A8C8A;
  font-style: italic;
  font-weight: 400;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-name {
  color: #1F3B4D;
  font-weight: 800;
  font-size: 3.85cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-pos {
  color: #1F3B4D;
  font-weight: 700;
  font-size: 2.60cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-term {
  color: #1F3B4D;
  font-weight: 700;
  font-size: 3.18cqw;
}

.hv-the-mau-chung:not(.is-back) .hv-the-m-band-id {
  background: linear-gradient(90deg, #174E4A 0%, #1D5C57 100%);
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-band-valid {
  background: #E6EBEA;
  border-radius: 0 1.34cqw 1.34cqw 0;
  padding: 2.3cqw 1.4cqw 1.6cqw 2.2cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-lab-d { color: #6B7A78; }
.hv-the-mau-chung:not(.is-back) .hv-the-m-date {
  color: #1F3B4D;
}


/* ========================================================================
   v103.56.2 — chỉnh typography/khung cho sát mô tả ảnh 17:10.
   Tiêu đề trái/phải đậm 800, to hơn, vạch dọc dày cao bằng 2 dòng;
   nhãn to hơn xám đậm; Tư Cách navy; ảnh ~25% bề ngang, cao sát 3 mục;
   khối Hiệu lực xám chuyển nhạt, cạnh trái cắt chéo song song khối teal.
   ======================================================================== */

#screen-app .hv-the-mau-chung:not(.is-back) .hv-the-m-org-title,
#screen-app .hv-the-mau-chung:not(.is-back) .hv-the-m-card-title {
  font-weight: 800 !important;
}

.hv-the-mau-chung:not(.is-back) .hv-the-m-head-left {
  align-items: stretch;
  gap: 1.55cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-bar {
  flex: 0 0 1.90cqw;
  width: 1.90cqw;
  height: auto;
  min-height: 0;
  align-self: stretch;
  border-radius: 0.38cqw;
  background: #1F3B4D;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-org-title {
  font-weight: 800;
  font-size: 4.35cqw;
  line-height: 1.12;
  color: #1F3B4D;
  letter-spacing: -0.02em;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-card-title {
  font-weight: 800;
  font-size: 4.35cqw;
  line-height: 1.12;
  color: #1D5C57;
  letter-spacing: -0.02em;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-sub {
  margin: 0.45cqw 0 0;
  font-weight: 500;
  font-size: 2.05cqw;
  letter-spacing: 0.18em;
  color: #5A6A68;
}

.hv-the-mau-chung:not(.is-back) .hv-the-m-body {
  grid-template-columns: 25% minmax(0, 1fr) 16.6%;
  gap: 2.2cqw 2.1cqw;
  align-items: stretch;
}

.hv-the-mau-chung:not(.is-back) .hv-the-m-fields .hv-the-m-lab {
  color: #3E4F4D;
  font-weight: 400;
  font-size: 2.18cqw;
  line-height: 1.25;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-fields .hv-the-m-lab .hv-the-m-en {
  color: #5E6E6C;
  font-style: italic;
  font-weight: 400;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-pos {
  color: #1F3B4D;
  font-weight: 700;
  font-size: 2.70cqw;
}

/* Khối Hiệu lực: nền xám chuyển nhạt, cạnh trái cắt chéo song song teal. */
.hv-the-mau-chung:not(.is-back) .hv-the-m-band {
  overflow: hidden;
  border-radius: 1.34cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-band-valid {
  margin-left: -7.6cqw;
  padding: 2.3cqw 1.6cqw 1.6cqw 8.8cqw;
  background: linear-gradient(100deg, #C9D1CF 0%, #DCE2E1 32%, #E8EDEC 62%, #F2F5F4 100%);
  clip-path: polygon(6.07cqw 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 1.34cqw 1.34cqw 0;
  z-index: 0;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-band-id,
.hv-the-mau-chung:not(.is-back) .hv-the-m-band-stripe {
  z-index: 2;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-lab-d { color: #3E4F4D; }


/* ========================================================================
   v103.56.3 — bản in dùng cùng markup/CSS thẻ app; khoảng cách ảnh→tiêu đề
   #ban-chap-hanh trên desktop 16px như mobile. .sec-head desktop vẫn 56px
   ở các mục không đứng ngay sau khối ảnh.
   ======================================================================== */

.hv-the-in-host {
  position: fixed;
  left: -20000px;
  top: 0;
  pointer-events: none;
  z-index: -1;
}

@media (min-width: 1024px) {
  #view-detail a.portrait-link + .sec-head,
  #view-detail figure.portrait-wide + .sec-head {
    margin-top: 0;
  }
}


/* v103.56.5 — tắt hẳn video chào. Màn hình chào trở lại kiểu 103.50.2 (logo, slogan, nút Bắt đầu). */


/* ========================================================================
   v103.56.4 — thẻ app + bản in theo mẫu anh Long gửi 20:43 (1568×1003).
   Mặt thẻ giữ nền sáng như mẫu ở mọi theme. Không con dấu.
   ======================================================================== */

.hv-the-card.hv-the-pa-E.hv-the-mau-chung,
html[data-theme="kinh-xanh"] .hv-the-card.hv-the-pa-E.hv-the-mau-chung,
html[data-theme="trang"] .hv-the-card.hv-the-pa-E.hv-the-mau-chung,
html[data-theme="trang-xam"] .hv-the-card.hv-the-pa-E.hv-the-mau-chung,
html[data-theme="xanh-muc"] .hv-the-card.hv-the-pa-E.hv-the-mau-chung,
html[data-theme="den"] .hv-the-card.hv-the-pa-E.hv-the-mau-chung,
html[data-theme="xanh-reu-vang"] .hv-the-card.hv-the-pa-E.hv-the-mau-chung {
  background: #F7F7F7;
  color: #102428;
  box-shadow: 0 8px 22px rgba(18, 40, 38, 0.16);
  border-radius: 4.35cqw;
}

.hv-the-mau-chung:not(.is-back) .hv-the-m-deco {
  background-image: url("../img/the-hv/mau-chung-deco-front-v6.webp");
  opacity: 0.92;
}

.hv-the-mau-chung:not(.is-back) .hv-the-m-head {
  padding: 3.4cqw 4.2cqw 0 4.5cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-head-left {
  align-items: stretch;
  gap: 1.85cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-bar {
  flex: 0 0 1.22cqw;
  width: 1.22cqw;
  height: auto;
  align-self: stretch;
  border-radius: 0.28cqw;
  background: #0C4246;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-org-title,
#screen-app .hv-the-mau-chung:not(.is-back) .hv-the-m-org-title {
  font-weight: 800 !important;
  font-size: 4.55cqw;
  line-height: 1.28;
  padding-top: 0.08em;
  padding-bottom: 0.22em;
  color: #0A1E22;
  letter-spacing: -0.025em;
  overflow: visible;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-card-title,
#screen-app .hv-the-mau-chung:not(.is-back) .hv-the-m-card-title {
  font-weight: 800 !important;
  font-size: 4.30cqw;
  line-height: 1.28;
  padding-top: 0.08em;
  padding-bottom: 0.22em;
  color: #0A4347;
  letter-spacing: -0.02em;
  overflow: visible;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-sub {
  margin: 0.15cqw 0 0;
  padding-top: 0.12em;
  line-height: 1.25;
  font-weight: 500;
  font-size: 2.00cqw;
  letter-spacing: 0.17em;
  color: #6A7A78;
  overflow: visible;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-head-right .hv-the-m-sub {
  letter-spacing: 0.20em;
}

.hv-the-mau-chung:not(.is-back) .hv-the-m-body {
  grid-template-columns: 23.6% minmax(0, 1fr) 17.4cqw;
  gap: 2.0cqw 2.4cqw;
  align-items: stretch;
  padding: 2.2cqw 4.2cqw 15.6cqw 4.5cqw;
}

/* Ảnh chân dung: bo góc ~12px khi thẻ ~780px (1.55cqw); viền mảnh, không bóng nặng. */
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-portrait-frame,
.hv-the-mau-chung:not(.is-back) .hv-the-portrait-frame,
.hv-the-mau-chung:not(.is-back) .hv-the-m-photo,
.hv-the-mau-chung:not(.is-back) .hv-the-portrait,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-portrait,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-portrait.is-photo {
  border-radius: 1.55cqw;
  box-shadow: none;
  outline: none;
  border: 0;
}
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-portrait-frame {
  outline: 0.16cqw solid #C8CECC;
  outline-offset: -0.08cqw;
  background: #D0D5D3;
}
.hv-the-mau-chung:not(.is-back) .hv-the-portrait.is-empty,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-portrait.is-empty {
  background: #D0D5D3;
  color: #8B9390;
}
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-portrait.is-empty svg circle,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-portrait.is-empty svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.hv-the-mau-chung:not(.is-back) .hv-the-m-fields .hv-the-m-lab {
  color: #4A5A58;
  font-weight: 400;
  font-size: 2.05cqw;
  line-height: 1.2;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-fields .hv-the-m-lab .hv-the-m-en {
  color: #6A7A78;
  font-style: italic;
  font-weight: 400;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-name,
#screen-app .hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-name {
  color: #0A1E22;
  font-weight: 800;
  font-size: 3.95cqw;
  letter-spacing: -0.02em;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-pos {
  color: #0A1E22;
  font-weight: 700;
  font-size: 2.72cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-term {
  color: #0A1E22;
  font-weight: 800;
  font-size: 3.35cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-en-pos {
  margin: 0.20cqw 0 0;
  font-style: italic;
  font-weight: 400;
  font-size: 1.58cqw;
  line-height: 1.2;
  color: #2F3F3D;
  white-space: nowrap;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-group {
  padding: 0.55cqw 0 0.75cqw;
  border-bottom: 0.16cqw solid #D4DCDA;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-group:last-child {
  border-bottom: 0;
  padding-bottom: 0.2cqw;
}

/* QR canh giữa theo chiều dọc với khối chữ / ảnh. */
.hv-the-mau-chung:not(.is-back) .hv-the-m-qr,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-m-qr {
  align-self: center;
  width: 17.6cqw;
  height: 17.6cqw;
  margin-top: 0;
  border: 0;
  box-shadow: 0 0.25cqw 0.9cqw rgba(30, 36, 36, 0.10);
  border-radius: 1.45cqw;
  padding: 1.05cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-fields::after,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-m-qr::before {
  content: none;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-body {
  position: relative;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-body::after {
  content: "";
  position: absolute;
  right: 22.4cqw;
  top: 2.4cqw;
  bottom: 16.0cqw;
  width: max(1px, 0.16cqw);
  background: #D0D8D6;
  pointer-events: none;
  z-index: 2;
}

/* Dải dưới: teal xám như mẫu, cạnh chéo + vệt sáng rộng, Hiệu lực nền rất nhạt. */
.hv-the-mau-chung:not(.is-back) .hv-the-m-band {
  left: 3.6cqw;
  right: 3.6cqw;
  bottom: 3.2cqw;
  height: 14.2cqw;
  grid-template-columns: 51% 7.2cqw minmax(0, 1fr);
  overflow: hidden;
  border-radius: 1.7cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-band-id {
  background: linear-gradient(90deg, #33595E 0%, #3C6267 55%, #42686F 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6.6cqw) 100%, 0 100%);
  border-radius: 1.7cqw 0 0 1.7cqw;
  padding: 2.1cqw 7.2cqw 1.5cqw 2.8cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-band-stripe {
  width: 7.2cqw;
  margin-left: -6.6cqw;
  background: linear-gradient(105deg, #B7C8CB 0%, #D5DEE0 42%, #E7ECEE 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6.6cqw) 100%, -6.6cqw 100%);
  z-index: 2;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-band-valid {
  margin-left: -6.0cqw;
  padding: 2.1cqw 1.8cqw 1.5cqw 8.4cqw;
  background: #EAEDF0;
  clip-path: none;
  border-radius: 0 1.7cqw 1.7cqw 0;
  z-index: 0;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-lab-w { color: #fff; }
.hv-the-mau-chung:not(.is-back) .hv-the-m-lab-w .hv-the-m-en { color: #E4EEEF; font-style: italic; }
.hv-the-mau-chung:not(.is-back) .hv-the-m-id {
  font-size: 4.85cqw;
  letter-spacing: -0.025em;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-lab-d { color: #4A5A58; }
.hv-the-mau-chung:not(.is-back) .hv-the-m-date {
  color: #0A1E22;
  font-size: 4.40cqw;
}


/* v103.56.4 — bản in html2canvas: chừa chỗ dấu nặng bằng line-box, không dựa baseline.
   Class gắn trên thẻ khi raster (html2canvas chỉ clone .hv-the-card). */
.hv-the-card.hv-the-is-print.hv-the-mau-chung:not(.is-back) .hv-the-m-org-title,
.hv-the-card.hv-the-is-print.hv-the-mau-chung:not(.is-back) .hv-the-m-card-title {
  line-height: 1.36;
  padding-top: 0.10em;
  padding-bottom: 0.36em;
  overflow: visible;
}
.hv-the-card.hv-the-is-print.hv-the-mau-chung:not(.is-back) .hv-the-m-sub {
  margin-top: 0.20em;
  padding-top: 0.16em;
  line-height: 1.3;
  overflow: visible;
}
.hv-the-card.hv-the-is-print.hv-the-mau-chung:not(.is-back) .hv-the-m-val,
.hv-the-card.hv-the-is-print.hv-the-mau-chung:not(.is-back) .hv-the-m-lab,
.hv-the-card.hv-the-is-print.hv-the-mau-chung:not(.is-back) .hv-the-m-id,
.hv-the-card.hv-the-is-print.hv-the-mau-chung:not(.is-back) .hv-the-m-date {
  line-height: 1.28;
  padding-top: 0.06em;
  padding-bottom: 0.10em;
  overflow: visible;
}


/* 103.56.5 — form tự sửa hồ sơ / đăng ưu đãi; link Báo tường; làm mờ ưu đãi hết hạn */
a.tb-item { display: block; text-decoration: none; color: inherit; }
a.tb-item:hover, a.tb-item:focus { outline: none; }
.tb-open-pdf { margin: 16px 0 0; }
.qc-bai.is-dim { opacity: 0.55; }
.hv-sua-card { margin: 16px 0; padding: 16px 16px 20px; display: grid; gap: 12px; }
.hv-sua-title { margin: 0; font-size: 1.05rem; font-weight: 700; }
.hv-sua-lead, .hv-sua-hint { margin: 0; font-size: 0.92rem; line-height: 1.45; opacity: 0.88; }
.hv-sua-field { display: grid; gap: 6px; font-size: 0.92rem; }
.hv-sua-field > span { font-weight: 600; }
.hv-sua-input, .hv-sua-field input[type="file"] {
  width: 100%; max-width: 100%; box-sizing: border-box;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: color-mix(in srgb, #fff 80%, transparent);
  color: inherit; border-radius: 10px; padding: 10px 12px; font: inherit;
}
.hv-sua-toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.hv-sua-ava { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hv-sua-ava img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }
.hv-sua-status { margin: 0; font-size: 0.92rem; }
.hv-sua-status.is-ok { color: #0b6b4a; }
.hv-sua-status.is-err { color: #9b1c1c; }
.hv-sua-cty { display: grid; gap: 10px; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.hv-sua-cty-nhan { margin: 0; font-size: 0.95rem; line-height: 1.35; }
.hv-sua-cty-nhan strong { font-weight: 700; }

.hv-sua-mine { margin: 0; padding-left: 1.1em; }

/* 103.56.10 — Ô ảnh hồ sơ: hiện ảnh trong ô, cắt bằng kéo / chụm hai ngón ngay trong ô. */
.hv-o-anh-boc { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hv-o-anh {
  width: 112px; height: 112px; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center;
  background: color-mix(in srgb, #fff 70%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}
.hv-o-anh[data-hinh="tron"] { border-radius: 50%; }
.hv-o-anh[data-hinh="vuong"] { border-radius: 18px; }
.hv-o-anh-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-o-anh[data-hinh="vuong"] .hv-o-anh-img { object-fit: contain; background: #fff; }
.hv-o-anh-trong { padding: 8px; text-align: center; font-size: 1rem; font-weight: 700; opacity: 0.7; }
.hv-o-anh-boc .btn-cta, .hv-o-anh-boc .btn-cta.secondary, .hv-sua-anhs-them.btn-cta, .hv-sua-anhs-them.btn-cta.secondary { width: auto; min-height: 44px; padding: 0 18px; font-weight: 750; cursor: pointer; }
.hv-sua-anhs-them.btn-cta { width: 100%; }
.hv-o-anh.dang-cat {
  width: min(300px, 100%); height: auto; overflow: visible; border: 0; background: none; border-radius: 0; display: block;
}
.hv-cat { display: grid; gap: 12px; }
.hv-cat-khung {
  position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #fff;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: grab;
  box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 22%, transparent);
}
.hv-cat-khung:active { cursor: grabbing; }
.hv-cat[data-hinh="tron"] .hv-cat-khung { border-radius: 50%; }
.hv-cat[data-hinh="vuong"] .hv-cat-khung { border-radius: 18px; }
.hv-cat-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hv-cat-dang { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; font-weight: 700; }
.hv-cat-dang[hidden] { display: none; }
.hv-cat-zoom { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; font-weight: 700; }
.hv-cat-zoom input { width: 100%; accent-color: #2E6FB0; min-height: 32px; }
.hv-cat-goiy { margin: 0; font-size: 0.98rem; line-height: 1.45; text-wrap: pretty; }
.hv-cat-nut { display: flex; flex-wrap: wrap; gap: 10px; }
.hv-cat-nut .btn-cta { flex: 1 1 auto; width: auto; min-height: 46px; padding: 0 16px; font-weight: 750; }
.hv-sua-anhs-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.hv-sua-anhs-luoi .hv-sua-hint { grid-column: 1 / -1; }
.hv-sua-anh-o { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #fff; }
.hv-sua-anh-o img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-sua-anh-bo {
  position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 20px; font-weight: 700; line-height: 30px; padding: 0;
}
.hv-sua-anhs-them[hidden] { display: none; }

/* ===== 103.56.10 — Thanh đầu màn chat (nhóm + 1-1): «‹ Quay lại» luôn hiện, kể cả khi bàn phím iPhone mở ===== */
.detail-top.hh-chat-top {
  position: sticky;
  top: calc(var(--hh-vv-top, 0px) + env(safe-area-inset-top, 0px));
  z-index: 30;
  margin: 0 -16px 12px;
  padding: 8px 16px;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.hh-chat-top .icon-btn.hh-quay-lai {
  width: auto;
  min-width: 0;
  height: 40px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-deep);
  text-decoration: none;
  white-space: nowrap;
}
.hh-chat-top .hh-quay-lai span { font-size: 24px; line-height: 1; margin-top: -2px; }
.hh-chat-top .hh-chat-top-ten {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.hh-chat-top a.hh-chat-top-ten { color: var(--blue-deep); }
.hh-chat-top a.hh-chat-top-ten::after { content: " ›"; opacity: 0.6; }

/* ===== 103.56.10 — Bạn bè: dòng gọn, bấm mở chat 1-1 ===== */
#kb-be .kb-sec-body { display: grid; gap: 8px; }
.kb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  min-height: 64px;
}
.kb-row-ava {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  background: var(--cyan-pale);
  color: var(--blue-deep);
}
.kb-row-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.kb-row-ten { font-size: 15.5px; font-weight: 750; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.kb-row-phu { font-size: 13px; color: var(--muted, #64748b); line-height: 1.3; }
.kb-row .chev { flex: 0 0 auto; opacity: 0.45; display: inline-flex; }
.kb-row .chev svg { width: 16px; height: 16px; }

/* ===== 103.56.10 — Nhấn giữ tin: Xoá tin / Thu hồi ===== */
.chat-bubble, .nt-bub {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 0.15s ease;
}
.chat-bubble.is-giu, .nt-bub.is-giu { transform: scale(0.97); }
.chat-bubble.is-thu-hoi .chat-text em,
.nt-bub.is-thu-hoi .nt-bub-text em { font-style: italic; opacity: 0.7; }
.nt-bub.is-thu-hoi { background: transparent !important; border: 1px dashed rgba(30, 58, 95, 0.25); box-shadow: none; }
.nt-bub.is-thu-hoi .nt-bub-text em { color: var(--muted); }
.hh-menu-tin-nen {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  animation: hhMenuTinVao 0.16s ease;
}
@keyframes hhMenuTinVao { from { opacity: 0; } to { opacity: 1; } }
.hh-menu-tin {
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  padding: 8px;
  display: grid;
  gap: 6px;
  background: rgba(255, 255, 255, 0.97);
}
.hh-menu-tin-nut {
  display: grid;
  gap: 2px;
  text-align: left;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 0;
  border-radius: 14px;
  background: rgba(30, 58, 95, 0.05);
  color: var(--navy);
  font: inherit;
}
.hh-menu-tin-nut strong { font-size: 16px; font-weight: 750; }
.hh-menu-tin-nut span { font-size: 13px; color: var(--muted); }
.hh-menu-tin-nut.is-do strong { color: #c0392b; }
.hh-menu-tin-nut.is-huy { text-align: center; place-items: center; font-weight: 700; background: transparent; }
.nt-tai-cu {
  display: block;
  margin: 0 auto 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  color: var(--blue-deep);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}
.nt-composer.is-khoa { opacity: 0.6; }

/* ===== 103.56.10 — Thẻ hội viên: tên công ty dòng 1 (đậm), tên hội viên dòng 2 ===== */
.hv-card .hv-name.hv-name-cty {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}
.hv-card .hv-ten-hv {
  margin: 1px 0 0;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--navy);
  white-space: normal;
}
.hv-card .hv-ten-hv .hv-name-text { white-space: normal; overflow: visible; text-overflow: clip; display: inline; }
.hv-card .hv-ten-hv .hv-rank { width: 18px; height: 18px; }
.hv-card .hv-ten-hv,
.hv-card .hv-ten-hv .hv-name-text,
.hv-card .hv-ten-hv .hv-name-tail,
#screen-app .hv-card .hv-ten-hv,
#screen-app .hv-card .hv-ten-hv .hv-name-text,
#screen-app .hv-card .hv-ten-hv .hv-name-tail {
  font-family: var(--font) !important;
  font-weight: 600 !important;
  font-size: 13.5px;
  color: var(--navy);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
.hh-menu-tin-nut:focus { outline: none; }
.hh-menu-tin-nut:focus-visible { outline: 2px solid var(--blue); }

/* ===== 103.56.11 — Thẻ hội viên 3 dòng: cơ sở (đậm), công ty, người đại diện ===== */
.hv-card .hv-ten-cty {
  margin: 1px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font);
  line-height: 1.35;
  color: var(--navy);
  white-space: normal;
  overflow-wrap: anywhere;
}
#screen-app .hv-o-anh-boc .btn-cta,
#screen-app .hv-o-anh-boc .btn-cta.secondary,
#toi-page .hv-o-anh-boc .btn-cta,
.hv-o-anh-boc .btn-cta,
.hv-o-anh-boc .btn-cta.secondary,
.hv-o-anh-boc label.btn-cta {
  font-weight: 800 !important;
  font-family: var(--font) !important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

/* 103.56.11 — Dòng 2 tên công ty viết hoa như mẫu; dòng 3 «Đại diện: …» */
.hv-card .hv-ten-cty {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 650;
  font-size: 12.5px;
  line-height: 1.4;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
  font-family: var(--font);
  color: var(--navy);
}
.hv-card .hv-dai-dien,
#screen-app .hv-card .hv-dai-dien,
#screen-app .hv-card .hv-dai-dien .hv-name-text {
  font-family: var(--font) !important;
  font-weight: 600 !important;
  font-size: 13.5px;
  text-transform: none;
  color: var(--navy);
  line-height: 1.35;
  white-space: normal;
}

/* ===== 103.56.12 — Xóa công ty, nút đỏ, hộp xác nhận ===== */
.hv-sua-cty-nut,
.toi-dn-hang {
  display: grid;
  gap: 8px;
}
/* Thông báo Lưu công ty sát nút; cuộn không bị thanh tab che. */
.hv-sua-cty-nut > .hv-sua-status,
.hv-sua-cty-nut {
  scroll-margin-bottom: var(--tab-clear);
}
.hv-sua-cty-nut > .hv-sua-status {
  margin: 0;
  min-height: 1.2em;
}

.hv-sua-cty-nut .btn-cta,
.toi-dn-hang .toi-dn-xoa {
  width: 100%;
  min-height: 44px;
  font-weight: 750;
}
.btn-cta.hv-btn-xoa,
.toi-dn-xoa.btn-cta {
  background: #b42318;
  color: #fff;
  font-weight: 750;
}
.btn-cta.hv-btn-xoa:active,
.toi-dn-xoa.btn-cta:active {
  filter: brightness(0.94);
}
html[data-theme="xanh-muc"] .btn-cta.hv-btn-xoa,
html[data-theme="den"] .btn-cta.hv-btn-xoa,
html[data-theme="xanh-reu-vang"] .btn-cta.hv-btn-xoa,
html[data-theme="xanh-muc"] .toi-dn-xoa.btn-cta,
html[data-theme="den"] .toi-dn-xoa.btn-cta,
html[data-theme="xanh-reu-vang"] .toi-dn-xoa.btn-cta {
  background: #c45050;
  color: #fff;
}
.hv-xoa-cty-back {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 24, 40, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hv-xoa-cty-back[hidden] { display: none !important; }
.hv-xoa-cty-panel {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 28px 22px 22px;
  border-radius: 28px;
  text-align: center;
  outline: none;
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.94);
}
html[data-theme="xanh-muc"] .hv-xoa-cty-panel,
html[data-theme="den"] .hv-xoa-cty-panel {
  background: rgba(20, 28, 48, 0.94);
}
html[data-theme="xanh-reu-vang"] .hv-xoa-cty-panel {
  background: rgba(28, 36, 28, 0.94);
}
.hv-xoa-cty-panel h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  text-wrap: pretty;
}
.hv-xoa-cty-msg {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  font-weight: 550;
}
.hv-xoa-cty-panel .btn-cta { width: 100%; min-height: 44px; font-weight: 750; }
.toi-dn-hang .toi-row { margin: 0; }
#toi-dn-xoa-st { margin: 10px 16px 0; text-wrap: pretty; }


/* 103.56.12 — Thẻ doanh nghiệp trên hồ sơ: tên tiếng Anh, không cắt chữ cuối */
.hv-dn-ten {
  overflow-wrap: anywhere;
  white-space: normal;
}
.hv-dn-en {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
  text-transform: none;
}


/* 103.56.12 — Holitech bio, Fleur nổi bật, khối công ty trên trang Chủ tịch */
.hv-dn-bio { margin-top: 6px; }
.hv-dn-bio p {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: break-word;
}
.hv-dn-muc {
  margin: 10px 0 4px !important;
  font-weight: 800;
  color: var(--navy);
  font-size: 0.82rem;
  line-height: 1.35;
}
.hv-dn-nhan {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.hv-dn-card.hv-dn-du-an {
  border: 1px solid color-mix(in srgb, var(--cyan) 42%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cyan) 18%, transparent);
}

/* 103.56.15 — Giới thiệu công ty tự nhập: tách trụ sở, giữ xuống dòng, in đậm tên ngắn */
.hv-dn-dia {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: normal;
}
/* 103.56.19 — giới thiệu dàn hết chiều ngang thẻ; đoạn dài dùng pretty (không balance). */
.hv-dn-card > .hv-dn-bio,
.hv-dn-body > .hv-dn-bio {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--navy) 16%, transparent);
  width: 100%;
  min-width: 0;
}
.hv-dn-bio p {
  text-wrap: pretty;
}
.hv-dn-bio p.hv-dn-muc {
  color: var(--navy);
  font-weight: 800;
}
.hv-dn-lv {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.hv-dn-lv li {
  position: relative;
  margin: 0 0 6px;
  padding: 0 0 0 1.05em;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.hv-dn-lv li:last-child { margin-bottom: 0; }
.hv-dn-lv li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--navy);
}
.dn-block .hv-dn-bio { margin-top: 0; padding-top: 0; border-top: 0; }
.hv-dn-bio strong {
  font-weight: 700;
  color: var(--navy);
  overflow-wrap: normal;
  word-break: keep-all;
}
.ct-dn-noi-bat {
  display: block;
  margin: 12px 0 0;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}
.ct-dn-noi-bat .ct-dn-ten {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.ct-dn-noi-bat .ct-dn-chuc {
  margin: 4px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cyan);
}
.ct-dn-noi-bat .ct-dn-fleur {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.ct-dn-noi-bat .ct-dn-fleur strong { color: var(--navy); font-weight: 800; }


/* 103.56.13 — Dòng đại diện: không ngắt trong ngoặc chức vụ (tránh «TGĐ)» mồ côi) */
.hv-card .hv-dai-dien .hv-chuc-ngoac,
#screen-app .hv-card .hv-dai-dien .hv-chuc-ngoac {
  white-space: nowrap;
}

/* ========================================================================
   v103.56.21.4 — thẻ sát mẫu 2043, chỉnh lần 5 (kẻ dọc dừng trước dải đáy,
   thu khoảng trống dưới tiêu đề, EN nhỏ hơn chức VN). Dải đáy chéo giữ như v3.
   ======================================================================== */

/* Họa tiết sen/địa cầu rất mờ như mẫu, không át chữ trường. */
.hv-the-mau-chung:not(.is-back) .hv-the-m-deco {
  background-image: url("../img/the-hv/mau-chung-deco-front-v6.webp");
  opacity: 0.28;
}

/* Thẻ mặt trước: header + thân lấp phần còn lại, dải đáy vẫn absolute. */
.hv-the-card.hv-the-pa-E.hv-the-mau-chung:not(.is-back) {
  display: flex;
  flex-direction: column;
}

/* Tiêu đề: line-height ≥ 1.2, overflow visible để không cắt dấu (HIỆP, THẺ, …). */
.hv-the-mau-chung:not(.is-back) .hv-the-m-org-title,
#screen-app .hv-the-mau-chung:not(.is-back) .hv-the-m-org-title {
  font-weight: 800 !important;
  font-size: 3.20cqw;
  line-height: 1.25;
  padding-top: 0.14em;
  padding-bottom: 0.08em;
  color: #0A1E22;
  letter-spacing: -0.03em;
  overflow: visible;
  white-space: nowrap;
  text-wrap: nowrap;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-card-title,
#screen-app .hv-the-mau-chung:not(.is-back) .hv-the-m-card-title {
  font-weight: 800 !important;
  font-size: 2.95cqw;
  line-height: 1.25;
  padding-top: 0.14em;
  padding-bottom: 0.08em;
  color: #0A4347;
  letter-spacing: -0.02em;
  overflow: visible;
  white-space: nowrap;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-sub {
  margin: 0.18cqw 0 0;
  padding-top: 0;
  line-height: 1.25;
  font-weight: 500;
  font-size: 1.55cqw;
  letter-spacing: 0.18em;
  color: #6A7A78;
  overflow: visible;
  white-space: nowrap;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-bar {
  background: #1F4F4F;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-head {
  flex: 0 0 auto;
  padding: 3.2cqw 4.2cqw 0.35cqw 4.5cqw;
  overflow: visible;
}

/* Thân: khe dưới tiêu đề ~4-5% chiều cao thẻ; ảnh 4:5 lấp xuống sát dải đáy. */
.hv-the-mau-chung:not(.is-back) .hv-the-m-body {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) 15.2cqw;
  grid-template-rows: 1fr;
  gap: 1.3cqw 1.8cqw;
  align-items: stretch;
  align-content: stretch;
  padding: 2.8cqw 4.2cqw 15.5cqw 4.5cqw;
}
/* Tắt kẻ dọc cũ trên toàn thân (trước đây xuyên dải đáy / chạm tiêu đề). */
.hv-the-mau-chung:not(.is-back) .hv-the-m-body::after {
  content: none;
}
/* Kẻ dọc chỉ cao bằng cột trường / ảnh: từ «Họ và Tên» đến đáy ảnh. */
.hv-the-mau-chung:not(.is-back) .hv-the-m-fields {
  position: relative;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-fields::after,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-m-fields::after {
  content: "";
  position: absolute;
  right: -0.95cqw;
  top: 0;
  bottom: 0;
  width: max(1px, 0.16cqw);
  background: #D0D8D6;
  pointer-events: none;
  z-index: 2;
}
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-m-qr::before {
  content: none;
}

.hv-the-mau-chung:not(.is-back) .hv-the-m-photo,
.hv-the-mau-chung:not(.is-back) .hv-the-portrait-frame,
.hv-the-mau-chung:not(.is-back) .hv-the-portrait,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-portrait-frame,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-portrait,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-portrait.is-photo {
  width: auto;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 4 / 5;
  min-height: 0;
  max-width: 27.5cqw;
  align-self: stretch;
  justify-self: start;
  background-image: none;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-photo {
  width: auto;
  height: 100%;
  align-self: stretch;
  justify-self: start;
}

/* 3 trường chia đều chiều cao ảnh, khoảng cách đều. */
.hv-the-mau-chung:not(.is-back) .hv-the-m-fields {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-group {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 0.25cqw 0;
  border-bottom: 0.16cqw solid #D4DCDA;
  overflow: visible;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-group:first-child {
  padding-top: 0;
  justify-content: flex-start;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  justify-content: flex-end;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-group:nth-child(2) {
  padding-bottom: 0.25cqw;
  justify-content: center;
}

.hv-the-mau-chung:not(.is-back) .hv-the-m-fields .hv-the-m-lab {
  color: #4A5A58;
  font-weight: 400;
  font-size: 1.50cqw;
  line-height: 1.25;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-fields .hv-the-m-lab .hv-the-m-en {
  color: #6A7A78;
  font-style: italic;
  font-weight: 400;
}

/* Tên ~ cỡ tiêu đề HIỆP HỘI; không cắt dấu. */
.hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-name,
#screen-app .hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-name {
  color: #0A1E22;
  font-weight: 800;
  font-size: 3.20cqw;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: visible;
  text-wrap: nowrap;
  padding-top: 0.06em;
  padding-bottom: 0.04em;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-pos {
  color: #0A1E22;
  font-weight: 700;
  font-size: 2.30cqw;
  line-height: 1.25;
  white-space: nowrap;
  overflow: visible;
  text-wrap: nowrap;
  padding-top: 0.04em;
  padding-bottom: 0.04em;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-term {
  color: #0A1E22;
  font-weight: 800;
  font-size: 2.95cqw;
  line-height: 1.25;
  white-space: nowrap;
  overflow: visible;
  padding-top: 0.04em;
  padding-bottom: 0.04em;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-en-pos,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-m-en-pos {
  margin: 0.15cqw 0 0;
  padding-top: 0.02em;
  padding-bottom: 0;
  font-style: italic;
  font-weight: 400;
  font-size: 1.55cqw;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #6A7A78;
  white-space: nowrap;
  text-wrap: nowrap;
  overflow: visible;
  max-width: 100%;
}

.hv-the-mau-chung:not(.is-back) .hv-the-m-qr,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-m-qr {
  align-self: center;
  width: 15.8cqw;
  height: 15.8cqw;
}

/* ---- Dải đáy: giữ hình chéo v3 (một băng, cắt dốc, 2 vệt + gạch mờ). ---- */
.hv-the-mau-chung:not(.is-back) .hv-the-m-band {
  left: 3.4cqw;
  right: 3.4cqw;
  bottom: 4.0cqw;
  height: 10.0cqw;
  position: absolute;
  display: block;
  grid-template-columns: none;
  overflow: hidden;
  border-radius: 1.45cqw;
  background: #E8ECEE;
  z-index: 2;
  flex: none;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    58.7deg,
    rgba(255, 255, 255, 0) 0 0.32cqw,
    rgba(255, 255, 255, 0.78) 0.32cqw 0.52cqw
  );
  -webkit-mask-image: linear-gradient(90deg, transparent 0 53%, #000 56%, rgba(0,0,0,0.55) 66%, transparent 80%);
  mask-image: linear-gradient(90deg, transparent 0 53%, #000 56%, rgba(0,0,0,0.55) 66%, transparent 80%);
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-band-id {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  z-index: 2;
  margin: 0;
  background: linear-gradient(90deg, #2F5156 0%, #35575C 38%, #42686F 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6.1cqw) 100%, 0 100%);
  border-radius: 0;
  padding: 0.85cqw 7.4cqw 0.85cqw 2.4cqw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.28cqw;
  min-width: 0;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-band-stripe {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 55%;
  width: 2.05cqw;
  z-index: 3;
  margin: 0;
  padding: 0;
  background: transparent;
  clip-path: none;
  box-shadow: none;
  transform: skewX(-31.3deg);
  transform-origin: top left;
  pointer-events: none;
  display: block;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-band-stripe::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1.22cqw;
  background: #98B1B8;
  clip-path: none;
  pointer-events: none;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-band-stripe::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.22cqw;
  width: 0.74cqw;
  background: #FFFFFF;
  clip-path: none;
  pointer-events: none;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-band-valid {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 0.85cqw 2.4cqw 0.85cqw 64%;
  background: transparent;
  clip-path: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.28cqw;
  min-width: 0;
  text-align: left;
}

.hv-the-mau-chung:not(.is-back) .hv-the-m-lab-w {
  color: #fff;
  font-size: 1.50cqw;
  line-height: 1.25;
  overflow: visible;
  margin: 0;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-lab-w .hv-the-m-en { color: #E4EEEF; font-style: italic; }
.hv-the-mau-chung:not(.is-back) .hv-the-m-id {
  font-size: 3.40cqw;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  padding-top: 0.02em;
  padding-bottom: 0;
  overflow: visible;
  margin: 0;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-lab-d {
  color: #4A5A58;
  font-size: 1.50cqw;
  line-height: 1.25;
  overflow: visible;
  margin: 0;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-date {
  color: #0A1E22;
  font-size: 3.25cqw;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  padding-top: 0.02em;
  padding-bottom: 0;
  overflow: visible;
  margin: 0;
}


/* ========================================================================
   v103.56.22 — chữ thẻ hội viên gọn hơn; tab sát đáy; mặt sau thẻ in typographic
   ======================================================================== */

/* 103.56.22.3 — Khôi phục viên thuốc bản 103.56.21, chỉ ghim sát đáy.
   Gốc «bay giữa» trên iPhone thật (ảnh ~60% chiều cao):
   (1) `.tabbar { left:50%; transform: translateX(-50%) }` khiến WebKit gắn
       position:fixed vào *layout* viewport. Khi thanh Safari thu/mở hoặc
       khi cuộn, thanh tab trôi lên giữa màn (đã chỉ ra từ 103.39).
   (2) `html[data-theme] body { background-attachment: fixed }` cùng tạo
       containing block, làm fixed không bám visual viewport.
   Cách ghim: position:fixed; left/right:0; margin:auto; transform:none;
   bottom = --tab-gap (10px) + safe-area; width pill, bo 999px, kính/pill
   chọn giữ nguyên rule 21. Không làm phẳng full-width. */
@media (max-width: 767px) {
  :root {
    --tab-gap: 10px;
  }
  #tabbar.tabbar,
  #tabbar.tabbar.glass-strong,
  #tabbar.tabbar:not([hidden]) {
    position: fixed;
    left: 0;
    right: 0;
    width: min(calc(100% - 16px), 430px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    transform: none;
    bottom: calc(var(--tab-gap, 10px) + env(safe-area-inset-bottom, 0px));
    border-radius: 999px;
    z-index: 80;
    box-sizing: border-box;
  }
}

html[data-theme="kinh-xanh"] body,
html[data-theme="trang"] body,
html[data-theme="xanh-muc"] body,
html[data-theme="trang-xam"] body,
html[data-theme="den"] body,
html[data-theme="xanh-reu-vang"] body,
body {
  background-attachment: scroll, scroll, scroll;
}

/* Danh sách hội viên: dòng 1 nhỏ lại (vẫn đậm), hạn chế nhảy dòng, không cắt chữ. */
@media (max-width: 767px) {
  .hv-sec { padding-left: 10px; padding-right: 10px; }
}
.hv-card {
  gap: 6px;
  padding: 8px 8px 8px 6px;
}
.hv-ava {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}
.hv-card .hv-name.hv-name-cty,
#screen-app .hv-card .hv-name.hv-name-cty,
.hv-card .hv-body h4.hv-name.hv-name-cty {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: pretty;
}
.hv-card .hv-ten-cty,
#screen-app .hv-card .hv-ten-cty {
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: pretty;
  margin-top: 1px;
}
.hv-card .hv-ten-hv,
.hv-card .hv-dai-dien,
#screen-app .hv-card .hv-ten-hv,
#screen-app .hv-card .hv-dai-dien,
#screen-app .hv-card .hv-dai-dien .hv-name-text,
.hv-card .hv-ten-hv .hv-name-text,
.hv-card .hv-ten-hv .hv-name-tail {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: pretty;
}
.hv-card .hv-dai-dien .hv-chuc-ngoac,
#screen-app .hv-card .hv-dai-dien .hv-chuc-ngoac {
  white-space: nowrap;
}

/* Mặt sau thẻ: footer typographic, không còn ô/nút xanh giống UI. */
.hv-the-mau-chung.is-back .hv-the-m-foot,
#screen-app .hv-the-mau-chung.is-back .hv-the-m-foot,
#screen-app .hv-the-mau-chung .hv-the-m-foot {
  position: absolute;
  left: 3.5cqw;
  right: 3.5cqw;
  bottom: 3.5cqw;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 2.0cqw 0 0;
  border-radius: 0;
  background: transparent !important;
  color: #0A1E22 !important;
  font-weight: 800 !important;
  font-size: 2.35cqw;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 0.16cqw solid #2F5156;
  box-shadow: none;
  text-align: center;
}

/* Bản in: tắt pseudo đã được vẽ lại bằng canvas/phần tử thật, tránh nhân đôi. */
.hv-the-card.hv-the-is-print .hv-the-m-body::after,
.hv-the-card.hv-the-is-print .hv-the-m-band::after,
.hv-the-card.hv-the-is-print .hv-the-m-band-stripe,
.hv-the-card.hv-the-is-print .hv-the-m-band-stripe::before,
.hv-the-card.hv-the-is-print .hv-the-m-band-stripe::after {
  content: none !important;
  display: none !important;
  background: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}


/* 103.56.22.1 — tên đại diện liền dòng; cụm từ không tách; mặt sau thẻ in tách tiêu đề/EN */
.hv-card .hv-dai-dien-ten,
#screen-app .hv-card .hv-dai-dien-ten {
  white-space: nowrap;
}
.hv-card .hv-dai-dien .hv-chuc-ngoac,
#screen-app .hv-card .hv-dai-dien .hv-chuc-ngoac {
  white-space: nowrap;
}

.hv-the-mau-chung.is-back .hv-the-m-head {
  padding: 3.6cqw 4.4cqw 0 4.4cqw;
  align-items: flex-start;
}
.hv-the-mau-chung.is-back .hv-the-m-title,
.hv-the-mau-chung.is-back .hv-the-m-org-title,
#screen-app .hv-the-mau-chung.is-back .hv-the-m-title,
#screen-app .hv-the-mau-chung.is-back .hv-the-m-org-title {
  font-size: 3.55cqw;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.025em;
  padding-top: 0.10em;
  padding-bottom: 0.22em;
  margin: 0;
  overflow: visible;
  color: #0A1E22;
}
.hv-the-mau-chung.is-back .hv-the-m-title-sm { font-size: 3.55cqw; }
.hv-the-mau-chung.is-back .hv-the-m-sub,
#screen-app .hv-the-mau-chung.is-back .hv-the-m-sub {
  display: block;
  position: relative;
  margin: 0.90cqw 0 0;
  padding-top: 0;
  line-height: 1.35;
  font-size: 1.85cqw;
  letter-spacing: 0.16em;
  color: #6A7A78;
}
.hv-the-card.hv-the-is-print.hv-the-mau-chung.is-back .hv-the-m-title,
.hv-the-card.hv-the-is-print.hv-the-mau-chung.is-back .hv-the-m-org-title {
  line-height: 1.3;
  padding-bottom: 0.28em;
}
.hv-the-card.hv-the-is-print.hv-the-mau-chung.is-back .hv-the-m-sub {
  margin-top: 1.15cqw;
}

/* Bản in: chừa vùng an toàn ≥ 3.2 mm (≈ 4.1cqw khi thẻ 85.6 mm). */
.hv-the-card.hv-the-is-print.hv-the-mau-chung:not(.is-back) .hv-the-m-head {
  padding: 4.2cqw 4.4cqw 0 4.4cqw;
}
.hv-the-card.hv-the-is-print.hv-the-mau-chung:not(.is-back) .hv-the-m-body {
  padding-left: 4.4cqw;
  padding-right: 4.4cqw;
}
.hv-the-card.hv-the-is-print.hv-the-mau-chung:not(.is-back) .hv-the-m-band {
  left: 4.2cqw;
  right: 4.2cqw;
  bottom: 4.2cqw;
}


/* 103.56.22.2 — hero doanh nghiệp: cao theo nội dung, khung logo ôm tỷ lệ, không cắt */
#screen-app .dn-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
#screen-app .dn-hero.no-cover {
  padding: 16px 16px 18px;
}
#screen-app .dn-hero.has-cover .dn-cover {
  height: 112px;
  max-height: 112px;
  flex: 0 0 auto;
}
#screen-app .dn-hero.has-cover .dn-hero-body {
  margin-top: -36px;
  padding: 0 16px 16px;
}
#screen-app .dn-hero.no-cover .dn-hero-body {
  margin-top: 0;
  padding: 0;
}
#screen-app .dn-hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
#screen-app .dn-logo-wrap {
  width: auto;
  max-width: 100%;
  min-height: 0;
  padding: 12px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: var(--logo-tile-bg, rgba(255,255,255,0.88));
  box-shadow: 0 8px 22px rgba(16, 42, 58, 0.10);
}
#screen-app .dn-logo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  object-position: center;
  display: block;
}
#screen-app .dn-logo-wrap.is-ngang,
#screen-app .dn-logo-wrap.is-nen-ngang {
  width: 100%;
  max-width: 100%;
  padding: 10px;
}
#screen-app .dn-logo-wrap.is-ngang .dn-logo,
#screen-app .dn-logo-wrap.is-nen-ngang .dn-logo {
  width: 100%;
  max-width: 100%;
  max-height: 148px;
  height: auto;
  object-fit: contain;
}
#screen-app .dn-logo-wrap.is-vuong,
#screen-app .dn-logo-wrap.is-nen-vuong {
  width: min(188px, 52vw);
  padding: 10px;
}
#screen-app .dn-logo-wrap.is-vuong .dn-logo,
#screen-app .dn-logo-wrap.is-nen-vuong .dn-logo {
  width: 100%;
  max-height: 168px;
  object-fit: contain;
}
#screen-app .dn-logo-wrap.is-doc {
  width: min(132px, 38vw);
  padding: 10px;
}
#screen-app .dn-logo-wrap.is-doc .dn-logo {
  width: auto;
  max-width: 100%;
  max-height: 176px;
  object-fit: contain;
}
#screen-app .dn-logo-wrap.is-nen {
  padding: 0;
  background: transparent;
  overflow: hidden;
}
#screen-app .dn-logo-wrap.is-nen-toi { background: #0d1118; }
#screen-app .dn-logo-wrap.is-nen-trang {
  background: #fff;
  padding: 10px;
  overflow: hidden;
}
#screen-app .dn-logo-wrap.is-nen .dn-logo,
#screen-app .dn-logo-wrap.is-nen-trang .dn-logo {
  max-height: 168px;
  object-fit: contain;
}
#screen-app .dn-logo-wrap.is-nen-ngang.is-nen {
  padding: 0;
}
#screen-app .dn-logo-wrap.is-nen-ngang.is-nen .dn-logo {
  max-height: 148px;
}
#screen-app .dn-logo-wrap.is-chu,
#screen-app .dn-hero-body .dn-logo-wrap.is-chu {
  width: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
#screen-app .dn-logo-ph {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--blue-deep, var(--navy));
  background: var(--cyan-pale, rgba(215,243,250,0.9));
  box-shadow: 0 8px 20px rgba(16, 42, 58, 0.10);
}
#screen-app .dn-hero-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
#screen-app .dn-ten-ngan,
#screen-app .dn-hero .dn-ten-ngan {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--navy);
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
#screen-app .dn-ten-phap,
#screen-app .dn-hero-linh-vuc,
#screen-app .dn-hero-msdn {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
#screen-app .dn-hero-msdn {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
#screen-app .dn-hero .hv-demo-banner { margin-top: 0; margin-bottom: 0; }

/* ===== 103.56.23: Đăng ưu đãi trong trang Tôi (nhãn trạng thái tiếng Việt, 6 theme) ===== */
#toi-dang-ud { display: grid; gap: 14px; }
#toi-dang-ud .toi-ud-quy-trinh,
#toi-dang-ud .toi-ud-form {
  margin: 0;
  padding: 16px 16px 18px;
  border-radius: 20px;
  display: grid;
  gap: 12px;
}
#toi-dang-ud .hv-sua-title {
  margin: 0;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
#toi-dang-ud .toi-ud-buoc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: udbuoc;
}
#toi-dang-ud .toi-ud-buoc > li {
  position: relative;
  display: grid;
  gap: 2px;
  padding-left: 38px;
  counter-increment: udbuoc;
  min-height: 28px;
}
#toi-dang-ud .toi-ud-buoc > li::before {
  content: counter(udbuoc);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--btn-navy-text, #fff);
  background: var(--btn-navy, var(--navy, #1E3A5F));
}
#toi-dang-ud .toi-ud-buoc strong { font-weight: 800; font-size: 0.95rem; }
#toi-dang-ud .toi-ud-buoc span { font-size: 0.88rem; line-height: 1.4; color: var(--muted); text-wrap: pretty; }
#toi-dang-ud .toi-ud-ds { display: grid; gap: 10px; }
#toi-dang-ud .toi-ud-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
#toi-dang-ud .toi-ud-item { padding: 14px 14px 14px; border-radius: 18px; display: grid; gap: 8px; }
#toi-dang-ud .toi-ud-item-top { display: grid; gap: 8px; justify-items: start; }
#toi-dang-ud .toi-ud-item-ten {
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.35;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
#toi-dang-ud .toi-ud-meta { margin: 0; font-size: 0.84rem; color: var(--muted); }
#toi-dang-ud .toi-ud-note { margin: 0; font-size: 0.88rem; line-height: 1.45; text-wrap: pretty; }
#toi-dang-ud .toi-ud-note.is-loi { color: #9b1c1c; }
#toi-dang-ud .toi-ud-note.is-ok { color: #0b6b4a; }
#toi-dang-ud .toi-ud-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}
#toi-dang-ud .toi-ud-badge.is-cho { color: #8a5200; background: rgba(255, 183, 64, 0.22); border-color: rgba(214, 140, 0, 0.35); }
#toi-dang-ud .toi-ud-badge.is-ok  { color: #0b6b4a; background: rgba(32, 178, 120, 0.18); border-color: rgba(11, 107, 74, 0.35); }
#toi-dang-ud .toi-ud-badge.is-loi { color: #9b1c1c; background: rgba(224, 70, 70, 0.14); border-color: rgba(155, 28, 28, 0.35); }
#toi-dang-ud .toi-ud-badge.is-xam { color: #4a5565; background: rgba(120, 130, 145, 0.18); border-color: rgba(74, 85, 101, 0.28); }
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-badge.is-cho,
html[data-theme="den"] #toi-dang-ud .toi-ud-badge.is-cho,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-badge.is-cho { color: #ffd37a; background: rgba(255, 183, 64, 0.18); border-color: rgba(255, 211, 122, 0.4); }
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-badge.is-ok,
html[data-theme="den"] #toi-dang-ud .toi-ud-badge.is-ok,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-badge.is-ok { color: #7ff0bd; background: rgba(32, 178, 120, 0.2); border-color: rgba(127, 240, 189, 0.4); }
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-badge.is-loi,
html[data-theme="den"] #toi-dang-ud .toi-ud-badge.is-loi,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-badge.is-loi { color: #ff9c9c; background: rgba(224, 70, 70, 0.2); border-color: rgba(255, 156, 156, 0.4); }
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-badge.is-xam,
html[data-theme="den"] #toi-dang-ud .toi-ud-badge.is-xam,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-badge.is-xam { color: #c3ccd8; background: rgba(195, 204, 216, 0.14); border-color: rgba(195, 204, 216, 0.32); }
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-note.is-loi,
html[data-theme="den"] #toi-dang-ud .toi-ud-note.is-loi,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-note.is-loi { color: #ff9c9c; }
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-note.is-ok,
html[data-theme="den"] #toi-dang-ud .toi-ud-note.is-ok,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-note.is-ok { color: #7ff0bd; }
#toi-dang-ud .hv-sua-status.is-ok { color: #0b6b4a; }
html[data-theme="xanh-muc"] #toi-dang-ud .hv-sua-status.is-ok,
html[data-theme="den"] #toi-dang-ud .hv-sua-status.is-ok,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .hv-sua-status.is-ok { color: #7ff0bd; }
#toi-dang-ud .btn-cta { font-weight: 800; }

/* ===== 103.56.23: ghim thanh tab (xem js/tab-ghim.js) =====
   Thanh tab là con trực tiếp của body, không tổ tiên nào có transform/filter/contain/will-change.
   Chặn kéo nảy quá đáy trang (nền trống dưới nội dung) — không đổi giao diện viên thuốc bản 21. */
html { overscroll-behavior-y: none; }
body { overscroll-behavior-y: none; }
#toi-dang-ud .toi-ud-ck { margin: 0; display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.35); }
#toi-dang-ud .toi-ud-ck > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; align-items: baseline; }
#toi-dang-ud .toi-ud-ck dt { font-size: 0.84rem; color: var(--muted); }
#toi-dang-ud .toi-ud-ck dd { margin: 0; font-weight: 800; font-size: 0.92rem; overflow-wrap: break-word; text-wrap: wrap; }
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-ck,
html[data-theme="den"] #toi-dang-ud .toi-ud-ck,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-ck { background: rgba(255, 255, 255, 0.08); }

/* ===== 103.56.23.10: form Đăng ưu đãi đủ trường (3 ô nội dung, nhiều ảnh, ngày hiệu lực, xem trước, sửa bài) ===== */
#toi-dang-ud { font-family: "Be Vietnam Pro", system-ui, sans-serif; }
#toi-dang-ud .hv-sua-field > span { font-weight: 700; }
#toi-dang-ud .toi-ud-form .hv-sua-input { min-height: 44px; font-family: inherit; }
#toi-dang-ud .toi-ud-form textarea.hv-sua-input { line-height: 1.5; resize: none; overflow-y: auto; }
#toi-dang-ud .toi-ud-ngay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#toi-dang-ud .toi-ud-ngay .hv-sua-field > span { font-size: 0.86rem; }
#toi-dang-ud .toi-ud-ngay-o { position: relative; display: block; }
#toi-dang-ud .toi-ud-ngay-inp {
  -webkit-appearance: none; appearance: none;
  display: block; min-width: 0; width: 100%;
  color: transparent !important;
  caret-color: transparent;
}
#toi-dang-ud .toi-ud-ngay-inp::-webkit-datetime-edit,
#toi-dang-ud .toi-ud-ngay-inp::-webkit-datetime-edit-fields-wrapper,
#toi-dang-ud .toi-ud-ngay-inp::-webkit-datetime-edit-text,
#toi-dang-ud .toi-ud-ngay-inp::-webkit-datetime-edit-month-field,
#toi-dang-ud .toi-ud-ngay-inp::-webkit-datetime-edit-day-field,
#toi-dang-ud .toi-ud-ngay-inp::-webkit-datetime-edit-year-field {
  color: transparent;
  -webkit-text-fill-color: transparent;
}
#toi-dang-ud .toi-ud-ngay-hien {
  position: absolute; left: 12px; right: 12px; top: 0; bottom: 0;
  display: flex; align-items: center;
  pointer-events: none;
  font-weight: 600; color: var(--muted);
  text-wrap: pretty; overflow-wrap: anywhere;
}
#toi-dang-ud .toi-ud-ngay-o.is-co .toi-ud-ngay-hien { color: var(--text); font-weight: 700; }

/* ô chọn công ty tùy biến: tên đầy đủ, xuống dòng, không cắt, không lặp */
#toi-dang-ud .toi-ud-cty { position: relative; }
#toi-dang-ud .toi-ud-cty-nut {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  width: 100%; box-sizing: border-box; min-height: 44px; margin: 0; padding: 10px 12px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, #fff 80%, transparent);
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
#toi-dang-ud .toi-ud-cty-ten {
  flex: 1; min-width: 0;
  font-size: 0.92rem; font-weight: 700; line-height: 1.4;
  text-wrap: pretty; overflow-wrap: anywhere; white-space: normal;
}
#toi-dang-ud .toi-ud-cty-ten.is-trong { font-weight: 600; color: var(--muted); }
#toi-dang-ud .toi-ud-cty-nut svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; }
#toi-dang-ud .toi-ud-cty-menu {
  list-style: none; margin: 6px 0 0; padding: 6px;
  position: absolute; left: 0; right: 0; z-index: 20;
  border-radius: 12px; display: grid; gap: 2px;
  max-height: min(50vh, 280px); overflow-y: auto;
  box-shadow: 0 8px 24px rgba(22, 27, 36, 0.16);
}
#toi-dang-ud .toi-ud-cty-menu[hidden] { display: none; }
#toi-dang-ud .toi-ud-cty-opt {
  display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 10px 12px;
  border: 0; border-radius: 8px; background: transparent;
  color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer;
  text-wrap: pretty; overflow-wrap: anywhere; white-space: normal; min-height: 44px;
}
#toi-dang-ud .toi-ud-cty-opt.is-on { background: rgba(30, 58, 95, 0.1); }
#toi-dang-ud .toi-ud-goiy { margin: -4px 0 0; font-size: 0.84rem; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
#toi-dang-ud .toi-ud-goiy code {
  font-family: inherit; font-weight: 700; color: var(--text);
  padding: 1px 6px; border-radius: 6px; background: rgba(30, 58, 95, 0.09); white-space: normal; overflow-wrap: anywhere;
}
#toi-dang-ud .toi-ud-tong { margin: 0; font-size: 0.84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
#toi-dang-ud .toi-ud-tong.is-vuot { color: #9b1c1c; font-weight: 700; }
#toi-dang-ud .toi-ud-sua-note {
  margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 0.88rem; line-height: 1.45; font-weight: 600;
  background: rgba(30, 58, 95, 0.08); text-wrap: pretty;
}
#toi-dang-ud .toi-ud-sua-note.is-canh { background: rgba(255, 183, 64, 0.2); color: #6b4300; }
#toi-dang-ud .toi-ud-dem { margin-left: 6px; font-weight: 600; font-size: 0.84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
#toi-dang-ud .toi-ud-dem.is-vuot { color: #9b1c1c; font-weight: 800; }
#toi-dang-ud #ud-anh-qua { margin-top: 6px; color: #8a5200; font-weight: 600; }
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-dem.is-vuot,
html[data-theme="den"] #toi-dang-ud .toi-ud-dem.is-vuot,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-dem.is-vuot { color: #ff9c9c; }
html[data-theme="xanh-muc"] #toi-dang-ud #ud-anh-qua,
html[data-theme="den"] #toi-dang-ud #ud-anh-qua,
html[data-theme="xanh-reu-vang"] #toi-dang-ud #ud-anh-qua { color: #ffd37a; }

/* gallery ảnh: ô vuông, ảnh đầu viền đậm + nhãn «Ảnh lớn» */
#toi-dang-ud .toi-ud-anh-ds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#toi-dang-ud .toi-ud-anh-ds:empty { display: none; }
#toi-dang-ud .toi-ud-anh-o { position: relative; display: grid; gap: 4px; min-width: 0; }
#toi-dang-ud .toi-ud-anh-img {
  display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; margin: 0; border: 2px solid transparent;
  border-radius: 12px; overflow: hidden; background: rgba(30, 58, 95, 0.1); cursor: pointer;
}
#toi-dang-ud .toi-ud-anh-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
#toi-dang-ud .toi-ud-anh-o.is-chinh .toi-ud-anh-img { border-color: var(--btn-navy); }
#toi-dang-ud .toi-ud-anh-o.is-loi .toi-ud-anh-img { border-color: #9b1c1c; }
#toi-dang-ud .toi-ud-anh-tag {
  position: absolute; top: 6px; left: 6px; min-width: 22px; padding: 2px 7px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; line-height: 1.3; text-align: center;
  background: rgba(22, 27, 36, 0.78); color: #fff; pointer-events: none;
}
#toi-dang-ud .toi-ud-anh-o.is-chinh .toi-ud-anh-tag { background: var(--btn-navy); color: var(--btn-navy-text); }
#toi-dang-ud .toi-ud-anh-nut { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
#toi-dang-ud .toi-ud-anh-nut button {
  display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 0; margin: 0;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 10px;
  background: color-mix(in srgb, #fff 70%, transparent); color: var(--text); cursor: pointer;
}
#toi-dang-ud .toi-ud-anh-nut button svg { width: 16px; height: 16px; }
#toi-dang-ud .toi-ud-anh-nut button:disabled { opacity: 0.35; cursor: default; }
#toi-dang-ud .toi-ud-anh-nut button.is-xoa { color: #9b1c1c; }
#toi-dang-ud .toi-ud-anh-them { width: 100%; }
#toi-dang-ud .toi-ud-anh-them:disabled { opacity: 0.5; }

#toi-dang-ud .toi-ud-nut { display: grid; gap: 10px; }
#toi-dang-ud .toi-ud-nut .btn-cta { width: 100%; min-height: 48px; }
#toi-dang-ud .toi-ud-nut [hidden] { display: none; }
#toi-dang-ud .toi-ud-xem { display: grid; gap: 10px; }
#toi-dang-ud .toi-ud-xem[hidden] { display: none; }
#toi-dang-ud .toi-ud-xem .qc-bai { margin: 0; }
#toi-dang-ud .toi-ud-sua-btn { width: 100%; min-height: 44px; }
#toi-dang-ud .toi-ud-item.is-dang-sua { outline: 2px solid var(--btn-navy); outline-offset: -2px; }
#toi-dang-ud #ud-congty-wrap[hidden], #toi-dang-ud .toi-ud-form [hidden] { display: none; }

html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-goiy code,
html[data-theme="den"] #toi-dang-ud .toi-ud-goiy code,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-goiy code { background: rgba(255, 255, 255, 0.12); }
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-sua-note,
html[data-theme="den"] #toi-dang-ud .toi-ud-sua-note,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-sua-note { background: rgba(255, 255, 255, 0.1); }
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-sua-note.is-canh,
html[data-theme="den"] #toi-dang-ud .toi-ud-sua-note.is-canh,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-sua-note.is-canh { background: rgba(255, 183, 64, 0.2); color: #ffd37a; }
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-tong.is-vuot,
html[data-theme="den"] #toi-dang-ud .toi-ud-tong.is-vuot,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-tong.is-vuot,
html[data-theme="xanh-muc"] #toi-dang-ud .hv-sua-status.is-err,
html[data-theme="den"] #toi-dang-ud .hv-sua-status.is-err,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .hv-sua-status.is-err,
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-anh-nut button.is-xoa,
html[data-theme="den"] #toi-dang-ud .toi-ud-anh-nut button.is-xoa,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-anh-nut button.is-xoa { color: #ff9c9c; }
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-anh-nut button,
html[data-theme="den"] #toi-dang-ud .toi-ud-anh-nut button,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-anh-nut button { background: rgba(255, 255, 255, 0.1); color: var(--text); }
html[data-theme="xanh-muc"] #toi-dang-ud .hv-sua-input,
html[data-theme="den"] #toi-dang-ud .hv-sua-input,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .hv-sua-input { background: rgba(255, 255, 255, 0.1); color: var(--text); border-color: rgba(255, 255, 255, 0.22); color-scheme: dark; }
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-cty-nut,
html[data-theme="den"] #toi-dang-ud .toi-ud-cty-nut,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-cty-nut,
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-cty-menu,
html[data-theme="den"] #toi-dang-ud .toi-ud-cty-menu,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-cty-menu { background: rgba(255, 255, 255, 0.1); color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-cty-opt.is-on,
html[data-theme="den"] #toi-dang-ud .toi-ud-cty-opt.is-on,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-cty-opt.is-on { background: rgba(255, 255, 255, 0.14); }
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-anh-img,
html[data-theme="den"] #toi-dang-ud .toi-ud-anh-img,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-anh-img { background: rgba(255, 255, 255, 0.08); }


/* ========================================================================
   103.56.23.1 — Thẻ doanh nghiệp Hội viên: chữ dùng hết chiều ngang, chevron nhỏ
   ======================================================================== */
#screen-app .hv-dn-card,
.hv-dn-card {
  box-sizing: border-box;
  width: 100%;
  padding: 14px;
}
#screen-app .hv-dn-card > .hv-dn-top,
.hv-dn-card > .hv-dn-top {
  width: 100%;
  box-sizing: border-box;
  position: relative;
  padding-right: 16px;
}
#screen-app a.hv-dn-card .hv-dn-go,
a.hv-dn-card .hv-dn-go {
  position: absolute;
  top: 2px;
  right: 0;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin: 0;
}
#screen-app a.hv-dn-card .hv-dn-go svg,
a.hv-dn-card .hv-dn-go svg {
  width: 12px;
  height: 12px;
  display: block;
}
#screen-app .hv-dn-card .hv-dn-body,
.hv-dn-card .hv-dn-body {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}
#screen-app .hv-dn-card > .hv-dn-bio,
#screen-app .hv-dn-card .hv-dn-bio,
.hv-dn-card > .hv-dn-bio,
.hv-dn-card .hv-dn-lv {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}
#screen-app .hv-dn-card .hv-dn-bio p,
.hv-dn-card .hv-dn-bio p {
  text-wrap: pretty;
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: none;
}
#screen-app .hv-dn-card .hv-dn-bio p.hv-dn-muc,
.hv-dn-card .hv-dn-bio p.hv-dn-muc,
#screen-app .hv-dn-card .hv-dn-nhan {
  text-align: left;
  text-wrap: wrap;
  hyphens: none;
}
#screen-app .hv-dn-card .hv-dn-lv li,
.hv-dn-card .hv-dn-lv li {
  text-wrap: pretty;
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
  max-width: none;
}
#screen-app .hv-dn-card .hv-dn-ten,
.hv-dn-card .hv-dn-ten {
  text-wrap: wrap;
  overflow-wrap: break-word;
  max-width: none;
}
#screen-app .hv-dn-card .hv-dn-dia,
#screen-app .hv-dn-card .hv-dn-role,
#screen-app .hv-dn-card .hv-dn-en,
#screen-app .hv-dn-card .hv-dn-phap {
  text-wrap: pretty;
  overflow-wrap: break-word;
  word-break: normal;
  max-width: none;
}
.hv-dn-ten,
.hv-dn-dia { overflow-wrap: break-word; }

/* ========================================================================
   103.56.23.1 — Chat nhóm + 1-1: giao diện kiểu Grok Bot (dùng chung)
   ======================================================================== */
:root {
  --hh-chat-accent: #1FA8C8;
  --hh-chat-accent-fg: #FFFFFF;
  --hh-chat-in-bg: #F0F0F0;
  --hh-chat-in-fg: #1A1A1A;
  --hh-chat-page-bg: #F6F7F8;
  --hh-chat-soan-bg: #FFFFFF;
  --hh-chat-noi: #FFFFFF;
  --hh-chat-vien: rgba(255, 255, 255, 0.9);
  --hh-chat-bong:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.12),
    0 6px 18px rgba(15, 23, 42, 0.10);
  --hh-chat-bong-nho:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(15, 23, 42, 0.10),
    0 4px 12px rgba(15, 23, 42, 0.08);
  --hh-chat-bong-gui:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 1px 2px rgba(15, 23, 42, 0.16),
    0 6px 14px rgba(31, 168, 200, 0.32);
  --hh-chat-soan-shadow: var(--hh-chat-bong);
}
html[data-theme="trang"] {
  --hh-chat-accent: #2E6FB0;
  --hh-chat-page-bg: #F5F6F7;
  --hh-chat-in-bg: #ECECEE;
  --hh-chat-noi: #FFFFFF;
  --hh-chat-bong-gui:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 1px 2px rgba(15, 23, 42, 0.16),
    0 6px 14px rgba(46, 111, 176, 0.32);
}
html[data-theme="trang-xam"] {
  --hh-chat-accent: #3A4554;
  --hh-chat-page-bg: #F3F4F6;
  --hh-chat-in-bg: #E4E6EA;
  --hh-chat-noi: #FFFFFF;
  --hh-chat-bong-gui:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 1px 2px rgba(15, 23, 42, 0.16),
    0 6px 14px rgba(58, 69, 84, 0.32);
}
html[data-theme="xanh-muc"] {
  --hh-chat-accent: #5B73A8;
  --hh-chat-accent-fg: #FFFFFF;
  --hh-chat-in-bg: #1C2748;
  --hh-chat-in-fg: #F2F4F8;
  --hh-chat-page-bg: #121A32;
  --hh-chat-soan-bg: #223056;
  --hh-chat-noi: #223056;
  --hh-chat-vien: rgba(255, 255, 255, 0.12);
  --hh-chat-bong:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 6px 18px rgba(0, 0, 0, 0.28);
  --hh-chat-bong-nho:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.30),
    0 4px 12px rgba(0, 0, 0, 0.22);
  --hh-chat-bong-gui:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 6px 14px rgba(91, 115, 168, 0.40);
  --hh-chat-soan-shadow: var(--hh-chat-bong);
}
html[data-theme="den"] {
  --hh-chat-accent: #E8E8E8;
  --hh-chat-accent-fg: #111111;
  --hh-chat-in-bg: #1F1F1F;
  --hh-chat-in-fg: #F5F5F5;
  --hh-chat-page-bg: #0A0A0A;
  --hh-chat-soan-bg: #1C1C1C;
  --hh-chat-noi: #1C1C1C;
  --hh-chat-vien: rgba(255, 255, 255, 0.10);
  --hh-chat-bong:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 6px 18px rgba(0, 0, 0, 0.36);
  --hh-chat-bong-nho:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 1px 2px rgba(0, 0, 0, 0.40),
    0 4px 12px rgba(0, 0, 0, 0.28);
  --hh-chat-bong-gui:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.40),
    0 6px 14px rgba(0, 0, 0, 0.35);
  --hh-chat-soan-shadow: var(--hh-chat-bong);
}
html[data-theme="xanh-reu-vang"] {
  --hh-chat-accent: #C9A24A;
  --hh-chat-accent-fg: #16120A;
  --hh-chat-in-bg: #1A1A16;
  --hh-chat-in-fg: #F5F5F0;
  --hh-chat-page-bg: #0C0C0A;
  --hh-chat-soan-bg: #1C1C18;
  --hh-chat-noi: #1C1C18;
  --hh-chat-vien: rgba(255, 240, 200, 0.12);
  --hh-chat-bong:
    inset 0 1px 0 rgba(255, 240, 200, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 6px 18px rgba(0, 0, 0, 0.36);
  --hh-chat-bong-nho:
    inset 0 1px 0 rgba(255, 240, 200, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.40),
    0 4px 12px rgba(0, 0, 0, 0.28);
  --hh-chat-bong-gui:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 2px rgba(0, 0, 0, 0.40),
    0 6px 14px rgba(201, 162, 74, 0.35);
  --hh-chat-soan-shadow: var(--hh-chat-bong);
}

html:has(.hh-chat-man) .bg-orbs {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
html:has(.hh-chat-man) body,
html.hh-chat-khoa body {
  background-image: none !important;
  background-color: var(--hh-chat-page-bg);
}

/* Khoá cuộn trang khi chat mở — chỉ luồng tin cuộn. */
html.hh-chat-khoa,
html.hh-chat-khoa body {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
  height: 100%;
  width: 100%;
}
html.hh-chat-khoa body {
  position: fixed;
  left: 0;
  right: 0;
}
[hidden] .hh-chat-man,
#view-detail[hidden] .hh-chat-man,
#view-home[hidden] .hh-chat-man {
  display: none !important;
  pointer-events: none;
}

.hh-chat-man {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--hh-chat-day, var(--tab-pad, var(--tab-clear)));
  z-index: 20;
  margin: 0;
  padding: calc(var(--hh-vv-top, 0px) + env(safe-area-inset-top, 0px)) 12px 8px;
  box-sizing: border-box;
  background: var(--hh-chat-page-bg);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  font-family: var(--font);
}
.hh-chat-man .chat-page,
.hh-chat-man .nt-thread-page,
.hh-chat-man .nt-page,
.hh-chat-trang {
  background: transparent;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  padding-bottom: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

/* Header: đứng yên trong khung, không sticky theo trang */
.hh-chat-man .detail-top.hh-chat-top,
#screen-app .hh-chat-man .detail-top.hh-chat-top {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 8px 0;
  background: var(--hh-chat-page-bg);
  border-bottom: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  touch-action: manipulation;
}
.hh-chat-back,
.hh-chat-top-cho {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  background: var(--hh-chat-noi);
  color: var(--hh-chat-in-fg);
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  border: 0.5px solid var(--hh-chat-vien);
  box-shadow: var(--hh-chat-bong);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hh-chat-back span { font-size: 26px; line-height: 1; margin-top: -2px; }
.hh-chat-top-cho { visibility: hidden; }
.hh-chat-top-pill {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: calc(100% - 96px);
  margin: 0 auto;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: var(--hh-chat-noi);
  color: var(--hh-chat-in-fg);
  border: 0.5px solid var(--hh-chat-vien);
  box-shadow: var(--hh-chat-bong);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hh-chat-top-pill:not(:has(.hh-chat-ava)) { padding-left: 14px; }
.hh-chat-ava,
.hh-chat-man .chat-ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--hh-chat-accent) 22%, var(--hh-chat-in-bg));
  color: var(--hh-chat-in-fg);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hh-chat-man .chat-row .chat-ava,
.hh-chat-man .hh-chat-dong .chat-ava {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  font-size: 11px;
}
.hh-chat-ava img,
.hh-chat-man .chat-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hh-chat-man .hh-chat-top-ten,
#screen-app .hh-chat-man .hh-chat-top-ten,
.hh-chat-man a.hh-chat-top-ten {
  flex: 0 1 auto;
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--hh-chat-in-fg);
  text-decoration: none;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: keep-all;
}
.hh-chat-man a.hh-chat-top-ten::after { content: none; }

/* Luồng tin */
.hh-chat-man .chat-stream,
.hh-chat-man .nt-thread {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 4px 16px;
  min-height: 0;
  max-height: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  background: transparent;
}
.hh-chat-man .chat-row,
.hh-chat-man .hh-chat-dong {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: end;
  max-width: 80%;
  margin: 10px 0 0;
  background: none;
  border: 0;
}
.hh-chat-man .chat-row.is-mine,
.hh-chat-man .hh-chat-dong.is-mine {
  margin-left: auto;
  grid-template-columns: 1fr;
}
.hh-chat-man .chat-row.is-dau-nhom,
.hh-chat-man .hh-chat-dong.is-dau-nhom { margin-top: 14px; }
.hh-chat-man .chat-row.is-tiep,
.hh-chat-man .hh-chat-dong.is-tiep { margin-top: 3px; }
.hh-chat-man .chat-row.is-tiep .chat-meta,
.hh-chat-man .hh-chat-dong.is-tiep .chat-meta,
.hh-chat-man .chat-row.is-tiep .chat-ava,
.hh-chat-man .hh-chat-dong.is-tiep .chat-ava { display: none; }
.hh-chat-man .chat-row.is-tiep:not(.is-mine),
.hh-chat-man .hh-chat-dong.is-tiep:not(.is-mine) {
  grid-template-columns: 1fr;
  padding-left: 40px;
}
.hh-chat-man .chat-row:not(.is-cuoi-nhom) .chat-time,
.hh-chat-man .hh-chat-dong:not(.is-cuoi-nhom) .chat-time,
.hh-chat-man .chat-row:not(.is-cuoi-nhom) .nt-bub-time,
.hh-chat-man .hh-chat-dong:not(.is-cuoi-nhom) .nt-bub-time { display: none; }

.hh-chat-man .chat-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  margin: 0 2px 4px;
  font-size: 12px;
  color: var(--muted);
}
.hh-chat-man .chat-meta-who strong,
.hh-chat-man .chat-meta-who strong.hv-name {
  font-family: var(--font);
  font-weight: 800;
  color: var(--hh-chat-in-fg);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.hh-chat-man .chat-role-badge {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
}
.hh-chat-man .chat-col { min-width: 0; }

/* Bong bóng: không viền kính, bán kính lớn */
.hh-chat-man .chat-bubble,
.hh-chat-man .hh-chat-bub,
.hh-chat-man .nt-bub {
  padding: 10px 14px;
  border-radius: 20px;
  width: fit-content;
  max-width: 100%;
  border: 0.5px solid var(--hh-chat-vien);
  box-shadow: var(--hh-chat-bong-nho);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--hh-chat-noi);
  color: var(--hh-chat-in-fg);
}
.hh-chat-man .chat-row.is-mine .chat-bubble,
.hh-chat-man .hh-chat-dong.is-mine .hh-chat-bub,
.hh-chat-man .hh-chat-dong.is-mine .nt-bub,
.hh-chat-man .chat-row.is-mine .hh-chat-bub {
  margin-left: auto;
  background: var(--hh-chat-accent);
  color: var(--hh-chat-accent-fg);
  border-color: transparent;
  box-shadow: var(--hh-chat-bong-gui);
}
.hh-chat-man .chat-text,
.hh-chat-man .nt-bub-text {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.45;
  color: inherit;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}
.hh-chat-man .chat-time,
.hh-chat-man .nt-bub-time {
  display: block;
  margin: 4px 4px 0;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  background: none;
}
.hh-chat-man .chat-row.is-mine .chat-time,
.hh-chat-man .hh-chat-dong.is-mine .chat-time,
.hh-chat-man .hh-chat-dong.is-mine .nt-bub-time { text-align: right; }

.hh-chat-man .chat-bubble.is-thu-hoi,
.hh-chat-man .hh-chat-bub.is-thu-hoi,
.hh-chat-man .nt-bub.is-thu-hoi {
  background: transparent !important;
  color: var(--muted) !important;
  border: 0 !important;
  box-shadow: none !important;
  /* Cùng cột và đệm ngang với bong bóng thường, không kéo sát avatar */
  padding: 10px 14px;
}
.hh-chat-man .chat-bubble.is-thu-hoi .chat-text em,
.hh-chat-man .nt-bub.is-thu-hoi .nt-bub-text em,
.hh-chat-man .hh-chat-bub.is-thu-hoi .chat-text em {
  font-style: italic;
  opacity: 0.85;
  color: var(--muted);
}

/* Ô soạn: viên thuốc nổi, không dải màu phẳng */
#screen-app .hh-chat-soan,
.hh-chat-man .chat-composer,
.hh-chat-man .hh-chat-soan,
.hh-chat-man .nt-composer.hh-chat-soan,
#screen-app .nt-composer.hh-chat-soan {
  position: relative;
  left: auto;
  right: auto;
  width: auto;
  bottom: auto;
  flex: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 6px;
  align-items: center;
  margin: 8px 4px 0;
  padding: 6px;
  border: 0.5px solid var(--hh-chat-vien);
  border-top: 0.5px solid var(--hh-chat-vien);
  border-radius: 999px;
  background: var(--hh-chat-soan-bg);
  box-shadow: var(--hh-chat-bong);
  box-sizing: border-box;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  touch-action: manipulation;
}
#screen-app .hh-chat-soan.is-khong-anh,
.hh-chat-man .hh-chat-soan.is-khong-anh,
.hh-chat-man .nt-composer.hh-chat-soan.is-khong-anh {
  grid-template-columns: 1fr 40px;
  padding-left: 14px;
}
.hh-chat-man .hh-chat-soan textarea,
.hh-chat-man .nt-composer.hh-chat-soan textarea,
#screen-app .hh-chat-soan textarea,
#chat-text,
#nt-input {
  resize: none;
  min-height: 40px;
  max-height: 120px;
  margin: 0;
  padding: 8px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
  outline: none;
  outline-offset: 0;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.hh-chat-man .hh-chat-soan textarea:focus,
.hh-chat-man .hh-chat-soan textarea:focus-visible,
.hh-chat-man .nt-composer.hh-chat-soan textarea:focus,
.hh-chat-man .nt-composer.hh-chat-soan textarea:focus-visible,
#screen-app .hh-chat-soan textarea:focus,
#screen-app .hh-chat-soan textarea:focus-visible,
#chat-text:focus,
#chat-text:focus-visible,
#nt-input:focus,
#nt-input:focus-visible {
  outline: none !important;
  outline-width: 0 !important;
  outline-offset: 0;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
}
/* Viền mỏng theo accent trên viên thuốc khi đang gõ — không viền chữ nhật trong ô nhập */
.hh-chat-man .hh-chat-soan:focus-within,
#screen-app .hh-chat-soan:focus-within,
.hh-chat-man .nt-composer.hh-chat-soan:focus-within {
  box-shadow: var(--hh-chat-bong), 0 0 0 1.5px color-mix(in srgb, var(--hh-chat-accent) 42%, transparent);
}
.hh-chat-kem,
#screen-app .hh-chat-kem {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hh-chat-noi);
  color: var(--hh-chat-in-fg);
  flex: none;
  border: 0.5px solid var(--hh-chat-vien);
  box-shadow: var(--hh-chat-bong-nho);
}
.hh-chat-kem svg { width: 20px; height: 20px; display: block; }
.hh-chat-gui,
#screen-app .hh-chat-gui,
.hh-chat-man .hh-chat-gui,
.hh-chat-man .nt-gui.hh-chat-gui {
  width: 40px;
  height: 40px;
  min-width: 40px !important;
  min-height: 40px;
  padding: 0 !important;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hh-chat-accent);
  color: var(--hh-chat-accent-fg);
  font-size: 0;
  line-height: 0;
  flex: none;
  box-shadow: var(--hh-chat-bong-gui);
  border: 0;
}
.hh-chat-gui svg { width: 20px; height: 20px; display: block; }
.hh-chat-man .chat-compose-msg,
.hh-chat-man .nt-err {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 8px;
  background: none;
  font-size: 12.5px;
}
.hh-chat-man .chat-more,
.hh-chat-man .nt-tai-cu {
  display: block;
  margin: 4px auto 8px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--hh-chat-in-bg);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none;
}
.hh-chat-man .nt-empty,
.hh-chat-man .chat-status {
  background: transparent;
  box-shadow: none;
  border: 0;
  color: var(--muted);
  font-weight: 400;
}

@media (min-width: 768px) {
  #screen-app .hh-chat-soan,
  .hh-chat-man .nt-composer.hh-chat-soan,
  .hh-chat-man .hh-chat-soan {
    left: auto;
    bottom: auto;
  }
}


/* 103.56.23.1 — Hồ sơ: Huỷ lời mời (nút nhỏ dưới trạng thái Đã gửi) */
.qt-kb-huy-loi,
#screen-app .hv-pro-ket-ban .qt-kb-huy-loi,
#screen-app .qt-sheet-actions .qt-kb-huy-loi {
  width: auto !important;
  min-width: 0;
  min-height: 36px;
  align-self: center;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #9A3B3B;
  background: transparent;
  box-shadow: none;
  border: 1px solid color-mix(in srgb, #9A3B3B 42%, transparent);
}
html[data-theme="xanh-muc"] .qt-kb-huy-loi,
html[data-theme="den"] .qt-kb-huy-loi,
html[data-theme="xanh-reu-vang"] .qt-kb-huy-loi {
  color: #F3B3C2;
  border-color: color-mix(in srgb, #F3B3C2 45%, transparent);
}

/* ===== 103.56.23.7 — Chat: ẩn tab dưới, ô soạn nổi một viên thuốc, gửi ảnh ===== */
html.hh-chat-khoa #tabbar,
html.hh-chat-khoa .tabbar {
  display: none !important;
}
.hh-chat-man {
  bottom: var(--hh-chat-day, 0px);
  padding-bottom: 0;
}
.hh-chat-man .chat-page,
.hh-chat-man .nt-thread-page,
.hh-chat-man .nt-page,
.hh-chat-trang {
  position: relative;
}
/* Lớp mờ dần phía sau ô soạn: tin cuộn chìm dưới viên thuốc */
.hh-chat-man::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--hh-soan-h, 56px) + 30px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to bottom, color-mix(in srgb, var(--hh-chat-page-bg) 0%, transparent), var(--hh-chat-page-bg) 62%);
  pointer-events: none;
  z-index: 35;
}
html.hh-chat-kb .hh-chat-man::after {
  height: calc(var(--hh-soan-h, 56px) + 26px);
}
.hh-chat-man .chat-stream,
.hh-chat-man .nt-thread {
  padding-bottom: calc(var(--hh-soan-h, 56px) + 36px + env(safe-area-inset-bottom, 0px));
}
html.hh-chat-kb .hh-chat-man .chat-stream,
html.hh-chat-kb .hh-chat-man .nt-thread {
  padding-bottom: calc(var(--hh-soan-h, 56px) + 30px);
}
#screen-app .hh-chat-soan,
.hh-chat-man .chat-composer,
.hh-chat-man .hh-chat-soan,
.hh-chat-man .nt-composer.hh-chat-soan,
#screen-app .nt-composer.hh-chat-soan {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  width: auto;
  grid-template-columns: 40px 1fr 40px;
  min-height: 52px;
  padding: 6px;
  border: 0;
  border-radius: 26px;
  background: var(--hh-chat-soan-bg);
  box-shadow: 0 10px 30px rgba(20, 24, 34, 0.14), 0 2px 6px rgba(20, 24, 34, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
html.hh-chat-kb .hh-chat-man .hh-chat-soan,
html.hh-chat-kb .hh-chat-man .chat-composer,
html.hh-chat-kb .hh-chat-man .nt-composer.hh-chat-soan {
  bottom: 8px;
}
.hh-chat-man .hh-chat-soan:focus-within,
#screen-app .hh-chat-soan:focus-within,
.hh-chat-man .nt-composer.hh-chat-soan:focus-within {
  box-shadow: 0 10px 30px rgba(20, 24, 34, 0.16), 0 2px 6px rgba(20, 24, 34, 0.08), 0 0 0 1.5px color-mix(in srgb, var(--hh-chat-accent) 38%, transparent);
}
.hh-chat-man .hh-chat-soan textarea,
.hh-chat-man .nt-composer.hh-chat-soan textarea,
#chat-text,
#nt-input {
  min-height: 40px;
  padding: 9px 6px;
  align-self: center;
}
.hh-chat-kem,
#screen-app .hh-chat-kem,
.hh-chat-man .hh-chat-kem {
  background: var(--hh-chat-in-bg);
  border: 0;
  box-shadow: none;
  color: var(--text);
  align-self: end;
  -webkit-tap-highlight-color: transparent;
}
.hh-chat-man .hh-chat-gui { align-self: end; }
.hh-chat-man .hh-chat-gui:disabled { opacity: 0.45; box-shadow: none; }
.hh-chat-man .chat-compose-msg,
.hh-chat-man .nt-err {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: calc(var(--hh-soan-h, 56px) + 16px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  grid-column: auto;
  padding: 7px 12px;
  border-radius: 14px;
  background: var(--hh-chat-soan-bg);
  box-shadow: 0 4px 14px rgba(20, 24, 34, 0.14);
  text-align: center;
}
html.hh-chat-kb .hh-chat-man .chat-compose-msg,
html.hh-chat-kb .hh-chat-man .nt-err {
  bottom: calc(var(--hh-soan-h, 56px) + 14px);
}
.hh-chat-man .chat-compose-msg[hidden],
.hh-chat-man .nt-err[hidden] { display: none; }

/* Khay ảnh chờ gửi, nằm trong viên thuốc */
.hh-anh-khay {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 2px;
}
.hh-anh-khay[hidden] { display: none; }
.hh-anh-the {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--hh-chat-in-bg);
  flex: none;
}
.hh-anh-the img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hh-anh-bo {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 24, 34, 0.62);
  color: #fff;
  font-size: 15px;
  line-height: 22px;
  text-align: center;
}
.hh-anh-tien {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.55);
}
.hh-anh-tien > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--hh-chat-accent);
  transition: width 0.15s linear;
}
.hh-anh-the.is-gui img { opacity: 0.6; }
.hh-anh-chu { font-size: 12.5px; color: var(--muted); line-height: 1.35; min-width: 0; }
.hh-chat-man .hh-chat-soan.co-anh { border-radius: 24px; }

/* Ảnh trong bong bóng: bo tròn, bấm xem lớn */
.hh-chat-man .chat-photo {
  display: block;
  width: min(236px, 62vw);
  padding: 0;
  margin: 0 !important;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.hh-chat-man .chat-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 0;
}
.hh-chat-man .chat-bubble.co-anh,
.hh-chat-man .hh-chat-bub.co-anh {
  padding: 4px;
}
.hh-chat-man .chat-bubble.co-anh .chat-text,
.hh-chat-man .hh-chat-bub.co-anh .nt-bub-text {
  padding: 6px 8px 4px;
}

/* Đăng nhập: nút Đăng ký đậm + liên kết quên mật khẩu */
.chat-login .hv-dk-btn,
.hv-khoa-panel .hv-dk-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.chat-login .hv-dk-btn { margin-top: 10px; }
.chat-quen-link {
  display: block;
  margin: 12px auto 2px;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--accent, var(--hh-chat-accent));
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  width: 100%;
}
.chat-quen-ok { margin: 8px 0 14px; line-height: 1.5; }
.chat-quen-back { margin-top: 8px; }
.chat-quen .dk-hp, .dk-form .dk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dk-ok-tick {
  width: 56px; height: 56px; margin: 4px auto 10px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent, #1F6F5C); color: #fff;
  font-size: 30px; font-weight: 800; line-height: 1;
}
.dk-ok-tit { text-align: center; margin: 0 0 6px; font-size: 19px; }

.hv-dk-btn strong { font-weight: 800; }

/* ===== 103.56.23.8 — đệm đáy form (tab không che) + khung ảnh tạm ===== */
.toi-sub:has(.chat-login),
#view-home:has(.chat-login),
#view-detail:has(.chat-login),
#view-home:has(.dk-page),
#view-detail:has(.dk-page) {
  padding-bottom: calc(var(--tab-pad, var(--tab-clear)) + 32px) !important;
}
#screen-app .chat-login,
#screen-app .dk-page,
#screen-app .dk-panel {
  margin-bottom: 8px;
}
.hh-anh-tam {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(236px, 62vw);
  min-height: 132px;
  margin: 0;
  padding: 16px 12px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--text) 7%, var(--hh-chat-in-bg, var(--hh-chat-soan-bg, #f0f0f0)));
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  box-sizing: border-box;
}
.hh-anh-tam svg {
  width: 36px;
  height: 36px;
  display: block;
  opacity: 0.85;
}
.hh-chat-man .chat-bubble.co-anh-tam,
.hh-chat-man .hh-chat-bub.co-anh-tam {
  padding: 4px;
  background: transparent;
  box-shadow: none;
  border: 0;
}

/* ===== 103.56.23.9 — chat chỉ chữ: ô soạn viên thuốc, không nút +, không khay ảnh ===== */
#screen-app .hh-chat-soan,
.hh-chat-man .chat-composer,
.hh-chat-man .hh-chat-soan,
.hh-chat-man .nt-composer.hh-chat-soan,
#screen-app .nt-composer.hh-chat-soan,
#screen-app .hh-chat-soan.is-khong-anh,
.hh-chat-man .hh-chat-soan.is-khong-anh,
.hh-chat-man .nt-composer.hh-chat-soan.is-khong-anh {
  grid-template-columns: 1fr 40px;
  padding-left: 14px;
}
.hh-chat-kem,
#screen-app .hh-chat-kem,
.hh-chat-man .hh-chat-kem { display: none !important; }
.hh-anh-khay { display: none !important; }

/* ===== 103.56.23.14 — chức danh xuống dòng tròn câu; ảnh/QR không méo ===== */
.hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-pos,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-pos,
#screen-app .hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-pos {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  -webkit-line-clamp: unset;
  text-wrap: pretty;
  line-height: 1.22;
  max-width: 100%;
  min-width: 0;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-en-pos,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-m-en-pos {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  text-wrap: pretty;
  max-width: 100%;
  min-width: 0;
}
.hv-the-m-pos-dong,
.hv-the-mau-chung .hv-the-m-val.is-pos .hv-the-m-pos-dong,
.hv-the-mau-chung .hv-the-m-en-pos .hv-the-m-pos-dong {
  display: block;
  white-space: normal;
  overflow: visible;
  text-wrap: pretty;
  max-width: 100%;
  min-width: 0;
}
/* Tên và Nhiệm kỳ giữ một khối; Tư Cách được phép cao hơn, không đẩy dải mã. */
.hv-the-mau-chung:not(.is-back) .hv-the-m-group:nth-child(1) {
  flex: 0 0 auto;
  justify-content: flex-start;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-group:nth-child(2) {
  flex: 1 1 auto;
  justify-content: center;
  min-height: 0;
  min-width: 0;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-group:nth-child(3) {
  flex: 0 0 auto;
  justify-content: flex-end;
}

/* Ảnh chân dung: cover theo khung, không kéo dãn. */
.hv-the-mau-chung .hv-the-portrait img,
.hv-the-mau-chung .hv-the-m-photo img,
.hv-the-card.hv-the-mau-chung .hv-the-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}
.hv-the-logo-hh img,
.hv-the-mau-chung .hv-the-logo-hh img {
  object-fit: contain;
  object-position: center;
}

/* QR luôn vuông; SVG không bị ép lệch tỉ lệ. */
.hv-the-mau-chung:not(.is-back) .hv-the-m-qr,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-m-qr,
.hv-the-mau-chung .hv-the-qr,
.hv-the-mau-chung .hv-the-qr svg {
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  box-sizing: border-box;
}
.hv-the-mau-chung .hv-the-qr,
.hv-the-mau-chung .hv-the-qr svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  overflow: hidden;
}

/* ===== 103.56.23.15 — chữ Tư Cách nhỏ hơn ~9% (2.30→2.09cqw, EN 1.55→1.41cqw) ===== */
.hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-pos,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-pos,
#screen-app .hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-pos {
  font-size: 2.09cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-en-pos,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-m-en-pos,
#screen-app .hv-the-mau-chung:not(.is-back) .hv-the-m-en-pos {
  font-size: 1.41cqw;
}


/* ===== 103.56.23.16 — dấu • trước mỗi chức danh, hanging indent; chữ 2.09→1.92cqw ===== */
.hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-pos,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-pos,
#screen-app .hv-the-mau-chung:not(.is-back) .hv-the-m-val.is-pos {
  font-size: 1.92cqw;
}
.hv-the-mau-chung:not(.is-back) .hv-the-m-en-pos,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-m-en-pos,
#screen-app .hv-the-mau-chung:not(.is-back) .hv-the-m-en-pos {
  font-size: 1.30cqw;
}
.hv-the-m-pos-dong,
.hv-the-mau-chung .hv-the-m-val.is-pos .hv-the-m-pos-dong,
.hv-the-mau-chung .hv-the-m-en-pos .hv-the-m-pos-dong {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  column-gap: 0.35em;
  max-width: 100%;
  min-width: 0;
  text-indent: 0;
}
.hv-the-m-pos-cham {
  flex: 0 0 auto;
  display: block;
  line-height: inherit;
  white-space: nowrap;
  text-indent: 0;
}
.hv-the-m-pos-chu {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  white-space: normal;
  overflow: visible;
  text-wrap: pretty;
  text-indent: 0;
}
/* Dòng EN là bản dịch, không phải chức danh riêng: ẩn dấu chấm nhưng giữ hàng thụt. */
.hv-the-mau-chung:not(.is-back) .hv-the-m-en-pos .hv-the-m-pos-cham,
.hv-the-card.hv-the-mau-chung:not(.is-back) .hv-the-m-en-pos .hv-the-m-pos-cham {
  visibility: hidden;
}

/* ===== 103.56.23.17 — báo tin nhắn riêng chưa đọc ===== */
.nt-db-entry .nt-db-badge,
.nt-db-entry .nt-unread.nt-db-badge {
  flex: 0 0 auto;
  margin-left: auto;
}
.nt-db-entry .nt-db-badge[hidden],
.nt-db-entry .nt-unread.nt-db-badge[hidden] {
  display: none !important;
}
.kb-row.is-unread {
  box-shadow: var(--shadow-soft), inset 3px 0 0 var(--cyan, #2BB5D8);
}
.kb-row.is-unread .kb-row-ten {
  font-weight: 750;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.kb-row-phu.is-tin-moi {
  color: var(--navy, #17324d);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kb-row .kb-row-badge,
.kb-row .nt-unread {
  flex: 0 0 auto;
}
html[data-theme="xanh-muc"] .kb-row-phu.is-tin-moi,
html[data-theme="den"] .kb-row-phu.is-tin-moi,
html[data-theme="xanh-reu-vang"] .kb-row-phu.is-tin-moi {
  color: var(--text, #e8eef4);
}

.nt-bang-nhom {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(var(--hh-soan-h, 56px) + 16px + env(safe-area-inset-bottom, 0px));
  z-index: 46;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 8px 8px 12px;
  border-radius: 16px;
  background: var(--hh-chat-soan-bg, var(--hh-chat-noi, #fff));
  color: var(--hh-chat-in-fg, var(--text));
  border: 0.5px solid var(--hh-chat-vien, rgba(20, 24, 34, 0.12));
  box-shadow: 0 8px 22px rgba(20, 24, 34, 0.14), 0 1px 4px rgba(20, 24, 34, 0.06);
  font-family: var(--font);
  pointer-events: auto;
}
.nt-bang-nhom[hidden] { display: none !important; }
html.hh-chat-kb .hh-chat-man .nt-bang-nhom {
  bottom: calc(var(--hh-soan-h, 56px) + 14px);
}
.nt-bang-nhom-link {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.nt-bang-nhom-ico {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}
.nt-bang-nhom-chu {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.nt-bang-nhom-chu .nt-bang-ten,
.nt-bang-nhom-chu strong {
  font-weight: 800;
  font-family: var(--font-name, var(--font));
  color: inherit;
  word-break: keep-all;
  overflow-wrap: break-word;
  white-space: normal;
}
.nt-bang-nhom-dong {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hh-chat-in-fg, #17324d) 8%, transparent);
  color: var(--hh-chat-in-fg, var(--text));
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nt-bang-nhom-dong:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--hh-chat-accent, #2BB5D8) 70%, transparent);
  outline-offset: 1px;
}

/* Dải báo chiếm chỗ trên ô soạn, không đè lên textarea */
.hh-chat-man.is-co-bang-nt .chat-stream {
  padding-bottom: calc(var(--hh-soan-h, 56px) + var(--hh-bang-nt-h, 44px) + 28px + env(safe-area-inset-bottom, 0px));
}
html.hh-chat-kb .hh-chat-man.is-co-bang-nt .chat-stream {
  padding-bottom: calc(var(--hh-soan-h, 56px) + var(--hh-bang-nt-h, 44px) + 22px);
}

/* 103.56.23.18 — Chứng nhận & vinh danh (2 nhóm, mở tệp, mục hết hạn mờ) */
.toi-cn-nhom { margin: 0 0 14px; }
.toi-cn-nhom-h {
  margin: 4px 2px 8px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
.toi-cn-dem {
  display: inline-block;
  min-width: 22px;
  padding: 1px 7px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(43, 181, 216, 0.16);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.toi-cn-item { display: flex; flex-direction: column; gap: 10px; }
.toi-cn-row { display: flex; align-items: flex-start; gap: 12px; }
.toi-cn-body { flex: 1 1 auto; min-width: 0; }
.toi-cn-body .toi-item-title { overflow-wrap: anywhere; }
.toi-cn-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(120, 140, 160, 0.3);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.toi-cn-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.toi-cn-open { align-self: flex-start; min-height: 40px; padding: 8px 18px; font-weight: 800; text-decoration: none; }
.toi-cn-chip.is-het { background: rgba(120, 130, 145, 0.18); color: var(--muted); }
html[data-theme="xanh-muc"] .toi-cn-nhom-h,
html[data-theme="den"] .toi-cn-nhom-h,
html[data-theme="xanh-reu-vang"] .toi-cn-nhom-h { color: var(--navy); }
html[data-theme="xanh-muc"] .toi-cn-dem,
html[data-theme="den"] .toi-cn-dem,
html[data-theme="xanh-reu-vang"] .toi-cn-dem { background: rgba(126, 214, 238, 0.16); color: var(--cyan-soft); }
.toi-cn-item.is-past .toi-cn-thumb img { filter: grayscale(0.4); }
#toi-dang-ud .toi-ud-note.is-canh { color: #6b4300; font-weight: 700; }
html[data-theme="xanh-muc"] #toi-dang-ud .toi-ud-note.is-canh,
html[data-theme="den"] #toi-dang-ud .toi-ud-note.is-canh,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .toi-ud-note.is-canh { color: #ffd37a; }
#toi-dang-ud .hv-sua-status.is-err.is-canh { color: #6b4300; font-weight: 700; }
html[data-theme="xanh-muc"] #toi-dang-ud .hv-sua-status.is-err.is-canh,
html[data-theme="den"] #toi-dang-ud .hv-sua-status.is-err.is-canh,
html[data-theme="xanh-reu-vang"] #toi-dang-ud .hv-sua-status.is-err.is-canh { color: #ffd37a; }
#toi-chung-nhan-list .toi-empty { text-wrap: balance; }

/* 103.56.23.19 — đăng ký Sự kiện trong năm + lỗi tải mục Tôi */
.hd-dk { display: flex; flex-direction: column; gap: 10px; padding: 16px; margin: 0 0 14px; }
.hd-dk h3 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--navy); }
.hd-dk .hd-dk-meta { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hd-dk .hd-dk-meta strong { color: var(--navy); font-weight: 800; }
.hd-dk .hd-dk-btn { width: 100%; margin: 2px 0 0; font-weight: 800; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.hd-dk .hd-dk-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.hd-dk-ok { margin: 0; color: var(--navy); font-size: 14px; }
.hd-dk-ly, .hd-dk-msg { margin: 0; font-size: 13px; line-height: 1.45; color: var(--navy-2); }
.hd-dk-msg.is-loi { color: #9A3B3B; font-weight: 700; }
.hd-dk.is-past { opacity: 0.62; filter: grayscale(0.25); }
.hd-dk-chip {
  display: inline-block;
  align-self: flex-start;
  margin: 6px 0 0 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  background: rgba(43, 181, 216, 0.16);
  color: var(--navy);
}
.hd-dk-chip.is-da { background: rgba(46, 160, 100, 0.18); }
.hd-dk-chip.is-khoa { background: rgba(120, 130, 145, 0.18); color: var(--muted); }
.date-card.is-past .hd-dk-chip { display: none; }
.toi-loi { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.toi-loi p { margin: 0; text-wrap: balance; }
.toi-loi .toi-thu-lai { min-height: 40px; padding: 8px 22px; font-weight: 800; }
html[data-theme="xanh-muc"] .hd-dk-msg.is-loi,
html[data-theme="den"] .hd-dk-msg.is-loi,
html[data-theme="xanh-reu-vang"] .hd-dk-msg.is-loi { color: #ffb4b4; }
html[data-theme="xanh-muc"] .hd-dk-chip,
html[data-theme="den"] .hd-dk-chip,
html[data-theme="xanh-reu-vang"] .hd-dk-chip { background: rgba(126, 214, 238, 0.18); color: var(--cyan-soft); }
html[data-theme="xanh-muc"] .hd-dk-chip.is-da,
html[data-theme="den"] .hd-dk-chip.is-da,
html[data-theme="xanh-reu-vang"] .hd-dk-chip.is-da { background: rgba(120, 220, 160, 0.2); color: #b6f0cf; }
html[data-theme="xanh-muc"] .hd-dk-chip.is-khoa,
html[data-theme="den"] .hd-dk-chip.is-khoa,
html[data-theme="xanh-reu-vang"] .hd-dk-chip.is-khoa { background: rgba(160, 170, 185, 0.18); color: var(--muted); }


/* ========================================================================
   103.56.23.20 — thống nhất cỡ chữ thẻ Chủ tịch (Danh sách các đời)
   và không để hhFitHaiDong / text-wrap:balance làm lệch thẻ nhân sự.
   Tên 15px; chức danh / đơn vị / nhiệm kỳ 13px; mô tả 13.5px, đủ đọc.
   ======================================================================== */

#screen-app .person-doi {
  align-items: start;
}
#screen-app .person-doi .chev {
  margin-top: 16px;
}
#screen-app .person-doi .person-body h4 {
  font-family: var(--font-display), var(--font);
  font-size: 15px;
  font-weight: 700 !important;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  text-wrap: pretty;
  overflow-wrap: break-word;
  max-width: 100%;
}
#screen-app .person-doi .person-role,
#screen-app .person-doi .person-meta,
#screen-app .person-doi .person-desc,
#screen-app .person-body p.person-role,
#screen-app .person-body p.person-meta,
#screen-app .person-body p.person-desc {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  font-family: var(--font);
}
#screen-app .person-doi .person-role,
#screen-app .person-body p.person-role {
  color: var(--cyan);
  font-weight: 700 !important;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 2px;
}
#screen-app .person-doi .person-meta,
#screen-app .person-body p.person-meta {
  color: var(--muted);
  font-weight: 400 !important;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 2px;
}
#screen-app .person-doi .person-desc,
#screen-app .person-body p.person-desc {
  color: var(--text);
  font-weight: 400 !important;
  font-size: 13.5px;
  line-height: 1.5;
  margin-top: 8px;
}

/* Ban Chấp hành: giữ cỡ tên, không thu vì huy chương (cùng đợt 23.20). */
#screen-app .people .person-body h4.hv-name,
#screen-app .people .person-body .hv-name,
#screen-app .people .person-body .hv-name-text {
  font-size: 14px;
  font-weight: 700 !important;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  text-wrap: pretty;
}
#screen-app .people .person-body p.bch-chuc,
#screen-app .people .person-body p.bch-roles {
  text-wrap: pretty;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ========================================================================
   103.56.23.35 — Trang chính các tỉnh / tách host hub, phong cách ứng dụng (không copy mockup)
   ======================================================================== */

body.trang-cac-tinh #tabbar,
body.trang-cac-tinh #site-footer,
body.trang-cac-tinh #drawer,
body.trang-cac-tinh .drawer-backdrop { display: none !important; }
body.trang-cac-tinh #screen-splash,
body.trang-cac-tinh .app-shell > .topbar,
body.trang-cac-tinh .app-shell > .search,
body.trang-cac-tinh .app-shell > #search-results,
body.trang-cac-tinh .app-shell > #hv-demo-banner {
  display: none !important;
}
body.trang-cac-tinh {
  --tab-pad: 0px;
  --tab-pad-px: 0px;
  --tab-clear: 0px;
}
body.trang-cac-tinh .app-shell {
  padding: 14px 18px calc(20px + env(safe-area-inset-bottom, 0px));
}

.ctinh-trang {
  padding: 6px 0 8px;
  margin: 0;
  color: var(--text);
  background: transparent;
}
.ctinh-dau {
  display: flex;
  justify-content: center;
  padding: 8px 0 12px;
}
.ctinh-logo-tam {
  width: 184px;
  max-width: 190px;
  margin: 0 auto;
  box-sizing: border-box;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  line-height: 0;
}
.ctinh-logo-tam picture,
.ctinh-logo-tam img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.ctinh-logo-tam .ctinh-logo--toi { display: none; }
html[data-theme="xanh-muc"] .ctinh-logo-tam .ctinh-logo--sang,
html[data-theme="den"] .ctinh-logo-tam .ctinh-logo--sang,
html[data-theme="xanh-reu-vang"] .ctinh-logo-tam .ctinh-logo--sang { display: none; }
html[data-theme="xanh-muc"] .ctinh-logo-tam .ctinh-logo--toi,
html[data-theme="den"] .ctinh-logo-tam .ctinh-logo--toi,
html[data-theme="xanh-reu-vang"] .ctinh-logo-tam .ctinh-logo--toi { display: block; }

.ctinh-nowrap { white-space: nowrap; }

.ctinh-bang {
  padding: 16px 14px 18px;
  margin: 0;
}
.ctinh-bang h1 {
  font-family: var(--font-display), var(--font);
  font-weight: 800;
  font-size: clamp(1.05rem, 4.6vw, 1.28rem);
  color: var(--navy);
  text-align: center;
  margin: 0 4px 6px;
  text-wrap: pretty;
  line-height: 1.3;
}
.ctinh-bang-phu {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(0.75rem, 3.2vw, 0.9rem);
  color: var(--muted);
  text-align: center;
  margin: 0 4px 14px;
  text-wrap: pretty;
  line-height: 1.4;
}

.ctinh-luoi-sang {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ctinh-the.is-sang {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 14px 12px 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  color: var(--navy);
  background: var(--glass-strong);
  background-image: var(--btn-3d-sheen-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--btn-3d-shadow-glass);
  font-family: var(--font);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  min-width: 0;
  transition: var(--btn-3d-transition);
}
.ctinh-the.is-sang:active {
  transform: translateY(1px);
  box-shadow: var(--btn-3d-shadow-glass-press);
}
.ctinh-the.is-sang:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.ctinh-khoa {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--glass);
  color: var(--navy);
  border: 1px solid var(--glass-border);
}
.ctinh-khoa svg { width: 13px; height: 13px; display: block; }

.ctinh-hang {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  padding-right: 22px;
}
.ctinh-dong {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ctinh-ico {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), var(--cyan-pale));
  color: var(--cyan);
  box-shadow: 0 4px 10px rgba(43, 181, 216, 0.18);
}
.ctinh-ico svg { width: 22px; height: 22px; display: block; }
.ctinh-ico--logo {
  box-sizing: border-box;
  padding: 4px;
  overflow: hidden;
}
.ctinh-ico--logo picture,
.ctinh-ico--logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
html[data-theme="xanh-muc"] .ctinh-ico--logo,
html[data-theme="den"] .ctinh-ico--logo,
html[data-theme="xanh-reu-vang"] .ctinh-ico--logo {
  background: #f4f7f8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}
.ctinh-chu {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ctinh-nhan {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--muted);
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.ctinh-ten {
  font-family: var(--font-display), var(--font);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
.ctinh-chev {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--cyan);
  display: flex;
}
.ctinh-chev svg { width: 18px; height: 18px; display: block; }

.ctinh-luoi-tat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
@media (min-width: 640px) {
  .ctinh-luoi-sang,
  .ctinh-luoi-tat { grid-template-columns: 1fr 1fr 1fr; }
}
.ctinh-the.is-tat {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 9px 10px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  opacity: 0.5;
  filter: grayscale(0.45);
  pointer-events: none;
  cursor: default;
  user-select: none;
  color: var(--muted);
  min-width: 0;
  box-shadow: none;
}
.ctinh-the.is-tat .ctinh-nhan {
  font-size: 10px;
  font-weight: 600;
  color: inherit;
}
.ctinh-the.is-tat .ctinh-ten {
  font-size: 13px;
  font-weight: 700;
  color: inherit;
}

.ctinh-chan {
  margin: 18px 8px 4px;
  text-align: center;
}
.ctinh-chan p {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  text-wrap: pretty;
}

/* Về trang các tỉnh từ Home (app Gia Lai). */
.ctinh-ve {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
}
.ctinh-ve-ico {
  flex: 0 0 auto;
  display: flex;
  width: 22px;
  height: 22px;
  color: var(--text);
}
.ctinh-ve-ico svg {
  width: 22px;
  height: 22px;
  display: block;
}
.ctinh-ve strong {
  font-family: var(--font-display), var(--font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

/* Đặc quyền hội viên — thẻ dialog nhỏ căn giữa, không copy mockup 1:1 */
.ctinh-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.ctinh-sheet[hidden] { display: none !important; }
.ctinh-sheet-scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(12px) saturate(0.82);
  -webkit-backdrop-filter: blur(12px) saturate(0.82);
}
.ctinh-sheet-panel {
  position: relative;
  z-index: 1;
  width: 312px;
  max-width: 100%;
  margin: 0;
  padding: 16px 16px 14px;
  border-radius: 20px;
  box-sizing: border-box;
  text-align: center;
}
.ctinh-sheet-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  font-family: var(--font);
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  color: var(--navy);
  background: var(--glass);
  cursor: pointer;
}
.ctinh-dq-khoa {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 2px auto 8px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--navy);
  box-shadow: var(--shadow-soft);
}
.ctinh-dq-khoa svg { width: 18px; height: 18px; display: block; }
.ctinh-dq-tit {
  font-family: var(--font-display), var(--font);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
  text-wrap: pretty;
}
.ctinh-dq-sub {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
  margin: 3px 0 0;
}
.ctinh-dq-gach {
  display: block;
  height: 1px;
  border: 0;
  margin: 10px 6px;
  background: var(--glass-border);
}
.ctinh-dq-body {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 6px;
  text-wrap: pretty;
}
.ctinh-dq-en {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  margin: 0 0 12px;
  text-wrap: pretty;
}
.ctinh-dq-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 100%;
  min-height: 46px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ok);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--ok) 42%, transparent);
  text-decoration: none;
  font-family: var(--font);
}
.ctinh-dq-cta::after { content: none; width: 0; height: 0; flex: 0; mask: none; -webkit-mask: none; }
.ctinh-dq-cta strong {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: inherit;
}
.ctinh-dq-cta span {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.05em;
  line-height: 1.15;
  color: inherit;
  opacity: 0.92;
}
html[data-theme="xanh-muc"] .ctinh-dq-cta,
html[data-theme="den"] .ctinh-dq-cta,
html[data-theme="xanh-reu-vang"] .ctinh-dq-cta {
  background: #1FA971;
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 169, 113, 0.32);
}
@media (prefers-reduced-motion: reduce) {
  .ctinh-sheet-scrim {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ctinh-the.is-sang { transition: none; }
  .ctinh-the.is-sang:active { transform: none; }
}

/* Đăng ký hội viên cấp hub — không dùng chrome Gia Lai */
.ctinh-trang--dk { padding: 0 0 12px; }
.ctinh-dk-dau {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding-right: 44px;
}
.ctinh-dk-dau .ctinh-ve { flex: 1 1 auto; margin: 0; min-width: 0; }
.ctinh-dk-x {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass-strong);
  color: var(--navy);
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}
.ctinh-dk-bang {
  padding: 18px 16px 16px;
  box-sizing: border-box;
}
.ctinh-dk-tit {
  font-family: var(--font-display), var(--font);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-align: center;
  margin: 0 0 4px;
  text-wrap: pretty;
}
.ctinh-dk-hh {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  text-align: center;
  margin: 0 0 14px;
  text-wrap: pretty;
}
.ctinh-dk-sap,
.ctinh-dk-ok {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  text-align: center;
  margin: 0 0 14px;
  text-wrap: pretty;
}
.ctinh-dk-ma {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  text-align: center;
  margin: -6px 0 16px;
}
.ctinh-dk-ma strong { font-weight: 800; color: var(--navy); }
.ctinh-dk-bang .dk-ok-tick { margin: 8px auto 8px; }
.ctinh-dk-bang #ctinh-dk-submit:disabled,
#ctinh-dk-submit:disabled {
  opacity: 0.72;
  pointer-events: none;
}
.ctinh-dk-ve { margin-top: 4px; }
.ctinh-dk-form { margin-top: 4px; }
.ctinh-dk-bang .btn-cta::after,
#ctinh-dk-submit::after { content: none; width: 0; height: 0; flex: 0; mask: none; -webkit-mask: none; }

.ctinh-dk-sap .ctinh-nowrap,
.ctinh-dk-ok .ctinh-nowrap { white-space: nowrap; }
.ctinh-dk-tracuu {
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--glass-border);
  text-align: left;
}
.ctinh-dk-tracuu-tit {
  font-family: var(--font-display), var(--font);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 10px;
  text-align: center;
}
.ctinh-dk-tracuu .dk-field { margin: 0 0 8px; }
.ctinh-dk-tc-gui {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
}
.ctinh-dk-tracuu .btn-cta::after,
.ctinh-dk-tc-gui::after { content: none; width: 0; height: 0; flex: 0; mask: none; -webkit-mask: none; }
.ctinh-dk-tc-kq {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  text-align: center;
  margin: 12px 0 0;
  text-wrap: pretty;
}
.ctinh-dk-tc-kq p { margin: 0 0 4px; }
.ctinh-dk-tc-kq p:last-child { margin-bottom: 0; }
.ctinh-dk-tc-kq strong { font-weight: 800; color: var(--navy); }
.ctinh-dk-tc-kq.is-loi { color: #C4472A; }

/* 103.56.23.35 — host hub: ẩn chrome Gia Lai từ khung hình đầu, trước khi app.js chạy. */
html[data-che-do="hub"] #tabbar,
html[data-che-do="hub"] #site-footer,
html[data-che-do="hub"] #drawer,
html[data-che-do="hub"] .drawer-backdrop,
html[data-che-do="hub"] #screen-splash,
html[data-che-do="hub"] .app-shell > .topbar,
html[data-che-do="hub"] .app-shell > .search,
html[data-che-do="hub"] .app-shell > #search-results,
html[data-che-do="hub"] .app-shell > #hv-demo-banner {
  display: none !important;
}
html[data-che-do="hub"] {
  --tab-pad-px: 0px;
}
html[data-che-do="hub"] .app-shell {
  padding-bottom: 0;
}
