/* =====================================================================
   CLB TAEKWONDO KIÊN LƯƠNG – GIAO DIỆN 2.0 (ưu tiên điện thoại)
   Màu lấy từ logo: xanh hoàng gia + vàng thêu + đỏ võ đường
   ===================================================================== */

/* ---------------------------- 1. BIẾN ---------------------------- */
:root {
  --brand: #0b3c5d;
  --brand-2: #0b3c5d;
  --brand-soft: #e7eef5;
  --gold: #f2c200;
  --gold-ink: #5c4600;
  --red: #c4161c;
  --red-2: #a01216;
  --green: #1e8e3e;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f7f6;
  --text: #222222;
  --text-2: #444444;
  --muted: #666666;
  --line: #eeeeee;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --header-h: 60px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #3498db;
    --brand-2: #3498db;
    --brand-soft: #1c2a38;
    --red: #e5484d;
    --red-2: #c4161c;
    --green: #4ade80;
    --bg: #121212;
    --surface: #1e1e1e;
    --surface-2: #242424;
    --text: #e0e0e0;
    --text-2: #c4c4c4;
    --muted: #aaaaaa;
    --line: #333333;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #3498db;
  --brand-2: #3498db;
  --brand-soft: #1c2a38;
  --red: #e5484d;
  --red-2: #c4161c;
  --green: #4ade80;
  --bg: #121212;
  --surface: #1e1e1e;
  --surface-2: #242424;
  --text: #e0e0e0;
  --text-2: #c4c4c4;
  --muted: #aaaaaa;
  --line: #333333;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

/* ---------------------------- 2. NỀN TẢNG ---------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + var(--safe-b));
  overflow-x: hidden;
}
body.scroll-locked {
  position: fixed;
  left: 0;
  right: 0;
  overflow: hidden;
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
}
a {
  color: var(--brand-2);
  text-decoration: none;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 8px;
  z-index: 5000;
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 8px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.text-red {
  color: var(--red);
}
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.container.narrow {
  max-width: 680px;
}
.span-all {
  grid-column: 1 / -1;
}
.noscript {
  padding: 16px;
  text-align: center;
  background: #fff3cd;
}

/* ---------------------------- 3. NÚT ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  background: var(--surface-2);
  color: var(--text);
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  user-select: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 10px;
}
.btn-lg {
  min-height: 52px;
  padding: 12px 22px;
  font-size: 1rem;
  border-radius: 14px;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 16px rgba(196, 22, 28, 0.25);
}
.btn-primary:hover {
  background: var(--red-2);
}
.btn-gold {
  background: var(--gold);
  color: #1f1600;
  box-shadow: 0 8px 20px rgba(242, 194, 0, 0.3);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}
.btn-outline {
  background: transparent;
  color: var(--brand-2);
  border-color: currentColor;
}
.btn-fb {
  background: #1877f2;
  color: #fff;
}
.btn.loading {
  color: transparent !important;
  position: relative;
  pointer-events: none;
}
.btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--text);
  transition: background 0.2s;
}
.icon-btn:hover {
  background: var(--surface-2);
}
.icon-btn svg {
  width: 22px;
  height: 22px;
}
.link-btn {
  color: var(--brand-2);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 0;
}
.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}

/* ---------------------------- 4. HEADER ---------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header.scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 8px 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  margin-right: auto;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-nav {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.header-cta {
  display: none;
}
.i-sun {
  display: none;
}
:root[data-theme="dark"] .i-sun {
  display: block;
}
:root[data-theme="dark"] .i-moon {
  display: none;
}

/* ---------------------------- 5. HERO ---------------------------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(10, 22, 60, 0.55) 0%, rgba(10, 22, 60, 0.82) 70%, rgba(10, 22, 60, 0.95) 100%),
    url("/assets/cover-900.webp") center 30% / cover no-repeat,
    #0b3c5d;
  padding: 40px 0 34px;
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero {
    background:
      linear-gradient(90deg, rgba(10, 22, 60, 0.92) 0%, rgba(10, 22, 60, 0.6) 55%, rgba(10, 22, 60, 0.25) 100%),
      url("/assets/cover-1600.jpg") center 30% / cover no-repeat,
      #0b3c5d;
    padding: 90px 0 80px;
  }
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(242, 194, 0, 0.18);
  color: var(--gold);
  border: 1px solid rgba(242, 194, 0, 0.35);
}
.hero-title {
  margin-top: 12px;
  font-size: clamp(1.6rem, 6.5vw, 3rem);
  font-weight: 800;
}
.hero-title span {
  color: var(--gold);
}
.hero-tagline {
  position: relative;
  height: 1.6em;
  margin-top: 10px;
  font-size: clamp(0.98rem, 3.6vw, 1.2rem);
  opacity: 0.92;
}
.hero-tagline span {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: tagline 12s infinite;
}
.hero-tagline span:nth-child(2) {
  animation-delay: 4s;
}
.hero-tagline span:nth-child(3) {
  animation-delay: 8s;
}
@keyframes tagline {
  0%,
  2% {
    opacity: 0;
    transform: translateY(6px);
  }
  6%,
  30% {
    opacity: 1;
    transform: none;
  }
  34%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.hero-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
  max-width: 460px;
}
.hero-cta .btn {
  padding-left: 10px;
  padding-right: 10px;
}

/* ---------------------------- 6. KHỐI NỘI DUNG ---------------------------- */
.home-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 18px;
  padding-bottom: 28px;
}
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.block-head h2 {
  font-size: 1.2rem;
  font-weight: 800;
  position: relative;
  padding-left: 12px;
}
.block-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--red), var(--gold));
}
.block-link {
  font-size: 0.88rem;
  font-weight: 600;
}
.block-intro {
  margin: -6px 0 10px;
}
.page {
  padding-top: 18px;
  padding-bottom: 32px;
}
.page-head {
  margin-bottom: 16px;
}
.page-head h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
}
.page-head p {
  margin-top: 4px;
}
.sub-title {
  font-size: 1rem;
  margin: 22px 0 10px;
}

/* ---------------------------- 7. TIN TỨC ---------------------------- */
.news-list {
  display: grid;
  gap: 12px;
}
.news-card {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.news-card:active {
  transform: scale(0.99);
}
.news-thumb {
  flex: 0 0 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-thumb-ph {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 2rem;
}
.news-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.news-date {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
.news-title {
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-sapo {
  font-size: 0.9rem;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
}
.tag-red {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}
.tag-blue {
  background: var(--brand-soft);
  color: var(--brand-2);
}
.news-card-lead {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.news-card-lead .news-thumb {
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}
.news-card-lead .news-body {
  padding: 4px 14px 14px;
}
.news-card-lead .news-title {
  font-size: 1.12rem;
}

/* ---------------------------- 8. VIDEO ---------------------------- */
.video-grid {
  display: grid;
  gap: 14px;
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.video-card .video-box {
  border-radius: 0;
}
.video-box iframe,
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.video-facade:hover img {
  transform: scale(1.03);
}
.play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.play-btn svg {
  stroke: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}
.video-cap {
  padding: 10px 14px 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------------------------- 9. ALBUM ---------------------------- */
.album-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.album-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
}
.album-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.album-card:hover .album-cover img {
  transform: scale(1.05);
}
.album-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 8px;
  border-radius: 999px;
}
.album-name {
  margin-top: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.album-date {
  font-size: 0.75rem;
  color: var(--muted);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 10px;
}
.photo {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------- 10. GIÁ TRỊ CỐT LÕI ---------------------------- */
.value-grid {
  display: grid;
  gap: 12px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.value-icon {
  font-size: 1.5rem;
}
.value-card h3 {
  font-size: 1.02rem;
  margin: 6px 0;
  color: var(--brand);
}
.clamp {
  color: var(--text-2);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp.expanded {
  display: block;
}
.read-more {
  margin-top: 6px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 4px 0;
}

/* ---------------------------- 11. LỘ TRÌNH ĐAI ---------------------------- */
.belt-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 2px 10px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  scrollbar-width: none;
}
.belt-track::-webkit-scrollbar {
  display: none;
}
.belt {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 78px;
  padding: 10px 8px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1.5px solid var(--line);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.belt[aria-pressed="true"] {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.belt-swatch {
  width: 46px;
  height: 12px;
  border-radius: 4px;
  background: var(--belt);
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.belt-swatch.lg {
  width: 56px;
  height: 16px;
  flex-shrink: 0;
}
.belt-cap {
  font-weight: 700;
  font-size: 0.82rem;
}
.belt-name {
  font-size: 0.72rem;
  color: var(--muted);
}
.belt-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
}
.belt-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

/* Danh sách nhãn – giá trị */
.kv {
  display: grid;
  gap: 0;
}
.kv > div {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
}
.kv > div:first-child {
  border-top: 0;
}
.kv dt {
  color: var(--muted);
  font-size: 0.88rem;
}
.kv dd {
  font-size: 0.95rem;
  word-break: break-word;
}
.kv-compact > div {
  padding: 6px 0;
}

/* ---------------------------- 12. HỎI ĐÁP ---------------------------- */
.faq-list {
  display: grid;
  gap: 8px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 16px;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq-a {
  padding: 0 16px 14px;
  color: var(--text-2);
  font-size: 0.95rem;
}

/* Băng kêu gọi */
.cta-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: var(--r-lg);
  color: #fff;
  background: linear-gradient(135deg, #0b3c5d, #1f4fd1);
  box-shadow: 0 12px 30px rgba(22, 48, 122, 0.3);
}
.cta-banner > span:first-child {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cta-banner strong {
  font-size: 1.05rem;
}
.cta-banner span span {
  opacity: 0.85;
  font-size: 0.9rem;
}
.cta-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #1f1600;
  font-size: 1.6rem;
  font-weight: 700;
}

/* ---------------------------- 13. TRA CỨU ---------------------------- */
.search {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  transition: border-color 0.2s;
}
.search:focus-within {
  border-color: var(--brand-2);
}
.search-icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  align-self: center;
  margin-left: 8px;
  flex-shrink: 0;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  padding: 8px 4px;
}
.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.result-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.lookup-result {
  display: grid;
  gap: 14px;
}
.profile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, var(--brand-soft), transparent);
}
.avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}
:root[data-theme="dark"] .avatar {
  color: #0b1220;
}
.profile-id {
  flex: 1;
  min-width: 0;
}
.profile-id h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
}
.rank {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #1f1600;
}
.rank-sm {
  font-size: 0.7rem;
  padding: 1px 8px;
  align-self: flex-start;
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.code-pill {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--brand-2);
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab {
  flex: 1;
  white-space: nowrap;
  padding: 12px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
}
.tab[aria-selected="true"] {
  color: var(--brand-2);
  border-color: var(--brand-2);
}
.count {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.72rem;
}
.tab-panel {
  padding: 12px 16px 16px;
  animation: fade 0.25s var(--ease);
}
.rec-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.rec {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
}
.rec-gold {
  background: rgba(242, 194, 0, 0.14);
}
.rec-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.rec-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.92rem;
  min-width: 0;
}
.rec-sub {
  color: var(--muted);
  font-size: 0.82rem;
}
.badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
}
.badge-pass {
  background: rgba(21, 128, 61, 0.14);
  color: var(--green);
}
.badge-fail {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

/* ---------------------------- 14. LỊCH ---------------------------- */
.events {
  display: grid;
  gap: 12px;
}
.ev-hero {
  border-radius: var(--r-lg);
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #0b3c5d, #1f4fd1);
  box-shadow: 0 12px 30px rgba(22, 48, 122, 0.28);
}
.ev-hero.ev-exam {
  background: linear-gradient(135deg, #8a5a00, #d39a00);
}
.ev-hero.ev-tour {
  background: linear-gradient(135deg, #8f0f14, #d1242a);
}
.ev-hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.ev-hero h3 {
  font-size: 1.25rem;
  margin: 4px 0;
}
.ev-hero-meta {
  font-size: 0.9rem;
  opacity: 0.9;
}
.cd-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.cd {
  flex: 1;
  max-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}
.cd b {
  font-size: 1.5rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cd small {
  font-size: 0.7rem;
  opacity: 0.85;
}
.cd-live {
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}
.cd-sm {
  margin-top: 6px;
  gap: 6px;
}
.cd-sm .cd {
  flex: 0 0 auto;
  flex-direction: row;
  gap: 3px;
  align-items: baseline;
  padding: 2px 8px;
  background: var(--surface-2);
  color: var(--text);
}
.cd-sm .cd b {
  font-size: 0.95rem;
}
.ev-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.ev-past {
  opacity: 0.7;
  margin-top: 10px;
}
.ev-date {
  flex: 0 0 56px;
  height: 62px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-2);
}
.ev-date.ev-exam {
  background: rgba(242, 194, 0, 0.18);
  color: #8a5a00;
}
.ev-date.ev-tour {
  background: rgba(220, 38, 38, 0.1);
  color: #c4161c;
}
:root[data-theme="dark"] .ev-date.ev-exam {
  color: var(--gold);
}
:root[data-theme="dark"] .ev-date.ev-tour {
  color: #f87171;
}
.ev-day {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}
.ev-month {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.ev-body {
  flex: 1;
  min-width: 0;
}
.chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-2);
}
.chip-exam {
  background: rgba(242, 194, 0, 0.2);
  color: #7a5000;
}
.chip-tour {
  background: rgba(220, 38, 38, 0.12);
  color: #c4161c;
}
:root[data-theme="dark"] .chip-exam {
  color: var(--gold);
}
:root[data-theme="dark"] .chip-tour {
  color: #f87171;
}
.ev-title {
  font-size: 1rem;
  margin: 4px 0;
}
.ev-meta {
  font-size: 0.86rem;
  color: var(--text-2);
}
.ev-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-top: 6px;
}
.ev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.past-wrap {
  margin-top: 10px;
}
.past-wrap summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 0;
}
.teaser {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  color: var(--text);
}
.teaser-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.teaser-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
}
.teaser-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.teaser-arrow {
  font-size: 1.6rem;
  color: var(--muted);
}

/* ---------------------------- 15. CƠ SỞ & ĐỘI NGŨ ---------------------------- */
.loc-grid {
  display: grid;
  gap: 12px;
}
.loc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.loc-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.loc-pin {
  font-size: 1.3rem;
}
.loc-head h3 {
  font-size: 1.05rem;
  color: var(--brand);
}
.loc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.loc-actions .btn-primary {
  margin-left: auto;
}
.seg {
  display: flex;
  padding: 4px;
  gap: 4px;
  background: var(--surface-2);
  border-radius: 12px;
  margin-bottom: 12px;
}
.seg-btn {
  flex: 1;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.seg-btn[aria-selected="true"],
.seg-btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.person-grid {
  display: grid;
  gap: 10px;
}
.person {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.person-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-2);
  font-weight: 800;
  font-size: 1.2rem;
}
.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.person-bio {
  font-size: 0.85rem;
  color: var(--text-2);
}

/* ---------------------------- 16. GHI DANH ---------------------------- */
.enroll {
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.en-head h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand);
}
.en-step-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}
.en-progress {
  --pn: 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 14px 4px 18px;
}
.en-progress::before,
.en-progress::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: var(--line);
  border-radius: 3px;
}
.en-progress::after {
  right: auto;
  width: calc((100% - 32px) * var(--pn));
  background: var(--brand-2);
  transition: width 0.4s var(--ease);
}
.en-dot {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.en-dot.active {
  border-color: var(--brand-2);
  color: var(--brand-2);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.en-dot.done {
  background: var(--brand-2);
  border-color: var(--brand-2);
  color: #fff;
}
:root[data-theme="dark"] .en-dot.done {
  color: #0b1220;
}
.en-step {
  animation: slideIn 0.3s var(--ease);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.seg-type {
  margin-bottom: 6px;
}
.fieldset {
  border: 0;
  margin-top: 14px;
}
.fieldset legend {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.club-list {
  display: grid;
  gap: 10px;
}
.club-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.club-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 44px 14px 14px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s var(--ease);
}
.club-card:active {
  transform: scale(0.99);
}
.club-opt input:checked + .club-card {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.club-opt input:focus-visible + .club-card {
  outline: 3px solid var(--gold);
}
.club-name {
  font-weight: 700;
}
.club-detail,
.club-hlv {
  font-size: 0.86rem;
  color: var(--text-2);
}
.club-fee {
  margin-top: 4px;
  font-weight: 800;
  color: var(--red);
}
.club-check {
  position: absolute;
  right: 14px;
  top: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: all 0.2s;
}
.club-opt input:checked + .club-card .club-check {
  border-color: var(--brand-2);
  background: var(--brand-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.group-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 -2px;
}
.group-label ~ .group-label {
  margin-top: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field label {
  font-size: 0.9rem;
  font-weight: 600;
}
.opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}
.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font-size: 16px; /* ≥16px: iPhone không tự phóng to khi nhập */
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}
.field input:focus,
.field select:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.field [aria-invalid="true"] {
  border-color: #dc2626;
}
.field-error {
  color: #dc2626;
  font-size: 0.82rem;
}
.field-error:empty {
  display: none;
}
.hint {
  font-size: 0.82rem;
  color: var(--muted);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-2);
  cursor: pointer;
}
.check input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--brand-2);
}
.radio-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 8px;
  cursor: pointer;
}
.radio-card:has(input:checked) {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.radio-card input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-2);
  flex-shrink: 0;
}
.radio-card span {
  display: flex;
  flex-direction: column;
}
.radio-card small {
  color: var(--muted);
}
.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 16px;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.93rem;
}
.sum-row > :first-child {
  color: var(--muted);
}
.sum-row > :last-child {
  text-align: right;
}
.sum-sep {
  border-top: 1px dashed var(--line);
  margin: 6px 0;
}
.sum-total {
  font-size: 1.05rem;
}
.sum-total strong {
  color: var(--red);
  font-size: 1.2rem;
}
.alert {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  font-size: 0.9rem;
}
:root[data-theme="dark"] .alert {
  color: #fca5a5;
}
.en-actions {
  position: sticky;
  bottom: calc(var(--nav-h) + var(--safe-b));
  z-index: 5;
  display: flex;
  gap: 10px;
  margin: 20px -16px 0;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.en-actions .btn-ghost {
  flex: 0 0 auto;
}
.en-actions .btn-primary {
  flex: 1;
}
.en-success {
  text-align: center;
  padding: 10px 0 24px;
  animation: slideIn 0.35s var(--ease);
}
.ok-badge {
  width: 68px;
  height: 68px;
  margin: 6px auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(21, 128, 61, 0.35);
  animation: pop 0.45s var(--ease);
}
.en-success h3 {
  font-size: 1.35rem;
}
.order-id {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px auto 6px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1.5px dashed var(--brand-2);
  color: var(--brand-2);
}
.order-id strong {
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}
.pay-card {
  text-align: left;
  margin: 14px 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.pay-title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 8px;
}
.pay-qr {
  width: 260px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: #fff;
}
.link-copy {
  color: var(--brand-2);
  font-weight: 700;
  text-align: left;
}
.file-btn {
  margin-top: 12px;
  cursor: pointer;
}
.note-box {
  margin: 14px 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--text);
}
.size-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
.size-table th,
.size-table td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: center;
}
.size-table th {
  background: var(--surface-2);
}
.steps {
  padding-left: 20px;
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

/* ---------------------------- 17. FOOTER ---------------------------- */
.footer {
  background: #0d1a40;
  color: #cbd5e1;
  padding: 28px 0 24px;
  margin-top: 10px;
}
.footer-inner {
  display: grid;
  gap: 18px;
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-brand img {
  border-radius: 50%;
}
.footer-brand strong {
  color: #fff;
}
.footer-brand p {
  font-size: 0.88rem;
}
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.social a {
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s;
}
.social a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 0.82rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}
.footer-bottom a,
.footer-bottom .link-btn {
  color: #cbd5e1;
  font-size: 0.82rem;
}

/* ---------------------------- 18. THANH ĐIỀU HƯỚNG DƯỚI ---------------------------- */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--line);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}
.bottom-nav a svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s var(--ease);
}
.bottom-nav a.active {
  color: var(--brand-2);
}
.bottom-nav a.active svg {
  transform: translateY(-1px) scale(1.06);
}
.bottom-nav .nav-cta {
  color: var(--text);
}
.nav-cta-ring {
  width: 46px;
  height: 46px;
  margin-top: -20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 18px rgba(196, 22, 28, 0.35);
  border: 3px solid var(--surface);
}
.nav-cta-ring svg {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2.6;
}
.bottom-nav .nav-cta.active {
  color: var(--red);
}

/* ---------------------------- 19. HỘP THOẠI (BOTTOM SHEET) ---------------------------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(2, 6, 23, 0);
  transition: background 0.25s;
}
.sheet.open {
  background: rgba(2, 6, 23, 0.55);
}
.sheet-panel {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
  padding-bottom: var(--safe-b);
}
.sheet.open .sheet-panel {
  transform: none;
}
.sheet-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 8px 8px 18px;
  border-bottom: 1px solid var(--line);
  touch-action: none;
}
.sheet-grip {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 40px;
  height: 5px;
  margin-left: -20px;
  border-radius: 5px;
  background: var(--line);
}
.sheet-head h2 {
  flex: 1;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 24px;
}
@media (min-width: 760px) {
  .sheet {
    align-items: center;
    padding: 24px;
  }
  .sheet-panel {
    border-radius: 22px;
    max-height: 88vh;
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.25s;
  }
  .sheet.open .sheet-panel {
    opacity: 1;
  }
  .sheet-panel.sheet-wide {
    max-width: 820px;
  }
  .sheet-grip {
    display: none;
  }
}

/* Bài viết trong hộp thoại */
.art-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.art-title {
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  margin: 6px 0 12px;
  color: var(--brand);
}
.art-sapo {
  font-weight: 600;
  font-size: 1.04rem;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
  margin-bottom: 14px;
}
.art-text {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}
.art-fig {
  margin: 14px 0;
}
.art-img {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
}
.art-img img {
  width: 100%;
}
.art-fig figcaption {
  font-size: 0.86rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 6px;
}
.article .video-box {
  margin: 14px 0;
}
.art-files {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: grid;
  gap: 8px;
}
.art-files-title {
  font-weight: 700;
}
.art-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ---------------------------- 20. XEM ẢNH ---------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  touch-action: pan-y;
}
.lightbox.open {
  opacity: 1;
}
.lb-img {
  max-width: 100%;
  max-height: 82vh;
  max-height: 82dvh;
  object-fit: contain;
  transition: opacity 0.2s;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-img.loading {
  opacity: 0.3;
}
.lightbox .icon-btn {
  position: absolute;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.lb-close {
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
}
.lb-count {
  position: absolute;
  top: calc(22px + env(safe-area-inset-top, 0px));
  left: 18px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}
.lb-prev {
  left: 8px;
}
.lb-next {
  right: 8px;
}
.lb-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 20px calc(16px + var(--safe-b));
  color: #fff;
  text-align: center;
  font-size: 0.92rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}
.lb-cap:empty {
  display: none;
}

/* ---------------------------- 21. TOAST, NÚT LÊN ĐẦU, TRẠNG THÁI ---------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-b) + 14px);
  transform: translateX(-50%);
  z-index: 1200;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s var(--ease);
}
.toast-error {
  background: #b91c1c;
}
#back-to-top {
  position: fixed;
  right: 14px;
  bottom: calc(var(--nav-h) + var(--safe-b) + 14px);
  z-index: 150;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--brand-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
}
#back-to-top svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}
#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 26px 16px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r);
}
.state-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}
.state .btn {
  margin-top: 12px;
}

/* Khung chờ (skeleton) */
.skel {
  border-radius: var(--r);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}
.skel-news {
  height: 116px;
}
.skel-album {
  aspect-ratio: 4 / 3.6;
}
.skel-card {
  height: 140px;
}
.skel-hero {
  height: 170px;
  border-radius: var(--r-lg);
}
.skel-profile {
  height: 190px;
  border-radius: var(--r-lg);
}
.skel-club {
  height: 96px;
}

/* ---------------------------- 22. HIỆU ỨNG ---------------------------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
  }
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}
.view {
  animation: fade 0.25s var(--ease);
}

/* ---------------------------- 23. MÀN HÌNH LỚN ---------------------------- */
@media (min-width: 600px) {
  .album-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .loc-grid,
  .person-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  :root {
    --header-h: 68px;
  }
  body {
    padding-bottom: 0;
  }
  .bottom-nav {
    display: none;
  }
  .top-nav {
    display: flex;
    gap: 4px;
    margin-right: 8px;
  }
  .top-nav a {
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-2);
    transition: background 0.2s, color 0.2s;
  }
  .top-nav a:hover {
    background: var(--surface-2);
  }
  .top-nav a.active {
    color: var(--brand-2);
    background: var(--brand-soft);
  }
  .header-cta {
    display: inline-flex;
    margin-left: 6px;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }
  .brand-name {
    font-size: 1.2rem;
  }
  .home-stack {
    gap: 44px;
    padding-top: 32px;
  }
  .block-head h2 {
    font-size: 1.45rem;
  }
  .news-list {
    grid-template-columns: 1.3fr 1fr;
    grid-auto-rows: min-content;
  }
  .news-card-lead {
    grid-row: span 3;
  }
  .album-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .loc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .person-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .en-actions {
    position: static;
    margin: 20px 0 0;
    padding: 0;
    background: none;
    backdrop-filter: none;
  }
  .toast {
    bottom: 24px;
  }
  #back-to-top {
    bottom: 24px;
    right: 24px;
  }
  .lb-prev {
    left: 20px;
  }
  .lb-next {
    right: 20px;
  }
}
@media (hover: none) {
  .lb-nav {
    display: none;
  }
}

/* Người dùng bật "giảm chuyển động" */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-tagline span:first-child {
    opacity: 1;
  }
}

/* ---------------------------- 24. TRANG PHỤ (404, chính sách) ---------------------------- */
body.plain {
  padding-bottom: 0;
}
.simple-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.simple-page img {
  border-radius: 50%;
  margin-bottom: 8px;
}
.policy {
  padding-top: 24px;
  padding-bottom: 48px;
}
.policy h1 {
  font-size: 1.5rem;
  color: var(--brand);
  margin: 12px 0 6px;
}
.policy h2 {
  font-size: 1.08rem;
  margin: 22px 0 6px;
}
.policy p,
.policy li {
  color: var(--text-2);
}
.policy ul {
  padding-left: 20px;
  display: grid;
  gap: 4px;
}
.back-link {
  font-weight: 600;
}

/* Dải nhãn môi trường thử nghiệm (không hiện trên web thật) */
.test-banner {
  position: relative;
  z-index: 101;
  padding: 4px 12px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1f1600;
  background: repeating-linear-gradient(45deg, #f2c200 0 14px, #ffd84d 14px 28px);
}

/* =====================================================================
   25. GIAO DIỆN TRUYỀN THỐNG – giữ đúng phong cách bản cũ
   (khối này đặt cuối file nên được ưu tiên hơn các khối phía trên)
   ===================================================================== */
body {
  padding-bottom: 0;
  font-family: "Be Vietnam Pro", sans-serif;
}
.container {
  max-width: 1200px;
  padding: 0 15px;
}

/* ---- Header như cũ ---- */
.header {
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header-inner {
  max-width: 1200px;
  height: auto;
  padding: 10px 15px;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}
.logo img {
  width: clamp(36px, 8vw, 46px);
  height: auto;
  border-radius: 50%;
  flex-shrink: 0;
}
.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.logo-sub {
  font-size: clamp(7.5px, 2.2vw, 9px);
  font-weight: 700;
  color: var(--brand);
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-main {
  font-size: clamp(17px, 4.8vw, 24px);
  font-weight: 700;
  background: linear-gradient(to right, var(--red), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  font-size: 18px;
  color: var(--text);
}
.theme-btn svg {
  width: 20px;
  height: 20px;
}
.i-sun {
  display: none;
}
:root[data-theme="dark"] .i-sun {
  display: inline;
}
:root[data-theme="dark"] .i-moon {
  display: none;
}

/* ---- Hero + chữ chạy như cũ ---- */
.hero {
  height: 40vh;
  min-height: 280px;
  padding: 0 15px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/assets/cover-900.webp") center / cover no-repeat, #0b3c5d;
}
@media (min-width: 900px) {
  .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/assets/cover-1600.jpg") center / cover no-repeat, #0b3c5d;
    padding: 0 15px 40px;
  }
}
.typewriter {
  font-size: clamp(20px, 5vw, 32px);
  font-weight: 700;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}
.typewriter::after {
  content: "|";
  animation: blink 0.7s infinite;
  margin-left: 5px;
  color: var(--red);
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.sub-slogan {
  margin-top: 8px;
  font-size: clamp(13px, 3vw, 16px);
  opacity: 0.9;
}

/* ---- Menu thẻ nổi như cũ ---- */
.quick-access {
  margin-top: -40px;
  position: relative;
  z-index: 50;
}
.menu-grid {
  max-width: 1000px;
  margin: auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 92px;
  padding: 16px 8px;
  text-align: center;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  border-radius: 15px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, border-color 0.3s;
}
.menu-icon {
  font-size: 26px;
  line-height: 1;
}
.menu-item:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
}
.menu-item:active {
  transform: scale(0.97);
}
.menu-item.active-item {
  border: 2px solid var(--red);
  box-shadow: 0 10px 20px rgba(196, 22, 28, 0.15);
}
@media (min-width: 600px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 992px) {
  .menu-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ---- Khối & tiêu đề căn giữa như cũ ---- */
.section {
  padding: 40px 0;
  scroll-margin-top: 70px;
}
.bg-light {
  background: var(--surface-2);
}
.section-title {
  text-align: center;
  font-size: clamp(20px, 5.5vw, 24px);
  margin-bottom: 28px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.section-title span {
  color: var(--red);
}
.section-intro {
  text-align: center;
  color: var(--muted);
  margin: -16px auto 22px;
  max-width: 560px;
  font-size: 0.95rem;
}
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.card {
  background: var(--surface);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--red);
}
#home-event:not([hidden]) {
  margin-top: 24px;
}

/* ---- Giá trị cốt lõi như cũ ---- */
.value-card {
  text-align: left;
  border: 0;
  border-top: 4px solid var(--red);
}
.value-card h3 {
  color: var(--red);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.value-card .clamp {
  color: var(--text);
  line-height: 1.6;
}
.read-more {
  color: #ff4500;
  font-weight: 700;
  font-size: 0.9em;
}

/* ---- Tin tức như cũ (thẻ ngang, ảnh 90px) ---- */
.news-card {
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.news-thumb {
  flex: 0 0 90px;
  height: 90px;
  border-radius: 8px;
}
.news-title {
  color: var(--brand);
  font-size: 1.02rem;
}
.tag {
  border-radius: 4px;
  font-size: 10px;
  padding: 2px 6px;
  color: #fff;
  background: #4caf50;
}
.tag-red {
  background: #ff0000;
  color: #fff;
}
.tag-blue {
  background: #007bff;
  color: #fff;
}

/* ---- Hình ảnh: tự co giãn theo màn hình ---- */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr));
  gap: 14px;
}
@media (min-width: 600px) {
  .album-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
  }
}
.album-card {
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--line);
  gap: 0;
  transition: transform 0.3s, box-shadow 0.3s;
}
.album-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}
.album-cover {
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 4 / 3;
}
.album-card .media-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 10px 12px;
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  text-align: center;
  color: #003366;
  border-top: 1px solid var(--line);
  width: 100%;
}
:root[data-theme="dark"] .album-card .media-caption {
  color: var(--brand);
}
.album-card .media-caption small {
  font-style: normal;
  color: var(--muted);
  font-size: 0.75rem;
}
.album-card:hover .media-caption {
  color: var(--red);
}
@media (max-width: 480px) {
  .album-card .media-caption {
    font-size: 12.5px;
    min-height: 44px;
    padding: 8px;
  }
}

/* ---- Video như cũ ---- */
.video-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.video-card {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.video-body {
  padding: 14px 15px;
  border-top: 1px solid var(--line);
}
.video-cap {
  font-style: italic;
  font-weight: 400;
  padding: 0;
  margin-bottom: 10px;
  line-height: 1.5;
}
.yt-link {
  color: #ff0000;
  font-weight: 700;
  font-size: 13px;
}

/* ---- Lộ trình đai: căn giữa trên màn hình lớn ---- */
@media (min-width: 900px) {
  .belt-track {
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 4px 0 12px;
  }
}
.belt-detail {
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Form ghi danh: khung xanh như cũ ---- */
.enroll-widget {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--line);
  scroll-margin-top: 70px;
}
@media (max-width: 520px) {
  .enroll-widget {
    margin: 0 12px;
  }
}
.enroll-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  color: #fff;
  background: linear-gradient(135deg, #004693, #002d62);
}
.enroll-bar-icon {
  font-size: 24px;
}
.enroll-bar-titles {
  display: flex;
  flex-direction: column;
}
.enroll-bar-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.enroll-bar-sub {
  font-size: 11.5px;
  opacity: 0.85;
}
.enroll-body {
  padding: 0 20px 22px;
}
.en-head h1 {
  display: none;
}
.en-progress {
  margin: 18px 10px 14px;
}
.en-actions {
  bottom: 0;
  margin: 18px -20px 0;
  padding: 12px 20px calc(12px + var(--safe-b));
  background: var(--surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .en-actions {
    border-top: 0;
    padding: 0;
    margin: 20px 0 0;
  }
}

/* ---- Trang con (HLV, tra cứu, lịch, địa điểm) ---- */
.view.section {
  padding-top: 40px;
}
.sub-menu-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sub-menu-btn {
  flex: 0 0 auto;
  padding: 11px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
}
.sub-menu-btn[aria-selected="true"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.search {
  max-width: 600px;
  margin: 0 auto 26px;
}
.search input {
  padding-left: 10px;
}
.search-placeholder {
  text-align: center;
  color: var(--muted);
}
.person {
  border-top: 4px solid var(--red);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}
.loc-card {
  border-top: 5px solid var(--brand);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* ---- Footer như cũ ---- */
.footer {
  background: var(--brand);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  margin-top: 30px;
}
:root[data-theme="dark"] .footer {
  background: #0d1b2a;
}
.footer-title {
  font-size: 1.15rem;
  color: #fff;
}
.footer-divider {
  width: 50px;
  height: 3px;
  background: var(--red);
  margin: 15px auto;
}
.social-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.social-item {
  color: #fff;
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
  transition: background 0.3s;
}
.social-item:hover {
  background: rgba(255, 255, 255, 0.1);
}
.social-youtube {
  border-color: #ff4d4d;
}
.social-youtube:hover {
  background: #ff0000;
}
.social-shop {
  border-color: #ee4d2d;
}
.social-shop:hover {
  background: #ee4d2d;
}
.contact-info {
  margin-top: 18px;
}
.footer-bottom-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 20px auto;
  max-width: 600px;
}
.copyright {
  font-size: 14px;
  opacity: 0.9;
}
.footer-links {
  margin-top: 10px;
  display: flex;
  gap: 16px;
  justify-content: center;
  font-size: 0.82rem;
}
.footer-links a,
.footer-links .link-btn {
  color: #cbd5e1;
  font-size: 0.82rem;
}

/* ---- Nút lên đầu trang & thông báo: vị trí khi không còn thanh dưới ---- */
#back-to-top {
  bottom: calc(22px + var(--safe-b));
  right: 18px;
  background: var(--red);
  color: #fff;
  border: 0;
  font-size: 20px;
  font-weight: 700;
}
.toast {
  bottom: calc(24px + var(--safe-b));
}

/* ---- Màn hình chờ hình thái cực như cũ ---- */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.5s ease, visibility 0.5s;
}
#loading-screen.loader-hidden {
  opacity: 0;
  visibility: hidden;
}
.loading-content {
  text-align: center;
}
.loading-content p {
  margin-top: 15px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 2px;
  animation: pulse 1.5s infinite;
}
.taichi-loader {
  width: 80px;
  height: 80px;
  margin: auto;
  border-radius: 50%;
  position: relative;
  background: linear-gradient(to bottom, #222 50%, #fff 50%);
  border: 2px solid var(--red);
  animation: spin 1.5s linear infinite;
}
.taichi-loader::before,
.taichi-loader::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}
.taichi-loader::before {
  top: 0;
  background: #222;
  border: 10px solid #fff;
}
.taichi-loader::after {
  bottom: 0;
  background: #fff;
  border: 10px solid #222;
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

/* Điện thoại: ưu tiên chỗ cho tên CLB – nút cài ứng dụng chỉ hiện ở chân trang */
@media (max-width: 520px) {
  .nav-controls .install-btn {
    display: none !important;
  }
  .logo-main {
    font-size: clamp(14px, 4.5vw, 22px);
    padding-right: 2px; /* tránh cắt nét chữ cuối khi tô màu chuyển sắc */
  }
}

/* =====================================================================
   26. BỐ CỤC ĐÃ CHỐT: khung bản mới (thanh điều hướng dưới) + chữ bản cũ
   ===================================================================== */
body {
  padding-bottom: calc(var(--nav-h) + var(--safe-b));
}
body.plain {
  padding-bottom: 0;
}

/* Thanh điều hướng dưới – màu theo bản cũ */
.bottom-nav a.active {
  color: var(--brand);
}
.bottom-nav .nav-cta.active {
  color: var(--red);
}
:root[data-theme="dark"] .bottom-nav a.active {
  color: #3498db;
}

/* Nút nổi luôn nằm trên thanh điều hướng */
#back-to-top {
  bottom: calc(var(--nav-h) + var(--safe-b) + 14px);
}
.toast {
  bottom: calc(var(--nav-h) + var(--safe-b) + 14px);
}
.en-actions {
  bottom: calc(var(--nav-h) + var(--safe-b));
}

/* Menu trên header – chỉ hiện trên máy tính */
.top-nav {
  display: none;
}
@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
  .bottom-nav {
    display: none;
  }
  .header-inner {
    gap: 16px;
  }
  .logo {
    margin-right: auto;
  }
  .top-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .top-nav a {
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-2);
    transition: background 0.2s, color 0.2s;
  }
  .top-nav a:hover {
    background: var(--surface-2);
  }
  .top-nav a.active {
    color: var(--brand);
    background: var(--brand-soft);
  }
  .top-nav .top-nav-cta {
    background: var(--red);
    color: #fff;
    margin-left: 6px;
  }
  .top-nav .top-nav-cta:hover,
  .top-nav .top-nav-cta.active {
    background: var(--red-2);
    color: #fff;
  }
  #back-to-top,
  .toast {
    bottom: 24px;
  }
  .en-actions {
    bottom: 0;
  }
}

/* Ảnh bìa: chỉ còn chữ chạy */
.hero {
  padding-bottom: 0;
}

/* Khoảng cách các mục */
.section {
  padding: 36px 0;
}
.section-tight {
  padding: 8px 0 24px;
}
.view.section {
  padding-top: 28px;
}
#home-event:not([hidden]) {
  margin-top: 0;
}

/* Hình ảnh hoạt động: 3 ảnh xem trước dạng khảm */
.photo-mosaic {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}
.photo-mosaic.n1 {
  grid-template-columns: 1fr;
}
.mosaic-item,
.photo-mosaic .skel-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.photo-mosaic.n3 > :first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mosaic-item:hover img {
  transform: scale(1.05);
}
@media (min-width: 760px) {
  .photo-mosaic.n3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    max-width: 960px;
    margin: 0 auto;
  }
  .photo-mosaic.n3 > :first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
    aspect-ratio: auto;
  }
}
.more-photos {
  max-width: 480px;
  margin: 16px auto 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-radius: 30px;
  background: var(--surface);
}
.more-photos .muted {
  font-weight: 500;
}

/* Danh sách album trong hộp thoại */
.sheet-body .album-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 600px) {
  .sheet-body .album-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Băng "Đăng ký học" – xanh võ đường như thanh ghi danh cũ */
.cta-banner {
  background: linear-gradient(135deg, #004693, #002d62);
  box-shadow: 0 10px 25px rgba(0, 45, 98, 0.3);
}
.cta-banner strong {
  letter-spacing: 0.5px;
}

/* Tab Cơ sở: khoảng cách trước Hội đồng chuyên môn */
.team-wrap {
  margin-top: 44px;
  scroll-margin-top: 80px;
}

/* Trang Đăng ký */
.view[data-view="enroll"] .enroll-widget {
  margin-top: 4px;
}

/* =====================================================================
   27. TINH CHỈNH: header thoáng, icon thông tin, trang đọc tin kiểu báo
   ===================================================================== */

/* Header: giãn khoảng cách giữa 2 dòng chữ */
.logo-text-group {
  gap: 4px;
  line-height: 1.15;
}
.logo-sub {
  letter-spacing: 0.02em;
  /* Chữ in hoa có dấu (Ổ, Õ, Â, Ử) cao hơn chữ thường: chừa đủ chỗ để dấu không bị cắt */
  line-height: 1.7;
  padding-top: 2px;
  margin-bottom: -4px;
}

/* Icon trước nhãn thông tin (giống bản cũ) */
.kv dt {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.kv-ico {
  flex: 0 0 auto;
  width: 20px;
  text-align: center;
}
.text-amber {
  color: #d97706;
}
.upper {
  text-transform: uppercase;
}
.empty-note {
  text-align: center;
  color: var(--muted);
  padding: 14px 0;
}

/* Thẻ thành tích / thăng cấp */
.rec-card {
  list-style: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
}
.rec-card.rec-gold {
  border-left-color: #ffd700;
  background: linear-gradient(145deg, var(--surface), rgba(255, 215, 0, 0.08));
}
.rec-card.rec-silver {
  border-left-color: #a9a9a9;
}
.rec-card.rec-bronze {
  border-left-color: #cd7f32;
}
.rec-card.rec-other {
  border-left-color: var(--red);
}
.rec-card.rec-pass {
  border-left-color: #28a745;
}
.rec-card.rec-fail {
  border-left-color: #dc3545;
}
.rec-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.rec-medal {
  font-size: 1.5rem;
  line-height: 1;
}
.rec-head .badge {
  margin-left: auto;
}
.kv-compact dt {
  font-size: 0.85rem;
}

/* ---------------- Trang đọc tin kiểu báo điện tử ---------------- */
@media (max-width: 759px) {
  .sheet-panel.sheet-full {
    max-height: 100vh;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
}
.sheet-panel.sheet-full .sheet-body {
  padding: 18px 18px 40px;
}
.article {
  max-width: 720px;
  margin: 0 auto;
}
.art-kicker {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--red);
}
.art-title {
  font-size: clamp(1.45rem, 6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--brand);
  margin: 10px 0 12px;
}
.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.art-sapo {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text);
  border-left: 4px solid var(--red);
  padding-left: 14px;
  margin-bottom: 18px;
}
.art-cover {
  margin: 0 -18px 20px;
}
.art-cover .art-img {
  border-radius: 0;
}
@media (min-width: 760px) {
  .art-cover {
    margin: 0 0 20px;
  }
  .art-cover .art-img {
    border-radius: 12px;
  }
}
.art-img {
  position: relative;
}
.zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  font-size: 16px;
}
.art-fig figcaption {
  text-align: center;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 8px;
  padding: 0 8px;
  border-left: 0;
}
.art-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}
.art-text p {
  margin-bottom: 1em;
}
@media (min-width: 600px) {
  .art-text p {
    text-align: justify;
  }
}
.art-text p:first-child::first-letter {
  float: left;
  font-size: 3.2em;
  line-height: 0.9;
  font-weight: 800;
  color: var(--red);
  padding: 4px 8px 0 0;
}
.art-gallery {
  display: grid;
  gap: 14px;
  margin: 8px 0 18px;
}
.art-section {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin: 6px 0 10px;
}
.art-videos .video-box {
  margin-bottom: 14px;
}
.art-files {
  margin: 18px 0;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 123, 255, 0.06);
  border: 1px dashed #007bff;
}
.art-files-title {
  font-weight: 800;
  color: #007bff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.art-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}
.art-file > span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.art-file small {
  font-weight: 400;
  color: var(--muted);
}
.art-file-ico {
  font-size: 1.5rem;
}
.art-share {
  margin-top: 22px;
  padding: 14px 0;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.art-share-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.art-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
}
.share-native {
  background: var(--red);
}
.share-fb {
  background: #1877f2;
}
.share-copy {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
}
.art-more {
  margin-top: 24px;
}
.art-more-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.art-more-title span {
  color: var(--red);
}
.more-item {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.more-thumb {
  flex: 0 0 84px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}
.more-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.more-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.more-t {
  font-weight: 700;
  color: var(--brand);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.more-body small {
  color: var(--muted);
}
@media (max-width: 420px) {
  .tab {
    padding: 11px 4px;
    font-size: 0.8rem;
  }
  .tab .count {
    min-width: 16px;
    padding: 0 4px;
  }
}

/* =====================================================================
   28. BẢN CUỐI: tiêu đề kẻ hai bên · đai thắt nút · hiệu ứng
   ===================================================================== */

/* ---- G1: Tiêu đề kẻ hai bên ──── GIÁ TRỊ CỐT LÕI ──── ---- */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: clamp(19px, 5.2vw, 26px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: 26px;
}
.section-title::before,
.section-title::after {
  content: "";
  flex: 1 1 0;
  min-width: 18px;
  max-width: 110px;
  height: 2px;
  border-radius: 2px;
}
.section-title::before {
  background: linear-gradient(to right, transparent, var(--brand) 70%, var(--red));
}
.section-title::after {
  background: linear-gradient(to left, transparent, var(--brand) 70%, var(--red));
}
.section-title .st {
  text-align: center;
  max-width: 78%;
  color: var(--text);
}
.section-title .hl {
  color: var(--red);
}
@media (max-width: 380px) {
  .section-title {
    gap: 8px;
    letter-spacing: 0.02em;
  }
}
.section-intro {
  margin-top: -14px;
}

/* ---- Lộ trình đai: dải đai thắt nút, chỉ cấp + màu ---- */
.belt-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 6px 16px 14px;
  margin: 0 -15px;
  scrollbar-width: none;
}
.belt-track::-webkit-scrollbar {
  display: none;
}
@media (min-width: 900px) {
  .belt-track {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    margin: 0;
    padding: 6px 0;
  }
}
.belt-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 104px;
  padding: 16px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.belt-graphic {
  position: relative;
  width: 76px;
  height: 14px;
  border-radius: 3px;
  background: var(--belt);
  border: 1px solid rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.25);
  margin-bottom: 14px;
}
.belt-knot {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 18px;
  height: 22px;
  margin-left: -9px;
  border-radius: 4px;
  background: var(--belt);
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}
.belt-knot::before,
.belt-knot::after {
  content: "";
  position: absolute;
  top: 16px;
  width: 9px;
  height: 18px;
  border-radius: 2px;
  background: var(--belt);
  border: 1px solid rgba(0, 0, 0, 0.22);
}
.belt-knot::before {
  left: -5px;
  transform: rotate(18deg);
}
.belt-knot::after {
  right: -5px;
  transform: rotate(-18deg);
}
.belt-cap {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text);
}
.belt-name {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---- G2: Hiệu ứng hiện dần khi cuộn ---- */
.rv-on .rv {
  opacity: 0;
  transform: translateY(18px);
}
.rv-on .rv.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--rv-d, 0ms), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--rv-d, 0ms);
}

/* ---- Thanh tiến trình trên cùng khi đang tải dữ liệu ---- */
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 3000;
  background: linear-gradient(90deg, var(--red), #ffcc00, var(--brand));
  box-shadow: 0 0 8px rgba(196, 22, 28, 0.5);
  opacity: 0;
  pointer-events: none;
}
#topbar.run {
  opacity: 1;
  width: 85%;
  transition: width 6s cubic-bezier(0.1, 0.7, 0.2, 1), opacity 0.2s;
}
#topbar.run.done {
  width: 100%;
  opacity: 0;
  transition: width 0.25s ease, opacity 0.35s ease 0.2s;
}

/* ---- Màn hình chờ khi mở trang ---- */
#loading-screen {
  background: radial-gradient(circle at 50% 40%, var(--surface) 0%, var(--bg) 70%);
  transition: opacity 0.5s ease, visibility 0.5s, transform 0.5s ease;
}
#loading-screen.loader-hidden {
  transform: scale(1.04);
}
.ld-ring {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}
.ld-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--red);
  border-right-color: var(--brand);
  animation: spin 1.2s linear infinite reverse;
}
.ld-ring::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--red);
  opacity: 0;
  animation: ldPulse 1.8s ease-out infinite;
}
.ld-brand {
  margin-top: 22px !important;
  font-weight: 800 !important;
  font-size: 1.05rem;
  letter-spacing: 0.12em !important;
  background: linear-gradient(to right, var(--red), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: none !important;
}
.ld-bar {
  width: 160px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.ld-bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--brand));
  animation: ldSlide 1.1s ease-in-out infinite;
}
.ld-text {
  margin-top: 10px !important;
  font-size: 0.72rem;
  letter-spacing: 0.25em !important;
  color: var(--muted) !important;
}
@keyframes ldPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}
@keyframes ldSlide {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

/* Thái cực cỡ nhỏ dùng trong tra cứu / gửi đơn */
.taichi-loader.sm {
  width: 46px;
  height: 46px;
}
.taichi-loader.sm::before,
.taichi-loader.sm::after {
  width: 23px;
  height: 23px;
  border-width: 6px;
}

/* ---- Hiệu ứng khi đang tra cứu ---- */
.searching {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 16px 18px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px dashed var(--line);
  text-align: center;
}
.searching-text {
  font-weight: 600;
  color: var(--brand);
  animation: fade 0.4s ease;
  min-height: 1.5em;
}
.searching-dots {
  display: flex;
  gap: 6px;
}
.searching-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: dotBounce 1s ease-in-out infinite;
}
.searching-dots span:nth-child(2) {
  animation-delay: 0.15s;
  background: #f2c200;
}
.searching-dots span:nth-child(3) {
  animation-delay: 0.3s;
  background: var(--brand);
}
@keyframes dotBounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}
.lookup-result .profile {
  animation: slideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lookup-result .profile:nth-of-type(2) {
  animation-delay: 0.08s;
}
.lookup-result .profile:nth-of-type(3) {
  animation-delay: 0.16s;
}

/* ---- Lớp phủ khi đang gửi đơn ---- */
.enroll-widget {
  position: relative;
}
.en-sending {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fade 0.25s ease;
}
.en-sending p {
  font-weight: 700;
  color: var(--brand);
}
.en-sending small {
  color: var(--muted);
}
.ok-badge {
  position: relative;
}
.ok-badge::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid var(--green);
  opacity: 0;
  animation: ldPulse 1.4s ease-out 0.3s 2;
}

/* ---- G4: Chế độ tối hoàn thiện ---- */
:root[data-theme="dark"] {
  --brand-soft: #1c2a38;
}
:root[data-theme="dark"] .header {
  background: #1a1a1a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
:root[data-theme="dark"] .logo-sub {
  color: #8fbbe0;
}
:root[data-theme="dark"] .logo-main {
  background: linear-gradient(to right, #ff5a5f, #5dade2);
  -webkit-background-clip: text;
  background-clip: text;
}
:root[data-theme="dark"] .section-title {
  color: #f1f1f1;
}
:root[data-theme="dark"] .section-title .hl {
  color: #ff6b6b;
}
:root[data-theme="dark"] .section-title::before {
  background: linear-gradient(to right, transparent, #5dade2 70%, #ff6b6b);
}
:root[data-theme="dark"] .section-title::after {
  background: linear-gradient(to left, transparent, #5dade2 70%, #ff6b6b);
}
:root[data-theme="dark"] .value-card h3,
:root[data-theme="dark"] .art-kicker {
  color: #ff6b6b;
}
:root[data-theme="dark"] .news-title,
:root[data-theme="dark"] .art-title,
:root[data-theme="dark"] .more-t,
:root[data-theme="dark"] .loc-head h3 {
  color: #7cc0f0;
}
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .menu-item,
:root[data-theme="dark"] .belt-item,
:root[data-theme="dark"] .news-card,
:root[data-theme="dark"] .video-card,
:root[data-theme="dark"] .album-card,
:root[data-theme="dark"] .faq-item,
:root[data-theme="dark"] .loc-card,
:root[data-theme="dark"] .person,
:root[data-theme="dark"] .profile,
:root[data-theme="dark"] .ev-card,
:root[data-theme="dark"] .teaser,
:root[data-theme="dark"] .enroll-widget,
:root[data-theme="dark"] .summary,
:root[data-theme="dark"] .club-card,
:root[data-theme="dark"] .radio-card {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  border-color: #2e2e2e;
}
:root[data-theme="dark"] .bg-light {
  background: #171717;
}
:root[data-theme="dark"] .hero {
  background-color: #0a0a0a;
}
:root[data-theme="dark"] .bottom-nav {
  background: rgba(26, 26, 26, 0.94);
  border-color: #2e2e2e;
}
:root[data-theme="dark"] .nav-cta-ring {
  border-color: #1a1a1a;
}
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .search {
  background: #242424;
}
:root[data-theme="dark"] .rank {
  background: #e0b84a;
  color: #1f1600;
}
:root[data-theme="dark"] .tag {
  filter: saturate(0.9) brightness(0.95);
}
:root[data-theme="dark"] .footer {
  background: #0d1b2a;
}
:root[data-theme="dark"] .cta-banner {
  background: linear-gradient(135deg, #0d3a75, #061a33);
}
:root[data-theme="dark"] .belt-graphic,
:root[data-theme="dark"] .belt-knot,
:root[data-theme="dark"] .belt-knot::before,
:root[data-theme="dark"] .belt-knot::after {
  border-color: rgba(255, 255, 255, 0.25);
}
:root[data-theme="dark"] .art-files {
  background: rgba(52, 152, 219, 0.08);
}
:root[data-theme="dark"] .art-file {
  background: #1e1e1e;
}
:root[data-theme="dark"] .value-card,
:root[data-theme="dark"] .person {
  border-top-color: var(--red);
}
:root[data-theme="dark"] .loc-card {
  border-top-color: #3498db;
}

/* Menu máy tính: không cho chữ xuống dòng ("Trang chủ", "Đăng ký học") */
.top-nav a,
.header-cta {
  white-space: nowrap;
}
